forgedock 1.1.1 → 1.1.2
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.
- package/README.md +53 -8
- package/bin/batch-runner.mjs +339 -0
- package/bin/demo.mjs +92 -7
- package/bin/engine/phases.mjs +20 -0
- package/bin/engine/state.mjs +8 -3
- package/bin/engine-cli.mjs +177 -5
- package/bin/forgedock.mjs +409 -26
- package/bin/hooks/interactive-engine.mjs +509 -0
- package/bin/hooks/pre-tool-use.mjs +498 -0
- package/bin/hooks/subagent-stop-enforce.mjs +197 -0
- package/bin/journey.mjs +72 -14
- package/bin/registry.mjs +139 -0
- package/bin/report.mjs +447 -0
- package/bin/runner.mjs +68 -19
- package/bin/settings-hook.mjs +235 -1
- package/commands/adopt.md +4 -1
- package/commands/analytics.md +4 -1
- package/commands/audit-agents.md +110 -27
- package/commands/audit.md +20 -1
- package/commands/autopilot.md +80 -8
- package/commands/changelog.md +2 -1
- package/commands/ci-audit.md +2 -1
- package/commands/cleanup.md +161 -1
- package/commands/compat-audit.md +2 -1
- package/commands/deploy-info.md +58 -1
- package/commands/design-bench.md +5 -1
- package/commands/design-render-critique-loop.md +1 -1
- package/commands/diagnose.md +2 -1
- package/commands/explain.md +2 -1
- package/commands/forge-stats.md +121 -2
- package/commands/forgedock-init.md +1 -1
- package/commands/geo-audit.md +3 -0
- package/commands/incident-response.md +2 -1
- package/commands/issue.md +23 -2
- package/commands/milestone.md +77 -12
- package/commands/optimize.md +2 -1
- package/commands/orchestrate/config.md +67 -0
- package/commands/orchestrate/phase-1-resolve.md +159 -0
- package/commands/orchestrate/phase-2-triage.md +126 -0
- package/commands/orchestrate/phase-2.5-synthesis.md +156 -0
- package/commands/orchestrate/phase-3-dependency.md +591 -0
- package/commands/orchestrate/phase-4-execution.md +962 -0
- package/commands/orchestrate/phase-5-cleanup.md +47 -0
- package/commands/orchestrate/phase-6-report.md +198 -0
- package/commands/orchestrate/safety.md +62 -0
- package/commands/orchestrate.md +25 -2045
- package/commands/pipeline-health/config.md +34 -0
- package/commands/pipeline-health/phase-1-context.md +180 -0
- package/commands/pipeline-health/phase-2-metrics.md +1729 -0
- package/commands/pipeline-health/phase-3-analyze.md +204 -0
- package/commands/pipeline-health/phase-4-proposals.md +117 -0
- package/commands/pipeline-health/phase-5-report.md +284 -0
- package/commands/pipeline-health/phase-6-summary.md +52 -0
- package/commands/pipeline-health.md +25 -2401
- package/commands/pipeline-resume.md +24 -1
- package/commands/pipeline-status.md +65 -0
- package/commands/qa-sweep.md +4 -1
- package/commands/quality-gate.md +248 -10
- package/commands/replay.md +2 -1
- package/commands/review-pr-agents/api.md +135 -0
- package/commands/review-pr-agents/auth.md +137 -0
- package/commands/review-pr-agents/billing.md +101 -0
- package/commands/review-pr-agents/concurrency.md +145 -0
- package/commands/review-pr-agents/database.md +103 -0
- package/commands/review-pr-agents/frontend.md +89 -0
- package/commands/review-pr-agents/infra.md +385 -0
- package/commands/review-pr-agents/protocols.md +185 -0
- package/commands/review-pr-agents/scraper.md +185 -0
- package/commands/review-pr-agents/security.md +406 -0
- package/commands/review-pr-agents.md +45 -1722
- package/commands/review-pr-staging.md +196 -40
- package/commands/review-pr.md +591 -52
- package/commands/rollback.md +2 -1
- package/commands/scope.md +2 -1
- package/commands/security-audit.md +2 -1
- package/commands/signal-planner.md +623 -0
- package/commands/sync-ecosystem.md +1 -0
- package/commands/test-gate.md +17 -1
- package/commands/validate.md +2 -1
- package/commands/work-on/build/architect.md +28 -0
- package/commands/work-on/build/context.md +2 -0
- package/commands/work-on/build/implement.md +3 -1
- package/commands/work-on/build/validate.md +26 -7
- package/commands/work-on/build.md +163 -24
- package/commands/work-on/close.md +130 -3
- package/commands/work-on/decompose.md +19 -1
- package/commands/work-on/investigate.md +117 -2
- package/commands/work-on/review.md +24 -4
- package/commands/work-on-monolithic.md +7 -2
- package/commands/work-on.md +202 -4
- package/docs/BRAND.md +14 -7
- package/docs/CI.md +2 -2
- package/docs/CODEX.md +36 -1
- package/docs/CONFIG.md +5 -8
- package/docs/FORGE-PROTOCOL.md +15 -1064
- package/docs/anthropic-devrel-outreach.md +2 -2
- package/docs/articles/command-decomposition-token-savings.md +214 -0
- package/docs/articles/model-release-playbook.md +131 -0
- package/docs/articles/per-repo-adaptive-scripts-token-savings.md +27 -25
- package/docs/claude-breakpoints.json +75 -5
- package/docs/design/abc-benchmark.md +1 -1
- package/docs/design/design-spec-schema.md +1 -1
- package/docs/design/divergent-generation.md +1 -1
- package/docs/design/eval-gate-runbook.md +178 -0
- package/docs/design/show-hn-draft.md +26 -1
- package/docs/design/token-cost-baseline-1298.md +59 -0
- package/docs/eval/README.md +117 -0
- package/docs/eval/corpus/seed-v1.json +6 -0
- package/docs/eval/published/claude-sonnet-4-6-2026-07-04.json +33 -0
- package/docs/site/annotations-explained.md +24 -0
- package/docs/site/command-learning-path.md +51 -14
- package/docs/site/command-reference.md +339 -113
- package/docs/site/for-companies.md +95 -0
- package/docs/site/forge-annotation-protocol.md +12 -256
- package/docs/site/getting-started.md +43 -4
- package/docs/site/github-is-the-memory.md +113 -0
- package/docs/site/how-it-works.md +3 -13
- package/docs/site/index.md +9 -1
- package/docs/spec/eval-run-result.md +147 -0
- package/docs/spec/forge-protocol-v1.md +441 -18
- package/docs/spec/label-state-machine.md +55 -0
- package/docs/spec/review-protocol.md +158 -0
- package/docs/spec-graph-schema.md +28 -0
- package/docs/superpowers/specs/2026-07-04-economic-self-governance-design.md +181 -0
- package/docs/superpowers/specs/2026-07-04-provenance-trail-design.md +189 -0
- package/examples/forgedock-demo/README.md +41 -22
- package/examples/forgedock-demo/issues/06-bug-tags-type-validation.md +43 -0
- package/examples/forgedock-demo/issues/07-bug-negative-offset-pagination.md +42 -0
- package/examples/forgedock-demo/issues/08-bug-patch-mass-assignment.md +49 -0
- package/examples/forgedock-demo/issues/09-bug-count-injection.md +47 -0
- package/examples/forgedock-demo/issues/10-feature-sort-param.md +39 -0
- package/examples/forgedock-demo/issues/11-feature-patch-tags.md +37 -0
- package/examples/forgedock-demo/issues/12-feature-bulk-create.md +42 -0
- package/examples/forgedock-demo/issues/13-feature-archive-notes.md +46 -0
- package/examples/forgedock-demo/issues/14-refactor-extract-title-validation.md +41 -0
- package/examples/forgedock-demo/issues/15-refactor-protected-route-flag.md +43 -0
- package/examples/forgedock-demo/issues/16-refactor-extract-store.md +45 -0
- package/examples/forgedock-demo/issues/17-perf-tags-dedup-set.md +35 -0
- package/examples/forgedock-demo/issues/18-perf-remove-redundant-sort.md +37 -0
- package/examples/forgedock-demo/issues/19-docs-api-reference-full.md +53 -0
- package/examples/forgedock-demo/issues/20-docs-intentional-flaw-convention.md +46 -0
- package/examples/forgedock-demo/scripts/smoke.js +18 -1
- package/examples/forgedock-demo/src/db.js +36 -11
- package/examples/forgedock-demo/src/routes/notes.js +106 -9
- package/examples/forgedock-demo/src/server.js +4 -1
- package/package.json +3 -1
- package/packages/protocol/LICENSE +21 -0
- package/packages/protocol/src/cli.js +135 -0
- package/packages/protocol/src/emit.js +146 -0
- package/packages/protocol/src/index.js +43 -0
- package/packages/protocol/src/parse.js +229 -0
- package/packages/protocol/src/types.js +171 -0
- package/packages/protocol/src/validate.js +122 -0
- package/scripts/bench-topology-cost.mjs +372 -0
- package/scripts/check-command-docs-drift.sh +198 -0
- package/scripts/check-protocol-restatements.sh +176 -0
- package/scripts/check-registry/README.md +72 -0
- package/scripts/check-registry/manifest.json +6 -0
- package/scripts/code-index.sh +454 -0
- package/scripts/conformance-check.mjs +168 -0
- package/scripts/doctor-pipeline-state.sh +484 -0
- package/scripts/eval-gate-baseline.json +17 -0
- package/scripts/eval-gate-scorecard.mjs +242 -0
- package/scripts/eval-scorecard-aggregator.mjs +252 -0
- package/scripts/flaky-quarantine.sh +241 -0
- package/scripts/forge-annotation.sh +567 -0
- package/scripts/issue-dedup.sh +236 -0
- package/scripts/validate-annotation-node.mjs +233 -0
- package/scripts/worktree-lifecycle.sh +3 -3
- package/templates/devdocs/agent/using-forgedock.md +14 -0
- package/docs/site/.vitepress/config.mjs +0 -85
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "ForgeDock Complete Command Reference"
|
|
3
|
-
description: "Complete reference for all ForgeDock slash commands for Claude Code. Usage, options, and examples
|
|
3
|
+
description: "Complete reference for all ForgeDock slash commands for Claude Code. Usage, options, and examples covering the full AI development pipeline."
|
|
4
4
|
keywords: ["claude code slash commands", "claude code extensions", "claude code commands list", "forgedock commands", "ai development pipeline commands"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Complete Command Reference
|
|
8
8
|
|
|
9
|
-
ForgeDock installs
|
|
9
|
+
ForgeDock installs slash commands into Claude Code. Each command is a detailed prompt spec that guides an AI agent through a specific phase of the development pipeline.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Commands ship in two tiers:
|
|
12
|
+
|
|
13
|
+
- **Core** (default install) — the commands that cover the full pipeline: `work-on`, `issue`, `review-pr`, `quality-gate`, `orchestrate`, `forgedock-init`, and their sub-phases.
|
|
14
|
+
- **Extras** (opt-in) — analytics, audit, ops, and project-specific commands. Install with `--extras`.
|
|
12
15
|
|
|
13
16
|
```bash
|
|
14
|
-
npx forgedock
|
|
17
|
+
npx forgedock # Core tier only (default)
|
|
18
|
+
npx forgedock --extras # Core + extras tier
|
|
15
19
|
```
|
|
16
20
|
|
|
17
21
|
After installation, every command is available as `/command-name` in any Claude Code session.
|
|
@@ -20,7 +24,7 @@ After installation, every command is available as `/command-name` in any Claude
|
|
|
20
24
|
|
|
21
25
|
---
|
|
22
26
|
|
|
23
|
-
## Core
|
|
27
|
+
## Core Loop
|
|
24
28
|
|
|
25
29
|
These are the commands you use most. They cover the full lifecycle from issue to merged PR.
|
|
26
30
|
|
|
@@ -53,6 +57,19 @@ Runs the complete investigate → build → review → merge → close pipeline
|
|
|
53
57
|
|
|
54
58
|
---
|
|
55
59
|
|
|
60
|
+
### `/issue`
|
|
61
|
+
|
|
62
|
+
**Structured issue creator.**
|
|
63
|
+
|
|
64
|
+
Creates a well-structured GitHub issue with all sections the pipeline needs (Problem, Affected Files, Expected Behavior, Acceptance Criteria).
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
/issue "The login button is misaligned on mobile Safari"
|
|
68
|
+
/issue "Add dark mode support to the dashboard"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
56
73
|
### `/review-pr`
|
|
57
74
|
|
|
58
75
|
**Context-aware PR reviewer.**
|
|
@@ -100,6 +117,21 @@ Catches the defects a reviewer would flag — before the commit is made.
|
|
|
100
117
|
|
|
101
118
|
---
|
|
102
119
|
|
|
120
|
+
#### `/test-gate`
|
|
121
|
+
|
|
122
|
+
**Acceptance verification gate.**
|
|
123
|
+
|
|
124
|
+
Deterministically verifies a staging→main bundle's acceptance criteria against running code before deploy.
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
/test-gate # Verify current staging
|
|
128
|
+
/test-gate --issue 42 # Verify acceptance criteria for issue #42
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
*Runs automatically as part of the deploy pipeline. Use manually to verify before triggering a deploy.*
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
103
135
|
### `/orchestrate`
|
|
104
136
|
|
|
105
137
|
**Parallel multi-issue pipeline.**
|
|
@@ -118,252 +150,291 @@ Each sub-agent gets its own git worktree and GitHub issue thread. No interferenc
|
|
|
118
150
|
|
|
119
151
|
---
|
|
120
152
|
|
|
121
|
-
|
|
153
|
+
#### `/milestone`
|
|
122
154
|
|
|
123
|
-
**
|
|
155
|
+
**Milestone manager.**
|
|
124
156
|
|
|
125
|
-
|
|
157
|
+
Creates, manages, and ships milestones — the top-level planning layer for feature development.
|
|
126
158
|
|
|
127
159
|
```bash
|
|
128
|
-
/
|
|
129
|
-
/
|
|
130
|
-
/
|
|
131
|
-
/
|
|
132
|
-
/autopilot --dry-run # Show what would be done
|
|
160
|
+
/milestone create "Q3 Auth Improvements" # Create a new milestone
|
|
161
|
+
/milestone status # Current milestone status
|
|
162
|
+
/milestone ship q3-auth # Ship a milestone
|
|
163
|
+
/milestone sync q3-auth # Sync issues to board
|
|
133
164
|
```
|
|
134
165
|
|
|
135
166
|
---
|
|
136
167
|
|
|
137
|
-
##
|
|
168
|
+
## Observe & Recover
|
|
169
|
+
|
|
170
|
+
These commands implement the durable-state story: situational awareness, failure diagnosis, and crash-safe resume for pipeline runs.
|
|
138
171
|
|
|
139
172
|
---
|
|
140
173
|
|
|
141
|
-
|
|
174
|
+
#### `/pipeline-status`
|
|
142
175
|
|
|
143
|
-
**
|
|
176
|
+
**Pipeline-wide situational awareness.**
|
|
144
177
|
|
|
145
|
-
|
|
178
|
+
Groups open issues by workflow state, shows active PRs with age, flags stale items, and reports milestone progress. Fully read-only.
|
|
179
|
+
|
|
180
|
+
With the durable engine, also shows **engine lease state** for issues with a `FORGE:STATE` block — distinguishing `LEASED (agent, Nm left)` from `STALLED (lease expired Nm ago)`. Issues without engine state fall back to `updatedAt`-based staleness.
|
|
146
181
|
|
|
147
182
|
```bash
|
|
148
|
-
/
|
|
149
|
-
/
|
|
183
|
+
/pipeline-status # Full dashboard
|
|
184
|
+
/pipeline-status --stale-days 3 # Custom stale threshold
|
|
185
|
+
/pipeline-status --repo org/repo # Specific repo
|
|
150
186
|
```
|
|
151
187
|
|
|
152
|
-
Returns: CONFIRMED, PARTIAL, or INVALID with evidence.
|
|
153
|
-
|
|
154
188
|
---
|
|
155
189
|
|
|
156
|
-
|
|
190
|
+
#### `/pipeline-resume`
|
|
157
191
|
|
|
158
|
-
**
|
|
192
|
+
**Context recovery after compaction.**
|
|
159
193
|
|
|
160
|
-
|
|
194
|
+
Finds the most recently active issue, reconstructs FORGE annotations, and re-enters the pipeline at the correct phase via `/work-on`.
|
|
161
195
|
|
|
162
196
|
```bash
|
|
163
|
-
/
|
|
164
|
-
/
|
|
165
|
-
/
|
|
197
|
+
/pipeline-resume # Auto-detect most recent issue
|
|
198
|
+
/pipeline-resume 610 # Resume specific issue
|
|
199
|
+
/pipeline-resume --all-stalled # Fleet recovery: scan + re-dispatch all stalled issues
|
|
200
|
+
/pipeline-resume --all-stalled --dry-run # List stalled issues without dispatching
|
|
166
201
|
```
|
|
167
202
|
|
|
203
|
+
The `--all-stalled` mode delegates to `npx forgedock resume-stalled`, which uses the engine's `scanStalls()` for ground-truth expired-lease detection rather than timestamp heuristics.
|
|
204
|
+
|
|
168
205
|
---
|
|
169
206
|
|
|
170
|
-
|
|
207
|
+
#### `/diagnose`
|
|
171
208
|
|
|
172
|
-
**
|
|
209
|
+
**Pipeline failure tracer.**
|
|
173
210
|
|
|
174
|
-
|
|
211
|
+
Traces a failed or stalled pipeline run — identifies which FORGE annotation is missing or malformed, pinpoints the failure phase, and suggests specific remediation steps.
|
|
175
212
|
|
|
176
213
|
```bash
|
|
177
|
-
/
|
|
178
|
-
/
|
|
179
|
-
/security-audit --dry-run # Show findings without creating issues
|
|
214
|
+
/diagnose 42 # Diagnose issue #42
|
|
215
|
+
/diagnose --stale # Find all stalled runs
|
|
180
216
|
```
|
|
181
217
|
|
|
182
218
|
---
|
|
183
219
|
|
|
184
|
-
|
|
220
|
+
#### `/explain`
|
|
185
221
|
|
|
186
|
-
**
|
|
222
|
+
**FORGE annotation translator.**
|
|
187
223
|
|
|
188
|
-
|
|
224
|
+
Produces a plain-English narrative of everything that happened on a GitHub issue — translates FORGE pipeline annotations into a human-readable summary for teammates and PMs who don't read raw annotations.
|
|
189
225
|
|
|
190
226
|
```bash
|
|
191
|
-
/
|
|
192
|
-
/
|
|
193
|
-
/qa-sweep page /settings # Specific route
|
|
194
|
-
/qa-sweep journey # Critical user journeys
|
|
195
|
-
/qa-sweep a11y # Accessibility only
|
|
227
|
+
/explain 42 # Explain what happened on issue #42
|
|
228
|
+
/explain 123 --pr # Explain a PR's review trail
|
|
196
229
|
```
|
|
197
230
|
|
|
198
231
|
---
|
|
199
232
|
|
|
200
|
-
|
|
233
|
+
#### `/replay`
|
|
234
|
+
|
|
235
|
+
**Read-only audit trail playback.**
|
|
236
|
+
|
|
237
|
+
Steps through a completed pipeline run phase by phase, showing each FORGE annotation with timestamps. Useful for understanding exactly what an agent did and when.
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
/replay 42 # Replay issue #42 run
|
|
241
|
+
/replay 42 --phase build # Replay only the build phase
|
|
242
|
+
```
|
|
201
243
|
|
|
202
244
|
---
|
|
203
245
|
|
|
204
|
-
|
|
246
|
+
#### `/changelog`
|
|
205
247
|
|
|
206
|
-
**
|
|
248
|
+
**Release notes generator.**
|
|
207
249
|
|
|
208
|
-
|
|
250
|
+
Auto-generates release notes from merged PRs and `FORGE:TRAJECTORY` annotations, grouped by conventional commit type. Produces a diff-accurate, human-readable changelog with no manual curation.
|
|
209
251
|
|
|
210
252
|
```bash
|
|
211
|
-
/
|
|
212
|
-
/
|
|
253
|
+
/changelog # Notes since last release
|
|
254
|
+
/changelog v1.2.0..v1.3.0 # Specific version range
|
|
255
|
+
/changelog --milestone q3-auth # Milestone-scoped notes
|
|
213
256
|
```
|
|
214
257
|
|
|
215
258
|
---
|
|
216
259
|
|
|
217
|
-
|
|
260
|
+
## Ops
|
|
218
261
|
|
|
219
|
-
|
|
262
|
+
Commands for production operations, incident response, and keeping the repo healthy.
|
|
220
263
|
|
|
221
|
-
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
#### `/deploy-info`
|
|
267
|
+
|
|
268
|
+
**Pre-deploy diff.**
|
|
269
|
+
|
|
270
|
+
Shows what will deploy next — diff between staging and main with issue/PR summary, risk assessment, and deploy checklist.
|
|
222
271
|
|
|
223
272
|
```bash
|
|
224
|
-
/
|
|
225
|
-
/
|
|
226
|
-
/milestone
|
|
227
|
-
/
|
|
273
|
+
/deploy-info # staging vs. main
|
|
274
|
+
/deploy-info staging # Explicit staging
|
|
275
|
+
/deploy-info milestone/q3-auth # Milestone branch
|
|
276
|
+
/deploy-info compare my-branch # Custom comparison
|
|
228
277
|
```
|
|
229
278
|
|
|
230
279
|
---
|
|
231
280
|
|
|
232
|
-
|
|
281
|
+
#### `/rollback`
|
|
233
282
|
|
|
234
|
-
**
|
|
283
|
+
**Revert PR creator.**
|
|
235
284
|
|
|
236
|
-
|
|
285
|
+
Creates a revert PR to roll back a shipped feature or fix that caused a production incident.
|
|
237
286
|
|
|
238
287
|
```bash
|
|
239
|
-
/
|
|
240
|
-
/
|
|
241
|
-
/cleanup milestones # Archive shipped milestones
|
|
242
|
-
/cleanup board # Fix project board gaps
|
|
243
|
-
/cleanup orphans # Remove dangling worktrees
|
|
244
|
-
/cleanup all # Everything
|
|
288
|
+
/rollback 123 # Revert PR #123
|
|
289
|
+
/rollback last # Revert most recent deploy
|
|
245
290
|
```
|
|
246
291
|
|
|
247
292
|
---
|
|
248
293
|
|
|
249
|
-
|
|
294
|
+
#### `/incident-response`
|
|
295
|
+
|
|
296
|
+
**P0 incident coordinator.**
|
|
297
|
+
|
|
298
|
+
Coordinates P0 incident response — hotfix validation, timeline reconstruction, and post-incident analysis.
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
/incident-response 42 # Respond to issue #42
|
|
302
|
+
/incident-response active # Current active incident
|
|
303
|
+
/incident-response postmortem 42 # Post-incident analysis
|
|
304
|
+
```
|
|
250
305
|
|
|
251
306
|
---
|
|
252
307
|
|
|
253
|
-
|
|
308
|
+
#### `/security-audit`
|
|
254
309
|
|
|
255
|
-
**
|
|
310
|
+
**Periodic security posture audit.**
|
|
256
311
|
|
|
257
|
-
|
|
312
|
+
Runs a 4-phase security checklist against repo files (not just diffs). Creates GitHub issues for confirmed findings.
|
|
258
313
|
|
|
259
314
|
```bash
|
|
260
|
-
/
|
|
315
|
+
/security-audit # All 4 phases
|
|
316
|
+
/security-audit --phase 1 # Specific phase
|
|
317
|
+
/security-audit --dry-run # Show findings without creating issues
|
|
261
318
|
```
|
|
262
319
|
|
|
263
|
-
Trigger phrases: "check analytics", "look at prod analytics", "what's happening on the site", "check revenue".
|
|
264
|
-
|
|
265
320
|
---
|
|
266
321
|
|
|
267
|
-
|
|
322
|
+
#### `/autopilot`
|
|
268
323
|
|
|
269
|
-
**
|
|
324
|
+
**Self-improvement cycle.**
|
|
270
325
|
|
|
271
|
-
|
|
326
|
+
Runs recon, triage, and optionally fixes top-priority issues automatically.
|
|
272
327
|
|
|
273
328
|
```bash
|
|
274
|
-
/
|
|
275
|
-
/
|
|
329
|
+
/autopilot # Recon + triage only
|
|
330
|
+
/autopilot --fix # Recon + triage + fix top issues
|
|
331
|
+
/autopilot --fix --limit 5 # Fix top 5 issues
|
|
332
|
+
/autopilot --recon-only # Recon only, no triage
|
|
333
|
+
/autopilot --dry-run # Show what would be done
|
|
276
334
|
```
|
|
277
335
|
|
|
278
336
|
---
|
|
279
337
|
|
|
280
|
-
|
|
338
|
+
#### `/signal-planner`
|
|
281
339
|
|
|
282
|
-
**
|
|
340
|
+
**Closed-loop production signal to verified resolution.**
|
|
283
341
|
|
|
284
|
-
|
|
342
|
+
Converts a production, analytics, or incident signal into a dependency-ordered issue DAG, executes via `/orchestrate`, then verifies the originating signal is resolved. Event-driven companion to `/autopilot`.
|
|
285
343
|
|
|
286
344
|
```bash
|
|
287
|
-
/
|
|
288
|
-
/
|
|
289
|
-
/
|
|
290
|
-
/
|
|
345
|
+
/signal-planner --geo # GEO signal → issues → verify
|
|
346
|
+
/signal-planner --metric "p95_latency 2000" # Latency signal
|
|
347
|
+
/signal-planner --incident 42 # Issue-originated signal
|
|
348
|
+
/signal-planner --dry-run # Show DAG without executing
|
|
349
|
+
/signal-planner --max-issues 5 # Cap spawned issues
|
|
291
350
|
```
|
|
292
351
|
|
|
352
|
+
*Applies to: projects with production signals (analytics, incidents, metrics) configured in `forge.yaml`.*
|
|
353
|
+
|
|
293
354
|
---
|
|
294
355
|
|
|
295
|
-
|
|
356
|
+
#### `/cleanup`
|
|
296
357
|
|
|
297
|
-
**
|
|
358
|
+
**Repository hygiene sweep.**
|
|
298
359
|
|
|
299
|
-
|
|
360
|
+
Cleans up stale labels, missing workflow state, project board gaps, dangling worktrees, and orphaned branches.
|
|
300
361
|
|
|
301
362
|
```bash
|
|
302
|
-
/
|
|
363
|
+
/cleanup labels # Fix stale labels
|
|
364
|
+
/cleanup branches # Prune merged branches
|
|
365
|
+
/cleanup milestones # Archive shipped milestones
|
|
366
|
+
/cleanup board # Fix project board gaps
|
|
367
|
+
/cleanup orphans # Remove dangling worktrees
|
|
368
|
+
/cleanup all # Everything
|
|
303
369
|
```
|
|
304
370
|
|
|
305
371
|
---
|
|
306
372
|
|
|
307
|
-
|
|
373
|
+
#### `/pipeline-health`
|
|
308
374
|
|
|
309
|
-
**
|
|
375
|
+
**Pipeline performance analyzer.**
|
|
310
376
|
|
|
311
|
-
|
|
377
|
+
Measures pipeline performance, correlates with prompt changes, and proposes improvements.
|
|
312
378
|
|
|
313
379
|
```bash
|
|
314
|
-
/
|
|
315
|
-
/
|
|
316
|
-
/audit-agents {agent-id} # Specific agent
|
|
380
|
+
/pipeline-health # All repos
|
|
381
|
+
/pipeline-health my-app # Specific repo
|
|
317
382
|
```
|
|
318
383
|
|
|
319
384
|
---
|
|
320
385
|
|
|
321
|
-
##
|
|
386
|
+
## Investigation & Validation
|
|
322
387
|
|
|
323
388
|
---
|
|
324
389
|
|
|
325
|
-
|
|
390
|
+
#### `/validate`
|
|
326
391
|
|
|
327
|
-
**Pre-
|
|
392
|
+
**Pre-build issue validation.**
|
|
328
393
|
|
|
329
|
-
|
|
394
|
+
Independently verifies whether a reported issue is actually a real problem before any code changes.
|
|
330
395
|
|
|
331
396
|
```bash
|
|
332
|
-
/
|
|
333
|
-
/
|
|
334
|
-
/deploy-info milestone/q3-auth # Milestone branch
|
|
335
|
-
/deploy-info compare my-branch # Custom comparison
|
|
397
|
+
/validate 42 # Validate issue #42
|
|
398
|
+
/validate "login button broken" # Validate by description
|
|
336
399
|
```
|
|
337
400
|
|
|
401
|
+
Returns: CONFIRMED, PARTIAL, or INVALID with evidence.
|
|
402
|
+
|
|
338
403
|
---
|
|
339
404
|
|
|
340
|
-
|
|
405
|
+
#### `/audit`
|
|
341
406
|
|
|
342
|
-
**
|
|
407
|
+
**Production issue tracer.**
|
|
343
408
|
|
|
344
|
-
|
|
409
|
+
Traces a production failure end-to-end through GitHub artifacts (commits, PRs, issues) and files an improvement issue.
|
|
345
410
|
|
|
346
411
|
```bash
|
|
347
|
-
/
|
|
348
|
-
/
|
|
412
|
+
/audit "payments 500 errors started after deploy"
|
|
413
|
+
/audit --issue 42 # Trace based on existing issue
|
|
414
|
+
/audit --pr 123 # Trace based on PR
|
|
349
415
|
```
|
|
350
416
|
|
|
351
417
|
---
|
|
352
418
|
|
|
353
|
-
|
|
419
|
+
#### `/scope`
|
|
354
420
|
|
|
355
|
-
**
|
|
421
|
+
**Pre-flight complexity estimator.**
|
|
356
422
|
|
|
357
|
-
|
|
423
|
+
Estimates issue complexity before running `/work-on` — surfaces affected files, blast radius, risk flags, and a decomposition recommendation. Strictly read-only; nothing is written to GitHub.
|
|
358
424
|
|
|
359
425
|
```bash
|
|
360
|
-
/
|
|
361
|
-
/
|
|
362
|
-
/incident-response postmortem 42 # Post-incident analysis
|
|
426
|
+
/scope 42 # Estimate issue #42
|
|
427
|
+
/scope 42 --repo owner/repo # Explicit repo
|
|
363
428
|
```
|
|
364
429
|
|
|
365
430
|
---
|
|
366
431
|
|
|
432
|
+
#### `/diagnose`
|
|
433
|
+
|
|
434
|
+
See [Observe & Recover > `/diagnose`](#diagnose) above.
|
|
435
|
+
|
|
436
|
+
---
|
|
437
|
+
|
|
367
438
|
## Configuration & Setup
|
|
368
439
|
|
|
369
440
|
---
|
|
@@ -380,9 +451,25 @@ AI-powered `forge.yaml` generator — scans codebase, queries GitHub, and fills
|
|
|
380
451
|
/forgedock-init --section review # Regenerate one section
|
|
381
452
|
```
|
|
382
453
|
|
|
454
|
+
|
|
455
|
+
---
|
|
456
|
+
|
|
457
|
+
#### `/adopt`
|
|
458
|
+
|
|
459
|
+
**Repo bootstrap & backlog triage.**
|
|
460
|
+
|
|
461
|
+
Onboards an existing repo into the ForgeDock pipeline — scans open issues, classifies them, applies category and priority labels, suggests a starter milestone, and ranks the best `/work-on` first candidates. Run once after `npx forgedock init` + `/forgedock-init` to make a legacy backlog pipeline-ready.
|
|
462
|
+
|
|
463
|
+
```bash
|
|
464
|
+
/adopt # Triage current repo
|
|
465
|
+
/adopt --dry-run # Preview without writing labels
|
|
466
|
+
/adopt --milestone # Also create a starter milestone
|
|
467
|
+
/adopt --limit 20 # Cap issues triaged
|
|
468
|
+
```
|
|
469
|
+
|
|
383
470
|
---
|
|
384
471
|
|
|
385
|
-
|
|
472
|
+
#### `/sync-ecosystem`
|
|
386
473
|
|
|
387
474
|
**Cross-repo sync.**
|
|
388
475
|
|
|
@@ -398,6 +485,49 @@ Detects API changes, syncs satellite repos, and publishes releases.
|
|
|
398
485
|
|
|
399
486
|
---
|
|
400
487
|
|
|
488
|
+
## Advanced Pipeline Tuning
|
|
489
|
+
|
|
490
|
+
---
|
|
491
|
+
|
|
492
|
+
#### `/optimize`
|
|
493
|
+
|
|
494
|
+
**Adaptive script generator.**
|
|
495
|
+
|
|
496
|
+
Analyzes the repo and generates per-repo adaptive scripts from learned patterns, git history, and existing configuration — making repeated pipeline work faster over time.
|
|
497
|
+
|
|
498
|
+
```bash
|
|
499
|
+
/optimize # Analyze and generate scripts
|
|
500
|
+
/optimize --dry-run # Preview recommendations
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
---
|
|
504
|
+
|
|
505
|
+
#### `/ci-audit`
|
|
506
|
+
|
|
507
|
+
**Stack-aware CI gap detection.**
|
|
508
|
+
|
|
509
|
+
Audits the project's GitHub Actions workflows against its declared tech stack and files issues for missing config-validation checks — ensuring CI enforces the right deterministic validators (e.g., `traefik validate`, `nginx -t`) for each stack component.
|
|
510
|
+
|
|
511
|
+
```bash
|
|
512
|
+
/ci-audit # Full CI gap audit
|
|
513
|
+
/ci-audit --dry-run # Show gaps without creating issues
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
---
|
|
517
|
+
|
|
518
|
+
#### `/compat-audit`
|
|
519
|
+
|
|
520
|
+
**Claude Code compatibility report.**
|
|
521
|
+
|
|
522
|
+
Produces a point-in-time advisory report showing whether the installed Claude Code version is current and which ForgeDock features may behave differently on the current runtime.
|
|
523
|
+
|
|
524
|
+
```bash
|
|
525
|
+
/compat-audit # Check current version
|
|
526
|
+
/compat-audit --refresh # Force refresh of breakpoints registry
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
---
|
|
530
|
+
|
|
401
531
|
## Sub-Phase Commands
|
|
402
532
|
|
|
403
533
|
These are invoked automatically by `/work-on` but can also be run standalone.
|
|
@@ -413,7 +543,103 @@ These are invoked automatically by `/work-on` but can also be run standalone.
|
|
|
413
543
|
| `/work-on/review` | Phase 5 | Review only |
|
|
414
544
|
| `/work-on/close` | Phase 6 | Close & cleanup only |
|
|
415
545
|
| `/work-on/decompose` | Phase 2 | Decompose into sub-issues |
|
|
416
|
-
| `/review-pr-
|
|
546
|
+
| `/review-pr-agents` | PR review | Agent catalog read by `/review-pr` during dispatch (not user-invokable directly) |
|
|
547
|
+
|
|
548
|
+
---
|
|
549
|
+
|
|
550
|
+
## Extras / Project-Specific
|
|
551
|
+
|
|
552
|
+
These commands are in the **extras tier** — not installed by default. Install them with `npx forgedock --extras`.
|
|
553
|
+
|
|
554
|
+
The following extras target **web-property and analytics workflows** specifically. They are useful for teams running a public web property with analytics platforms (GSC, GA4, Umami, Cloudflare, Stripe, Clarity) wired up in `forge.yaml`. If your project is not a web property or does not have those integrations configured, these commands will have nothing to act on.
|
|
555
|
+
|
|
556
|
+
---
|
|
557
|
+
|
|
558
|
+
#### `/analytics`
|
|
559
|
+
|
|
560
|
+
**Production analytics audit.**
|
|
561
|
+
|
|
562
|
+
Pulls analytics from multiple sources (GSC, Bing Webmaster, Clarity, Umami, Cloudflare, Stripe, GA4) and generates actionable GitHub issues.
|
|
563
|
+
|
|
564
|
+
```bash
|
|
565
|
+
/analytics # Full analytics audit
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
Trigger phrases: "check analytics", "look at prod analytics", "what's happening on the site", "check revenue".
|
|
569
|
+
|
|
570
|
+
*Applies to: web properties with analytics configured in `forge.yaml`.*
|
|
571
|
+
|
|
572
|
+
---
|
|
573
|
+
|
|
574
|
+
#### `/qa-sweep`
|
|
575
|
+
|
|
576
|
+
**Full platform QA sweep.**
|
|
577
|
+
|
|
578
|
+
Auto-discovers pages and tests UI elements via browser automation (requires Playwright MCP). Creates GitHub issues for all findings.
|
|
579
|
+
|
|
580
|
+
```bash
|
|
581
|
+
/qa-sweep all # Full sweep
|
|
582
|
+
/qa-sweep dashboard # Dashboard area only
|
|
583
|
+
/qa-sweep page /settings # Specific route
|
|
584
|
+
/qa-sweep journey # Critical user journeys
|
|
585
|
+
/qa-sweep a11y # Accessibility only
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
*Applies to: web applications. Requires `claude mcp add playwright npx @playwright/mcp@latest`.*
|
|
589
|
+
|
|
590
|
+
---
|
|
591
|
+
|
|
592
|
+
#### `/geo-audit`
|
|
593
|
+
|
|
594
|
+
**GEO (Generative Engine Optimization) audit.**
|
|
595
|
+
|
|
596
|
+
Checks AI referral traffic and page compliance for AI search engines. Creates improvement issues.
|
|
597
|
+
|
|
598
|
+
```bash
|
|
599
|
+
/geo-audit # Full GEO audit
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
*Applies to: public web properties targeting AI search traffic.*
|
|
603
|
+
|
|
604
|
+
---
|
|
605
|
+
|
|
606
|
+
#### `/audit-agents`
|
|
607
|
+
|
|
608
|
+
**Agent output analyzer.**
|
|
609
|
+
|
|
610
|
+
Audits agent outputs from an orchestration run — timeline analysis, stall detection, idle time breakdown. Useful for diagnosing inefficiency in large `/orchestrate` runs.
|
|
611
|
+
|
|
612
|
+
```bash
|
|
613
|
+
/audit-agents latest # Most recent run
|
|
614
|
+
/audit-agents {session-id} # Specific session
|
|
615
|
+
/audit-agents {agent-id} # Specific agent
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
*Applies to: teams running large parallel orchestrations who want per-agent performance breakdowns.*
|
|
619
|
+
|
|
620
|
+
---
|
|
621
|
+
|
|
622
|
+
---
|
|
623
|
+
|
|
624
|
+
### `npx forgedock report`
|
|
625
|
+
|
|
626
|
+
**Pipeline impact receipts for your repo.**
|
|
627
|
+
|
|
628
|
+
Reads `forge.yaml` for `project.owner/repo` and queries GitHub to produce a 30-day (default) summary of pipeline-driven activity: issues closed, share with FORGE annotations, median and p90 open→close time, merged PR count and issue-link rate, defects caught by review, and machine-filed intent share.
|
|
629
|
+
|
|
630
|
+
```bash
|
|
631
|
+
npx forgedock report # Terminal summary (default 30 days)
|
|
632
|
+
npx forgedock report --days 7 # Last 7 days
|
|
633
|
+
npx forgedock report --md # Paste-ready Markdown block (standups, reports)
|
|
634
|
+
npx forgedock report --json # Raw JSON for scripting
|
|
635
|
+
npx forgedock report --md --quiet # Markdown without the fleet pointer footer
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
Requires an authenticated `gh` CLI and a `forge.yaml` with `project.owner` and `project.repo` set. Degrades gracefully: unauthenticated `gh` and missing `forge.yaml` produce actionable error messages. A repo with no ForgeDock history shows a "run /work-on on your first issue" pointer instead of an empty table.
|
|
639
|
+
|
|
640
|
+
Counts sourced from `gh issue list` / `gh pr list` at the 500-item limit are labeled approximate (`~`), consistent with the honesty convention used in the README.
|
|
641
|
+
|
|
642
|
+
*This is the local, single-repo seed of the [fleet dashboard](https://forgedock.com/fleet) — the same numbers, one repo, free.*
|
|
417
643
|
|
|
418
644
|
---
|
|
419
645
|
|