@seanyao/roll 3.620.1 → 3.624.1

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 (67) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/roll.mjs +4563 -3369
  3. package/package.json +1 -1
  4. package/lib/__pycache__/changelog_audit.cpython-314.pyc +0 -0
  5. package/lib/__pycache__/github_sync.cpython-314.pyc +0 -0
  6. package/lib/__pycache__/loop-fmt.cpython-314.pyc +0 -0
  7. package/lib/__pycache__/loop_result_eval.cpython-314.pyc +0 -0
  8. package/lib/__pycache__/loop_unstick.cpython-314.pyc +0 -0
  9. package/lib/__pycache__/model_prices.cpython-314.pyc +0 -0
  10. package/lib/__pycache__/prices_fetcher.cpython-314.pyc +0 -0
  11. package/lib/__pycache__/roll-home.cpython-314.pyc +0 -0
  12. package/lib/__pycache__/roll-loop-status.cpython-314.pyc +0 -0
  13. package/lib/__pycache__/roll_git.cpython-314.pyc +0 -0
  14. package/lib/__pycache__/roll_render.cpython-314.pyc +0 -0
  15. package/lib/__pycache__/slides-render.cpython-314.pyc +0 -0
  16. package/lib/agent_usage/__pycache__/__init__.cpython-314.pyc +0 -0
  17. package/lib/agent_usage/__pycache__/gemini.cpython-314.pyc +0 -0
  18. package/lib/agent_usage/__pycache__/kimi.cpython-314.pyc +0 -0
  19. package/lib/agent_usage/__pycache__/openai.cpython-314.pyc +0 -0
  20. package/lib/agent_usage/__pycache__/pi.cpython-314.pyc +0 -0
  21. package/lib/agent_usage/__pycache__/pi_emit.cpython-314.pyc +0 -0
  22. package/lib/agent_usage/__pycache__/qwen.cpython-314.pyc +0 -0
  23. package/skills/README.md +0 -64
  24. package/skills/docs/skill-authoring.md +0 -74
  25. package/skills/reports/skill-audit-summary.md +0 -53
  26. package/skills/roll-.changelog/SKILL.md +0 -47
  27. package/skills/roll-.changelog/references/full-contract.md +0 -462
  28. package/skills/roll-.clarify/SKILL.md +0 -64
  29. package/skills/roll-.dream/SKILL.md +0 -47
  30. package/skills/roll-.dream/references/full-contract.md +0 -365
  31. package/skills/roll-.echo/SKILL.md +0 -118
  32. package/skills/roll-.qa/SKILL.md +0 -47
  33. package/skills/roll-.qa/references/full-contract.md +0 -256
  34. package/skills/roll-.review/SKILL.md +0 -148
  35. package/skills/roll-build/SKILL.md +0 -49
  36. package/skills/roll-build/references/full-contract.md +0 -968
  37. package/skills/roll-debug/SKILL.md +0 -48
  38. package/skills/roll-debug/assets/injectable-bb.js +0 -263
  39. package/skills/roll-debug/references/full-contract.md +0 -607
  40. package/skills/roll-design/SKILL.md +0 -52
  41. package/skills/roll-design/references/engineering-checklist.md +0 -298
  42. package/skills/roll-design/references/full-contract.md +0 -940
  43. package/skills/roll-doc-audit/SKILL.md +0 -51
  44. package/skills/roll-doc-audit/references/full-contract.md +0 -796
  45. package/skills/roll-doctor/SKILL.md +0 -211
  46. package/skills/roll-fix/SKILL.md +0 -49
  47. package/skills/roll-fix/references/full-contract.md +0 -672
  48. package/skills/roll-idea/SKILL.md +0 -62
  49. package/skills/roll-loop/SKILL.md +0 -50
  50. package/skills/roll-loop/references/full-contract.md +0 -534
  51. package/skills/roll-notes/SKILL.md +0 -107
  52. package/skills/roll-onboard/SKILL.md +0 -238
  53. package/skills/roll-peer/SKILL.md +0 -47
  54. package/skills/roll-peer/references/full-contract.md +0 -323
  55. package/skills/roll-propose/SKILL.md +0 -155
  56. package/skills/roll-review-pr/SKILL.md +0 -62
  57. package/skills/roll-spar/SKILL.md +0 -47
  58. package/skills/roll-spar/references/full-contract.md +0 -288
  59. package/skills/route-cases/skills.json +0 -216
  60. package/skills/scripts/audit-skills.mjs +0 -272
  61. package/skills/scripts/test-audit-skills.mjs +0 -39
  62. package/skills/tests/fixtures/skill-audit/block-skill/SKILL.md +0 -12
  63. package/skills/tests/fixtures/skill-audit/minimal-skill/SKILL.md +0 -8
  64. package/skills/tests/fixtures/skill-audit/quoted-skill/SKILL.md +0 -10
  65. package/skills/tests/fixtures/skill-audit/route-cases.json +0 -21
  66. package/skills/tests/fixtures/skill-audit/spoke-skill/SKILL.md +0 -12
  67. package/skills/tests/fixtures/skill-audit/spoke-skill/references/runbook.md +0 -3
@@ -1,211 +0,0 @@
1
- ---
2
- name: roll-doctor
3
- license: MIT
4
- allowed-tools: "Read, Bash, Edit"
5
- description: "Load when diagnosing Roll toolchain health, conventions sync, skill file health, templates, symlinks, config validity, or installation integrity."
6
- ---
7
- # Roll Doctor
8
-
9
- ## Gotchas
10
-
11
- - Doctor diagnoses toolchain and convention health; it should fail loud on broken contracts rather than hiding drift.
12
- - Skill health checks belong here only as diagnostics; changing skill content still happens in roll-skills.
13
-
14
- 诊断 Roll 工具链健康状态。快速定位 skill 不工作、convention 不同步、symlink 断裂等问题。
15
-
16
- ## When to Use
17
-
18
- - "roll 怎么不工作了"
19
- - "skill 找不到了"
20
- - "convention 没有同步"
21
- - "$roll-debug 不响应"
22
- - 任何 Roll 相关功能异常
23
-
24
- ## Checks
25
-
26
- ### 1. Roll Installation
27
-
28
- ```bash
29
- # Verify ROLL_HOME structure
30
- ls -la ~/.roll/
31
- ls -la ~/.roll/skills/
32
- ls -la ~/.roll/conventions/
33
- ```
34
-
35
- Expected:
36
- - `~/.roll/` exists
37
- - `~/.roll/skills/` has roll-* directories
38
- - `~/.roll/conventions/global/` has AGENTS.md, CLAUDE.md, etc.
39
- - `~/.roll/conventions/templates/` has backend-service, cli, frontend-only, fullstack
40
-
41
- ### 2. Skill Health
42
-
43
- ```bash
44
- # List all skills and check YAML frontmatter
45
- for f in ~/.roll/skills/*/SKILL.md; do
46
- echo "=== $(basename $(dirname $f)) ==="
47
- head -5 "$f"
48
- done
49
- ```
50
-
51
- Check:
52
- - Each skill directory has `SKILL.md`
53
- - YAML frontmatter has `name:` and `description:`
54
- - No duplicate `name` values across skills
55
- - File is readable markdown
56
-
57
- When diagnosing a roll-skills checkout, run the first-class skill audit:
58
-
59
- ```bash
60
- node scripts/audit-skills.mjs
61
- node scripts/audit-skills.mjs --json
62
- node scripts/audit-skills.mjs --strict
63
- ```
64
-
65
- Check:
66
- - Every description starts with `Load when...` and stays at 50 words or fewer
67
- - Every skill has positive and negative route cases in `route-cases/skills.json`
68
- - Every skill has Gotchas / Known Failure Modes coverage
69
- - Hub/spoke integrity has no missing or unreferenced `references/`, `assets/`, or `scripts/` files
70
- - Oversized hubs either split below 250 lines or carry an explicit reviewed waiver
71
-
72
- ### 3. Symlinks
73
-
74
- ```bash
75
- # Claude Code
76
- ls -la ~/.claude/skills/roll-*
77
-
78
- # Antigravity (agy — reuses ~/.gemini/, if exists)
79
- ls -la ~/.gemini/skills/roll-* 2>/dev/null
80
-
81
- # Trae (if exists)
82
- ls -la ~/.trae/skills/roll-* 2>/dev/null
83
- ```
84
-
85
- Check:
86
- - Each symlink exists
87
- - Each symlink points to valid target in `~/.roll/skills/`
88
- - No broken symlinks (red in ls output)
89
-
90
- ### 4. Conventions Sync
91
-
92
- ```bash
93
- # Check roll.md sync
94
- diff ~/.roll/conventions/global/CLAUDE.md ~/.claude/roll.md
95
-
96
- # Check CLAUDE.md includes @roll.md
97
- grep "@roll.md" ~/.claude/CLAUDE.md
98
- ```
99
-
100
- Check:
101
- - `~/.claude/roll.md` exists and matches `~/.roll/conventions/global/CLAUDE.md`
102
- - `~/.claude/CLAUDE.md` contains `@roll.md` reference
103
- - `~/.claude/CLAUDE.md` is not missing or stale
104
-
105
- ### 5. Template Integrity
106
-
107
- ```bash
108
- # Global conventions
109
- ls ~/.roll/conventions/global/
110
-
111
- # Project type templates
112
- for t in backend-service cli frontend-only fullstack; do
113
- ls ~/.roll/conventions/templates/$t/
114
- done
115
-
116
- # New project template
117
- ls ~/.roll/template/
118
- ```
119
-
120
- Check:
121
- - All expected files present in each directory
122
- - No missing AGENTS.md, CLAUDE.md, or GEMINI.md
123
-
124
- ### 6. Config
125
-
126
- ```bash
127
- cat ~/.roll/config.yaml
128
- ```
129
-
130
- Check:
131
- - File exists and is valid YAML
132
- - Has required `ai_tool_name` or `ai_claude` entries
133
-
134
- ### 7. Peer Review
135
-
136
- ```bash
137
- # Peer state directory
138
- ls -la ~/.roll/.peer-state/ 2>/dev/null || echo "missing"
139
-
140
- # Peer config in config.yaml
141
- grep "peer_" ~/.roll/config.yaml 2>/dev/null || echo "no peer config"
142
-
143
- # Available peer CLIs
144
- for tool in claude kimi pi codex; do
145
- command -v "$tool" &>/dev/null && echo "✓ $tool" || echo "✗ $tool"
146
- done
147
-
148
- # roll-peer skill
149
- ls ~/.roll/skills/roll-peer/SKILL.md 2>/dev/null || echo "missing"
150
- ```
151
-
152
- Check:
153
- - `~/.roll/.peer-state/` exists and is writable
154
- - `~/.roll/config.yaml` contains `peer_call_timeout` (default: 180)
155
- - At least one peer CLI (claude / kimi / pi) is installed
156
- - `roll-peer` skill exists
157
-
158
- ## Report Format
159
-
160
- ```
161
- 🔬 Roll Doctor Report
162
-
163
- [✓/✗] Roll installation
164
- [✓/✗] Skills (N skills checked)
165
- [✓/✗] Symlinks (N tools checked)
166
- [✓/✗] Conventions sync
167
- [✓/✗] Templates integrity
168
- [✓/✗] Config
169
- [✓/✗] Peer Review
170
-
171
- ---
172
- Issues found: N
173
-
174
- 1. [severity] description → fix command
175
- 2. [severity] description → fix command
176
-
177
- Recommendation: ...
178
- ```
179
-
180
- ## Severity Levels
181
-
182
- | Level | Meaning | Example |
183
- |-------|---------|---------|
184
- | 🔴 Critical | Skill completely broken | Broken symlink, missing SKILL.md |
185
- | 🟡 Warning | Partial functionality | Stale convention, outdated roll.md |
186
- | 🟢 Info | Recommendations | Missing optional tool symlink |
187
-
188
- ## Auto-Fix
189
-
190
- If user confirms, automatically fix safe issues:
191
-
192
- - **Broken/missing symlinks** → `roll setup` (recreates all)
193
- - **Stale conventions** → `roll sync conventions`
194
- - **Missing template files** → warn user to re-install
195
-
196
- Never auto-fix without user confirmation for:
197
- - Overwriting `~/.claude/CLAUDE.md` (may have user customizations)
198
- - Deleting files
199
-
200
- ## Quick Fix Commands
201
-
202
- ```bash
203
- # Recreate all symlinks and sync conventions
204
- roll setup
205
-
206
- # Sync only conventions
207
- roll sync conventions
208
-
209
- # Reinstall (nuclear option)
210
- curl -fsSL https://raw.githubusercontent.com/seanyao/roll/main/install.sh | bash
211
- ```
@@ -1,49 +0,0 @@
1
- ---
2
- name: roll-fix
3
- license: MIT
4
- allowed-tools: "Read, Edit, Write, Glob, Grep, Bash, Skill"
5
- description: "Load when the user provides a FIX-XXX or BUG-XXX item, or asks for a focused hotfix/bugfix through Roll lighter TCR repair workflow."
6
- ---
7
- # Roll Fix
8
-
9
- This hub keeps the routing boundary, hard gates, and execution skeleton in the initial context. Load the heavier runbook only when the task actually needs the detailed contract.
10
-
11
- ## Load
12
-
13
- Load when the user provides a FIX-XXX or BUG-XXX item, or asks for a focused hotfix/bugfix through Roll lighter TCR repair workflow.
14
-
15
- ## When Not to Use
16
-
17
- - Broad feature delivery; load roll-build.
18
- - Discussion-only design work; load roll-design.
19
-
20
- ## Read On Demand
21
-
22
- - Read [the full contract](references/full-contract.md) before executing the workflow end to end, recovering from failures, or checking exact output templates.
23
- - Keep this hub in context for trigger boundaries and hard gates.
24
-
25
- ## Workflow Skeleton
26
-
27
- 1. Read the FIX/BUG row and root-cause context.
28
- 2. Reproduce or explain why reproduction is impossible.
29
- 3. Add the failing/regression test first.
30
- 4. Patch through TCR, run focused and local CI checks.
31
- 5. Self-review, update backlog/evidence, and open PR.
32
-
33
- ## Hard Gates
34
-
35
- - Every fix gets a regression signal or documented exception.
36
- - Blocking review findings are fixed in another TCR cycle.
37
- - The Review Score is produced by the runner's fresh-session peer Reviewer — the agent does NOT self-score.
38
- - Docs/code/product alignment is a DoD gate: user-visible behavior, command, output-copy, site, or delivery-view changes update the touched README/docs/guide/site/help in the same delivery.
39
-
40
- ## Gotchas
41
-
42
- - Use for narrow FIX/BUG work; broad feature delivery belongs in roll-build.
43
- - Never patch without a regression signal or explicit reason why the bug cannot be reproduced locally.
44
-
45
- ## Maintenance
46
-
47
- - Description changes require updates in `route-cases/skills.json`.
48
- - New observed failures should add a gotcha and the matching positive or negative route case.
49
- - Heavy examples, templates, recovery paths, and deterministic snippets belong in `references/`, `assets/`, or `scripts/`, not in this hub.