chief-clancy 0.8.22 → 0.9.0

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 (94) hide show
  1. package/bin/clancy.js +153 -0
  2. package/package.json +8 -88
  3. package/README.md +0 -292
  4. package/dist/bundle/clancy-afk.js +0 -6
  5. package/dist/bundle/clancy-once.js +0 -239
  6. package/dist/installer/file-ops/file-ops.d.ts +0 -32
  7. package/dist/installer/file-ops/file-ops.d.ts.map +0 -1
  8. package/dist/installer/file-ops/file-ops.js +0 -58
  9. package/dist/installer/file-ops/file-ops.js.map +0 -1
  10. package/dist/installer/hook-installer/hook-installer.d.ts +0 -31
  11. package/dist/installer/hook-installer/hook-installer.d.ts.map +0 -1
  12. package/dist/installer/hook-installer/hook-installer.js +0 -137
  13. package/dist/installer/hook-installer/hook-installer.js.map +0 -1
  14. package/dist/installer/install.d.ts +0 -3
  15. package/dist/installer/install.d.ts.map +0 -1
  16. package/dist/installer/install.js +0 -270
  17. package/dist/installer/install.js.map +0 -1
  18. package/dist/installer/manifest/manifest.d.ts +0 -41
  19. package/dist/installer/manifest/manifest.d.ts.map +0 -1
  20. package/dist/installer/manifest/manifest.js +0 -97
  21. package/dist/installer/manifest/manifest.js.map +0 -1
  22. package/dist/installer/prompts/prompts.d.ts +0 -33
  23. package/dist/installer/prompts/prompts.d.ts.map +0 -1
  24. package/dist/installer/prompts/prompts.js +0 -55
  25. package/dist/installer/prompts/prompts.js.map +0 -1
  26. package/dist/installer/role-filter/role-filter.d.ts +0 -15
  27. package/dist/installer/role-filter/role-filter.d.ts.map +0 -1
  28. package/dist/installer/role-filter/role-filter.js +0 -48
  29. package/dist/installer/role-filter/role-filter.js.map +0 -1
  30. package/dist/installer/ui/ui.d.ts +0 -9
  31. package/dist/installer/ui/ui.d.ts.map +0 -1
  32. package/dist/installer/ui/ui.js +0 -94
  33. package/dist/installer/ui/ui.js.map +0 -1
  34. package/dist/scripts/shared/env-parser/env-parser.d.ts +0 -30
  35. package/dist/scripts/shared/env-parser/env-parser.d.ts.map +0 -1
  36. package/dist/scripts/shared/env-parser/env-parser.js +0 -64
  37. package/dist/scripts/shared/env-parser/env-parser.js.map +0 -1
  38. package/dist/utils/ansi/ansi.d.ts +0 -55
  39. package/dist/utils/ansi/ansi.d.ts.map +0 -1
  40. package/dist/utils/ansi/ansi.js +0 -55
  41. package/dist/utils/ansi/ansi.js.map +0 -1
  42. package/hooks/clancy-branch-guard.js +0 -128
  43. package/hooks/clancy-check-update.js +0 -114
  44. package/hooks/clancy-context-monitor.js +0 -189
  45. package/hooks/clancy-credential-guard.js +0 -120
  46. package/hooks/clancy-drift-detector.js +0 -96
  47. package/hooks/clancy-notification.js +0 -105
  48. package/hooks/clancy-post-compact.js +0 -53
  49. package/hooks/clancy-statusline.js +0 -82
  50. package/hooks/package.json +0 -3
  51. package/registry/boards.json +0 -44
  52. package/src/agents/arch-agent.md +0 -72
  53. package/src/agents/concerns-agent.md +0 -89
  54. package/src/agents/design-agent.md +0 -130
  55. package/src/agents/devils-advocate.md +0 -53
  56. package/src/agents/quality-agent.md +0 -161
  57. package/src/agents/tech-agent.md +0 -92
  58. package/src/agents/verification-gate.md +0 -128
  59. package/src/roles/implementer/commands/dry-run.md +0 -14
  60. package/src/roles/implementer/commands/once.md +0 -17
  61. package/src/roles/implementer/commands/run.md +0 -11
  62. package/src/roles/implementer/workflows/once.md +0 -146
  63. package/src/roles/implementer/workflows/run.md +0 -127
  64. package/src/roles/planner/commands/approve-plan.md +0 -10
  65. package/src/roles/planner/commands/plan.md +0 -20
  66. package/src/roles/planner/workflows/approve-plan.md +0 -535
  67. package/src/roles/planner/workflows/plan.md +0 -536
  68. package/src/roles/reviewer/commands/logs.md +0 -7
  69. package/src/roles/reviewer/commands/review.md +0 -9
  70. package/src/roles/reviewer/commands/status.md +0 -9
  71. package/src/roles/reviewer/workflows/logs.md +0 -104
  72. package/src/roles/reviewer/workflows/review.md +0 -186
  73. package/src/roles/reviewer/workflows/status.md +0 -134
  74. package/src/roles/setup/commands/doctor.md +0 -7
  75. package/src/roles/setup/commands/help.md +0 -80
  76. package/src/roles/setup/commands/init.md +0 -7
  77. package/src/roles/setup/commands/map-codebase.md +0 -16
  78. package/src/roles/setup/commands/settings.md +0 -7
  79. package/src/roles/setup/commands/uninstall.md +0 -5
  80. package/src/roles/setup/commands/update-docs.md +0 -9
  81. package/src/roles/setup/commands/update.md +0 -12
  82. package/src/roles/setup/workflows/doctor.md +0 -124
  83. package/src/roles/setup/workflows/init.md +0 -1073
  84. package/src/roles/setup/workflows/map-codebase.md +0 -125
  85. package/src/roles/setup/workflows/scaffold.md +0 -845
  86. package/src/roles/setup/workflows/settings.md +0 -944
  87. package/src/roles/setup/workflows/uninstall.md +0 -161
  88. package/src/roles/setup/workflows/update-docs.md +0 -92
  89. package/src/roles/setup/workflows/update.md +0 -277
  90. package/src/roles/strategist/commands/approve-brief.md +0 -21
  91. package/src/roles/strategist/commands/brief.md +0 -27
  92. package/src/roles/strategist/workflows/approve-brief.md +0 -834
  93. package/src/roles/strategist/workflows/brief.md +0 -890
  94. package/src/templates/CLAUDE.md +0 -87
@@ -1,87 +0,0 @@
1
- <!-- clancy:start -->
2
- ## Clancy
3
-
4
- This project uses Clancy for autonomous ticket-driven development.
5
-
6
- ### Version check
7
- At the start of each session, read `~/.claude/cache/clancy-update-check.json` (use the Read tool). If it exists and `update_available` is true, display exactly:
8
- `⚠ Clancy update available: v{installed} → v{latest}. Run /clancy:update to upgrade.`
9
- Then continue normally. If the file is missing or unreadable, continue silently.
10
-
11
- ### Stale brief check
12
- At the start of each session, read `.clancy/.brief-stale-count` (use the Read tool). If it exists and contains a number greater than 0, display exactly:
13
- `⚠ {N} unapproved brief(s) older than 7 days. Run /clancy:approve-brief to review them.`
14
- Then continue normally. If the file is missing or unreadable, continue silently.
15
-
16
- ### Docs
17
- Before every run, read these core docs from `.clancy/docs/`:
18
- - STACK.md — tech stack and dependencies
19
- - ARCHITECTURE.md — system design and data flow
20
- - CONVENTIONS.md — code style and patterns
21
- - GIT.md — branching, commit format, merge strategy
22
- - DEFINITION-OF-DONE.md — checklist before marking a ticket complete
23
- - CONCERNS.md — known risks, tech debt, things to avoid
24
-
25
- Also read these if relevant to the ticket:
26
- - INTEGRATIONS.md — if the ticket touches external APIs, services, or authentication
27
- - TESTING.md — if the ticket involves tests, specs, or coverage requirements
28
- - DESIGN-SYSTEM.md — if the ticket touches UI, components, styles, or visual design
29
- - ACCESSIBILITY.md — if the ticket touches accessibility, ARIA, or WCAG requirements
30
-
31
- ### Executability check
32
-
33
- Before any git operation, branch creation, or code change — assess whether this ticket can be implemented entirely as a code change committed to this repo.
34
-
35
- **Skip the ticket** if it primarily requires any of the following — Clancy cannot do these:
36
- - **External system admin:** work in Google Analytics, Salesforce, HubSpot, the AWS console, app store dashboards, or any external platform not accessible through code
37
- - **Human process steps:** getting sign-off or approval, sending emails to customers, coordinating with people, scheduling meetings, making announcements to users
38
- - **Non-repo production ops:** deploying to production, rotating secrets in prod, scaling infrastructure — unless the task is purely about editing CI/CD config files that live in this repo
39
- - **Non-code deliverables:** writing runbooks, updating Confluence or wikis, creating presentations, documenting in external tools
40
-
41
- When in doubt: "Is the primary deliverable a code change committed to this repo?" — if yes, implement it; if no, skip it.
42
-
43
- **If skipping, do all four of these in order:**
44
- 1. Output this exact line: `⚠ Skipping [TICKET-KEY]: {one-line reason}`
45
- 2. Output this exact line: `Ticket skipped — update it to be codebase-only work, then re-run.`
46
- 3. Append to `.clancy/progress.txt`: `YYYY-MM-DD HH:MM | TICKET-KEY | SKIPPED | {reason}`
47
- 4. Stop. No branches, no file changes, no git operations.
48
-
49
- **If the ticket is codebase work**, proceed to implementation normally.
50
-
51
- ### Git workflow
52
- - Read GIT.md before every run — follow its conventions exactly
53
- - Default (if GIT.md is silent): one feature branch per ticket `feature/{ticket-key-lowercase}`, push and create a PR, conventional commits `feat(TICKET-123): summary`
54
- - Target branch is auto-detected from the ticket: if it has a parent epic, PR targets `epic/{epic-key}` (created from `CLANCY_BASE_BRANCH` if it doesn't exist); otherwise PR targets `CLANCY_BASE_BRANCH` directly
55
-
56
- ### Progress
57
- Log completed tickets to `.clancy/progress.txt`:
58
- `YYYY-MM-DD HH:MM | TICKET-KEY | Summary | DONE`
59
-
60
- Planning entries use: `YYYY-MM-DD HH:MM | TICKET-KEY | PLAN | S/M/L`
61
- Revised plan entries use: `YYYY-MM-DD HH:MM | TICKET-KEY | REVISED | S/M/L`
62
- Plan approval entries use: `YYYY-MM-DD HH:MM | TICKET-KEY | APPROVE_PLAN | —`
63
- Brief entries use: `YYYY-MM-DD HH:MM | BRIEF | {slug} | {N} proposed tickets`
64
- Brief approval entries use: `YYYY-MM-DD HH:MM | APPROVE_BRIEF | {slug} | {N} tickets created`
65
- Failed comment posts use: `YYYY-MM-DD HH:MM | TICKET-KEY | POST_FAILED | {reason}`
66
-
67
- ### Design context
68
- When a ticket description contains a Figma URL, fetch design context before implementing.
69
- Use the three-tier approach in order:
70
- 1. Figma MCP: get_metadata → targeted get_design_context → get_screenshot (3 calls, best quality)
71
- 2. Figma REST API image export: parse file key + node ID from URL, fetch rendered PNG as vision input
72
- 3. Ticket image attachment: use any image attached to the ticket description as vision input
73
- Fetch once only — never return to Figma mid-session.
74
- Map all token values to CSS custom properties. Never use raw SVGs or hardcoded colours.
75
- Figma URL must come from the ticket description only — never from CLAUDE.md or other docs.
76
-
77
- ### Visual checks
78
- After implementing a UI ticket, run a visual check before committing.
79
- Read `.clancy/docs/PLAYWRIGHT.md` for the authoritative Playwright configuration (which server to use: Storybook or dev server). Use `.clancy/.env` only for ports and start commands as needed.
80
- Apply the decision rule against this ticket's description — route/page/screen/layout → dev server,
81
- component/atom/molecule/organism/variant/story → Storybook, ambiguous → dev server default.
82
- Start the server using health check polling (not sleep). Navigate to the relevant route or story.
83
- Screenshot, assess visually, check console. Fix before committing if anything looks wrong.
84
- If a Figma design was fetched for this ticket, compare the screenshot directly against it — check layout, spacing, colours, typography, and component fidelity. Treat the Figma design as the source of truth.
85
- Kill by PID then sweep the port unconditionally — never leave a port open.
86
- Log result: YYYY-MM-DD HH:MM | TICKET-KEY | PLAYWRIGHT_PASS|FAIL | server-used
87
- <!-- clancy:end -->