Skip to content

Commit 9f0d4c9

Browse files
fix(ai-workflow): Stop plan-phases from auto-implementing and fix implement-phases plan reading
- Add explicit Instructions and Important sections to workflow-plan-phases to stop after planning - Add plan-only enforcement to plan-phases SKILL.md - Fix workflow-implement-phases to read plan file argument and auto-discover plans in docs/plans/ - Update all command references from /plan-phases to /workflow-plan-phases format in README - Bump ai-workflow to v1.0.2 and marketplace to v1.6.2
1 parent bde5868 commit 9f0d4c9

9 files changed

Lines changed: 114 additions & 42 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"metadata": {
88
"description": "A curated list of custom Claude Code plugins, agents, and skills for developers.",
9-
"version": "1.6.1",
9+
"version": "1.6.2",
1010
"pluginRoot": "./plugins"
1111
},
1212
"plugins": [
@@ -142,7 +142,7 @@
142142
"name": "ai-workflow",
143143
"source": "./plugins/ai-workflow",
144144
"description": "AI-powered development workflow automation - Phase-based planning, implementation orchestration, and preflight code quality checks for efficient sub-agent execution",
145-
"version": "1.0.1",
145+
"version": "1.0.2",
146146
"keywords": [
147147
"ai",
148148
"workflow",

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.6.2] - 2025-12-12
11+
12+
### Fixed
13+
14+
#### AI-Workflow Plugin (v1.0.2)
15+
16+
- **Fixed `/workflow-plan-phases` proceeding to implementation after creating plan**
17+
- Added explicit "Instructions" section with step-by-step workflow
18+
- Added "Important" section emphasizing planning-only scope
19+
- Command now stops after presenting the plan and directs users to `/workflow-implement-phases` for execution
20+
- Updated skill file with "IMPORTANT: Planning Only — Do Not Implement" section
21+
22+
- **Fixed `/workflow-implement-phases` not reading the plan file argument**
23+
- Added explicit "Instructions" section telling Claude to read the plan file
24+
- Added automatic plan discovery: if no file provided, searches `docs/plans/` and lets user pick
25+
- Plan file argument is now optional (defaults to searching `docs/plans/`)
26+
- Updated workflow step 1 to explicitly use Read tool for plan document
27+
1028
## [1.6.1] - 2025-12-10
1129

1230
### Changed
@@ -389,7 +407,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
389407

390408
- README.md, CLAUDE.md, individual plugin READMEs, and MIT license
391409

392-
[Unreleased]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v1.6.1...HEAD
410+
[Unreleased]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v1.6.2...HEAD
411+
[1.6.2]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v1.6.1...v1.6.2
393412
[1.6.1]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v1.6.0...v1.6.1
394413
[1.6.0]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v1.5.4...v1.6.0
395414
[1.5.4]: https://github.com/charlesjones-dev/claude-code-plugins-dev/compare/v1.5.3...v1.5.4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Claude Code Plugins for Developers
22

3-
[![Version](https://img.shields.io/badge/version-1.6.1-blue.svg)](https://github.com/charlesjones-dev/claude-code-plugins-dev/releases)
3+
[![Version](https://img.shields.io/badge/version-1.6.2-blue.svg)](https://github.com/charlesjones-dev/claude-code-plugins-dev/releases)
44
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
55
[![GitHub Issues](https://img.shields.io/github/issues/charlesjones-dev/claude-code-plugins-dev.svg)](https://github.com/charlesjones-dev/claude-code-plugins-dev/issues)
66
[![GitHub Stars](https://img.shields.io/github/stars/charlesjones-dev/claude-code-plugins-dev.svg)](https://github.com/charlesjones-dev/claude-code-plugins-dev/stargazers)

plugins/ai-workflow/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ai-workflow",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "AI-powered development workflow automation - Phase-based planning, implementation orchestration, and preflight code quality checks for efficient sub-agent execution",
55
"author": {
66
"name": "Charles Jones",

plugins/ai-workflow/README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Provides tools for managing complex development workflows including breaking fea
1818

1919
## Available Commands
2020

21-
### `/plan-phases`
21+
### `/workflow-plan-phases`
2222

2323
Create structured implementation plans from feature descriptions, optimized for context-efficient sub-agent execution.
2424

@@ -35,8 +35,8 @@ Create structured implementation plans from feature descriptions, optimized for
3535
**Usage:**
3636

3737
```
38-
/plan-phases "Build a user authentication system with OAuth, MFA, and session management"
39-
/plan-phases --output=docs/plans/auth-system.md "Build authentication system..."
38+
/workflow-plan-phases "Build a user authentication system with OAuth, MFA, and session management"
39+
/workflow-plan-phases --output=docs/plans/auth-system.md "Build authentication system..."
4040
```
4141

4242
**Before (manual planning):**
@@ -51,15 +51,15 @@ Create structured implementation plans from feature descriptions, optimized for
5151
**After (with ai-workflow plugin):**
5252

5353
```
54-
/plan-phases "Build user authentication"
54+
/workflow-plan-phases "Build user authentication"
5555
# Answers clarifying questions
5656
# AI creates optimally-sized phases
5757
# Dependencies clearly mapped
5858
# Execution strategy recommended
5959
# Plan saved to docs/plans/
6060
```
6161

62-
### `/implement-phases`
62+
### `/workflow-implement-phases`
6363

6464
Orchestrate multi-phase implementation from a plan document using intelligent parallel/sequential execution.
6565

@@ -76,9 +76,9 @@ Orchestrate multi-phase implementation from a plan document using intelligent pa
7676
**Usage:**
7777

7878
```
79-
/implement-phases @docs/plans/user-authentication.md
80-
/implement-phases @docs/plans/feature.md --phases=1,2,3
81-
/implement-phases @docs/plans/feature.md --strategy=parallel
79+
/workflow-implement-phases @docs/plans/user-authentication.md
80+
/workflow-implement-phases @docs/plans/feature.md --phases=1,2,3
81+
/workflow-implement-phases @docs/plans/feature.md --strategy=parallel
8282
```
8383

8484
**Execution Strategies:**
@@ -89,7 +89,7 @@ Orchestrate multi-phase implementation from a plan document using intelligent pa
8989
| **Sequential** | Linear dependency chain | Safest execution, full context from prior phases |
9090
| **Mixed** | Some independent, some dependent | Best of both worlds |
9191

92-
### `/preflight`
92+
### `/workflow-preflight`
9393

9494
Run comprehensive code quality checks before commits, PRs, or deployments.
9595

@@ -104,10 +104,10 @@ Run comprehensive code quality checks before commits, PRs, or deployments.
104104
**Usage:**
105105

106106
```
107-
/preflight # Interactive mode (default)
108-
/preflight --fix # Auto-fix all fixable issues
109-
/preflight --check-only # Report only, no fixes
110-
/preflight --verbose # Show detailed output
107+
/workflow-preflight # Interactive mode (default)
108+
/workflow-preflight --fix # Auto-fix all fixable issues
109+
/workflow-preflight --check-only # Report only, no fixes
110+
/workflow-preflight --verbose # Show detailed output
111111
```
112112

113113
**Supported Ecosystems:**
@@ -133,7 +133,7 @@ Run comprehensive code quality checks before commits, PRs, or deployments.
133133
**After (with ai-workflow plugin):**
134134

135135
```
136-
/preflight
136+
/workflow-preflight
137137
# AI discovers configured tools
138138
# Runs all checks in optimal order
139139
# Shows clear summary
@@ -169,7 +169,7 @@ Methodology for analyzing plan documents and coordinating phase implementation.
169169
- Error handling patterns
170170
- Results aggregation templates
171171

172-
**Auto-loads when:** Implementing phases from a plan, orchestrating sub-agents, or when `/implement-phases` is invoked.
172+
**Auto-loads when:** Implementing phases from a plan, orchestrating sub-agents, or when `/workflow-implement-phases` is invoked.
173173

174174
### `preflight-checks`
175175

@@ -197,16 +197,16 @@ Comprehensive reference for code quality tools across ecosystems. Provides:
197197

198198
```
199199
# Plan a new feature
200-
/plan-phases "Add user profile editing with avatar upload"
200+
/workflow-plan-phases "Add user profile editing with avatar upload"
201201
202202
# Review the generated plan
203203
# Located at: docs/plans/user-profile-editing.md
204204
205205
# Implement the phases
206-
/implement-phases @docs/plans/user-profile-editing.md
206+
/workflow-implement-phases @docs/plans/user-profile-editing.md
207207
208208
# Run preflight checks before committing
209-
/preflight
209+
/workflow-preflight
210210
```
211211

212212
---
@@ -309,7 +309,7 @@ Verify Fixes
309309

310310
### Preflight Integration
311311

312-
- Run `/preflight` before every commit
312+
- Run `/workflow-preflight` before every commit
313313
- Use `--fix` in CI for automated formatting
314314
- Use `--check-only` in CI for validation gates
315315
- Align local checks with CI configuration
@@ -344,7 +344,7 @@ Plus improved code quality, fewer context overflows, and more efficient sub-agen
344344
- **Version:** 1.0.0
345345
- **Type:** Development Workflow Automation
346346
- **Features:**
347-
- Commands: `/plan-phases`, `/implement-phases`, `/preflight`
347+
- Commands: `/workflow-plan-phases`, `/workflow-implement-phases`, `/workflow-preflight`
348348
- Skills: `plan-phases`, `implement-phases`, `preflight-checks`
349349
- **License:** MIT
350350
- **Author:** Charles Jones

plugins/ai-workflow/commands/workflow-implement-phases.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,35 @@ Analyzes phases from a plan document and orchestrates implementation using sub-a
99

1010
## Usage
1111

12-
```
13-
/implement-phases @path/to/plan.md
14-
/implement-phases @path/to/plan.md --phases=1,2,3
15-
/implement-phases @path/to/plan.md --strategy=parallel|sequential|auto
12+
```bash
13+
/workflow-implement-phases # Search docs/plans/ and pick one
14+
/workflow-implement-phases @path/to/plan.md
15+
/workflow-implement-phases @path/to/plan.md --phases=1,2,3
16+
/workflow-implement-phases @path/to/plan.md --strategy=parallel|sequential|auto
1617
```
1718

1819
## Arguments
1920

20-
- `plan_file` (required): Path to the plan document containing phase definitions
21+
- `plan_file` (optional): Path to the plan document. If omitted, searches `docs/plans/` for existing plans
2122
- `--phases`: Comma-separated list of specific phases to implement (default: all)
2223
- `--strategy`: Force execution strategy. Default is `auto` (analyzed)
2324

25+
## Instructions
26+
27+
### If a plan file is provided:
28+
Read the plan file passed as an argument (e.g., `@docs/plans/my-plan.md`) and proceed with the workflow.
29+
30+
### If no plan file is provided:
31+
1. Search for existing plan files in `docs/plans/` directory
32+
2. If plans are found, present them to the user and ask which one to implement
33+
3. If no plans are found, inform the user and suggest using `/workflow-plan-phases` to create one first
34+
2435
## Workflow
2536

26-
1. Parse plan document and extract phases
27-
2. Analyze dependencies (explicit and implicit)
28-
3. Determine optimal execution strategy (parallel/sequential/mixed)
29-
4. Present execution plan to user for confirmation
30-
5. Execute via Task() sub-agents with coordination directory
31-
6. Aggregate results and report
37+
1. **Read the plan file** — Use the Read tool to load the plan document
38+
2. Parse plan document and extract phases
39+
3. Analyze dependencies (explicit and implicit)
40+
4. Determine optimal execution strategy (parallel/sequential/mixed)
41+
5. Present execution plan to user for confirmation
42+
6. Execute via Task() sub-agents with coordination directory
43+
7. Aggregate results and report

plugins/ai-workflow/commands/workflow-plan-phases.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,27 @@ Creates a phased implementation plan from a feature description, optimized for c
99

1010
## Usage
1111

12-
```
13-
/plan-phases <description>
14-
/plan-phases "Build a user authentication system with OAuth, MFA, and session management"
15-
/plan-phases --output=docs/plans/auth-system.md "Build authentication system..."
12+
```bash
13+
/workflow-plan-phases <description>
14+
/workflow-plan-phases "Build a user authentication system with OAuth, MFA, and session management"
15+
/workflow-plan-phases --output=docs/plans/auth-system.md "Build authentication system..."
1616
```
1717

1818
## Arguments
1919

2020
- `description` (required): What the user wants to build
2121
- `--output`: Custom output path (default: `docs/plans/{slugified-name}.md`)
2222

23+
## Instructions
24+
25+
1. **Read the user's description** from the command argument
26+
2. **Ask clarifying questions** before creating the plan — never skip this step
27+
3. **Wait for user responses** before proceeding
28+
4. **Create the plan document** following the plan-phases skill methodology
29+
5. **Save to `docs/plans/`** (create directory if needed) using a slugified filename
30+
6. **Present the plan** and ask if changes are needed
31+
7. **Stop** — do not implement
32+
2333
## Workflow
2434

2535
1. Ask clarifying questions (always — never skip)
@@ -28,3 +38,15 @@ Creates a phased implementation plan from a feature description, optimized for c
2838
4. Define clear acceptance criteria per phase
2939
5. Map dependencies and recommend execution strategy
3040
6. Output structured markdown to docs/plans/
41+
7. **STOP** — do not implement the plan
42+
43+
## Important
44+
45+
**This command only creates the plan. Do NOT proceed to implement any phases.**
46+
47+
After the plan is written:
48+
- Present the plan document to the user
49+
- Ask if they want to make any changes
50+
- Inform them they can use `/workflow-implement-phases` when ready to execute
51+
52+
**Never start writing code or implementing phases after creating the plan.**

plugins/ai-workflow/skills/implement-phases/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: implement-phases
3-
description: "Use when implementing phases from a plan document, executing phased implementations, orchestrating sub-agents for phase work, or when /implement-phases command is invoked. Provides dependency analysis and parallel/sequential execution strategies."
3+
description: "Use when implementing phases from a plan document, executing phased implementations, orchestrating sub-agents for phase work, or when /workflow-implement-phases command is invoked. Provides dependency analysis and parallel/sequential execution strategies."
44
---
55

66
# Phase Implementation Orchestration Skill

plugins/ai-workflow/skills/plan-phases/SKILL.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: plan-phases
3-
description: "Use when creating implementation plans, phase planning documents, breaking features into phases, or when /plan-phases command is invoked. Provides methodology for context-efficient phase sizing and dependency analysis."
3+
description: "Use when creating implementation plans, phase planning documents, breaking features into phases, or when /workflow-plan-phases command is invoked. Provides methodology for context-efficient phase sizing and dependency analysis."
44
---
55

66
# Phase Planning Skill
@@ -410,3 +410,22 @@ Before delivering plan:
410410
- [ ] Dependencies are explicit and acyclic
411411
- [ ] Specifications are detailed enough to implement without guessing
412412
- [ ] File saved to docs/plans/{feature-name}.md
413+
414+
---
415+
416+
## IMPORTANT: Planning Only — Do Not Implement
417+
418+
**This skill is for planning only. After creating the plan, STOP.**
419+
420+
Do NOT:
421+
- Start implementing any phases
422+
- Write any code
423+
- Create any files other than the plan document
424+
- Begin execution automatically
425+
426+
After the plan is complete:
427+
1. Present the plan document to the user
428+
2. Ask if they want to make any revisions
429+
3. Inform them to use `/workflow-implement-phases` or the `implement-phases` skill when ready to execute
430+
431+
The user decides when to proceed with implementation.

0 commit comments

Comments
 (0)