all-for-claudecode 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/.claude-plugin/marketplace.json +4 -4
  2. package/.claude-plugin/plugin.json +3 -4
  3. package/MIGRATION.md +10 -7
  4. package/README.md +68 -119
  5. package/agents/afc-architect.md +16 -0
  6. package/agents/afc-impl-worker.md +40 -0
  7. package/agents/afc-security.md +11 -0
  8. package/bin/cli.mjs +1 -1
  9. package/commands/analyze.md +6 -7
  10. package/commands/architect.md +5 -7
  11. package/commands/auto.md +355 -102
  12. package/commands/checkpoint.md +3 -4
  13. package/commands/clarify.md +8 -1
  14. package/commands/debug.md +40 -3
  15. package/commands/doctor.md +12 -13
  16. package/commands/ideate.md +191 -0
  17. package/commands/implement.md +211 -66
  18. package/commands/init.md +76 -61
  19. package/commands/launch.md +181 -0
  20. package/commands/plan.md +86 -22
  21. package/commands/principles.md +6 -2
  22. package/commands/resume.md +1 -2
  23. package/commands/review.md +68 -18
  24. package/commands/security.md +10 -13
  25. package/commands/spec.md +60 -3
  26. package/commands/tasks.md +19 -4
  27. package/commands/test.md +24 -6
  28. package/docs/phase-gate-protocol.md +6 -6
  29. package/hooks/hooks.json +29 -3
  30. package/package.json +19 -11
  31. package/schemas/hooks.schema.json +75 -0
  32. package/schemas/marketplace.schema.json +52 -0
  33. package/schemas/plugin.schema.json +53 -0
  34. package/scripts/afc-bash-guard.sh +6 -6
  35. package/scripts/afc-blast-radius.sh +418 -0
  36. package/scripts/afc-config-change.sh +6 -4
  37. package/scripts/afc-consistency-check.sh +261 -0
  38. package/scripts/afc-dag-validate.mjs +94 -0
  39. package/scripts/afc-dag-validate.sh +142 -0
  40. package/scripts/afc-failure-hint.sh +6 -4
  41. package/scripts/afc-parallel-validate.mjs +81 -0
  42. package/scripts/afc-parallel-validate.sh +33 -45
  43. package/scripts/afc-permission-request.sh +56 -11
  44. package/scripts/afc-pipeline-manage.sh +46 -46
  45. package/scripts/afc-preflight-check.sh +6 -3
  46. package/scripts/afc-schema-validate.sh +225 -0
  47. package/scripts/afc-session-end.sh +5 -5
  48. package/scripts/afc-state.sh +256 -0
  49. package/scripts/afc-stop-gate.sh +32 -24
  50. package/scripts/afc-subagent-context.sh +15 -6
  51. package/scripts/afc-subagent-stop.sh +4 -2
  52. package/scripts/afc-task-completed-gate.sh +19 -25
  53. package/scripts/afc-teammate-idle.sh +9 -14
  54. package/scripts/afc-test-pre-gen.sh +141 -0
  55. package/scripts/afc-timeline-log.sh +9 -6
  56. package/scripts/afc-user-prompt-submit.sh +8 -10
  57. package/scripts/afc-worktree-create.sh +56 -0
  58. package/scripts/afc-worktree-remove.sh +47 -0
  59. package/scripts/install-shellspec.sh +38 -0
  60. package/scripts/pre-compact-checkpoint.sh +6 -4
  61. package/scripts/session-start-context.sh +9 -8
  62. package/scripts/track-afc-changes.sh +6 -9
  63. package/templates/afc.config.template.md +12 -76
  64. package/templates/afc.config.express-api.md +0 -99
  65. package/templates/afc.config.monorepo.md +0 -98
  66. package/templates/afc.config.nextjs-fsd.md +0 -107
  67. package/templates/afc.config.react-spa.md +0 -96
@@ -5,15 +5,15 @@
5
5
  "email": "relee6203@gmail.com"
6
6
  },
7
7
  "metadata": {
8
- "description": "Automated pipeline for Claude Code — spec → plan → tasks → implement → review → clean",
9
- "version": "2.0.0"
8
+ "description": "Automated pipeline for Claude Code — spec → plan → implement → review → clean",
9
+ "version": "2.2.0"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "afc",
14
14
  "source": "./",
15
- "description": "Automated pipeline for Claude Code. Automates the full development cycle: spec → plan → tasks → implement → review → clean.",
16
- "version": "2.0.0",
15
+ "description": "Automated pipeline for Claude Code. Automates the full development cycle: spec → plan → implement → review → clean.",
16
+ "version": "2.2.0",
17
17
  "category": "automation",
18
18
  "tags": ["pipeline", "automation", "spec", "plan", "implement", "review", "critic-loop"]
19
19
  }
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "afc",
3
- "version": "2.0.0",
4
- "description": "Automated pipeline for Claude Code. Automates the full development cycle: spec → plan → tasks → implement → review → clean.",
3
+ "version": "2.2.0",
4
+ "description": "Automated pipeline for Claude Code. Automates the full development cycle: spec → plan → implement → review → clean.",
5
5
  "author": { "name": "jhlee0409", "email": "relee6203@gmail.com" },
6
6
  "homepage": "https://github.com/jhlee0409/all-for-claudecode",
7
7
  "repository": "https://github.com/jhlee0409/all-for-claudecode",
8
8
  "license": "MIT",
9
9
  "keywords": ["pipeline", "automation", "spec", "plan", "implement", "review", "critic-loop"],
10
- "commands": "./commands/",
11
- "hooks": "./hooks/hooks.json"
10
+ "commands": "./commands/"
12
11
  }
package/MIGRATION.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## v2.0 — Rebrand: selfish-pipeline → all-for-claudecode
4
4
 
5
- > All-for-ClaudeCode v2.0 renames the package, plugin prefix, scripts, agents, and state files from `selfish` to `afc`.
5
+ > all-for-claudecode v2.0 renames the package, plugin prefix, scripts, agents, and state files from `selfish` to `afc`.
6
6
 
7
7
  ### What Changed
8
8
 
@@ -13,7 +13,7 @@
13
13
  | Command prefix | `/selfish:spec` | `/afc:spec` |
14
14
  | Script prefix | `selfish-*.sh` | `afc-*.sh` |
15
15
  | Agent names | `selfish-architect`, `selfish-security` | `afc-architect`, `afc-security` |
16
- | State files | `.selfish-active`, `.selfish-phase`, etc. | `.afc-active`, `.afc-phase`, etc. |
16
+ | State files | `.selfish-active`, `.selfish-phase`, etc. | `.claude/.afc-state.json` (single consolidated file) |
17
17
  | Config file | `selfish.config.md` | `afc.config.md` |
18
18
  | Git tags | `selfish/pre-auto` | `afc/pre-auto` |
19
19
  | CLAUDE.md block | `SELFISH:START` / `SELFISH:END` | `AFC:START` / `AFC:END` |
@@ -55,15 +55,18 @@ Replace the `SELFISH:START` / `SELFISH:END` block in your project's CLAUDE.md:
55
55
 
56
56
  Or simply run `/afc:init` to regenerate the block.
57
57
 
58
- #### 4. Rename state files (if pipeline was active)
58
+ #### 4. Migrate state files (if pipeline was active)
59
+
60
+ v2.0 consolidated multiple state flag files (`.selfish-active`, `.selfish-phase`, `.selfish-ci-passed`, `.selfish-changes.log`) into a single JSON file (`.claude/.afc-state.json`). If you had an active pipeline:
59
61
 
60
62
  ```bash
61
63
  cd .claude
62
- for f in .selfish-*; do
63
- [ -f "$f" ] && mv "$f" "${f/.selfish-/.afc-}"
64
- done
64
+ # Remove old individual flag files
65
+ rm -f .selfish-active .selfish-phase .selfish-ci-passed .selfish-changes.log
66
+ # Rename directories
65
67
  [ -d selfish ] && mv selfish afc
66
68
  [ -f selfish.config.md ] && mv selfish.config.md afc.config.md
69
+ # Note: .afc-state.json is created automatically on next pipeline start
67
70
  ```
68
71
 
69
72
  #### 5. Update git tags
@@ -159,9 +162,9 @@ For new projects, you can auto-generate it with `/afc:init`.
159
162
  ## What Stays the Same
160
163
 
161
164
  - `.claude/afc.config.md` file format and path
162
- - `.afc-*` state file paths
163
165
  - `git tag afc/pre-*` safety tags
164
166
  - Internal logic of hook scripts
167
+ - Pipeline state concept (now consolidated in `.claude/.afc-state.json`)
165
168
 
166
169
  ## What Changed (v1.2.2+)
167
170
 
package/README.md CHANGED
@@ -1,99 +1,73 @@
1
- # All-for-ClaudeCode
1
+ <div align="center">
2
+ <img src="https://github.com/user-attachments/assets/9e23029e-e326-4cfa-b329-3bdd1006aecd" alt="all-for-claudecode" width="640" />
3
+ </div>
2
4
 
3
- **Claude Code plugin that automates the full development cycle — spec → plan → tasks → implement → review → clean.**
5
+ # all-for-claudecode
6
+
7
+ **Claude Code plugin that automates the full development cycle — spec → plan → implement → review → clean.**
4
8
 
5
9
  [![npm version](https://img.shields.io/npm/v/all-for-claudecode)](https://www.npmjs.com/package/all-for-claudecode)
10
+ [![npm downloads](https://img.shields.io/npm/dm/all-for-claudecode)](https://www.npmjs.com/package/all-for-claudecode)
6
11
  [![license](https://img.shields.io/github/license/jhlee0409/all-for-claudecode)](./LICENSE)
7
- [![test](https://img.shields.io/badge/tests-161%20passed-brightgreen)](#how-it-works)
8
- [![hooks](https://img.shields.io/badge/hooks-15%20events-blue)](#15-hook-events)
9
- [![commands](https://img.shields.io/badge/commands-18-orange)](#18-slash-commands)
10
-
11
- > Zero-dependency automation pipeline for Claude Code. One command (`/afc:auto`) runs the entire cycle: write specs, design plans, break into tasks, implement code, review quality, and clean up — all with built-in CI gates and critic loops.
12
-
13
- ## What is All-for-ClaudeCode?
12
+ [![test](https://img.shields.io/badge/tests-passing-brightgreen)](#how-it-works)
14
13
 
15
- All-for-ClaudeCode is a **Claude Code plugin** that transforms your development workflow into a fully automated pipeline. Instead of manually prompting Claude through each development phase, you run a single command and the pipeline handles everything from writing feature specifications to final code review.
16
-
17
- - **18 slash commands** for every phase of development
18
- - **15 hook events** with 3 handler types (shell scripts, LLM prompts, subagents)
19
- - **5 project presets** for popular stacks (Next.js, React SPA, Express API, Monorepo)
20
- - **Persistent memory agents** that learn across sessions
21
- - **Built-in CI gates** that physically prevent skipping quality checks
14
+ > One command (`/afc:auto`) runs the entire cycle. Zero runtime dependenciespure markdown commands + bash hook scripts.
22
15
 
23
16
  ## Quick Start
24
17
 
25
- ### Option A: Inside Claude Code (`/plugin`)
26
-
27
- ```
18
+ ```bash
19
+ # Option A: Inside Claude Code
28
20
  /plugin marketplace add jhlee0409/all-for-claudecode
29
21
  /plugin install afc@all-for-claudecode
30
- ```
31
-
32
- Or use the interactive UI: type `/plugin` → Manage → Add marketplace → `jhlee0409/all-for-claudecode` → Discover → install **afc**.
33
22
 
34
- ### Option B: One-line install (via npx)
35
-
36
- ```bash
23
+ # Option B: npx
37
24
  npx all-for-claudecode
38
25
  ```
39
26
 
40
- Interactive installer — choose scope (user / project / local) and done.
41
-
42
- ### Option C: Claude Code CLI
43
-
44
- ```bash
45
- claude plugin marketplace add jhlee0409/all-for-claudecode
46
- claude plugin install afc@all-for-claudecode --scope user
47
- ```
48
-
49
- ### Then, inside Claude Code:
27
+ Then:
50
28
 
51
29
  ```
52
30
  /afc:init # Detect your stack, generate config
53
31
  /afc:auto "Add user authentication" # Run the full pipeline
54
32
  ```
55
33
 
56
- That's it. The pipeline will:
34
+ The pipeline will:
57
35
  1. Write a feature spec with acceptance criteria
58
36
  2. Design an implementation plan with file change map
59
- 3. Break the plan into parallelizable tasks
60
- 4. Implement each task with CI verification
61
- 5. Run a code review with security scan
62
- 6. Clean up artifacts and prepare for commit
63
-
64
- ## Features
65
-
66
- ### Full Auto Pipeline
37
+ 3. Implement tasks with CI gates (auto task decomposition + parallel execution)
38
+ 4. Run code review with architecture/security agent analysis
39
+ 5. Clean up artifacts and prepare for commit
67
40
 
68
- ```
69
- /afc:auto "feature description"
70
- ```
71
-
72
- Runs all 6 phases automatically with **Critic Loop** quality checks at each gate:
41
+ ## How It Works
73
42
 
74
43
  ```
75
- Spec (1/6) Plan (2/6) → Tasks (3/6) → Implement (4/6) → Review (5/6) → Clean (6/6)
44
+ /afc:auto "Add feature X"
45
+
46
+ Spec (1/5) → Plan (2/5) → Implement (3/5) → Review (4/5) → Clean (5/5)
47
+ │ │ │ │ │
48
+ │ │ │ │ └─ Artifact cleanup
49
+ │ │ │ └─ 8 perspectives + agent review
50
+ │ │ └─ Auto task decomposition, parallel execution, CI gates
51
+ │ └─ File change map, ADR recording, research persistence
52
+ └─ Acceptance criteria, pre-implementation gates
53
+
54
+ Hooks run automatically at each step.
55
+ CI failure → debug-based RCA (not blind retry).
56
+ Critic Loops verify quality at each gate until convergence.
76
57
  ```
77
58
 
78
- ### 18 Slash Commands
79
-
80
- **User and model (unrestricted):**
59
+ ## Slash Commands
81
60
 
82
61
  | Command | Description |
83
62
  |---|---|
84
- | `/afc:auto` | Full Auto pipeline — runs all 6 phases |
63
+ | `/afc:auto` | Full Auto pipeline — runs all 5 phases |
85
64
  | `/afc:spec` | Write feature specification with acceptance criteria |
86
65
  | `/afc:plan` | Design implementation plan with file change map |
87
66
  | `/afc:implement` | Execute code implementation with CI gates |
88
67
  | `/afc:test` | Test strategy planning and test writing |
89
- | `/afc:review` | Code review with security scanning |
68
+ | `/afc:review` | Code review with architecture/security scanning |
90
69
  | `/afc:research` | Technical research with persistent storage |
91
70
  | `/afc:debug` | Bug diagnosis and fix |
92
-
93
- **User-only** (`disable-model-invocation: true`):
94
-
95
- | Command | Description |
96
- |---|---|
97
71
  | `/afc:init` | Project setup — detects stack and generates config |
98
72
  | `/afc:doctor` | Diagnose project health and plugin setup |
99
73
  | `/afc:architect` | Architecture analysis (persistent memory) |
@@ -101,16 +75,11 @@ Spec (1/6) → Plan (2/6) → Tasks (3/6) → Implement (4/6) → Review (5/6)
101
75
  | `/afc:principles` | Project principles management |
102
76
  | `/afc:checkpoint` | Save session state |
103
77
  | `/afc:resume` | Restore session state |
104
-
105
- **Model-only** (`user-invocable: false`):
106
-
107
- | Command | Description |
108
- |---|---|
109
- | `/afc:tasks` | Break plan into parallelizable tasks |
78
+ | `/afc:tasks` | Task decomposition (auto-generated by implement) |
110
79
  | `/afc:analyze` | Verify artifact consistency |
111
80
  | `/afc:clarify` | Resolve spec ambiguities |
112
81
 
113
- ### 15 Hook Events
82
+ ## Hook Events
114
83
 
115
84
  Every hook fires automatically — no configuration needed after install.
116
85
 
@@ -121,7 +90,7 @@ Every hook fires automatically — no configuration needed after install.
121
90
  | `PreToolUse` | Blocks dangerous commands (`push --force`, `reset --hard`) |
122
91
  | `PostToolUse` | Tracks file changes + auto-formats code |
123
92
  | `SubagentStart` | Injects pipeline context into subagents |
124
- | `Stop` | CI gate (shell) + code completeness check (AI agent) |
93
+ | `Stop` | CI gate (shell) + code completeness check (agent) |
125
94
  | `SessionEnd` | Warns about unfinished pipeline |
126
95
  | `PostToolUseFailure` | Diagnostic hints for known error patterns |
127
96
  | `Notification` | Desktop alerts (macOS/Linux) |
@@ -131,25 +100,32 @@ Every hook fires automatically — no configuration needed after install.
131
100
  | `PermissionRequest` | Auto-allows CI commands during implement/review |
132
101
  | `ConfigChange` | Audits/blocks settings changes during active pipeline |
133
102
  | `TeammateIdle` | Prevents Agent Teams idle during implement/review |
103
+ | `WorktreeCreate` | Sets up worktree isolation for parallel workers |
104
+ | `WorktreeRemove` | Cleans up worktree after worker completion |
105
+
106
+ Handler types: `command` (shell scripts, all events), `prompt` (LLM single-turn, TaskCompleted), `agent` (subagent with tools, Stop).
134
107
 
135
- ### 3 Hook Handler Types
108
+ ## Persistent Memory Agents
136
109
 
137
- | Type | Description | Use Case |
138
- |---|---|---|
139
- | `command` | Shell script execution (deterministic) | All 15 events |
140
- | `prompt` | LLM single-turn evaluation (haiku) | TaskCompleted |
141
- | `agent` | Subagent with file access tools | Stop |
110
+ | Agent | Role |
111
+ |---|---|
112
+ | `afc-architect` | Remembers ADR decisions and architecture patterns across sessions. Auto-invoked during Plan (ADR recording) and Review (architecture compliance). |
113
+ | `afc-security` | Remembers vulnerability patterns and false positives across sessions. Auto-invoked during Review (security scanning). Runs in isolated worktree. |
114
+ | `afc-impl-worker` | Parallel implementation worker. Receives pre-assigned tasks from orchestrator. Ephemeral (no memory). |
115
+
116
+ ## Task Orchestration
142
117
 
143
- ### Persistent Memory Agents
118
+ The implement phase automatically selects execution strategy:
144
119
 
145
- Two custom agents that **learn across sessions**:
120
+ | Parallel tasks in phase | Mode |
121
+ |---|---|
122
+ | 0 | Sequential — one task at a time |
123
+ | 1–5 | Parallel Batch — concurrent Task() calls |
124
+ | 6+ | Swarm — orchestrator pre-assigns tasks to worker agents (max 5) |
146
125
 
147
- | Agent | Role | Memory |
148
- |---|---|---|
149
- | `afc-architect` | Architecture analysis — remembers ADR decisions and patterns | `.claude/agent-memory/afc-architect/` |
150
- | `afc-security` | Security scan — remembers vulnerability patterns and false positives | `.claude/agent-memory/afc-security/` |
126
+ Dependencies are tracked via DAG. CI gate + Mini-Review + Auto-Checkpoint run at each phase boundary.
151
127
 
152
- ### Project Presets
128
+ ## Project Presets
153
129
 
154
130
  | Preset | Stack |
155
131
  |---|---|
@@ -159,57 +135,30 @@ Two custom agents that **learn across sessions**:
159
135
  | `express-api` | Express + TypeScript + Prisma + Jest |
160
136
  | `monorepo` | Turborepo + pnpm workspace |
161
137
 
162
- ## How It Works
163
-
164
- ```
165
- ┌─────────────────────────────────────────────┐
166
- │ /afc:auto "Add feature X" │
167
- ├─────────────────────────────────────────────┤
168
- │ Phase 1: Spec → Critic Loop → Gate ✓ │
169
- │ Phase 2: Plan → Critic Loop → Gate ✓ │
170
- │ Phase 3: Tasks → Critic Loop → Gate ✓ │
171
- │ Phase 4: Implement → CI Gate → Gate ✓ │
172
- │ Phase 5: Review → Security Scan → Gate ✓ │
173
- │ Phase 6: Clean → Artifacts removed │
174
- ├─────────────────────────────────────────────┤
175
- │ 15 hooks run automatically at each step │
176
- │ Stop/TaskCompleted gates block if CI fails │
177
- └─────────────────────────────────────────────┘
178
- ```
179
-
180
138
  ## Configuration
181
139
 
182
- Initialize your project:
183
-
184
- ```bash
140
+ ```
185
141
  /afc:init
186
142
  ```
187
143
 
188
- This detects your tech stack and generates `.claude/afc.config.md` with:
189
- - CI/lint/test commands
190
- - Architecture style and layers
191
- - Framework-specific settings
192
- - Code style conventions
144
+ Detects your tech stack and generates `.claude/afc.config.md` with CI/lint/test commands, architecture rules, framework settings, and code style conventions.
193
145
 
194
146
  ## FAQ
195
147
 
196
- ### What is all-for-claudecode?
197
- A Claude Code plugin that automates the entire development cycle (spec → plan → tasks → implement → review → clean) through 18 slash commands and 15 hook events.
198
-
199
- ### How does it compare to manual Claude Code workflows?
200
- Instead of manually prompting each step, all-for-claudecode orchestrates the full cycle with built-in quality gates that physically prevent skipping CI or security checks.
201
-
202
148
  ### Does it work with any project?
203
- Yes. Run `/afc:init` to auto-detect your stack, or use one of the 5 presets (Next.js, React SPA, Express API, Monorepo, or generic template).
149
+ Yes. Run `/afc:init` to auto-detect your stack, or pick a preset.
204
150
 
205
151
  ### Does it require any dependencies?
206
- No. Zero runtime dependencies — pure markdown commands + bash hook scripts.
152
+ No. Pure markdown commands + bash hook scripts.
153
+
154
+ ### What happens if CI fails during the pipeline?
155
+ Debug-based RCA: traces the error, forms a hypothesis, applies a targeted fix. Halts after 3 failed attempts with full diagnosis.
207
156
 
208
- ### How do I install it?
209
- Inside Claude Code, run `/plugin marketplace add jhlee0409/all-for-claudecode` then `/plugin install afc@all-for-claudecode`. Alternatively, run `npx all-for-claudecode` from your terminal for a guided install.
157
+ ### Can I run individual phases?
158
+ Yes. Each phase has its own command (`/afc:spec`, `/afc:plan`, `/afc:implement`, `/afc:review`). `/afc:auto` runs them all.
210
159
 
211
- ### What Claude Code version is required?
212
- Claude Code with plugin support (2025+). The plugin uses standard hooks, commands, and agents APIs.
160
+ ### What are Critic Loops?
161
+ Convergence-based quality checks after each phase. They evaluate output against criteria (completeness, feasibility, architecture compliance) and auto-fix issues until stable. 4 verdicts: PASS, FAIL, ESCALATE (asks user), DEFER.
213
162
 
214
163
  ## License
215
164
 
@@ -18,6 +18,22 @@ skills:
18
18
 
19
19
  You are an architecture analysis agent for the current project.
20
20
 
21
+ ## Pipeline Integration
22
+
23
+ This agent is invoked automatically during the auto pipeline at two points:
24
+
25
+ ### Plan Phase — ADR Recording
26
+ - **Input**: Architecture Decision + File Change Map sections from plan.md
27
+ - **Task**: Check for conflicts with existing ADRs, record new decisions
28
+ - **Output**: `{ decisions_recorded: N, conflicts: [{ existing: "...", new: "...", reason: "..." }] }`
29
+ - If conflicts found: orchestrator ESCALATEs to user
30
+
31
+ ### Review Phase — Architecture Review (Perspective B)
32
+ - **Input**: List of changed files from `git diff`
33
+ - **Task**: Review files for architecture compliance, cross-reference with ADRs
34
+ - **Output**: Findings as `severity (Critical/Warning/Info), file:line, issue, suggested fix`
35
+ - Findings are merged into the consolidated review report
36
+
21
37
  ## Reference Documents
22
38
 
23
39
  Before performing analysis, read these shared reference documents:
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: afc-impl-worker
3
+ description: "Parallel implementation worker — executes assigned tasks from the pipeline task pool with worktree isolation support."
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ model: sonnet
12
+ ---
13
+
14
+ You are a parallel implementation worker for the all-for-claudecode pipeline.
15
+
16
+ ## Workflow
17
+
18
+ The orchestrator pre-assigns tasks to you via the prompt. Do NOT self-claim tasks via TaskList/TaskUpdate — this avoids last-write-wins race conditions.
19
+
20
+ 1. Read the **Implementation Context** section in your prompt first — this contains the feature objective, constraints, edge cases, and prohibitions from the original spec/plan
21
+ 2. Read the task list provided in your prompt (orchestrator pre-assigned)
22
+ 3. For each assigned task, in order:
23
+ a. Read all files you need to modify BEFORE making changes
24
+ b. Implement the task following the plan design and Implementation Context constraints
25
+ c. Verify with the project's gate command if applicable
26
+ 4. Return a structured summary of completed work:
27
+ - Files changed (with paths)
28
+ - Key decisions made during implementation
29
+ - Issues encountered or concerns
30
+ - Gate command result
31
+ 5. Do NOT call TaskList or TaskUpdate — the orchestrator handles task state management
32
+
33
+ ## Rules
34
+
35
+ - Always read existing files before modifying them
36
+ - Follow the project's shell script conventions: `set -euo pipefail`, `trap cleanup EXIT`, jq-first parsing
37
+ - Use `printf '%s\n' "$VAR"` instead of `echo "$VAR"` for external data
38
+ - All scripts must pass shellcheck
39
+ - Do not modify files outside your assigned task's scope
40
+ - If a task fails, report the error and move to the next task
@@ -18,6 +18,17 @@ skills:
18
18
 
19
19
  You are a security scanning agent for the current project.
20
20
 
21
+ ## Pipeline Integration
22
+
23
+ This agent is invoked automatically during the auto pipeline:
24
+
25
+ ### Review Phase — Security Review (Perspective C)
26
+ - **Input**: List of changed files from `git diff`
27
+ - **Task**: Scan for security vulnerabilities, filter known false positives from memory
28
+ - **Output**: Findings as `severity (Critical/Warning/Info), file:line, issue, suggested fix`
29
+ - Findings are merged into the consolidated review report
30
+ - Check for: command injection, path traversal, unvalidated input, sensitive data exposure, shell escaping issues
31
+
21
32
  ## Reference Documents
22
33
 
23
34
  Before performing scans, read these shared reference documents:
package/bin/cli.mjs CHANGED
@@ -40,7 +40,7 @@ function run(cmd) {
40
40
 
41
41
  async function main() {
42
42
  console.log();
43
- console.log(" All-for-ClaudeCode — Claude Code Plugin Installer");
43
+ console.log(" all-for-claudecode — Claude Code Plugin Installer");
44
44
  console.log(" ===================================================");
45
45
  console.log();
46
46
 
@@ -22,13 +22,12 @@ model: haiku
22
22
 
23
23
  ## Config Load
24
24
 
25
- Read the following settings from `CLAUDE.md` or `.claude/CLAUDE.md` at the project root and assign to the `config` variable:
25
+ **Always** read `.claude/afc.config.md` first. This file contains free-form markdown sections:
26
+ - `## Architecture` — architecture pattern, layers, import rules (primary reference for this command)
27
+ - `## Code Style` — language, naming conventions, lint rules
28
+ - `## Project Context` — framework, state management, testing, etc.
26
29
 
27
- ```
28
- config.architecture = the architecture pattern used in the project
29
- (e.g., "FSD", "Clean Architecture", "Layered", "Modular Monolith")
30
- → Architecture standard specified in CLAUDE.md. Assume "Layered Architecture" if not present.
31
- ```
30
+ If config file is missing: read `CLAUDE.md` for architecture info. Assume "Layered Architecture" if neither source has it.
32
31
 
33
32
  ## Execution Steps
34
33
 
@@ -123,4 +122,4 @@ Analysis complete
123
122
 
124
123
  - **Read-only**: Do not modify any files. Report only.
125
124
  - **Avoid false positives**: Do not over-flag ambiguity. Consider context.
126
- - **Optional**: Not required in the pipeline. Can proceed plan → tasks → implement directly.
125
+ - **Optional**: Not required in the pipeline. Can proceed plan → implement directly.
@@ -2,7 +2,6 @@
2
2
  name: afc:architect
3
3
  description: "Architecture analysis and design advice"
4
4
  argument-hint: "[analysis target or design question]"
5
- disable-model-invocation: true
6
5
  context: fork
7
6
  agent: afc-architect
8
7
  allowed-tools:
@@ -27,13 +26,12 @@ model: sonnet
27
26
 
28
27
  ## Config Load
29
28
 
30
- Read the following settings from `CLAUDE.md` or `.claude/CLAUDE.md` at the project root and assign to the `config` variable:
29
+ **Always** read `.claude/afc.config.md` first. This file contains free-form markdown sections:
30
+ - `## Architecture` — architecture pattern, layers, import rules (primary reference for this command)
31
+ - `## Code Style` — language, naming conventions, lint rules
32
+ - `## Project Context` — framework, state management, testing, etc.
31
33
 
32
- ```
33
- config.architecture = the architecture pattern used in the project
34
- (e.g., "FSD", "Clean Architecture", "Layered", "Modular Monolith")
35
- → Architecture standard specified in CLAUDE.md. Assume "Layered Architecture" if not present.
36
- ```
34
+ If config file is missing: read `CLAUDE.md` for architecture info. Assume "Layered Architecture" if neither source has it.
37
35
 
38
36
  ## Execution Steps
39
37