compound-workflow 1.8.0 → 1.9.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 (92) hide show
  1. package/README.md +62 -68
  2. package/package.json +2 -8
  3. package/scripts/check-pack-readme.mjs +1 -16
  4. package/scripts/check-workflow-contracts.mjs +34 -44
  5. package/scripts/install-cli.mjs +273 -555
  6. package/src/AGENTS.md +59 -192
  7. package/src/{.agents/agents → agents}/research/best-practices-researcher.md +2 -2
  8. package/src/{.agents/commands → commands}/assess.md +4 -4
  9. package/src/commands/install.md +43 -0
  10. package/src/{.agents/commands → commands}/metrics.md +1 -1
  11. package/src/{.agents/commands → commands}/test-browser.md +8 -8
  12. package/src/commands/workflow-agents.md +101 -0
  13. package/src/{.agents/commands → commands}/workflow-brainstorm.md +5 -5
  14. package/src/{.agents/commands → commands}/workflow-compound.md +1 -1
  15. package/src/{.agents/commands → commands}/workflow-plan.md +62 -85
  16. package/src/commands/workflow-work.md +839 -0
  17. package/src/{.agents/references → references}/README.md +1 -1
  18. package/src/{.agents/skills → skills}/capture-skill/SKILL.md +1 -1
  19. package/src/{.agents/skills → skills}/compound-docs/SKILL.md +6 -6
  20. package/src/{.agents/skills → skills}/compound-docs/references/yaml-schema.md +2 -2
  21. package/src/skills/setup-agents/SKILL.md +247 -0
  22. package/src/skills/standards/SKILL.md +79 -0
  23. package/src/skills/standards/references/architecture.md +228 -0
  24. package/src/skills/standards/references/code-quality.md +192 -0
  25. package/src/skills/standards/references/presentation.md +515 -0
  26. package/src/skills/standards/references/services.md +172 -0
  27. package/src/skills/standards/references/state-management.md +936 -0
  28. package/.claude-plugin/plugin.json +0 -7
  29. package/.cursor-plugin/plugin.json +0 -20
  30. package/.cursor-plugin/registration.json +0 -5
  31. package/scripts/check-version-parity.mjs +0 -36
  32. package/scripts/generate-platform-artifacts.mjs +0 -230
  33. package/src/.agents/commands/install.md +0 -51
  34. package/src/.agents/commands/workflow-work.md +0 -690
  35. package/src/.agents/registry.json +0 -48
  36. package/src/.agents/scripts/self-check.mjs +0 -227
  37. package/src/.agents/scripts/sync-opencode.mjs +0 -362
  38. package/src/.agents/skills/presentation-composability/SKILL.md +0 -72
  39. package/src/.agents/skills/react-ddd-mvc-frontend/SKILL.md +0 -51
  40. package/src/.agents/skills/react-ddd-mvc-frontend/references/feature-structure.md +0 -25
  41. package/src/.agents/skills/react-ddd-mvc-frontend/references/implementation-principles.md +0 -21
  42. package/src/.agents/skills/react-ddd-mvc-frontend/references/responsibility-gates.md +0 -41
  43. package/src/.agents/skills/react-ddd-mvc-frontend/references/source-map.md +0 -11
  44. package/src/.agents/skills/standards/SKILL.md +0 -747
  45. package/src/.agents/skills/xstate-actor-orchestration/SKILL.md +0 -197
  46. package/src/.agents/skills/xstate-actor-orchestration/agents/openai.yaml +0 -4
  47. package/src/.agents/skills/xstate-actor-orchestration/assets/statecharts/.gitkeep +0 -0
  48. package/src/.agents/skills/xstate-actor-orchestration/references/actor-system-patterns.md +0 -71
  49. package/src/.agents/skills/xstate-actor-orchestration/references/event-contracts.md +0 -73
  50. package/src/.agents/skills/xstate-actor-orchestration/references/functional-domain-patterns.md +0 -53
  51. package/src/.agents/skills/xstate-actor-orchestration/references/machine-structure-and-tags.md +0 -36
  52. package/src/.agents/skills/xstate-actor-orchestration/references/react-container-pattern.md +0 -45
  53. package/src/.agents/skills/xstate-actor-orchestration/references/reliability-observability.md +0 -39
  54. package/src/.agents/skills/xstate-actor-orchestration/references/skill-validation.md +0 -33
  55. package/src/.agents/skills/xstate-actor-orchestration/references/source-map.md +0 -44
  56. package/src/.agents/skills/xstate-actor-orchestration/references/statechart-review-and-signoff.md +0 -59
  57. package/src/.agents/skills/xstate-actor-orchestration/references/testing-strategy.md +0 -35
  58. package/src/.agents/skills/xstate-actor-orchestration/scripts/create-statechart-artifact.sh +0 -71
  59. package/src/.agents/skills/xstate-actor-orchestration/scripts/validate-skill.sh +0 -138
  60. package/src/generated/opencode.managed.json +0 -115
  61. /package/src/{.agents/agents → agents}/research/framework-docs-researcher.md +0 -0
  62. /package/src/{.agents/agents → agents}/research/git-history-analyzer.md +0 -0
  63. /package/src/{.agents/agents → agents}/research/learnings-researcher.md +0 -0
  64. /package/src/{.agents/agents → agents}/research/repo-research-analyst.md +0 -0
  65. /package/src/{.agents/agents → agents}/review/agent-native-reviewer.md +0 -0
  66. /package/src/{.agents/agents → agents}/review/planning-technical-reviewer.md +0 -0
  67. /package/src/{.agents/agents → agents}/workflow/bug-reproduction-validator.md +0 -0
  68. /package/src/{.agents/agents → agents}/workflow/lint.md +0 -0
  69. /package/src/{.agents/agents → agents}/workflow/spec-flow-analyzer.md +0 -0
  70. /package/src/{.agents/commands → commands}/workflow-review.md +0 -0
  71. /package/src/{.agents/commands → commands}/workflow-tech-review.md +0 -0
  72. /package/src/{.agents/commands → commands}/workflow-triage.md +0 -0
  73. /package/src/{.agents/references → references}/standards/README.md +0 -0
  74. /package/src/{.agents/skills → skills}/agent-browser/SKILL.md +0 -0
  75. /package/src/{.agents/skills → skills}/audit-traceability/SKILL.md +0 -0
  76. /package/src/{.agents/skills → skills}/brainstorming/SKILL.md +0 -0
  77. /package/src/{.agents/skills → skills}/compound-docs/assets/critical-pattern-template.md +0 -0
  78. /package/src/{.agents/skills → skills}/compound-docs/assets/resolution-template.md +0 -0
  79. /package/src/{.agents/skills → skills}/compound-docs/schema.project.yaml +0 -0
  80. /package/src/{.agents/skills → skills}/compound-docs/schema.yaml +0 -0
  81. /package/src/{.agents/skills → skills}/data-foundations/SKILL.md +0 -0
  82. /package/src/{.agents/skills → skills}/document-review/SKILL.md +0 -0
  83. /package/src/{.agents/skills → skills}/file-todos/SKILL.md +0 -0
  84. /package/src/{.agents/skills → skills}/file-todos/assets/todo-template.md +0 -0
  85. /package/src/{.agents/skills → skills}/financial-workflow-integrity/SKILL.md +0 -0
  86. /package/src/{.agents/skills → skills}/git-worktree/SKILL.md +0 -0
  87. /package/src/{.agents/skills → skills}/pii-protection-prisma/SKILL.md +0 -0
  88. /package/src/{.agents/skills → skills}/process-metrics/SKILL.md +0 -0
  89. /package/src/{.agents/skills → skills}/process-metrics/assets/daily-template.md +0 -0
  90. /package/src/{.agents/skills → skills}/process-metrics/assets/monthly-template.md +0 -0
  91. /package/src/{.agents/skills → skills}/process-metrics/assets/weekly-template.md +0 -0
  92. /package/src/{.agents/skills → skills}/technical-review/SKILL.md +0 -0
package/README.md CHANGED
@@ -1,111 +1,105 @@
1
- ## Compound Workflow
1
+ # Compound Workflow
2
2
 
3
- Compound Workflow is a portable, command-first system for shipping software with less ambiguity and stronger verification.
4
- It follows a simple cycle: **clarify -> plan -> execute -> verify -> capture**.
3
+ A portable, command-first system for shipping software with less ambiguity and stronger verification.
5
4
 
6
- Use it when you want repeatable delivery without ad-hoc process drift.
5
+ Inspired by [Compound Engineering](https://every.to/guides/compound-engineering) the idea that small, consistent improvements compound over time into significantly better outcomes. Applied here: every piece of work follows the same cycle, every decision is captured, and every session makes the next one faster.
7
6
 
8
- Inspired by [Compound Engineering](https://every.to/guides/compound-engineering) (Every).
7
+ ---
9
8
 
10
- Best fit when you need:
9
+ ## What it does
11
10
 
12
- - Clear intent and acceptance criteria before coding
13
- - Structured execution with explicit review gates
14
- - A repeatable process that captures reusable learnings
11
+ Compound Workflow gives your AI agent a structured process for turning a request into validated, documented output. Instead of ad-hoc conversations, you get a repeatable cycle:
15
12
 
16
- ## Workflow
13
+ **Clarify → Plan → Execute → Verify → Capture**
17
14
 
18
- The workflow turns a request into validated output and reusable team knowledge.
15
+ Each step has an explicit gate. Work doesn't move forward until the previous step is done. Learnings are captured so the next similar problem takes minutes, not hours.
19
16
 
20
- ```mermaid
21
- flowchart LR
22
- A["brainstorm"] --> B["plan"] --> C["work (includes triage)"] --> D["review"] --> E["capture"] --> F["metrics"]
23
- ```
17
+ ---
24
18
 
25
19
  ## Get Started
26
20
 
27
- **1. Install the package**
28
-
29
21
  ```bash
30
22
  npm install compound-workflow
31
23
  ```
32
24
 
33
- **2. Automatic setup**
34
-
35
- The package’s `postinstall` script runs and configures your repo: `AGENTS.md`, standard directories, and OpenCode wiring. No separate npx step is needed.
36
-
37
- **3. If lifecycle scripts were skipped**
25
+ Postinstall runs automatically and sets up your repo: `AGENTS.md`, standard directories, and OpenCode wiring.
38
26
 
39
- If your package manager didn’t run postinstall, run once:
27
+ If your package manager skipped the lifecycle script, or after updating the package:
40
28
 
41
29
  ```bash
42
30
  npx compound-workflow install
43
31
  ```
44
32
 
45
- Restart Cursor after install; enable third-party plugins in Settings if skills/commands don't appear.
33
+ Then run `/setup-agents` in your agent harness to tailor `AGENTS.md` to this project — it detects your stack and installed harnesses, curates the Skill Index, and prompts for anything it can't infer. Re-run it whenever harnesses or skills change.
46
34
 
47
- **4. After updating the package**
35
+ ---
48
36
 
49
- To get the latest commands and wiring (e.g. after `npm update compound-workflow` or a new release), run install again so your project’s `opencode.json` is refreshed:
37
+ ## The Workflow
50
38
 
51
- ```bash
52
- npx compound-workflow install
39
+ ```
40
+ brainstorm → plan → work → review → compound → metrics
53
41
  ```
54
42
 
55
- **What gets configured**
43
+ ### `/workflow:brainstorm`
44
+ Clarify what to build before any planning starts. The agent asks structured questions, surfaces ambiguities, and produces a brief that confirms intent and constraints. Nothing gets designed until the "what" is agreed.
56
45
 
57
- - Workflow template in `AGENTS.md`
58
- - Standard workspace directories (plans, todos, docs)
59
- - `opencode.json` managed entries pointing at `node_modules/compound-workflow/src/.agents/*`
46
+ ### `/workflow:plan`
47
+ Turn the brief into an executable plan. Declares fidelity level (Low / Medium / High), confidence, solution scope, and open questions. Cites local code references and prior solutions. No code is written here.
60
48
 
61
- ## Breaking Change (2.0.0)
49
+ ### `/workflow:work`
50
+ Execute the approved plan. The agent derives todo contracts, isolates work in a git worktree, applies the standards gate, runs triage, delegates to subagents, and collects verified output. Evidence is required before any todo moves to complete.
62
51
 
63
- 2.0.0 removes all legacy compatibility pathways (`/setup`, `/sync`, runtime mirror copies, and Cursor sync fallbacks).
64
- See migration notes in [docs/migrations/2026-03-03-v2-native-cutover.md](docs/migrations/2026-03-03-v2-native-cutover.md).
52
+ ### `/workflow:review`
53
+ Independent quality check before the work is considered done. Runs in a separate pass from the implementer. Emits a clear pass / fail with standards compliance noted. Required for code and config changes.
65
54
 
66
- ## Critical Path
55
+ ### `/workflow:compound`
56
+ Capture what was learned. Writes a structured solution doc to `docs/solutions/` with searchable YAML frontmatter. The first time you solve a problem takes research — document it and the next occurrence takes minutes.
67
57
 
68
- After install, use this default sequence:
58
+ ### `/metrics` and `/assess`
59
+ Log session outcomes and spot trends. `/metrics` records a single session. `/assess` rolls up recent entries and proposes concrete improvements to commands, skills, or config.
69
60
 
70
- 1. `/workflow:brainstorm` for requirements clarity
71
- 2. `/workflow:plan` for implementation design
72
- 3. `/workflow:work` to execute against the approved plan (includes automatic triage)
73
- 4. `/workflow:review` to validate quality before completion
74
- 5. `/workflow:compound` to capture reusable learnings
61
+ ---
75
62
 
76
- Optional:
63
+ ## Optional Commands
77
64
 
78
- - `/workflow:triage` for manual backlog curation before or during execution
79
- - `/metrics` and `/assess` for process improvement
65
+ **`/workflow:triage`** — Manually curate and prioritise a backlog before execution. `/workflow:work` runs triage automatically, but this gives you explicit control when the queue is complex.
80
66
 
81
- ## Commands (Quick Map)
67
+ **`/workflow:tech-review`** Technical correctness check on a plan before build. Use when the approach needs a second opinion before committing to implementation.
82
68
 
83
- Core flow: `/workflow:brainstorm` -> `/workflow:plan` -> `/workflow:work` -> `/workflow:review` -> `/workflow:compound` -> `/metrics` (optional `/assess` for rollups).
69
+ **`/test-browser`** Browser-level validation of affected routes. Useful for UI changes where automated tests aren't enough.
84
70
 
85
- | Command | Purpose | Related skills | Related agents |
86
- | ---------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
87
- | `/install` | Configure workflow files and runtime wiring in the repo | install CLI (no workflow skill routing) | none |
88
- | `/workflow:brainstorm` | Clarify what to build through structured discussion | `brainstorming` (primary), `document-review` (optional refinement) | `repo-research-analyst` |
89
- | `/workflow:plan` | Convert intent into an executable plan with fidelity/confidence | state-orchestration skill when needed (for example `xstate-actor-orchestration`) | `repo-research-analyst`, `learnings-researcher`, `best-practices-researcher`, `framework-docs-researcher`, `git-history-analyzer`, `spec-flow-analyzer`, `planning-technical-reviewer` |
90
- | `/workflow:triage` | Manual queue curation for complex/multi-item backlogs (optional; `/workflow:work` runs triage automatically) | `file-todos` | none |
91
- | `/workflow:work` | Execute plan/todos with quality gates and validation evidence | `git-worktree`, `file-todos`, `standards`, state-orchestration skill when needed | `repo-research-analyst`, `learnings-researcher`, `best-practices-researcher`, `framework-docs-researcher`, `git-history-analyzer` |
92
- | `/workflow:review` | Perform independent quality review before completion | `git-worktree` (for non-current targets), `standards` | `learnings-researcher`, `lint`, `bug-reproduction-validator`, `git-history-analyzer`, `framework-docs-researcher`, `agent-native-reviewer` |
93
- | `/workflow:compound` | Capture reusable implementation learnings in `docs/solutions/` | `compound-docs` (primary), `document-review` (optional) | `learnings-researcher`, `best-practices-researcher`, `framework-docs-researcher` |
94
- | `/metrics` | Log session outcomes and improvement actions | `process-metrics`, `file-todos` (optional for follow-ups) | none |
95
- | `/assess` | Aggregate metrics trends and propose process improvements | `file-todos` (for approved follow-up actions) | none |
96
- | `/test-browser` | Validate affected routes with browser-level checks | `agent-browser`, `git-worktree` (optional branch isolation) | none |
71
+ **`/install`** Re-run setup. Safe to run again after updating the package or adding a new harness.
97
72
 
98
- Canonical command docs: [src/.agents/commands/](src/.agents/commands/)
73
+ ---
99
74
 
100
- ## Learn More
75
+ ## How it's structured
101
76
 
102
- - Workflow principles: [docs/principles/workflow-baseline-principles.md](docs/principles/workflow-baseline-principles.md)
103
- - Project command and policy index: [src/AGENTS.md](src/AGENTS.md)
104
- - Command definitions: [src/.agents/commands/](src/.agents/commands/)
77
+ Skills and agents are the internals. Commands are the public API — stable entry points that compose the right skills for each phase.
105
78
 
106
- If docs conflict: follow `docs/principles/workflow-baseline-principles.md`, then `src/AGENTS.md`, then command docs.
79
+ | Layer | What it is |
80
+ | --- | --- |
81
+ | **Commands** (`src/commands/`) | What you invoke. Orchestrate the workflow steps. |
82
+ | **Skills** (`src/skills/`) | Focused capabilities loaded by commands when needed. |
83
+ | **Agents** (`src/agents/`) | Specialised subagents for research, review, and analysis. |
84
+ | **AGENTS.md** | Project config: repo settings, harness list, skill index. |
107
85
 
108
- Guardrails:
86
+ On install, files are copied into whichever harness directories are present in your project (`.agents/`, `.cursor/`, `.claude/`). No symlinks, no generated manifests.
87
+
88
+ ---
89
+
90
+ ## Guardrails
91
+
92
+ - **Independent review policy:** code/config changes require `/workflow:review` before workflow completion. Docs-only changes are exempt.
93
+ - **Standards baseline policy:** `/workflow:work` and `/workflow:review` both apply the standards baseline. Violations block completion.
94
+ - **No ad-hoc artifacts** — output goes to `docs/plans`, `docs/solutions`, `todos`, or `docs/metrics`. Nothing else.
95
+
96
+ If docs conflict: follow `docs/principles/workflow-baseline-principles.md`, then `AGENTS.md`, then command docs, then skill docs.
97
+
98
+ ---
99
+
100
+ ## Learn More
109
101
 
110
- - Independent review policy: code/config changes require `/workflow:review` before workflow completion (docs-only changes are exempt).
111
- - Standards baseline policy: code/config changes must pass the standards baseline gate in `/workflow:work` and `/workflow:review`.
102
+ - [Workflow principles](docs/principles/workflow-baseline-principles.md)
103
+ - [AGENTS.md](src/AGENTS.md) command index, repo config, skill routing
104
+ - [Commands](src/commands/) — full command specs
105
+ - [Skills](src/skills/) — skill docs and templates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compound-workflow",
3
- "version": "1.8.0",
3
+ "version": "1.9.1",
4
4
  "description": "Clarify → plan → execute → verify → capture. One Install action for Cursor, Claude, and OpenCode.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -12,16 +12,10 @@
12
12
  },
13
13
  "files": [
14
14
  "src",
15
- "scripts",
16
- ".cursor-plugin",
17
- ".claude-plugin"
15
+ "scripts"
18
16
  ],
19
17
  "scripts": {
20
18
  "postinstall": "node scripts/postinstall.mjs",
21
- "prepublishOnly": "npm run generate:artifacts",
22
- "generate:artifacts": "node scripts/generate-platform-artifacts.mjs",
23
- "check:artifacts": "node scripts/generate-platform-artifacts.mjs --check",
24
- "check:version-parity": "node scripts/check-version-parity.mjs",
25
19
  "check:pack-readme": "node scripts/check-pack-readme.mjs",
26
20
  "test:install": "node --test tests/install-cli.test.mjs"
27
21
  },
@@ -31,9 +31,6 @@ try {
31
31
 
32
32
  const files = Array.isArray(report) && report[0]?.files ? report[0].files : [];
33
33
  const hasRootReadme = files.some((file) => /^readme(?:\.[^/]+)?$/i.test(file.path));
34
- const hasGeneratedManifest = files.some((file) => file.path === "src/generated/opencode.managed.json");
35
- const hasCursorPlugin = files.some((file) => file.path === ".cursor-plugin/plugin.json");
36
- const hasClaudePlugin = files.some((file) => file.path === ".claude-plugin/plugin.json");
37
34
 
38
35
  if (!hasRootReadme) {
39
36
  console.error("Package guard failed: root README is missing from the packed tarball.");
@@ -41,16 +38,4 @@ if (!hasRootReadme) {
41
38
  process.exit(1);
42
39
  }
43
40
 
44
- if (!hasGeneratedManifest) {
45
- console.error("Package guard failed: src/generated/opencode.managed.json is missing from the packed tarball.");
46
- console.error("Ensure 'src' is in package.json 'files' and the file is committed or generated before publish.");
47
- process.exit(1);
48
- }
49
-
50
- if (!hasCursorPlugin || !hasClaudePlugin) {
51
- console.error("Package guard failed: .cursor-plugin/plugin.json and .claude-plugin/plugin.json must be in the packed tarball.");
52
- console.error("Ensure '.cursor-plugin' and '.claude-plugin' are in package.json 'files'.");
53
- process.exit(1);
54
- }
55
-
56
- console.log("Package guard passed: root README, opencode.managed.json, and plugin manifests are present in npm pack output.");
41
+ console.log("Package guard passed: root README is present in npm pack output.");
@@ -58,126 +58,116 @@ const requiredChecks = [
58
58
  description: "README standards baseline guardrail",
59
59
  },
60
60
  {
61
- file: "src/.agents/commands/workflow-plan.md",
61
+ file: "src/commands/workflow-plan.md",
62
62
  pattern: "Contract precedence:",
63
63
  description: "plan command precedence note",
64
64
  },
65
65
  {
66
- file: "src/.agents/commands/workflow-triage.md",
66
+ file: "src/commands/workflow-triage.md",
67
67
  pattern: "Contract precedence:",
68
68
  description: "triage command precedence note",
69
69
  },
70
70
  {
71
- file: "src/.agents/commands/workflow-triage.md",
71
+ file: "src/commands/workflow-triage.md",
72
72
  pattern: "independently runnable",
73
73
  description: "triage command explicitly standalone while work auto-runs triage",
74
74
  },
75
75
  {
76
- file: "src/.agents/commands/workflow-work.md",
76
+ file: "src/commands/workflow-work.md",
77
77
  pattern: "Contract precedence:",
78
78
  description: "work command precedence note",
79
79
  },
80
80
  {
81
- file: "src/.agents/commands/workflow-plan.md",
81
+ file: "src/commands/workflow-plan.md",
82
82
  pattern: "Start `/workflow:work`",
83
83
  description: "plan command default next-step routes to work",
84
84
  },
85
85
  {
86
- file: "src/.agents/commands/workflow-work.md",
87
- pattern: "HARD GATE - WORKTREE FIRST",
88
- description: "worktree hard-gate wording in work command",
86
+ file: "src/commands/workflow-work.md",
87
+ pattern: "Environment Setup (Hard Gate)",
88
+ description: "worktree hard-gate section in work command",
89
89
  },
90
90
  {
91
- file: "src/.agents/commands/workflow-work.md",
92
- pattern: "required prompt/create gate",
93
- description: "mandatory worktree decision prompt/create gate in work command",
91
+ file: "src/commands/workflow-work.md",
92
+ pattern: "Opt-out requires explicit user confirmation.",
93
+ description: "worktree decision requires explicit opt-out in work command",
94
94
  },
95
95
  {
96
- file: "src/.agents/commands/workflow-work.md",
97
- pattern: "Do not infer or assume an answer when the user has not answered.",
98
- description: "worktree decision cannot be silently assumed",
96
+ file: "src/commands/workflow-work.md",
97
+ pattern: "Yes / No explicit opt-out required",
98
+ description: "worktree decision prompt is explicit yes/no in work command",
99
99
  },
100
100
  {
101
- file: "src/.agents/commands/workflow-work.md",
101
+ file: "src/commands/workflow-work.md",
102
102
  pattern:
103
103
  "No file writes, implementation commands, test/lint/typecheck commands, or dependency-install commands may run before this gate passes.",
104
104
  description: "pre-gate write/command prohibition in work command",
105
105
  },
106
106
  {
107
- file: "src/.agents/commands/workflow-work.md",
108
- pattern: "workflow_complete: false (pending /workflow:review current)",
109
- description: "implementation-complete pending-review status in work command",
107
+ file: "src/commands/workflow-work.md",
108
+ pattern: "gate_status: passed",
109
+ description: "gate_status must be recorded before proceeding in work command",
110
110
  },
111
111
  {
112
- file: "src/.agents/commands/workflow-work.md",
113
- pattern: "Standards Compliance Gate (REQUIRED for code/config changes)",
114
- description: "required standards gate in work command",
115
- },
116
- {
117
- file: "src/.agents/commands/workflow-work.md",
118
- pattern: "This gate cannot run until the isolation/worktree gate is passed and recorded (`gate_status: passed`).",
119
- description: "standards gate ordering with worktree gate",
120
- },
121
- {
122
- file: "src/.agents/commands/workflow-review.md",
112
+ file: "src/commands/workflow-review.md",
123
113
  pattern: "Contract precedence:",
124
114
  description: "review command precedence note",
125
115
  },
126
116
  {
127
- file: "src/.agents/commands/workflow-review.md",
117
+ file: "src/commands/workflow-review.md",
128
118
  pattern: "Independent Reviewer Pass (REQUIRED)",
129
119
  description: "required independent reviewer pass in review command",
130
120
  },
131
121
  {
132
- file: "src/.agents/commands/workflow-review.md",
122
+ file: "src/commands/workflow-review.md",
133
123
  pattern: "review_independence_mode: independent|degraded",
134
124
  description: "explicit review independence mode in review command",
135
125
  },
136
126
  {
137
- file: "src/.agents/commands/workflow-review.md",
127
+ file: "src/commands/workflow-review.md",
138
128
  pattern: "what was skipped and why",
139
129
  description: "review skipped-pass disclosure requirement",
140
130
  },
141
131
  {
142
- file: "src/.agents/commands/workflow-review.md",
132
+ file: "src/commands/workflow-review.md",
143
133
  pattern: "standards_compliance: pass|pass-with-notes|fail",
144
134
  description: "review standards compliance output field",
145
135
  },
146
136
  {
147
- file: "src/.agents/commands/workflow-review.md",
137
+ file: "src/commands/workflow-review.md",
148
138
  pattern: "standards `MUST` violations => blocking finding and review recommendation `fail`",
149
139
  description: "review must-violation fail criteria",
150
140
  },
151
141
  {
152
- file: "src/.agents/skills/standards/SKILL.md",
153
- pattern: "## Mandatory Baseline (Declarative, Immutable, Maintainable)",
154
- description: "standards mandatory baseline section",
142
+ file: "src/skills/standards/SKILL.md",
143
+ pattern: "## Mandatory Gates",
144
+ description: "standards mandatory gates section",
155
145
  },
156
146
  {
157
- file: "src/.agents/skills/standards/SKILL.md",
158
- pattern: "### MUST NOT",
159
- description: "standards must-not checklist",
147
+ file: "src/skills/standards/SKILL.md",
148
+ pattern: "pass|fail",
149
+ description: "standards gates are pass/fail",
160
150
  },
161
151
  ];
162
152
 
163
153
  const forbiddenChecks = [
164
154
  {
165
- file: "src/.agents/commands/workflow-work.md",
155
+ file: "src/commands/workflow-work.md",
166
156
  pattern: "## When to Use Reviewer Agents",
167
157
  description: "legacy optional reviewer section in work command",
168
158
  },
169
159
  {
170
- file: "src/.agents/commands/workflow-work.md",
160
+ file: "src/commands/workflow-work.md",
171
161
  pattern: "**Don't use by default.**",
172
162
  description: "legacy skip-by-default reviewer wording in work command",
173
163
  },
174
164
  {
175
- file: "src/.agents/commands/workflow-work.md",
165
+ file: "src/commands/workflow-work.md",
176
166
  pattern: "skip specialist reviewers by default",
177
167
  description: "legacy skip-by-default specialist reviewer wording",
178
168
  },
179
169
  {
180
- file: "src/.agents/commands/workflow-work.md",
170
+ file: "src/commands/workflow-work.md",
181
171
  pattern: "Follow project coding standards (see AGENTS.md)",
182
172
  description: "legacy advisory-only coding standards wording in work command",
183
173
  },