@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.
Files changed (82) hide show
  1. package/PLASTIC.md +131 -7
  2. package/agents/plastic-brainstorming.md +9 -1
  3. package/agents/plastic-enforcer.md +1 -1
  4. package/agents/plastic-executor.md +11 -1
  5. package/agents/plastic-intent-curator.md +7 -5
  6. package/agents/plastic-planner.md +11 -1
  7. package/agents/plastic-spec-specialist.md +9 -1
  8. package/hooks/hooks.json +20 -0
  9. package/hooks/retrieval-gate +10 -0
  10. package/hooks/savepoint-pre +10 -0
  11. package/hooks/statusline +150 -41
  12. package/package.json +1 -1
  13. package/scripts/agent-report +163 -0
  14. package/scripts/doctor.rb +172 -0
  15. package/scripts/hook-auto-arm +1 -1
  16. package/scripts/hook-bash-gate +2 -2
  17. package/scripts/hook-code-gate +11 -6
  18. package/scripts/hook-create-gate +2 -2
  19. package/scripts/hook-gate-check +14 -23
  20. package/scripts/hook-retrieval-gate +136 -0
  21. package/scripts/hook-savepoint-pre +32 -0
  22. package/scripts/hook-session-start +1 -1
  23. package/scripts/insight-append +51 -0
  24. package/scripts/lib/bridge.rb +374 -34
  25. package/scripts/lib/frontmatter_writer.rb +130 -0
  26. package/scripts/lib/graph_rebuild.rb +328 -0
  27. package/scripts/lib/insights.rb +86 -0
  28. package/scripts/lib/installer_core.rb +23 -0
  29. package/scripts/lib/link_suggestions.rb +322 -0
  30. package/scripts/lib/links_projection.rb +160 -0
  31. package/scripts/lib/links_section.rb +207 -0
  32. package/scripts/lib/power_tools.rb +76 -0
  33. package/scripts/lib/qmd_hook.rb +38 -25
  34. package/scripts/lib/qmd_sync.rb +36 -0
  35. package/scripts/lib/retrieval_gate.rb +211 -0
  36. package/scripts/lib/worktree.rb +409 -0
  37. package/scripts/link-suggest +211 -0
  38. package/scripts/new-intent +138 -29
  39. package/scripts/project-links +287 -0
  40. package/scripts/qmd-sync +50 -3
  41. package/scripts/rebuild-graph +244 -0
  42. package/scripts/spawn-preamble +26 -1
  43. package/skills/auto/SKILL.md +58 -11
  44. package/skills/auto/evals/evals.json +48 -0
  45. package/skills/auto/references/agent-architecture.md +27 -4
  46. package/skills/auto/references/agent-report-contract.md +121 -0
  47. package/skills/brainstorming/SKILL.md +1 -0
  48. package/skills/brainstorming/evals/evals.json +22 -0
  49. package/skills/continuing/SKILL.md +30 -8
  50. package/skills/continuing/evals/evals.json +9 -0
  51. package/skills/creating-intent/SKILL.md +16 -2
  52. package/skills/creating-intent/evals/evals.json +16 -0
  53. package/skills/creating-intent/references/lifecycle.md +9 -4
  54. package/skills/creating-skills/SKILL.md +65 -0
  55. package/skills/creating-skills/evals/evals.json +108 -0
  56. package/skills/creating-skills/references/agents.md +168 -0
  57. package/skills/creating-skills/references/evals.md +41 -0
  58. package/skills/creating-skills/references/hooks.md +248 -0
  59. package/skills/creating-skills/references/progressive-disclosure.md +176 -0
  60. package/skills/creating-skills/references/scripts.md +166 -0
  61. package/skills/creating-skills/references/skills.md +165 -0
  62. package/skills/creating-skills/scripts/scaffold.rb +313 -0
  63. package/skills/dashboard/SKILL.md +5 -0
  64. package/skills/dashboard/evals/evals.json +22 -0
  65. package/skills/executing-plan/SKILL.md +2 -2
  66. package/skills/humanizer/SKILL.md +39 -0
  67. package/skills/humanizer/evals/evals.json +70 -0
  68. package/skills/humanizer/references/always-on-snippet.md +9 -0
  69. package/skills/humanizer/references/examples.md +48 -0
  70. package/skills/intent-curator/SKILL.md +6 -1
  71. package/skills/intent-curator/evals/evals.json +22 -0
  72. package/skills/linking-intents/SKILL.md +54 -12
  73. package/skills/linking-intents/evals/evals.json +22 -0
  74. package/skills/linking-intents/references/zettelkasten.md +7 -0
  75. package/skills/managing-index/SKILL.md +8 -0
  76. package/skills/managing-index/evals/evals.json +22 -0
  77. package/skills/managing-index/references/zettelkasten-linking.md +6 -1
  78. package/skills/releasing/SKILL.md +32 -0
  79. package/skills/research/SKILL.md +8 -0
  80. package/skills/research/evals/evals.json +22 -0
  81. package/skills/writing-instructions/SKILL.md +0 -159
  82. 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