@seanyao/roll 3.621.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 +28 -0
  2. package/dist/roll.mjs +2807 -2405
  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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seanyao/roll",
3
- "version": "3.621.1",
3
+ "version": "3.624.1",
4
4
  "description": "Roll — Roll out features with AI agents",
5
5
  "packageManager": "pnpm@11.1.3",
6
6
  "scripts": {
package/skills/README.md DELETED
@@ -1,64 +0,0 @@
1
- # roll-skills
2
-
3
- The **skill contracts** for [roll](https://github.com/seanyao/roll) — markdown
4
- playbooks that AI agents (Claude, Cursor, Kimi, Pi, …) load and follow when
5
- they work inside a roll-managed project. This repo is mounted into the main
6
- repo as the `skills/` git submodule and ships inside the
7
- [`@seanyao/roll`](https://www.npmjs.com/package/@seanyao/roll) npm package;
8
- `roll setup` syncs the contracts into each installed AI client.
9
-
10
- roll 的**技能契约**仓——AI agent 在 roll 项目里工作时加载并遵循的 markdown
11
- 工作流手册。以 `skills/` 子模块挂载进主仓、随 npm 包发布,`roll setup`
12
- 负责同步到各 AI 客户端。
13
-
14
- ## Skills · 技能清单
15
-
16
- **Delivery · 交付主链**
17
- - `roll-design` — 讨论/设计/拆卡入口(DDD 建模 + INVEST 拆分落 backlog)
18
- - `roll-build` — 万能交付:US 卡经 TCR 全流程(含验证门与验收证据)
19
- - `roll-fix` — 缺陷修复轻量链路(FIX 卡专用)
20
- - `roll-idea` — 一句话快速捕获 → 自动分类编号落 backlog
21
- - `roll-loop` — 无人值守 BACKLOG 执行器的工作流契约
22
-
23
- **Quality · 质量与评审**
24
- - `roll-peer` — 跨 agent 协商评审(三态协议 + 时间盒)
25
- - `roll-review-pr` — PR 评审,输出 APPROVE / REQUEST_CHANGES / UNCERTAIN
26
- - `roll-spar` — 攻防 TDD(高危逻辑双 agent 对抗)
27
- - `roll-.review` / `roll-.qa` — TCR 内嵌自审与测试金字塔基准
28
-
29
- **Observation · 观察与汇报**
30
- - `roll-notes` — 项目日记
31
- - `roll-.dream` — 夜间架构/文档健康扫描
32
- - `roll-doctor` — 工具链体检;`roll-doc-audit` — 文档/产品一致性审计与存量文档自动化
33
-
34
- **Lifecycle & misc · 生命周期与杂项**
35
- - `roll-onboard` — 存量项目交互式接入
36
- - `roll-propose` — 产品视角提案生成(只进 proposals,不直写 backlog)
37
- - `roll-.changelog` — Done 卡 → 用户 changelog(含验收证据 marker 约定)
38
- - `roll-debug` — 网页黑盒诊断探针
39
- - `roll-.clarify` / `roll-.echo` — 模糊输入的被动澄清
40
-
41
- > Each skill's full contract lives in `<skill>/SKILL.md`. Dot-prefixed skills
42
- > (`roll-.x`) are passive/auto-triggered. 每个技能的完整契约在各自的
43
- > `SKILL.md`;带点前缀的为被动技能,自动触发。
44
-
45
- ## Editing · 修改约定
46
-
47
- Skills are prose contracts — edit the markdown, PR to `main`, then bump the
48
- `skills/` submodule pointer in the main repo. Conventions (bilingual output,
49
- backlog write-back rules, evidence chain) are defined by the main repo's
50
- AGENTS.md and enforced there.
51
-
52
- ## Health & Authoring · 健康检查与编写纪律
53
-
54
- Skill descriptions are model-facing routing triggers, not human summaries. New
55
- or edited skills must keep a compact `Load when...` description, positive and
56
- negative route cases, Roll-specific gotchas, and progressive disclosure through
57
- `references/`, `assets/`, or `scripts/` when the hub grows.
58
-
59
- ```bash
60
- node scripts/audit-skills.mjs --strict
61
- node scripts/test-audit-skills.mjs
62
- ```
63
-
64
- See [docs/skill-authoring.md](docs/skill-authoring.md) for the full rules.
@@ -1,74 +0,0 @@
1
- # Skill Authoring Guide
2
-
3
- Roll skills are context that an agent must carry. Keep every skill small,
4
- routable, and backed by evidence.
5
-
6
- ## Required Shape
7
-
8
- - `SKILL.md` is the hub. Keep trigger boundaries, hard gates, and the shortest
9
- execution skeleton in the hub.
10
- - `description` is a model-facing routing trigger. Start with `Load when...`,
11
- keep it at 50 words or fewer, and describe user intent rather than workflow
12
- internals.
13
- - Put heavy examples, long templates, recovery branches, rubrics, and optional
14
- runbooks in `references/`.
15
- - Put reusable generated files, snippets, images, or browser probes in
16
- `assets/`.
17
- - Put deterministic repeated logic in `scripts/` so the agent does not
18
- reconstruct boilerplate in context.
19
- - If a hub must stay over 250 lines, add a reviewed waiver in the hub and
20
- explain why splitting would be riskier.
21
-
22
- ## Route Evidence
23
-
24
- Every skill must have route cases in `route-cases/skills.json`:
25
-
26
- - At least two positive user intents that should load the skill.
27
- - At least two negative or forbidden-load intents that should not load the
28
- skill.
29
- - Adjacent skills need explicit negative coverage. Examples:
30
- `roll-build` vs `roll-design` vs `roll-fix`,
31
- `roll-loop` vs `roll-.dream` vs `roll-sentinel`,
32
- `roll-.review` vs `roll-review-pr` vs `roll-peer` vs `roll-spar`.
33
-
34
- Changing a description requires updating the route cases in the same change.
35
-
36
- ## Gotchas
37
-
38
- Every hub must include `## Gotchas` or `## Known Failure Modes`.
39
-
40
- - Add Roll-specific mistakes, invariants, trigger boundaries, or failure modes.
41
- - Do not repeat generic coding advice.
42
- - If a gotcha comes from a missed load, add a positive route case.
43
- - If a gotcha comes from an off-target load, add a negative route case.
44
- - Treat the section as append-mostly unless an entry is proven obsolete.
45
- - Never instruct agents to source the `roll` binary as if it were a shell
46
- library: the TS-native `roll` is a bundled CLI, not a bash script, and
47
- `source "$(command -v roll)"` executes JS as shell (FIX-274). Skill steps call
48
- `roll <command>` directly.
49
- - Skills do NOT self-score (FIX-343). The working agent never scores its own
50
- story; the Review Score is a runner-side peer-review outcome, produced by a
51
- Reviewer in a FRESH, separate session (never a sub-agent of the builder's
52
- session). Do not author any `self-score` step into a skill.
53
-
54
- ## Maintenance Workflow
55
-
56
- - Description change -> update route cases.
57
- - Observed skill failure -> add gotcha and route evidence.
58
- - Heavy new section -> move it to `references/` or `assets/`.
59
- - Repeatable deterministic command sequence -> move it to `scripts/`.
60
- - New auxiliary file -> link it from `SKILL.md`; unreferenced spokes fail audit.
61
-
62
- ## Audit Commands
63
-
64
- Run these from the roll-skills repository root:
65
-
66
- ```bash
67
- node scripts/audit-skills.mjs
68
- node scripts/audit-skills.mjs --json
69
- node scripts/audit-skills.mjs --strict
70
- node scripts/test-audit-skills.mjs
71
- ```
72
-
73
- `--strict` is the gate for description style, route coverage, gotcha coverage,
74
- hub size, missing spoke references, and unreferenced spoke files.
@@ -1,53 +0,0 @@
1
- # Skill Ecosystem Audit Summary
2
-
3
- Generated for US-SKILL-023 through US-SKILL-028.
4
-
5
- ## Strict Audit Result
6
-
7
- Command:
8
-
9
- ```bash
10
- node scripts/audit-skills.mjs --strict
11
- ```
12
-
13
- Result:
14
-
15
- - Skills scanned: 23
16
- - Load-trigger descriptions: 23/23
17
- - Gotchas coverage: 23/23
18
- - Skills over 250 lines: 0
19
- - Skills with auxiliary files: 13
20
- - Route fixture coverage: 2 positive and 2 negative cases for every skill
21
- - Violations: 0
22
-
23
- ## Hub Size Reduction
24
-
25
- The initial `SKILL.md` line baseline was 7,929 lines. Current hub-only
26
- `SKILL.md` total is 1,985 lines. Detailed contracts were moved into
27
- `references/full-contract.md` for the refactored skills.
28
-
29
- | Skill | Baseline hub lines | Current hub lines | Moved content |
30
- |---|---:|---:|---|
31
- | roll-design | 924 | 49 | `references/full-contract.md`, `references/engineering-checklist.md` |
32
- | roll-build | 884 | 48 | `references/full-contract.md` |
33
- | roll-fix | 641 | 48 | `references/full-contract.md` |
34
- | roll-debug | 607 | 48 | `references/full-contract.md`, `assets/injectable-bb.js` |
35
- | roll-doc-audit | 595 | 46 | `references/full-contract.md` |
36
- | roll-loop | 563 | 47 | `references/full-contract.md` |
37
- | roll-.changelog | 465 | 47 | `references/full-contract.md` |
38
- | roll-.dream | 374 | 47 | `references/full-contract.md` |
39
- | roll-sentinel | 364 | 46 | `references/full-contract.md` |
40
- | roll-peer | 336 | 47 | `references/full-contract.md` |
41
- | roll-deck | 296 | 46 | `references/full-contract.md` |
42
- | roll-spar | 289 | 47 | `references/full-contract.md` |
43
- | roll-.qa | 258 | 47 | `references/full-contract.md` |
44
-
45
- ## Maintenance Rules Added
46
-
47
- - Descriptions start with `Load when...` and route on user intent.
48
- - `route-cases/skills.json` carries positive and negative route examples.
49
- - Every hub has `Gotchas` with Roll-specific failure modes.
50
- - Long contracts load progressively through `references/`, `assets/`, or
51
- `scripts/`.
52
- - `scripts/audit-skills.mjs --strict` gates description style, route coverage,
53
- gotcha coverage, hub size, and spoke integrity.
@@ -1,47 +0,0 @@
1
- ---
2
- hidden: true
3
- name: roll-.changelog
4
- license: MIT
5
- allowed-tools: "Read, Edit, Write, Bash(git:*)"
6
- description: "Load when a completed Roll build or deploy needs CHANGELOG.md generated or updated from Done stories, acceptance evidence, and release notes."
7
- ---
8
- # Roll Changelog
9
-
10
- 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.
11
-
12
- ## Load
13
-
14
- Load when a completed Roll build or deploy needs CHANGELOG.md generated or updated from Done stories, acceptance evidence, and release notes.
15
-
16
- ## When Not to Use
17
-
18
- - Planning new backlog stories.
19
- - Owner internal briefing; load roll-brief.
20
-
21
- ## Read On Demand
22
-
23
- - Read [the full contract](references/full-contract.md) before executing the workflow end to end, recovering from failures, or checking exact output templates.
24
- - Keep this hub in context for trigger boundaries and hard gates.
25
-
26
- ## Workflow Skeleton
27
-
28
- 1. Read Done stories and acceptance evidence.
29
- 2. Generate or update CHANGELOG.md.
30
- 3. Keep user-facing language external and concise.
31
- 4. Stage only the changelog artifact when required.
32
-
33
- ## Hard Gates
34
-
35
- - No changelog entries from unaccepted work.
36
- - No private backlog/process detail in public notes.
37
-
38
- ## Gotchas
39
-
40
- - Only run after completion/deploy evidence exists; do not invent changelog bullets from Todo or In Progress backlog rows.
41
- - Keep internal backlog detail out of user-facing CHANGELOG.md unless it is part of accepted release evidence.
42
-
43
- ## Maintenance
44
-
45
- - Description changes require updates in `route-cases/skills.json`.
46
- - New observed failures should add a gotcha and the matching positive or negative route case.
47
- - Heavy examples, templates, recovery paths, and deterministic snippets belong in `references/`, `assets/`, or `scripts/`, not in this hub.