aiblueprint-cli 1.4.41 → 1.4.43

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 (76) hide show
  1. package/claude-code-config/skills/{workflow-apex → apex}/SKILL.md +12 -54
  2. package/claude-code-config/skills/{workflow-apex → apex}/scripts/setup-templates.sh +6 -40
  3. package/claude-code-config/skills/{workflow-apex → apex}/steps/step-00-init.md +3 -24
  4. package/claude-code-config/skills/{workflow-apex → apex}/steps/step-04-validate.md +25 -38
  5. package/claude-code-config/skills/{workflow-apex → apex}/templates/00-context.md +0 -8
  6. package/claude-code-config/skills/{workflow-apex → apex}/templates/README.md +6 -25
  7. package/claude-code-config/skills/{meta-claude-memory → claude-memory}/SKILL.md +59 -1
  8. package/package.json +1 -1
  9. package/claude-code-config/skills/workflow-apex/steps/step-05-examine.md +0 -294
  10. package/claude-code-config/skills/workflow-apex/steps/step-06-resolve.md +0 -237
  11. package/claude-code-config/skills/workflow-apex/steps/step-07-tests.md +0 -250
  12. package/claude-code-config/skills/workflow-apex/steps/step-08-run-tests.md +0 -308
  13. package/claude-code-config/skills/workflow-apex/steps/step-09-finish.md +0 -193
  14. package/claude-code-config/skills/workflow-apex/templates/05-examine.md +0 -10
  15. package/claude-code-config/skills/workflow-apex/templates/06-resolve.md +0 -10
  16. package/claude-code-config/skills/workflow-apex/templates/07-tests.md +0 -10
  17. package/claude-code-config/skills/workflow-apex/templates/08-run-tests.md +0 -10
  18. package/claude-code-config/skills/workflow-apex/templates/09-finish.md +0 -10
  19. /package/claude-code-config/skills/{workflow-apex → apex}/scripts/update-progress.sh +0 -0
  20. /package/claude-code-config/skills/{workflow-apex → apex}/steps/step-00b-branch.md +0 -0
  21. /package/claude-code-config/skills/{workflow-apex → apex}/steps/step-00b-economy.md +0 -0
  22. /package/claude-code-config/skills/{workflow-apex → apex}/steps/step-00b-interactive.md +0 -0
  23. /package/claude-code-config/skills/{workflow-apex → apex}/steps/step-01-analyze.md +0 -0
  24. /package/claude-code-config/skills/{workflow-apex → apex}/steps/step-02-plan.md +0 -0
  25. /package/claude-code-config/skills/{workflow-apex → apex}/steps/step-03-execute.md +0 -0
  26. /package/claude-code-config/skills/{workflow-apex → apex}/templates/01-analyze.md +0 -0
  27. /package/claude-code-config/skills/{workflow-apex → apex}/templates/02-plan.md +0 -0
  28. /package/claude-code-config/skills/{workflow-apex → apex}/templates/03-execute.md +0 -0
  29. /package/claude-code-config/skills/{workflow-apex → apex}/templates/04-validate.md +0 -0
  30. /package/claude-code-config/skills/{workflow-apex → apex}/templates/step-complete.md +0 -0
  31. /package/claude-code-config/skills/{meta-claude-memory → claude-memory}/references/comprehensive-example.md +0 -0
  32. /package/claude-code-config/skills/{meta-claude-memory → claude-memory}/references/optimize-guide.md +0 -0
  33. /package/claude-code-config/skills/{meta-claude-memory → claude-memory}/references/project-patterns.md +0 -0
  34. /package/claude-code-config/skills/{meta-claude-memory → claude-memory}/references/prompting-techniques.md +0 -0
  35. /package/claude-code-config/skills/{meta-claude-memory → claude-memory}/references/rules-directory-guide.md +0 -0
  36. /package/claude-code-config/skills/{meta-claude-memory → claude-memory}/references/section-templates.md +0 -0
  37. /package/claude-code-config/skills/{git-commit → commit}/SKILL.md +0 -0
  38. /package/claude-code-config/skills/{git-create-pr → create-pr}/SKILL.md +0 -0
  39. /package/claude-code-config/skills/{utils-fix-errors → fix-errors}/SKILL.md +0 -0
  40. /package/claude-code-config/skills/{utils-fix-grammar → fix-grammar}/SKILL.md +0 -0
  41. /package/claude-code-config/skills/{git-fix-pr-comments → fix-pr-comments}/SKILL.md +0 -0
  42. /package/claude-code-config/skills/{git-merge → merge}/SKILL.md +0 -0
  43. /package/claude-code-config/skills/{utils-oneshot → oneshot}/SKILL.md +0 -0
  44. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/SKILL.md +0 -0
  45. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/references/anthropic-best-practices.md +0 -0
  46. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/references/anti-patterns.md +0 -0
  47. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/references/clarity-principles.md +0 -0
  48. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/references/context-management.md +0 -0
  49. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/references/few-shot-patterns.md +0 -0
  50. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/references/openai-best-practices.md +0 -0
  51. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/references/prompt-templates.md +0 -0
  52. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/references/reasoning-techniques.md +0 -0
  53. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/references/system-prompt-patterns.md +0 -0
  54. /package/claude-code-config/skills/{meta-prompt-creator → prompt-creator}/references/xml-structure.md +0 -0
  55. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/LICENSE.txt +0 -0
  56. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/SKILL.md +0 -0
  57. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/package.json +0 -0
  58. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/references/output-patterns.md +0 -0
  59. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/references/progressive-disclosure-patterns.md +0 -0
  60. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/references/prompting-integration.md +0 -0
  61. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/references/real-world-examples.md +0 -0
  62. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/references/script-patterns.md +0 -0
  63. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/references/workflows.md +0 -0
  64. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/references/xml-tag-guide.md +0 -0
  65. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/scripts/init-skill.ts +0 -0
  66. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/scripts/package-skill.ts +0 -0
  67. /package/claude-code-config/skills/{meta-skill-creator → skill-creator}/scripts/validate.ts +0 -0
  68. /package/claude-code-config/skills/{meta-subagent-creator → subagent-creator}/SKILL.md +0 -0
  69. /package/claude-code-config/skills/{meta-subagent-creator → subagent-creator}/references/context-management.md +0 -0
  70. /package/claude-code-config/skills/{meta-subagent-creator → subagent-creator}/references/debugging-agents.md +0 -0
  71. /package/claude-code-config/skills/{meta-subagent-creator → subagent-creator}/references/error-handling-and-recovery.md +0 -0
  72. /package/claude-code-config/skills/{meta-subagent-creator → subagent-creator}/references/evaluation-and-testing.md +0 -0
  73. /package/claude-code-config/skills/{meta-subagent-creator → subagent-creator}/references/orchestration-patterns.md +0 -0
  74. /package/claude-code-config/skills/{meta-subagent-creator → subagent-creator}/references/subagents.md +0 -0
  75. /package/claude-code-config/skills/{meta-subagent-creator → subagent-creator}/references/writing-subagent-prompts.md +0 -0
  76. /package/claude-code-config/skills/{utils-ultrathink → ultrathink}/SKILL.md +0 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: apex
3
- description: Systematic implementation using APEX methodology (Analyze-Plan-Execute-eXamine) with parallel agents, self-validation, and optional adversarial review. Use when implementing features, fixing bugs, or making code changes that benefit from structured workflow.
4
- argument-hint: "[-a] [-x] [-s] [-t] [-b] [-pr] [-i] [-r <task-id>] <task description>"
3
+ description: Systematic implementation using APEX methodology (Analyze-Plan-Execute-Validate) with parallel agents and self-validation. Use when implementing features, fixing bugs, or making code changes that benefit from structured workflow.
4
+ argument-hint: "[-a] [-s] [-e] [-b] [-i] [-r <task-id>] <task description>"
5
5
  ---
6
6
 
7
7
  <objective>
@@ -21,19 +21,11 @@ Execute systematic implementation workflows using the APEX methodology. This ski
21
21
  /apex -a -s implement user registration
22
22
  ```
23
23
 
24
- **With adversarial review:**
25
-
26
- ```bash
27
- /apex -a -x -s fix login bug
28
- ```
29
-
30
24
  **Flags:**
31
25
 
32
26
  - `-a` (auto): Skip confirmations
33
27
  - `-s` (save): Save outputs to `.claude/output/apex/`
34
- - `-x` (examine): Include adversarial code review
35
- - `-t` (test): Create and run tests
36
- - `-pr` (pull-request): Create PR at end
28
+ - `-e` (economy): No subagents, save tokens
37
29
 
38
30
  See `<parameters>` for complete flag list.
39
31
  </quick_start>
@@ -45,25 +37,19 @@ See `<parameters>` for complete flag list.
45
37
  | Short | Long | Description |
46
38
  |-------|------|-------------|
47
39
  | `-a` | `--auto` | Autonomous mode: skip confirmations, auto-approve plans |
48
- | `-x` | `--examine` | Auto-examine mode: proceed to adversarial review |
49
40
  | `-s` | `--save` | Save mode: output each step to `.claude/output/apex/` |
50
- | `-t` | `--test` | Test mode: include test creation and runner steps |
51
41
  | `-e` | `--economy` | Economy mode: no subagents, save tokens (for limited plans) |
52
42
  | `-r` | `--resume` | Resume mode: continue from a previous task |
53
43
  | `-b` | `--branch` | Branch mode: verify not on main, create branch if needed |
54
- | `-pr` | `--pull-request` | PR mode: create pull request at end (enables -b) |
55
44
  | `-i` | `--interactive` | Interactive mode: configure flags via AskUserQuestion |
56
45
 
57
46
  **Disable flags (turn OFF):**
58
47
  | Short | Long | Description |
59
48
  |-------|------|-------------|
60
49
  | `-A` | `--no-auto` | Disable auto mode |
61
- | `-X` | `--no-examine` | Disable examine mode |
62
50
  | `-S` | `--no-save` | Disable save mode |
63
- | `-T` | `--no-test` | Disable test mode |
64
51
  | `-E` | `--no-economy` | Disable economy mode |
65
52
  | `-B` | `--no-branch` | Disable branch mode |
66
- | `-PR` | `--no-pull-request` | Disable PR mode |
67
53
  </flags>
68
54
 
69
55
  <examples>
@@ -74,14 +60,8 @@ See `<parameters>` for complete flag list.
74
60
  # Autonomous (skip confirmations)
75
61
  /apex -a add auth middleware
76
62
 
77
- # Save outputs + examine
78
- /apex -a -x -s add auth middleware
79
-
80
- # Full workflow with tests
81
- /apex -a -x -s -t add auth middleware
82
-
83
- # With PR creation
84
- /apex -a -pr add auth middleware
63
+ # Save outputs
64
+ /apex -a -s add auth middleware
85
65
 
86
66
  # Resume previous task
87
67
  /apex -r 01-auth-middleware
@@ -116,20 +96,13 @@ For detailed parsing algorithm, see `steps/step-00-init.md`.
116
96
 
117
97
  All outputs saved to PROJECT directory (where Claude Code is running):
118
98
  ```
119
-
120
99
  .claude/output/apex/{task-id}/
121
100
  ├── 00-context.md # Params, user request, timestamp
122
101
  ├── 01-analyze.md # Analysis findings
123
102
  ├── 02-plan.md # Implementation plan
124
103
  ├── 03-execute.md # Execution log
125
- ├── 04-validate.md # Validation results
126
- ├── 05-examine.md # Review findings (if -x)
127
- ├── 06-resolve.md # Resolution log (if -x)
128
- ├── 07-tests.md # Test analysis and creation (if --test)
129
- ├── 08-run-tests.md # Test runner log (if --test)
130
- └── 09-finish.md # Workflow finish and PR creation (if --pull-request)
131
-
132
- ````
104
+ └── 04-validate.md # Validation results
105
+ ```
133
106
 
134
107
  **00-context.md structure:**
135
108
  ```markdown
@@ -140,9 +113,8 @@ All outputs saved to PROJECT directory (where Claude Code is running):
140
113
 
141
114
  ## Flags
142
115
  - Auto mode: {auto_mode}
143
- - Examine mode: {examine_mode}
144
116
  - Save mode: {save_mode}
145
- - Test mode: {test_mode}
117
+ - Economy mode: {economy_mode}
146
118
 
147
119
  ## User Request
148
120
  {original user input}
@@ -150,7 +122,7 @@ All outputs saved to PROJECT directory (where Claude Code is running):
150
122
  ## Acceptance Criteria
151
123
  - [ ] AC1: {inferred criterion}
152
124
  - [ ] AC2: {inferred criterion}
153
- ````
125
+ ```
154
126
 
155
127
  </output_structure>
156
128
 
@@ -177,12 +149,7 @@ For implementation details, see `steps/step-00-init.md`.
177
149
  4. Load step-01-analyze.md → gather context
178
150
  5. Load step-02-plan.md → create strategy
179
151
  6. Load step-03-execute.md → implement
180
- 7. Load step-04-validate.md → verify
181
- 8. If `--test`: Load step-07-tests.md → analyze and create tests
182
- 9. If `--test`: Load step-08-run-tests.md → run until green
183
- 10. If `-x` or user requests: Load step-05-examine.md → adversarial review
184
- 11. If findings: Load step-06-resolve.md → fix findings
185
- 12. If `-pr`: Load step-09-finish.md → create pull request
152
+ 7. Load step-04-validate.md → verify and complete
186
153
  </workflow>
187
154
 
188
155
  <state_variables>
@@ -195,12 +162,9 @@ For implementation details, see `steps/step-00-init.md`.
195
162
  | `{task_id}` | string | Full identifier with number (e.g., `01-add-auth-middleware`) |
196
163
  | `{acceptance_criteria}` | list | Success criteria (inferred or explicit) |
197
164
  | `{auto_mode}` | boolean | Skip confirmations, use recommended options |
198
- | `{examine_mode}` | boolean | Auto-proceed to adversarial review |
199
165
  | `{save_mode}` | boolean | Save outputs to .claude/output/apex/ |
200
- | `{test_mode}` | boolean | Include test steps (07-08) |
201
166
  | `{economy_mode}` | boolean | No subagents, direct tool usage only |
202
167
  | `{branch_mode}` | boolean | Verify not on main, create branch if needed |
203
- | `{pr_mode}` | boolean | Create pull request at end |
204
168
  | `{interactive_mode}` | boolean | Configure flags interactively |
205
169
  | `{resume_task}` | string | Task ID to resume (if -r provided) |
206
170
  | `{output_dir}` | string | Full path to output directory |
@@ -233,12 +197,7 @@ After initialization, step-00 loads step-01-analyze.md.
233
197
  | 01 | `steps/step-01-analyze.md` | Smart context gathering with 1-10 parallel agents based on complexity |
234
198
  | 02 | `steps/step-02-plan.md` | File-by-file implementation strategy |
235
199
  | 03 | `steps/step-03-execute.md` | Todo-driven implementation |
236
- | 04 | `steps/step-04-validate.md` | Self-check and validation |
237
- | 05 | `steps/step-05-examine.md` | Adversarial code review (optional) |
238
- | 06 | `steps/step-06-resolve.md` | Finding resolution (optional) |
239
- | 07 | `steps/step-07-tests.md` | Test analysis and creation (if --test) |
240
- | 08 | `steps/step-08-run-tests.md` | Test runner loop until green (if --test) |
241
- | 09 | `steps/step-09-finish.md` | Create pull request (if --pull-request) |
200
+ | 04 | `steps/step-04-validate.md` | Self-check, validation, and workflow completion |
242
201
 
243
202
  </step_files>
244
203
 
@@ -298,6 +257,5 @@ Step-00 runs `scripts/setup-templates.sh` to initialize all output files from `t
298
257
  - Each step loaded progressively
299
258
  - All validation checks passing
300
259
  - Outputs saved if `{save_mode}` enabled
301
- - Tests passing if `{test_mode}` enabled
302
260
  - Clear completion summary provided
303
- </success_criteria>
261
+ </success_criteria>
@@ -11,15 +11,12 @@ set -e
11
11
  FEATURE_NAME="$1"
12
12
  TASK_DESCRIPTION="$2"
13
13
  AUTO_MODE="${3:-false}"
14
- EXAMINE_MODE="${4:-false}"
15
- SAVE_MODE="${5:-false}"
16
- TEST_MODE="${6:-false}"
17
- ECONOMY_MODE="${7:-false}"
18
- BRANCH_MODE="${8:-false}"
19
- PR_MODE="${9:-false}"
20
- INTERACTIVE_MODE="${10:-false}"
21
- BRANCH_NAME="${11:-}"
22
- ORIGINAL_INPUT="${12:-}"
14
+ SAVE_MODE="${4:-false}"
15
+ ECONOMY_MODE="${5:-false}"
16
+ BRANCH_MODE="${6:-false}"
17
+ INTERACTIVE_MODE="${7:-false}"
18
+ BRANCH_NAME="${8:-}"
19
+ ORIGINAL_INPUT="${9:-}"
23
20
 
24
21
  # Validate required arguments
25
22
  if [[ -z "$FEATURE_NAME" ]]; then
@@ -73,33 +70,17 @@ render_template() {
73
70
  local template_file="$1"
74
71
  local output_file="$2"
75
72
 
76
- # Determine status strings based on flags
77
- local examine_status="⏭ Skip"
78
- [[ "$EXAMINE_MODE" == "true" ]] && examine_status="⏸ Pending"
79
-
80
- local test_status="⏭ Skip"
81
- [[ "$TEST_MODE" == "true" ]] && test_status="⏸ Pending"
82
-
83
- local pr_status="⏭ Skip"
84
- [[ "$PR_MODE" == "true" ]] && pr_status="⏸ Pending"
85
-
86
73
  # Read template and replace variables
87
74
  sed -e "s|{{task_id}}|${TASK_ID}|g" \
88
75
  -e "s|{{task_description}}|${TASK_DESCRIPTION}|g" \
89
76
  -e "s|{{timestamp}}|${TIMESTAMP}|g" \
90
77
  -e "s|{{auto_mode}}|${AUTO_MODE}|g" \
91
- -e "s|{{examine_mode}}|${EXAMINE_MODE}|g" \
92
78
  -e "s|{{save_mode}}|${SAVE_MODE}|g" \
93
- -e "s|{{test_mode}}|${TEST_MODE}|g" \
94
79
  -e "s|{{economy_mode}}|${ECONOMY_MODE}|g" \
95
80
  -e "s|{{branch_mode}}|${BRANCH_MODE}|g" \
96
- -e "s|{{pr_mode}}|${PR_MODE}|g" \
97
81
  -e "s|{{interactive_mode}}|${INTERACTIVE_MODE}|g" \
98
82
  -e "s|{{branch_name}}|${BRANCH_NAME}|g" \
99
83
  -e "s|{{original_input}}|${ORIGINAL_INPUT}|g" \
100
- -e "s|{{examine_status}}|${examine_status}|g" \
101
- -e "s|{{test_status}}|${test_status}|g" \
102
- -e "s|{{pr_status}}|${pr_status}|g" \
103
84
  "$template_file" > "$output_file"
104
85
  }
105
86
 
@@ -112,21 +93,6 @@ render_template "${TEMPLATE_DIR}/02-plan.md" "${OUTPUT_DIR}/02-plan.md"
112
93
  render_template "${TEMPLATE_DIR}/03-execute.md" "${OUTPUT_DIR}/03-execute.md"
113
94
  render_template "${TEMPLATE_DIR}/04-validate.md" "${OUTPUT_DIR}/04-validate.md"
114
95
 
115
- # Conditional templates
116
- if [[ "$EXAMINE_MODE" == "true" ]]; then
117
- render_template "${TEMPLATE_DIR}/05-examine.md" "${OUTPUT_DIR}/05-examine.md"
118
- render_template "${TEMPLATE_DIR}/06-resolve.md" "${OUTPUT_DIR}/06-resolve.md"
119
- fi
120
-
121
- if [[ "$TEST_MODE" == "true" ]]; then
122
- render_template "${TEMPLATE_DIR}/07-tests.md" "${OUTPUT_DIR}/07-tests.md"
123
- render_template "${TEMPLATE_DIR}/08-run-tests.md" "${OUTPUT_DIR}/08-run-tests.md"
124
- fi
125
-
126
- if [[ "$PR_MODE" == "true" ]]; then
127
- render_template "${TEMPLATE_DIR}/09-finish.md" "${OUTPUT_DIR}/09-finish.md"
128
- fi
129
-
130
96
  # Output the generated task_id for capture by caller
131
97
  echo "TASK_ID=${TASK_ID}"
132
98
  echo "OUTPUT_DIR=${OUTPUT_DIR}"
@@ -49,18 +49,15 @@ Initialize the APEX workflow by parsing flags, detecting continuation state, and
49
49
  # ===========================================
50
50
 
51
51
  auto_mode: false # -a: Skip confirmations, use recommended options
52
- examine_mode: false # -x: Auto-proceed to adversarial review
53
52
  save_mode: false # -s: Save outputs to .claude/output/apex/
54
- test_mode: false # -t: Include test creation and runner steps
55
53
  economy_mode: false # -e: No subagents, save tokens (for limited plans)
56
54
  branch_mode: false # -b: Verify not on main, create branch if needed
57
- pr_mode: false # -pr: Create pull request at end (enables -b)
58
55
  interactive_mode: false # -i: Configure flags interactively
59
56
 
60
57
  # Presets:
61
58
  # Budget-friendly: economy_mode: true
62
- # Full quality: examine_mode: true, save_mode: true, test_mode: true
63
- # Autonomous: auto_mode: true, examine_mode: true, save_mode: true, test_mode: true
59
+ # Full quality: save_mode: true
60
+ # Autonomous: auto_mode: true, save_mode: true
64
61
  ```
65
62
 
66
63
  **Flag Reference:** See `SKILL.md` for complete flag documentation and examples.
@@ -77,12 +74,9 @@ interactive_mode: false # -i: Configure flags interactively
77
74
 
78
75
  ```
79
76
  {auto_mode} = <default>
80
- {examine_mode} = <default>
81
77
  {save_mode} = <default>
82
- {test_mode} = <default>
83
78
  {economy_mode} = <default>
84
79
  {branch_mode} = <default>
85
- {pr_mode} = <default>
86
80
  {interactive_mode} = <default>
87
81
  ```
88
82
 
@@ -91,23 +85,15 @@ interactive_mode: false # -i: Configure flags interactively
91
85
  ```
92
86
  Enable flags (lowercase - turn ON):
93
87
  -a or --auto → {auto_mode} = true
94
- -x or --examine → {examine_mode} = true
95
88
  -s or --save → {save_mode} = true
96
- -t or --test → {test_mode} = true
97
89
  -e or --economy → {economy_mode} = true
90
+ -b or --branch → {branch_mode} = true
98
91
 
99
92
  Disable flags (UPPERCASE - turn OFF):
100
93
  -A or --no-auto → {auto_mode} = false
101
- -X or --no-examine → {examine_mode} = false
102
94
  -S or --no-save → {save_mode} = false
103
- -T or --no-test → {test_mode} = false
104
95
  -E or --no-economy → {economy_mode} = false
105
96
  -B or --no-branch → {branch_mode} = false
106
- -PR or --no-pull-request → {pr_mode} = false
107
-
108
- Branch/PR flags:
109
- -b or --branch → {branch_mode} = true
110
- -pr or --pull-request → {pr_mode} = true, {branch_mode} = true
111
97
 
112
98
  Interactive:
113
99
  -i or --interactive → {interactive_mode} = true
@@ -191,12 +177,9 @@ bash {skill_dir}/scripts/setup-templates.sh \
191
177
  "{feature_name}" \
192
178
  "{task_description}" \
193
179
  "{auto_mode}" \
194
- "{examine_mode}" \
195
180
  "{save_mode}" \
196
- "{test_mode}" \
197
181
  "{economy_mode}" \
198
182
  "{branch_mode}" \
199
- "{pr_mode}" \
200
183
  "{interactive_mode}" \
201
184
  "{branch_name}" \
202
185
  "{original_input}"
@@ -211,7 +194,6 @@ This script:
211
194
  - Creates `.claude/output/apex/{task_id}/` directory
212
195
  - Initializes `00-context.md` with configuration and progress table
213
196
  - Pre-creates all step files from templates (01-analyze.md, 02-plan.md, etc.)
214
- - Only creates files for enabled steps (examine, tests, PR)
215
197
  - Outputs the generated `{task_id}` for use in subsequent steps
216
198
 
217
199
  ### 5. Initialize and Proceed
@@ -227,12 +209,9 @@ Show COMPACT initialization summary (one table, then proceed immediately):
227
209
  |----------|-------|
228
210
  | `{task_id}` | 01-kebab-name |
229
211
  | `{auto_mode}` | true/false |
230
- | `{examine_mode}` | true/false |
231
212
  | `{save_mode}` | true/false |
232
- | `{test_mode}` | true/false |
233
213
  | `{economy_mode}` | true/false |
234
214
  | `{branch_mode}` | true/false |
235
- | `{pr_mode}` | true/false |
236
215
 
237
216
  → Analyzing...
238
217
  ```
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: step-04-validate
3
- description: Self-check - run tests, verify AC, audit implementation quality
3
+ description: Self-check - run tests, verify AC, audit implementation quality, complete workflow
4
4
  prev_step: steps/step-03-execute.md
5
- next_step: steps/step-05-examine.md
5
+ next_step: null
6
6
  ---
7
7
 
8
8
  # Step 4: Validate (Self-Check)
@@ -48,8 +48,7 @@ From previous steps:
48
48
  | `{acceptance_criteria}` | Success criteria |
49
49
  | `{auto_mode}` | Skip confirmations |
50
50
  | `{save_mode}` | Save outputs to files |
51
- | `{test_mode}` | Include test steps |
52
- | `{examine_mode}` | Auto-proceed to review |
51
+ | `{economy_mode}` | No subagents mode |
53
52
  | `{output_dir}` | Path to output (if save_mode) |
54
53
  | Implementation | Completed in step-03 |
55
54
  </available_state>
@@ -171,38 +170,28 @@ Both MUST pass.
171
170
  **Summary:** All checks passing, ready for next step.
172
171
  ```
173
172
 
174
- ### 8. Determine Next Step
173
+ ### 8. Complete Workflow
175
174
 
176
- **Decision tree:**
175
+ **Show final summary:**
177
176
 
178
177
  ```
179
- IF {test_mode} = true:
180
- → Load step-07-tests.md (test analysis and creation)
178
+ APEX Workflow Complete
181
179
 
182
- ELSE IF {examine_mode} = true:
183
- Load step-05-examine.md (adversarial review)
180
+ **Task:** {task_description}
181
+ **Task ID:** {task_id}
184
182
 
185
- ELSE IF {auto_mode} = false:
186
- Ask user:
187
- ```
183
+ **Validation Results:**
184
+ - Typecheck: ✓ Passed
185
+ - Lint: ✓ Passed
186
+ - Tests: ✓ Passed
188
187
 
189
- ```yaml
190
- questions:
191
- - header: "Next"
192
- question: "Validation complete. What would you like to do?"
193
- options:
194
- - label: "Run adversarial review"
195
- description: "Deep review for security, logic, and quality"
196
- - label: "Complete workflow"
197
- description: "Skip review and finalize"
198
- - label: "Add tests"
199
- description: "Create additional tests first"
200
- multiSelect: false
201
- ```
188
+ **Acceptance Criteria:**
189
+ - [✓] AC1: Verified
190
+ - [✓] AC2: Verified
202
191
 
203
- ```
204
- ELSE:
205
- Complete workflow (show final summary)
192
+ **Files Modified:** {list}
193
+
194
+ 🎉 Implementation complete and validated!
206
195
  ```
207
196
 
208
197
  ### 9. Complete Save Output (if save_mode)
@@ -217,10 +206,12 @@ Append to `{output_dir}/04-validate.md`:
217
206
  **Typecheck:** ✓
218
207
  **Lint:** ✓
219
208
  **Tests:** ✓
220
- **Next:** {next step based on flags}
209
+ **Workflow:** Complete
221
210
  **Timestamp:** {ISO timestamp}
222
211
  ```
223
212
 
213
+ Run: `bash {skill_dir}/scripts/update-progress.sh "{task_id}" "04" "validate" "complete"`
214
+
224
215
  ---
225
216
 
226
217
  ## SUCCESS METRICS:
@@ -231,6 +222,7 @@ Append to `{output_dir}/04-validate.md`:
231
222
  ✅ All AC verified
232
223
  ✅ Code formatted
233
224
  ✅ User informed of status
225
+ ✅ Workflow completed
234
226
 
235
227
  ## FAILURE MODES:
236
228
 
@@ -239,7 +231,6 @@ Append to `{output_dir}/04-validate.md`:
239
231
  ❌ Skipping tests for modified code
240
232
  ❌ Missing AC verification
241
233
  ❌ Proceeding with failures
242
- ❌ **CRITICAL**: Not using AskUserQuestion for next step
243
234
 
244
235
  ## VALIDATION PROTOCOLS:
245
236
 
@@ -251,14 +242,10 @@ Append to `{output_dir}/04-validate.md`:
251
242
 
252
243
  ---
253
244
 
254
- ## NEXT STEP:
245
+ ## WORKFLOW COMPLETE
255
246
 
256
- Based on flags (check in order):
257
- - **If test_mode:** Load `./step-07-tests.md`
258
- - **If examine_mode OR user requests:** Load `./step-05-examine.md`
259
- - **If pr_mode:** Load `./step-09-finish.md` to create pull request
260
- - **Otherwise:** Workflow complete - show summary
247
+ This is the final step. After validation passes, the APEX workflow is complete.
261
248
 
262
249
  <critical>
263
- Remember: NEVER proceed with failing checks - fix everything first!
250
+ Remember: NEVER claim completion with failing checks - fix everything first!
264
251
  </critical>
@@ -10,12 +10,9 @@
10
10
  | Flag | Value |
11
11
  |------|-------|
12
12
  | Auto mode (`-a`) | {{auto_mode}} |
13
- | Examine mode (`-x`) | {{examine_mode}} |
14
13
  | Save mode (`-s`) | {{save_mode}} |
15
- | Test mode (`-t`) | {{test_mode}} |
16
14
  | Economy mode (`-e`) | {{economy_mode}} |
17
15
  | Branch mode (`-b`) | {{branch_mode}} |
18
- | PR mode (`-pr`) | {{pr_mode}} |
19
16
  | Interactive mode (`-i`) | {{interactive_mode}} |
20
17
  | Branch name | {{branch_name}} |
21
18
 
@@ -44,8 +41,3 @@ _To be defined in step-01-analyze.md_
44
41
  | 02-plan | ⏸ Pending | |
45
42
  | 03-execute | ⏸ Pending | |
46
43
  | 04-validate | ⏸ Pending | |
47
- | 05-examine | {{examine_status}} | |
48
- | 06-resolve | {{examine_status}} | |
49
- | 07-tests | {{test_status}} | |
50
- | 08-run-tests | {{test_status}} | |
51
- | 09-finish | {{pr_status}} | |
@@ -12,12 +12,7 @@ This directory contains template files used to initialize APEX workflow outputs
12
12
  | `01-analyze.md` | Analysis findings | Always (if save_mode) |
13
13
  | `02-plan.md` | Implementation plan | Always (if save_mode) |
14
14
  | `03-execute.md` | Implementation log | Always (if save_mode) |
15
- | `04-validate.md` | Validation results | Always (if save_mode) |
16
- | `05-examine.md` | Adversarial review findings | Only if examine_mode enabled |
17
- | `06-resolve.md` | Finding resolution log | Only if examine_mode enabled |
18
- | `07-tests.md` | Test analysis and creation | Only if test_mode enabled |
19
- | `08-run-tests.md` | Test runner log | Only if test_mode enabled |
20
- | `09-finish.md` | PR creation log | Only if pr_mode enabled |
15
+ | `04-validate.md` | Validation results and workflow completion | Always (if save_mode) |
21
16
  | `step-complete.md` | Completion marker template | Referenced in steps |
22
17
 
23
18
  ## Template Variables
@@ -30,18 +25,12 @@ Templates use `{{variable}}` syntax for placeholders:
30
25
  | `{{task_description}}` | Plain text task description | `add authentication middleware` |
31
26
  | `{{timestamp}}` | ISO 8601 timestamp | `2026-01-12T10:30:00Z` |
32
27
  | `{{auto_mode}}` | Auto mode flag | `true` or `false` |
33
- | `{{examine_mode}}` | Examine mode flag | `true` or `false` |
34
28
  | `{{save_mode}}` | Save mode flag | `true` or `false` |
35
- | `{{test_mode}}` | Test mode flag | `true` or `false` |
36
29
  | `{{economy_mode}}` | Economy mode flag | `true` or `false` |
37
30
  | `{{branch_mode}}` | Branch mode flag | `true` or `false` |
38
- | `{{pr_mode}}` | PR mode flag | `true` or `false` |
39
31
  | `{{interactive_mode}}` | Interactive mode flag | `true` or `false` |
40
32
  | `{{branch_name}}` | Git branch name | `feature/add-auth` |
41
33
  | `{{original_input}}` | Raw user input | `/apex -a -s add auth` |
42
- | `{{examine_status}}` | Progress status for examine steps | `⏸ Pending` or `⏭ Skip` |
43
- | `{{test_status}}` | Progress status for test steps | `⏸ Pending` or `⏭ Skip` |
44
- | `{{pr_status}}` | Progress status for PR step | `⏸ Pending` or `⏭ Skip` |
45
34
 
46
35
  ## Setup Script
47
36
 
@@ -52,15 +41,12 @@ Initializes all template files in the output directory with variables replaced.
52
41
  **Usage:**
53
42
  ```bash
54
43
  bash scripts/setup-templates.sh \
55
- "task_id" \
44
+ "feature_name" \
56
45
  "task_description" \
57
46
  "auto_mode" \
58
- "examine_mode" \
59
47
  "save_mode" \
60
- "test_mode" \
61
48
  "economy_mode" \
62
49
  "branch_mode" \
63
- "pr_mode" \
64
50
  "interactive_mode" \
65
51
  "branch_name" \
66
52
  "original_input"
@@ -73,12 +59,7 @@ bash scripts/setup-templates.sh \
73
59
  ├── 01-analyze.md # Always created
74
60
  ├── 02-plan.md # Always created
75
61
  ├── 03-execute.md # Always created
76
- ├── 04-validate.md # Always created
77
- ├── 05-examine.md # Only if examine_mode
78
- ├── 06-resolve.md # Only if examine_mode
79
- ├── 07-tests.md # Only if test_mode
80
- ├── 08-run-tests.md # Only if test_mode
81
- └── 09-finish.md # Only if pr_mode
62
+ └── 04-validate.md # Always created
82
63
  ```
83
64
 
84
65
  ## Progress Update Script
@@ -137,7 +118,7 @@ Update `00-context.md` progress:
137
118
  ```
138
119
  ```
139
120
 
140
- **Token cost per step:** ~200 tokens × 9 steps = ~1,800 tokens
121
+ **Token cost per step:** ~200 tokens × 5 steps = ~1,000 tokens
141
122
 
142
123
  ### After Optimization
143
124
 
@@ -158,9 +139,9 @@ bash {skill_dir}/scripts/update-progress.sh "{task_id}" "01" "analyze" "in_progr
158
139
  Append your findings to `01-analyze.md` as you work.
159
140
  ```
160
141
 
161
- **Token cost per step:** ~50 tokens × 9 steps = ~450 tokens
142
+ **Token cost per step:** ~50 tokens × 5 steps = ~250 tokens
162
143
 
163
- **Total savings:** ~1,350 tokens per workflow execution (75% reduction)
144
+ **Total savings:** ~750 tokens per workflow execution (75% reduction)
164
145
 
165
146
  ## How It Works
166
147
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: claude-memory
3
3
  description: Create and optimize CLAUDE.md memory files or .claude/rules/ modular rules for Claude Code projects. Comprehensive guidance on file hierarchy, content structure, path-scoped rules, best practices, and anti-patterns. Use when working with CLAUDE.md files, .claude/rules directories, setting up new projects, or improving Claude Code's context awareness.
4
- argument-hint: [task description or "optimize"]
4
+ argument-hint: [init | optimize | task description]
5
5
  ---
6
6
 
7
7
  <core_principle>
@@ -168,6 +168,64 @@ Before creating or updating memory files, use AskUserQuestion:
168
168
  | Path rules not applying | Verify glob pattern matches target files |
169
169
  </workflow>
170
170
 
171
+ <init_workflow>
172
+ ## `/claude-memory init` — Create Minimal CLAUDE.md
173
+
174
+ When the user argument contains "init", execute this workflow to scaffold a CLAUDE.md with only the essential sections.
175
+
176
+ ### Step 1: Detect project context
177
+
178
+ Read `package.json` (or equivalent: `pyproject.toml`, `Cargo.toml`, `go.mod`, etc.) to detect:
179
+ - Project name
180
+ - Tech stack (framework, language)
181
+ - Available scripts/commands (dev, build, test)
182
+
183
+ Also check for existing linter configs (ESLint, Biome, Prettier, tsconfig) — do NOT include rules they already enforce.
184
+
185
+ ### Step 2: Identify important files
186
+
187
+ Scan for non-obvious architecture-critical files. Look for:
188
+ - Auth config files
189
+ - Server action wrappers, API helpers
190
+ - Database schema files
191
+ - Custom middleware or shared utilities
192
+ - Skip standard framework files (package.json, tsconfig, next.config, etc.)
193
+
194
+ ### Step 3: Generate CLAUDE.md
195
+
196
+ Create the file with ONLY these sections. Each section should be compact — the whole file should be under 50 lines.
197
+
198
+ ```markdown
199
+ # [Project Name]
200
+ [One-line description of what this project is]
201
+
202
+ ## Tech Stack
203
+ - [Only non-obvious technologies — skip deps detectable from config files]
204
+
205
+ ## Commands
206
+ - `[dev command]` - Dev server
207
+ - `[build command]` - Build
208
+ - `[test command]` - Tests
209
+ - [Any non-obvious commands like db:push, seed, etc.]
210
+
211
+ ## Important Files
212
+ - [Only files the agent wouldn't discover naturally]
213
+
214
+ ## Rules
215
+ - [Leave empty with a comment: "Add project-specific rules as you encounter friction"]
216
+ ```
217
+
218
+ ### Step 4: Present and write
219
+
220
+ Show the generated file to the user. Write it to `./CLAUDE.md` after approval.
221
+
222
+ **Rules:**
223
+ - NEVER include directory structure, code style rules, generic best practices, or marketing text
224
+ - NEVER include anything a linter or TypeScript already enforces
225
+ - Target: 20-50 lines. If it's longer, you're including too much
226
+ - The Rules section starts empty — it gets populated over time as mistakes happen
227
+ </init_workflow>
228
+
171
229
  <optimize_workflow>
172
230
  ## `/claude-memory optimize` — Deep CLAUDE.md Cleanup
173
231
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiblueprint-cli",
3
- "version": "1.4.41",
3
+ "version": "1.4.43",
4
4
  "description": "AIBlueprint CLI for setting up Claude Code configurations",
5
5
  "author": "AIBlueprint",
6
6
  "license": "MIT",