@zalom/plastic 1.0.0-beta.2 → 1.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PLASTIC.md +131 -7
- package/agents/plastic-brainstorming.md +9 -1
- package/agents/plastic-enforcer.md +1 -1
- package/agents/plastic-executor.md +11 -1
- package/agents/plastic-intent-curator.md +7 -5
- package/agents/plastic-planner.md +11 -1
- package/agents/plastic-spec-specialist.md +9 -1
- package/hooks/hooks.json +20 -0
- package/hooks/retrieval-gate +10 -0
- package/hooks/savepoint-pre +10 -0
- package/hooks/statusline +150 -41
- package/package.json +1 -1
- package/scripts/agent-report +163 -0
- package/scripts/doctor.rb +172 -0
- package/scripts/hook-auto-arm +1 -1
- package/scripts/hook-bash-gate +2 -2
- package/scripts/hook-code-gate +11 -6
- package/scripts/hook-create-gate +2 -2
- package/scripts/hook-gate-check +14 -23
- package/scripts/hook-retrieval-gate +136 -0
- package/scripts/hook-savepoint-pre +32 -0
- package/scripts/hook-session-start +1 -1
- package/scripts/insight-append +51 -0
- package/scripts/lib/bridge.rb +374 -34
- package/scripts/lib/frontmatter_writer.rb +130 -0
- package/scripts/lib/graph_rebuild.rb +328 -0
- package/scripts/lib/insights.rb +86 -0
- package/scripts/lib/installer_core.rb +23 -0
- package/scripts/lib/link_suggestions.rb +322 -0
- package/scripts/lib/links_projection.rb +160 -0
- package/scripts/lib/links_section.rb +207 -0
- package/scripts/lib/power_tools.rb +76 -0
- package/scripts/lib/qmd_hook.rb +38 -25
- package/scripts/lib/qmd_sync.rb +36 -0
- package/scripts/lib/retrieval_gate.rb +211 -0
- package/scripts/lib/worktree.rb +409 -0
- package/scripts/link-suggest +211 -0
- package/scripts/new-intent +138 -29
- package/scripts/project-links +287 -0
- package/scripts/qmd-sync +50 -3
- package/scripts/rebuild-graph +244 -0
- package/scripts/spawn-preamble +26 -1
- package/skills/auto/SKILL.md +58 -11
- package/skills/auto/evals/evals.json +48 -0
- package/skills/auto/references/agent-architecture.md +27 -4
- package/skills/auto/references/agent-report-contract.md +121 -0
- package/skills/brainstorming/SKILL.md +1 -0
- package/skills/brainstorming/evals/evals.json +22 -0
- package/skills/continuing/SKILL.md +30 -8
- package/skills/continuing/evals/evals.json +9 -0
- package/skills/creating-intent/SKILL.md +16 -2
- package/skills/creating-intent/evals/evals.json +16 -0
- package/skills/creating-intent/references/lifecycle.md +9 -4
- package/skills/creating-skills/SKILL.md +65 -0
- package/skills/creating-skills/evals/evals.json +108 -0
- package/skills/creating-skills/references/agents.md +168 -0
- package/skills/creating-skills/references/evals.md +41 -0
- package/skills/creating-skills/references/hooks.md +248 -0
- package/skills/creating-skills/references/progressive-disclosure.md +176 -0
- package/skills/creating-skills/references/scripts.md +166 -0
- package/skills/creating-skills/references/skills.md +165 -0
- package/skills/creating-skills/scripts/scaffold.rb +313 -0
- package/skills/dashboard/SKILL.md +5 -0
- package/skills/dashboard/evals/evals.json +22 -0
- package/skills/executing-plan/SKILL.md +2 -2
- package/skills/humanizer/SKILL.md +39 -0
- package/skills/humanizer/evals/evals.json +70 -0
- package/skills/humanizer/references/always-on-snippet.md +9 -0
- package/skills/humanizer/references/examples.md +48 -0
- package/skills/intent-curator/SKILL.md +6 -1
- package/skills/intent-curator/evals/evals.json +22 -0
- package/skills/linking-intents/SKILL.md +54 -12
- package/skills/linking-intents/evals/evals.json +22 -0
- package/skills/linking-intents/references/zettelkasten.md +7 -0
- package/skills/managing-index/SKILL.md +8 -0
- package/skills/managing-index/evals/evals.json +22 -0
- package/skills/managing-index/references/zettelkasten-linking.md +6 -1
- package/skills/releasing/SKILL.md +32 -0
- package/skills/research/SKILL.md +8 -0
- package/skills/research/evals/evals.json +22 -0
- package/skills/writing-instructions/SKILL.md +0 -159
- package/skills/writing-instructions/references/agentskills-spec.md +0 -135
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
# agentskills.io Full Reference
|
|
2
|
-
|
|
3
|
-
Source: https://agentskills.io (all sections, verified June 2026)
|
|
4
|
-
|
|
5
|
-
## Specification Details
|
|
6
|
-
|
|
7
|
-
### Frontmatter Fields
|
|
8
|
-
|
|
9
|
-
| Field | Required | Constraints |
|
|
10
|
-
|-------|----------|-------------|
|
|
11
|
-
| name | Yes | 1-64 chars. Lowercase alphanumeric + hyphens. No leading/trailing/consecutive hyphens. Must match directory name. |
|
|
12
|
-
| description | Yes | 1-1024 chars. Non-empty. What + when. |
|
|
13
|
-
| license | No | Short — name or filename reference |
|
|
14
|
-
| compatibility | No | 1-500 chars. Environment requirements only when needed. |
|
|
15
|
-
| metadata | No | String→string map. Use unique key names. |
|
|
16
|
-
| allowed-tools | No | Space-separated. Experimental. |
|
|
17
|
-
|
|
18
|
-
### Progressive Disclosure Token Budgets
|
|
19
|
-
|
|
20
|
-
- Discovery: ~100 tokens per skill (name + description only)
|
|
21
|
-
- Activation: <5000 tokens / <500 lines recommended for SKILL.md body
|
|
22
|
-
- Execution: Unbounded — files in scripts/, references/, assets/ load as needed
|
|
23
|
-
|
|
24
|
-
### File References
|
|
25
|
-
|
|
26
|
-
- Use relative paths from skill root
|
|
27
|
-
- Keep one level deep from SKILL.md
|
|
28
|
-
- Agent resolves paths automatically
|
|
29
|
-
|
|
30
|
-
## Description Optimization
|
|
31
|
-
|
|
32
|
-
### Evaluation Methodology
|
|
33
|
-
|
|
34
|
-
1. Create ~20 eval queries (8-10 should-trigger, 8-10 should-not)
|
|
35
|
-
2. Split 60/40 train/validation (proportional mix in each)
|
|
36
|
-
3. Run each query 3 times, compute trigger rate
|
|
37
|
-
4. Pass threshold: 0.5
|
|
38
|
-
5. Near-miss negatives are most valuable (share keywords, need different thing)
|
|
39
|
-
6. Iterate on train set only, validate on held-out set
|
|
40
|
-
7. Select best by validation pass rate, not last iteration
|
|
41
|
-
8. 5 iterations usually sufficient
|
|
42
|
-
|
|
43
|
-
### Description Anti-patterns
|
|
44
|
-
|
|
45
|
-
- "Helps with PDFs" — too vague, no trigger context
|
|
46
|
-
- "Process CSV files" — no when/why, no user-intent focus
|
|
47
|
-
- Implementation details instead of user intent
|
|
48
|
-
- Missing edge case triggers (user doesn't name the domain)
|
|
49
|
-
|
|
50
|
-
## Instruction Best Practices
|
|
51
|
-
|
|
52
|
-
### Gotchas — Highest-Value Content
|
|
53
|
-
|
|
54
|
-
Concrete corrections, not general advice:
|
|
55
|
-
|
|
56
|
-
```markdown
|
|
57
|
-
## Gotchas
|
|
58
|
-
- The `users` table uses soft deletes. Queries must include
|
|
59
|
-
`WHERE deleted_at IS NULL`.
|
|
60
|
-
- User ID is `user_id` in DB, `uid` in auth, `accountId` in billing.
|
|
61
|
-
All three refer to the same value.
|
|
62
|
-
- The `/health` endpoint returns 200 even if DB is down. Use `/ready`.
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Calibrating Control
|
|
66
|
-
|
|
67
|
-
Prescriptive when:
|
|
68
|
-
- Operations are fragile
|
|
69
|
-
- Consistency matters
|
|
70
|
-
- Specific sequence must be followed
|
|
71
|
-
|
|
72
|
-
Flexible when:
|
|
73
|
-
- Multiple approaches are valid
|
|
74
|
-
- Task tolerates variation
|
|
75
|
-
- Explaining WHY is more effective than rigid rules
|
|
76
|
-
|
|
77
|
-
### Instruction Patterns
|
|
78
|
-
|
|
79
|
-
1. **Validation loops**: Do work → validate → fix → repeat
|
|
80
|
-
2. **Plan-validate-execute**: Create plan → validate vs source of truth → execute
|
|
81
|
-
3. **Checklists**: Track progress, enforce dependencies, validation gates
|
|
82
|
-
4. **Bundled scripts**: If agent reinvents same logic each run, bundle it
|
|
83
|
-
5. **Templates**: Concrete output structures > prose descriptions
|
|
84
|
-
|
|
85
|
-
## Script Design
|
|
86
|
-
|
|
87
|
-
### Hard Requirements
|
|
88
|
-
- No interactive prompts (hard requirement — agents hang indefinitely)
|
|
89
|
-
- All input via flags, env vars, or stdin
|
|
90
|
-
|
|
91
|
-
### Agent-Friendly Design
|
|
92
|
-
- --help as primary interface documentation
|
|
93
|
-
- Helpful error messages: what wrong + what expected + what to try
|
|
94
|
-
- Structured output (JSON/CSV/TSV), data on stdout, diagnostics on stderr
|
|
95
|
-
- Idempotent operations (agents may retry)
|
|
96
|
-
- Dry-run for destructive operations
|
|
97
|
-
- Meaningful exit codes documented in --help
|
|
98
|
-
- Output size control: default to summaries, support --offset pagination
|
|
99
|
-
- Agent harnesses truncate at 10-30K characters
|
|
100
|
-
|
|
101
|
-
## Evaluation Framework
|
|
102
|
-
|
|
103
|
-
### Test Case Structure
|
|
104
|
-
```json
|
|
105
|
-
{
|
|
106
|
-
"skill_name": "name",
|
|
107
|
-
"evals": [{
|
|
108
|
-
"id": 1,
|
|
109
|
-
"prompt": "realistic user message",
|
|
110
|
-
"expected_output": "what success looks like",
|
|
111
|
-
"files": ["evals/files/input.csv"],
|
|
112
|
-
"assertions": ["specific, verifiable checks"]
|
|
113
|
-
}]
|
|
114
|
-
}
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
### Running Evals
|
|
118
|
-
- With-skill vs without-skill (or previous version) comparison
|
|
119
|
-
- Clean context per run (subagents or separate sessions)
|
|
120
|
-
- Capture timing: total_tokens, duration_ms
|
|
121
|
-
- Start with 2-3 test cases, expand after first results
|
|
122
|
-
|
|
123
|
-
### Assertion Quality
|
|
124
|
-
Good: Programmatically verifiable, specific, countable
|
|
125
|
-
Weak: Vague ("the output is good")
|
|
126
|
-
Brittle: Exact phrase matching
|
|
127
|
-
|
|
128
|
-
Principle: Require concrete evidence for PASS. No benefit of the doubt.
|
|
129
|
-
|
|
130
|
-
### Iteration Loop
|
|
131
|
-
1. Run evals → grade assertions → aggregate benchmarks
|
|
132
|
-
2. Identify failures (assertions, human feedback, execution transcripts)
|
|
133
|
-
3. Feed all three + SKILL.md to LLM for proposed changes
|
|
134
|
-
4. Apply changes → re-run → compare
|
|
135
|
-
5. Stop when consistently empty feedback or no meaningful improvement
|