@dv.nghiem/flowdeck 0.1.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.
- package/LICENSE +21 -0
- package/README.md +136 -0
- package/bin/flowdeck.js +108 -0
- package/dist/agents/architect.d.ts +3 -0
- package/dist/agents/architect.d.ts.map +1 -0
- package/dist/agents/code-explorer.d.ts +3 -0
- package/dist/agents/code-explorer.d.ts.map +1 -0
- package/dist/agents/coder.d.ts +3 -0
- package/dist/agents/coder.d.ts.map +1 -0
- package/dist/agents/debug.d.ts +4 -0
- package/dist/agents/debug.d.ts.map +1 -0
- package/dist/agents/doc-updater.d.ts +3 -0
- package/dist/agents/doc-updater.d.ts.map +1 -0
- package/dist/agents/flowdeck.d.ts +5 -0
- package/dist/agents/flowdeck.d.ts.map +1 -0
- package/dist/agents/index.d.ts +38 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/mapper.d.ts +3 -0
- package/dist/agents/mapper.d.ts.map +1 -0
- package/dist/agents/orchestrator.d.ts +10 -0
- package/dist/agents/orchestrator.d.ts.map +1 -0
- package/dist/agents/performance.d.ts +4 -0
- package/dist/agents/performance.d.ts.map +1 -0
- package/dist/agents/planner.d.ts +3 -0
- package/dist/agents/planner.d.ts.map +1 -0
- package/dist/agents/policy-enforcer.d.ts +3 -0
- package/dist/agents/policy-enforcer.d.ts.map +1 -0
- package/dist/agents/researcher.d.ts +3 -0
- package/dist/agents/researcher.d.ts.map +1 -0
- package/dist/agents/reviewer.d.ts +3 -0
- package/dist/agents/reviewer.d.ts.map +1 -0
- package/dist/agents/risk-analyst.d.ts +3 -0
- package/dist/agents/risk-analyst.d.ts.map +1 -0
- package/dist/agents/security-auditor.d.ts +3 -0
- package/dist/agents/security-auditor.d.ts.map +1 -0
- package/dist/agents/specialist.d.ts +5 -0
- package/dist/agents/specialist.d.ts.map +1 -0
- package/dist/agents/tester.d.ts +3 -0
- package/dist/agents/tester.d.ts.map +1 -0
- package/dist/agents/types.d.ts +20 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/writer.d.ts +3 -0
- package/dist/agents/writer.d.ts.map +1 -0
- package/dist/commands/analysis/analysis.test.d.ts +2 -0
- package/dist/commands/analysis/analysis.test.d.ts.map +1 -0
- package/dist/commands/analysis/analyze-change.d.ts +148 -0
- package/dist/commands/analysis/analyze-change.d.ts.map +1 -0
- package/dist/commands/analysis/evaluate-risk.d.ts +77 -0
- package/dist/commands/analysis/evaluate-risk.d.ts.map +1 -0
- package/dist/commands/analysis/guarded-edit.d.ts +72 -0
- package/dist/commands/analysis/guarded-edit.d.ts.map +1 -0
- package/dist/commands/execution/deploy-check.d.ts +91 -0
- package/dist/commands/execution/deploy-check.d.ts.map +1 -0
- package/dist/commands/execution/fix-bug.d.ts +187 -0
- package/dist/commands/execution/fix-bug.d.ts.map +1 -0
- package/dist/commands/execution/new-feature.d.ts +171 -0
- package/dist/commands/execution/new-feature.d.ts.map +1 -0
- package/dist/commands/execution/review-code.d.ts +130 -0
- package/dist/commands/execution/review-code.d.ts.map +1 -0
- package/dist/commands/execution/write-docs.d.ts +94 -0
- package/dist/commands/execution/write-docs.d.ts.map +1 -0
- package/dist/commands/governance/approve.d.ts +80 -0
- package/dist/commands/governance/approve.d.ts.map +1 -0
- package/dist/commands/intelligence/blast-radius.d.ts +67 -0
- package/dist/commands/intelligence/blast-radius.d.ts.map +1 -0
- package/dist/commands/intelligence/impact-radar.d.ts +71 -0
- package/dist/commands/intelligence/impact-radar.d.ts.map +1 -0
- package/dist/commands/intelligence/intelligence.test.d.ts +2 -0
- package/dist/commands/intelligence/intelligence.test.d.ts.map +1 -0
- package/dist/commands/intelligence/regression-predict.d.ts +75 -0
- package/dist/commands/intelligence/regression-predict.d.ts.map +1 -0
- package/dist/commands/intelligence/review-route.d.ts +65 -0
- package/dist/commands/intelligence/review-route.d.ts.map +1 -0
- package/dist/commands/intelligence/test-gap.d.ts +73 -0
- package/dist/commands/intelligence/test-gap.d.ts.map +1 -0
- package/dist/commands/intelligence/translate-intent.d.ts +87 -0
- package/dist/commands/intelligence/translate-intent.d.ts.map +1 -0
- package/dist/commands/intelligence/volatility-map-cmd.d.ts +68 -0
- package/dist/commands/intelligence/volatility-map-cmd.d.ts.map +1 -0
- package/dist/commands/planning/ask.d.ts +62 -0
- package/dist/commands/planning/ask.d.ts.map +1 -0
- package/dist/commands/planning/ask.test.d.ts +2 -0
- package/dist/commands/planning/ask.test.d.ts.map +1 -0
- package/dist/commands/planning/dashboard.d.ts +30 -0
- package/dist/commands/planning/dashboard.d.ts.map +1 -0
- package/dist/commands/planning/discuss.d.ts +39 -0
- package/dist/commands/planning/discuss.d.ts.map +1 -0
- package/dist/commands/planning/plan.d.ts +67 -0
- package/dist/commands/planning/plan.d.ts.map +1 -0
- package/dist/commands/planning/roadmap.d.ts +105 -0
- package/dist/commands/planning/roadmap.d.ts.map +1 -0
- package/dist/commands/setup/doctor.d.ts +10 -0
- package/dist/commands/setup/doctor.d.ts.map +1 -0
- package/dist/commands/setup/map-codebase.d.ts +62 -0
- package/dist/commands/setup/map-codebase.d.ts.map +1 -0
- package/dist/commands/setup/new-project.d.ts +19 -0
- package/dist/commands/setup/new-project.d.ts.map +1 -0
- package/dist/commands/setup/settings.d.ts +57 -0
- package/dist/commands/setup/settings.d.ts.map +1 -0
- package/dist/commands/state/checkpoint.d.ts +27 -0
- package/dist/commands/state/checkpoint.d.ts.map +1 -0
- package/dist/commands/state/multi-repo.d.ts +63 -0
- package/dist/commands/state/multi-repo.d.ts.map +1 -0
- package/dist/commands/state/progress.d.ts +57 -0
- package/dist/commands/state/progress.d.ts.map +1 -0
- package/dist/commands/state/resume.d.ts +11 -0
- package/dist/commands/state/resume.d.ts.map +1 -0
- package/dist/commands/state/workspace-commands.d.ts +207 -0
- package/dist/commands/state/workspace-commands.d.ts.map +1 -0
- package/dist/dashboard/lib/port-finder.d.ts +10 -0
- package/dist/dashboard/lib/port-finder.d.ts.map +1 -0
- package/dist/dashboard/lib/port-finder.test.d.ts +2 -0
- package/dist/dashboard/lib/port-finder.test.d.ts.map +1 -0
- package/dist/dashboard/lib/state-reader.d.ts +3 -0
- package/dist/dashboard/lib/state-reader.d.ts.map +1 -0
- package/dist/dashboard/server.d.ts +2 -0
- package/dist/dashboard/server.d.ts.map +1 -0
- package/dist/dashboard/server.mjs +13649 -0
- package/dist/dashboard/types.d.ts +72 -0
- package/dist/dashboard/types.d.ts.map +1 -0
- package/dist/dashboard/views/index.ejs +391 -0
- package/dist/dashboard/views/partials/blockers.ejs +10 -0
- package/dist/dashboard/views/partials/header.ejs +20 -0
- package/dist/dashboard/views/partials/phase-timeline.ejs +40 -0
- package/dist/dashboard/views/partials/progress.ejs +12 -0
- package/dist/hooks/approval-hook.d.ts +13 -0
- package/dist/hooks/approval-hook.d.ts.map +1 -0
- package/dist/hooks/compaction-hook.d.ts +23 -0
- package/dist/hooks/compaction-hook.d.ts.map +1 -0
- package/dist/hooks/context-window-monitor.d.ts +21 -0
- package/dist/hooks/context-window-monitor.d.ts.map +1 -0
- package/dist/hooks/decision-trace-hook.d.ts +13 -0
- package/dist/hooks/decision-trace-hook.d.ts.map +1 -0
- package/dist/hooks/file-tracker.d.ts +29 -0
- package/dist/hooks/file-tracker.d.ts.map +1 -0
- package/dist/hooks/guard-rails.d.ts +33 -0
- package/dist/hooks/guard-rails.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/notifications.d.ts +21 -0
- package/dist/hooks/notifications.d.ts.map +1 -0
- package/dist/hooks/patch-trust.d.ts +27 -0
- package/dist/hooks/patch-trust.d.ts.map +1 -0
- package/dist/hooks/patch-trust.test.d.ts +2 -0
- package/dist/hooks/patch-trust.test.d.ts.map +1 -0
- package/dist/hooks/session-events.d.ts +8 -0
- package/dist/hooks/session-events.d.ts.map +1 -0
- package/dist/hooks/session-idle-hook.d.ts +21 -0
- package/dist/hooks/session-idle-hook.d.ts.map +1 -0
- package/dist/hooks/session-start.d.ts +10 -0
- package/dist/hooks/session-start.d.ts.map +1 -0
- package/dist/hooks/shell-env-hook.d.ts +21 -0
- package/dist/hooks/shell-env-hook.d.ts.map +1 -0
- package/dist/hooks/telemetry-hook.d.ts +25 -0
- package/dist/hooks/telemetry-hook.d.ts.map +1 -0
- package/dist/hooks/todo-hook.d.ts +25 -0
- package/dist/hooks/todo-hook.d.ts.map +1 -0
- package/dist/hooks/tool-guard.d.ts +41 -0
- package/dist/hooks/tool-guard.d.ts.map +1 -0
- package/dist/hooks/tool-guard.test.d.ts +2 -0
- package/dist/hooks/tool-guard.test.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6639 -0
- package/dist/lib/confirmation.d.ts +20 -0
- package/dist/lib/confirmation.d.ts.map +1 -0
- package/dist/lib/impact-radar.d.ts +35 -0
- package/dist/lib/impact-radar.d.ts.map +1 -0
- package/dist/lib/signatures.d.ts +12 -0
- package/dist/lib/signatures.d.ts.map +1 -0
- package/dist/lib/timestamps.d.ts +23 -0
- package/dist/lib/timestamps.d.ts.map +1 -0
- package/dist/mcp/index.d.ts +20 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/services/agent-performance.d.ts +29 -0
- package/dist/services/agent-performance.d.ts.map +1 -0
- package/dist/services/approval-manager.d.ts +30 -0
- package/dist/services/approval-manager.d.ts.map +1 -0
- package/dist/services/index.d.ts +7 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/model-router.d.ts +35 -0
- package/dist/services/model-router.d.ts.map +1 -0
- package/dist/services/policy-compiler.d.ts +27 -0
- package/dist/services/policy-compiler.d.ts.map +1 -0
- package/dist/services/run-trace.d.ts +34 -0
- package/dist/services/run-trace.d.ts.map +1 -0
- package/dist/services/services.test.d.ts +2 -0
- package/dist/services/services.test.d.ts.map +1 -0
- package/dist/services/telemetry.d.ts +34 -0
- package/dist/services/telemetry.d.ts.map +1 -0
- package/dist/tools/agent-dispatch.test.d.ts +2 -0
- package/dist/tools/agent-dispatch.test.d.ts.map +1 -0
- package/dist/tools/codebase-state.d.ts +4 -0
- package/dist/tools/codebase-state.d.ts.map +1 -0
- package/dist/tools/context-generator.d.ts +3 -0
- package/dist/tools/context-generator.d.ts.map +1 -0
- package/dist/tools/council.d.ts +4 -0
- package/dist/tools/council.d.ts.map +1 -0
- package/dist/tools/decision-trace.d.ts +16 -0
- package/dist/tools/decision-trace.d.ts.map +1 -0
- package/dist/tools/delegate.d.ts +4 -0
- package/dist/tools/delegate.d.ts.map +1 -0
- package/dist/tools/failure-replay.d.ts +19 -0
- package/dist/tools/failure-replay.d.ts.map +1 -0
- package/dist/tools/failure-replay.test.d.ts +2 -0
- package/dist/tools/failure-replay.test.d.ts.map +1 -0
- package/dist/tools/hash-edit.d.ts +3 -0
- package/dist/tools/hash-edit.d.ts.map +1 -0
- package/dist/tools/planning-state-lib.d.ts +65 -0
- package/dist/tools/planning-state-lib.d.ts.map +1 -0
- package/dist/tools/planning-state.d.ts +3 -0
- package/dist/tools/planning-state.d.ts.map +1 -0
- package/dist/tools/policy-engine.d.ts +19 -0
- package/dist/tools/policy-engine.d.ts.map +1 -0
- package/dist/tools/repo-memory.d.ts +20 -0
- package/dist/tools/repo-memory.d.ts.map +1 -0
- package/dist/tools/repo-memory.test.d.ts +2 -0
- package/dist/tools/repo-memory.test.d.ts.map +1 -0
- package/dist/tools/run-parallel.d.ts +4 -0
- package/dist/tools/run-parallel.d.ts.map +1 -0
- package/dist/tools/run-pipeline.d.ts +4 -0
- package/dist/tools/run-pipeline.d.ts.map +1 -0
- package/dist/tools/volatility-map.d.ts +18 -0
- package/dist/tools/volatility-map.d.ts.map +1 -0
- package/dist/tools/volatility-map.test.d.ts +2 -0
- package/dist/tools/volatility-map.test.d.ts.map +1 -0
- package/dist/tools/workspace-state.d.ts +3 -0
- package/dist/tools/workspace-state.d.ts.map +1 -0
- package/docs/USER_GUIDE.md +20 -0
- package/docs/agents.md +562 -0
- package/docs/best-practices.md +47 -0
- package/docs/command-migration.md +175 -0
- package/docs/commands/fd-analyze-change.md +107 -0
- package/docs/commands/fd-ask.md +51 -0
- package/docs/commands/fd-checkpoint.md +10 -0
- package/docs/commands/fd-dashboard.md +11 -0
- package/docs/commands/fd-deploy-check.md +11 -0
- package/docs/commands/fd-discuss.md +28 -0
- package/docs/commands/fd-evaluate-risk.md +134 -0
- package/docs/commands/fd-fix-bug.md +24 -0
- package/docs/commands/fd-guarded-edit.md +105 -0
- package/docs/commands/fd-map-codebase.md +27 -0
- package/docs/commands/fd-multi-repo.md +63 -0
- package/docs/commands/fd-new-feature.md +25 -0
- package/docs/commands/fd-new-project.md +24 -0
- package/docs/commands/fd-plan.md +33 -0
- package/docs/commands/fd-progress.md +11 -0
- package/docs/commands/fd-resume.md +10 -0
- package/docs/commands/fd-review-code.md +29 -0
- package/docs/commands/fd-roadmap.md +10 -0
- package/docs/commands/fd-settings.md +10 -0
- package/docs/commands/fd-write-docs.md +10 -0
- package/docs/commands.md +476 -0
- package/docs/configuration.md +211 -0
- package/docs/feature-integration-architecture.md +255 -0
- package/docs/index.md +75 -0
- package/docs/installation.md +134 -0
- package/docs/intelligence.md +294 -0
- package/docs/multi-repo.md +201 -0
- package/docs/notifications.md +170 -0
- package/docs/parallel-execution.md +227 -0
- package/docs/quick-start.md +174 -0
- package/docs/rules.md +459 -0
- package/docs/skills.md +408 -0
- package/docs/workflows.md +376 -0
- package/package.json +58 -0
- package/postinstall.mjs +102 -0
- package/src/rules/README.md +37 -0
- package/src/rules/common/agent-orchestration.md +86 -0
- package/src/rules/common/coding-style.md +120 -0
- package/src/rules/common/git-workflow.md +77 -0
- package/src/rules/common/security.md +94 -0
- package/src/rules/common/testing.md +105 -0
- package/src/rules/golang/patterns.md +187 -0
- package/src/rules/java/patterns.md +204 -0
- package/src/rules/python/patterns.md +141 -0
- package/src/rules/rust/patterns.md +210 -0
- package/src/rules/typescript/patterns.md +168 -0
- package/src/skills/api-design/SKILL.md +143 -0
- package/src/skills/arch-constraint-guard/SKILL.md +61 -0
- package/src/skills/blast-radius-preview/SKILL.md +65 -0
- package/src/skills/change-impact-radar/SKILL.md +63 -0
- package/src/skills/code-review/SKILL.md +108 -0
- package/src/skills/code-tour/SKILL.md +101 -0
- package/src/skills/codebase-mapping/SKILL.md +87 -0
- package/src/skills/codebase-onboarding/SKILL.md +133 -0
- package/src/skills/confidence-aware-planning/SKILL.md +67 -0
- package/src/skills/context-load/SKILL.md +63 -0
- package/src/skills/debug-flow/SKILL.md +75 -0
- package/src/skills/decision-trace/SKILL.md +72 -0
- package/src/skills/dependency-audit/SKILL.md +126 -0
- package/src/skills/deploy-check/SKILL.md +87 -0
- package/src/skills/documentation-writer/SKILL.md +154 -0
- package/src/skills/failure-replay-engine/SKILL.md +59 -0
- package/src/skills/git-release/SKILL.md +94 -0
- package/src/skills/git-workflow/SKILL.md +177 -0
- package/src/skills/golang-patterns/SKILL.md +511 -0
- package/src/skills/human-review-routing/SKILL.md +65 -0
- package/src/skills/intent-translator/SKILL.md +57 -0
- package/src/skills/java-patterns/SKILL.md +479 -0
- package/src/skills/multi-repo/SKILL.md +187 -0
- package/src/skills/parallel-execute/SKILL.md +92 -0
- package/src/skills/patch-trust-score/SKILL.md +44 -0
- package/src/skills/performance-profiling/SKILL.md +153 -0
- package/src/skills/plan-task/SKILL.md +101 -0
- package/src/skills/python-patterns/SKILL.md +529 -0
- package/src/skills/refactor-guide/SKILL.md +117 -0
- package/src/skills/regression-prediction/SKILL.md +57 -0
- package/src/skills/repo-memory-graph/SKILL.md +49 -0
- package/src/skills/rust-patterns/SKILL.md +492 -0
- package/src/skills/security-scan/SKILL.md +91 -0
- package/src/skills/self-healing-policies/SKILL.md +76 -0
- package/src/skills/tdd-workflow/SKILL.md +126 -0
- package/src/skills/test-coverage/SKILL.md +94 -0
- package/src/skills/test-gap-detector/SKILL.md +58 -0
- package/src/skills/volatility-map/SKILL.md +52 -0
- package/src/workflows/debug-flow.md +119 -0
- package/src/workflows/deploy-check-flow.md +98 -0
- package/src/workflows/discuss-flow.md +97 -0
- package/src/workflows/execute-flow.md +233 -0
- package/src/workflows/execute-phase.md +142 -0
- package/src/workflows/fix-bug-flow.md +210 -0
- package/src/workflows/map-codebase-flow.md +92 -0
- package/src/workflows/multi-repo-flow.md +226 -0
- package/src/workflows/parallel-execution-flow.md +236 -0
- package/src/workflows/plan-flow.md +126 -0
- package/src/workflows/plan-phase.md +101 -0
- package/src/workflows/refactor-flow.md +122 -0
- package/src/workflows/review-code-flow.md +105 -0
- package/src/workflows/spec-driven-flow.md +43 -0
- package/src/workflows/write-docs-flow.md +95 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# /fd-guarded-edit
|
|
2
|
+
|
|
3
|
+
**Edit gate command** — evaluates a proposed file change before it is applied and returns a binding gate decision.
|
|
4
|
+
|
|
5
|
+
Combines: patch trust scoring, architectural constraint checking, policy enforcement, volatility analysis, and failure history into a single pass/block decision.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/fd-guarded-edit --file "<path>" --change "<description>" [flags]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Arguments
|
|
16
|
+
|
|
17
|
+
| Flag | Type | Default | Description |
|
|
18
|
+
|------|------|---------|-------------|
|
|
19
|
+
| `--file` | string | — | File path being changed |
|
|
20
|
+
| `--change` | string | — | Plain-language description of the change |
|
|
21
|
+
| `--dry-run` | boolean | false | Evaluate without recording or side effects |
|
|
22
|
+
| `--json` | boolean | false | Return raw JSON instead of table |
|
|
23
|
+
|
|
24
|
+
At least one of `--file` or `--change` is required.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Gate decisions
|
|
29
|
+
|
|
30
|
+
| Decision | Meaning |
|
|
31
|
+
|----------|---------|
|
|
32
|
+
| `auto-approve` | Apply — no action needed (trust ≥70, no violations, stable file) |
|
|
33
|
+
| `require-confirmation` | Review the diff carefully, then confirm (volatile file, guarded mode, or prior failures) |
|
|
34
|
+
| `require-review` | Route to human reviewer — do not auto-apply (trust <40 or policy violation) |
|
|
35
|
+
| `block` | Do NOT apply — arch constraint violation or critical policy breach |
|
|
36
|
+
|
|
37
|
+
### Decision priority (highest first)
|
|
38
|
+
|
|
39
|
+
1. Arch constraint violated → **block**
|
|
40
|
+
2. Policy violation + trust < 30 → **block**
|
|
41
|
+
3. `review-only` execution mode → **require-review**
|
|
42
|
+
4. Trust < 40 OR any policy violation → **require-review**
|
|
43
|
+
5. `guarded` execution mode OR volatile file OR prior failures → **require-confirmation**
|
|
44
|
+
6. All else → **auto-approve**
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Output
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
════════════════════════════════════════════════════════════
|
|
52
|
+
fd-guarded-edit
|
|
53
|
+
────────────────────────────────────────────────────────────
|
|
54
|
+
File: src/auth/token.ts
|
|
55
|
+
Change: replace jwt secret rotation logic
|
|
56
|
+
────────────────────────────────────────────────────────────
|
|
57
|
+
⚑ Decision: REQUIRE-REVIEW
|
|
58
|
+
Reason: High risk: trust score 32/100, 0 policy violation(s)
|
|
59
|
+
Risk score: 32/100 (high-risk)
|
|
60
|
+
Exec mode: guarded
|
|
61
|
+
Prior fails: F-023, F-031
|
|
62
|
+
────────────────────────────────────────────────────────────
|
|
63
|
+
→ Route to human reviewer before applying — do not auto-apply
|
|
64
|
+
════════════════════════════════════════════════════════════
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Fields returned
|
|
68
|
+
|
|
69
|
+
| Field | Description |
|
|
70
|
+
|-------|-------------|
|
|
71
|
+
| `decision` | Gate decision string |
|
|
72
|
+
| `reason` | Explanation for the decision |
|
|
73
|
+
| `risk_score` | Patch trust score 0–100 |
|
|
74
|
+
| `execution_mode` | Current repo execution mode (auto/guarded/review-only) |
|
|
75
|
+
| `policy_violations` | Policy rule strings that were triggered |
|
|
76
|
+
| `volatile_files` | Files that matched volatile/critical zones |
|
|
77
|
+
| `prior_failures` | Failure IDs for prior failures on this path |
|
|
78
|
+
| `arch_constraint` | Whether an architectural constraint was violated |
|
|
79
|
+
| `recommended_action` | Plain-language next step |
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Examples
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Check before editing auth token logic
|
|
87
|
+
/fd-guarded-edit --file "src/auth/token.ts" --change "replace secret rotation"
|
|
88
|
+
|
|
89
|
+
# Dry run (evaluate without recording)
|
|
90
|
+
/fd-guarded-edit --file "src/payment/webhook.ts" --change "update stripe handler" --dry-run
|
|
91
|
+
|
|
92
|
+
# JSON for CI/CD pipeline integration
|
|
93
|
+
/fd-guarded-edit --file "src/core/engine.ts" --change "patch core engine" --json
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Data sources read
|
|
99
|
+
|
|
100
|
+
- `.codebase/POLICIES.json` — active policy rules
|
|
101
|
+
- `.codebase/VOLATILITY.json` — volatile/critical paths
|
|
102
|
+
- `.codebase/FAILURES.json` — unresolved prior failures per path
|
|
103
|
+
- `.codebase/CONSTRAINTS.md` — forbidden path patterns
|
|
104
|
+
- `.planning/config.json` — execution mode setting
|
|
105
|
+
- Patch trust scorer — keyword + volatility scoring
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Map the codebase structure into .codebase/ files for AI context
|
|
3
|
+
argument-hint: "[--full] [--update]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Analyze and document the codebase for AI agent context.
|
|
7
|
+
|
|
8
|
+
**What this does:**
|
|
9
|
+
1. Scans the project structure (entry points, modules, dependencies)
|
|
10
|
+
2. Identifies key files, patterns, and conventions
|
|
11
|
+
3. Writes structured summaries to `.codebase/`:
|
|
12
|
+
- `ARCHITECTURE.md` — high-level system design
|
|
13
|
+
- `CONVENTIONS.md` — naming, style, and patterns used in this project
|
|
14
|
+
- `DEPENDENCIES.md` — external packages and what they're used for
|
|
15
|
+
- `INDEX.md` — file-by-file inventory
|
|
16
|
+
|
|
17
|
+
**Flags:**
|
|
18
|
+
- `--full` — Deep scan (reads every file, slower but thorough)
|
|
19
|
+
- `--update` — Refresh existing `.codebase/` files with recent changes
|
|
20
|
+
|
|
21
|
+
**Why this matters:** Agents use `.codebase/` for context instead of re-scanning on every task.
|
|
22
|
+
|
|
23
|
+
## What Next?
|
|
24
|
+
|
|
25
|
+
1. **Start discussion** → `/fd-discuss`
|
|
26
|
+
2. **Write documentation** → `/fd-write-docs`
|
|
27
|
+
3. **View dashboard** → `/fd-dashboard`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Initialize or manage multi-repo configuration for microservice architecture. Adds, lists, checks status of, or removes repos from .planning/config.json.
|
|
3
|
+
argument-hint: "[--add <path> <role> | --list | --status | --remove <name>]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Manage the multi-repo registry in `.planning/config.json`.
|
|
7
|
+
|
|
8
|
+
**With no arguments:** show the current list of registered repos from `sub_repos`.
|
|
9
|
+
|
|
10
|
+
**Arguments:**
|
|
11
|
+
|
|
12
|
+
`--add <path> <role>` — Register a new repo. `path` is relative to the root repo's parent directory. `role` must be one of: `upstream-api`, `downstream-consumer`, `shared-lib`, `gateway`, `worker`. Prompts for `name`, `tech_stack`, and `owner_team` if not inferred.
|
|
13
|
+
|
|
14
|
+
`--list` — Print all registered repos as a table: name, path, role, tech_stack, owner_team.
|
|
15
|
+
|
|
16
|
+
`--status` — For each registered repo, check if the path resolves on disk, report the current git branch, and show whether a `.planning/` directory exists in that repo.
|
|
17
|
+
|
|
18
|
+
`--remove <name>` — Remove a repo from the registry by name. Does not delete the repo on disk.
|
|
19
|
+
|
|
20
|
+
**What this does:**
|
|
21
|
+
|
|
22
|
+
1. Reads `.planning/config.json`; creates the file with an empty `sub_repos: []` array if it does not exist
|
|
23
|
+
2. For `--add`: resolves the path, infers `name` from the directory name if not provided, writes the new entry to `sub_repos`
|
|
24
|
+
3. For `--list`: formats the `sub_repos` array as a readable table
|
|
25
|
+
4. For `--status`: walks each entry, checks `path` existence, runs `git -C <resolved_path> branch --show-current`
|
|
26
|
+
5. For `--remove`: removes the matching entry by `name`, writes back to config.json
|
|
27
|
+
|
|
28
|
+
**Example output (no args):**
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
Multi-Repo Registry (.planning/config.json)
|
|
32
|
+
|
|
33
|
+
Name Path Role Stack Team
|
|
34
|
+
─────────────────── ───────────────────── ──────────────────── ──────────────── ────────
|
|
35
|
+
user-service ../user-service upstream-api node+typescript platform
|
|
36
|
+
order-service ../order-service downstream-consumer node+typescript commerce
|
|
37
|
+
shared-types ../shared-types shared-lib node+typescript platform
|
|
38
|
+
api-gateway ../api-gateway gateway nginx+lua infra
|
|
39
|
+
|
|
40
|
+
4 repos registered. Run /fd-multi-repo --status to check path health.
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Example output (--status):**
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
Multi-Repo Status
|
|
47
|
+
|
|
48
|
+
Name Path Exists Branch .planning/
|
|
49
|
+
──────────────── ───────────────── ─────── ──────────────── ──────────
|
|
50
|
+
user-service ../user-service ✅ main ✅
|
|
51
|
+
order-service ../order-service ✅ feature/checkout ❌
|
|
52
|
+
shared-types ../shared-types ✅ main ❌
|
|
53
|
+
api-gateway ../api-gateway ❌ — —
|
|
54
|
+
|
|
55
|
+
Warning: api-gateway path does not exist on disk.
|
|
56
|
+
Warning: order-service and shared-types have no .planning/ — cross-repo planning context unavailable.
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**What Next?**
|
|
60
|
+
|
|
61
|
+
- `/fd-discuss` — discuss a change that spans multiple repos before planning it
|
|
62
|
+
- `/fd-new-feature` — plan and execute a feature; use with multi-repo context loaded
|
|
63
|
+
- `/fd-dashboard` — view progress across all registered repos
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Execute feature implementation workflow — orchestrator + parallel coder/researcher + reviewer + tester
|
|
3
|
+
argument-hint: "[feature-description]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Execute a new feature using FlowDeck's multi-agent workflow.
|
|
7
|
+
|
|
8
|
+
**What this does:**
|
|
9
|
+
1. If a confirmed PLAN.md exists: delegates steps to `@coder` in order
|
|
10
|
+
2. If no plan: first runs discuss → plan → confirm, then executes
|
|
11
|
+
3. Runs `@researcher` in parallel for any external APIs or docs needed
|
|
12
|
+
4. Runs `@reviewer` after each significant step to catch issues early
|
|
13
|
+
5. Runs `@tester` to write and run tests for implemented code
|
|
14
|
+
6. Updates STATE.md after each step
|
|
15
|
+
|
|
16
|
+
**Phase gate:** Requires `plan_confirmed = true` in STATE.md before execution begins.
|
|
17
|
+
|
|
18
|
+
**Parallel execution:** Independent steps are delegated simultaneously to maximize speed.
|
|
19
|
+
|
|
20
|
+
## What Next?
|
|
21
|
+
|
|
22
|
+
1. **Review the code** → `/fd-review-code`
|
|
23
|
+
2. **Write documentation** → `/fd-write-docs`
|
|
24
|
+
3. **Deploy check** → `/fd-deploy-check`
|
|
25
|
+
4. **Start next feature** → `/fd-new-feature [description]`
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Initialize a new FlowDeck project — creates .planning/ directory structure
|
|
3
|
+
argument-hint: "[project-name]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Initialize FlowDeck in the current project directory.
|
|
7
|
+
|
|
8
|
+
**What this does:**
|
|
9
|
+
1. Creates `.planning/` directory structure:
|
|
10
|
+
- `STATE.md` — current phase and status
|
|
11
|
+
- `PROJECT.md` — project overview (you fill this in)
|
|
12
|
+
- `phases/` — one subdirectory per roadmap phase
|
|
13
|
+
2. Optionally runs `/fd-map-codebase` to analyze existing code
|
|
14
|
+
3. Guides you to set the initial phase
|
|
15
|
+
|
|
16
|
+
**Use this when:** Starting a new feature sprint, onboarding to an existing project, or setting up FlowDeck for the first time.
|
|
17
|
+
|
|
18
|
+
**Next step:** Run `/fd-map-codebase` to document the codebase, then `/fd-discuss` to start planning.
|
|
19
|
+
|
|
20
|
+
## What Next?
|
|
21
|
+
|
|
22
|
+
1. **Map codebase** → `/fd-map-codebase`
|
|
23
|
+
2. **Start discussion** → `/fd-discuss`
|
|
24
|
+
3. **View dashboard** → `/fd-dashboard`
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create a detailed implementation plan from requirements — saves PLAN.md, requires confirmation before execution
|
|
3
|
+
argument-hint: "[phase-number]"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Create a step-by-step implementation plan for the current (or specified) phase.
|
|
7
|
+
|
|
8
|
+
**What this does:**
|
|
9
|
+
1. Reads `.planning/phases/phase-N/DISCUSS.md` for locked decisions
|
|
10
|
+
2. Reads `.codebase/ARCHITECTURE.md` for system context (if mapped)
|
|
11
|
+
3. Breaks the feature into ordered, atomic steps
|
|
12
|
+
4. Identifies dependencies between steps
|
|
13
|
+
5. Saves to `.planning/phases/phase-N/PLAN.md`
|
|
14
|
+
6. Asks for your confirmation before marking phase as `execute`-ready
|
|
15
|
+
|
|
16
|
+
**Plan format:**
|
|
17
|
+
```
|
|
18
|
+
## Phase N: [Name]
|
|
19
|
+
### Step 1: [Action] — [file path]
|
|
20
|
+
### Step 2: [Action] — [file path]
|
|
21
|
+
...
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**Next step:** Run `/fd-new-feature` to execute the confirmed plan.
|
|
25
|
+
|
|
26
|
+
## What Next?
|
|
27
|
+
|
|
28
|
+
After plan is confirmed, choose your next step:
|
|
29
|
+
|
|
30
|
+
1. **Start feature implementation** → `/fd-new-feature [description]`
|
|
31
|
+
2. **Revisit discussion** → `/fd-discuss [phase-number]`
|
|
32
|
+
3. **View progress** → `/fd-progress`
|
|
33
|
+
4. **Check dashboard** → `/fd-dashboard`
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Display current STATE.md, active PLAN.md, and recent results
|
|
3
|
+
---
|
|
4
|
+
Run the FlowDeck progress command to see current project state.
|
|
5
|
+
|
|
6
|
+
## What Next?
|
|
7
|
+
|
|
8
|
+
1. **Continue feature work** → `/fd-new-feature [description]`
|
|
9
|
+
2. **Fix a bug** → `/fd-fix-bug [issue]`
|
|
10
|
+
3. **View dashboard** → `/fd-dashboard`
|
|
11
|
+
4. **Check roadmap** → `/fd-roadmap`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Resume from last checkpoint — reloads STATE.md and PLAN.md context
|
|
3
|
+
---
|
|
4
|
+
Run the FlowDeck resume workflow to reload project context and continue from where you stopped.
|
|
5
|
+
|
|
6
|
+
## What Next?
|
|
7
|
+
|
|
8
|
+
1. **Continue feature work** → `/fd-new-feature [description]`
|
|
9
|
+
2. **View progress** → `/fd-progress`
|
|
10
|
+
3. **Check dashboard** → `/fd-dashboard`
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Parallel code review — reviewer + researcher + tester — aggregates into critical/major/minor report
|
|
3
|
+
argument-hint: "[scope: file, directory, or 'staged']"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run a comprehensive parallel code review.
|
|
7
|
+
|
|
8
|
+
**What this does:**
|
|
9
|
+
1. Determines scope: staged changes, a file/directory, or the whole PR
|
|
10
|
+
2. Runs `@reviewer` (security, quality, logic), `@researcher` (API correctness), and `@tester` (test coverage) in parallel
|
|
11
|
+
3. Aggregates findings into a single report ranked: CRITICAL → HIGH → MEDIUM → LOW
|
|
12
|
+
4. Proposes fixes for every CRITICAL and HIGH finding
|
|
13
|
+
5. Skips stylistic preferences — only real bugs and security issues
|
|
14
|
+
|
|
15
|
+
**Output format:**
|
|
16
|
+
```
|
|
17
|
+
## Code Review Report
|
|
18
|
+
### CRITICAL [n]
|
|
19
|
+
- [finding]: [file:line] — [fix]
|
|
20
|
+
### HIGH [n]
|
|
21
|
+
...
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## What Next?
|
|
25
|
+
|
|
26
|
+
1. **Fix critical issues found** → `/fd-fix-bug [issue description]`
|
|
27
|
+
2. **Deploy check** → `/fd-deploy-check`
|
|
28
|
+
3. **Update documentation** → `/fd-write-docs`
|
|
29
|
+
4. **Check project progress** → `/fd-progress`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: View or update the project roadmap — shows phase statuses and milestones
|
|
3
|
+
---
|
|
4
|
+
Run the FlowDeck roadmap workflow to view or update project phases and milestones.
|
|
5
|
+
|
|
6
|
+
## What Next?
|
|
7
|
+
|
|
8
|
+
1. **Start next phase** → `/fd-new-feature [description]`
|
|
9
|
+
2. **View progress** → `/fd-progress`
|
|
10
|
+
3. **Check dashboard** → `/fd-dashboard`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: View or update FlowDeck settings — model assignments, guard enforcement, workspace mode
|
|
3
|
+
---
|
|
4
|
+
Run the FlowDeck settings command to view or modify configuration.
|
|
5
|
+
|
|
6
|
+
## What Next?
|
|
7
|
+
|
|
8
|
+
1. **View dashboard** → `/fd-dashboard`
|
|
9
|
+
2. **Check progress** → `/fd-progress`
|
|
10
|
+
3. **Start working** → `/fd-new-feature [description]`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Write documentation — explore public APIs, writer drafts, reviewer accuracy check
|
|
3
|
+
---
|
|
4
|
+
Run the FlowDeck write-docs workflow to generate accurate project documentation.
|
|
5
|
+
|
|
6
|
+
## What Next?
|
|
7
|
+
|
|
8
|
+
1. **Review documentation** → `/fd-review-code staged`
|
|
9
|
+
2. **Deploy check** → `/fd-deploy-check`
|
|
10
|
+
3. **Create checkpoint** → `/fd-checkpoint`
|