claude-code-workflow 6.3.48 → 6.3.49
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/.claude/CLAUDE.md +6 -8
- package/.claude/agents/action-planning-agent.md +28 -45
- package/.claude/agents/cli-lite-planning-agent.md +93 -1
- package/.claude/agents/code-developer.md +144 -27
- package/.claude/commands/ccw-coordinator.md +175 -21
- package/.claude/commands/ccw-debug.md +832 -0
- package/.claude/commands/ccw.md +90 -9
- package/.claude/commands/cli/cli-init.md +1 -0
- package/.claude/commands/issue/convert-to-plan.md +718 -0
- package/.claude/commands/issue/from-brainstorm.md +382 -0
- package/.claude/commands/memory/tips.md +332 -0
- package/.claude/commands/workflow/analyze-with-file.md +804 -0
- package/.claude/commands/workflow/brainstorm/auto-parallel.md +18 -43
- package/.claude/commands/workflow/brainstorm/role-analysis.md +705 -0
- package/.claude/commands/workflow/brainstorm-with-file.md +1153 -0
- package/.claude/commands/workflow/debug-with-file.md +7 -5
- package/.claude/commands/workflow/execute.md +6 -4
- package/.claude/commands/workflow/lite-plan.md +2 -2
- package/.claude/commands/workflow/plan-verify.md +162 -327
- package/.claude/commands/workflow/plan.md +162 -26
- package/.claude/commands/workflow/replan.md +78 -2
- package/.claude/commands/workflow/{review-fix.md → review-cycle-fix.md} +6 -6
- package/.claude/commands/workflow/review-module-cycle.md +2 -2
- package/.claude/commands/workflow/review-session-cycle.md +2 -2
- package/.claude/commands/workflow/tools/conflict-resolution.md +16 -26
- package/.claude/commands/workflow/tools/context-gather.md +81 -118
- package/.claude/commands/workflow/tools/task-generate-agent.md +94 -10
- package/.claude/skills/ccw-help/command.json +4 -4
- package/.claude/skills/lite-skill-generator/SKILL.md +650 -0
- package/.claude/skills/lite-skill-generator/templates/simple-skill.md +68 -0
- package/.claude/skills/lite-skill-generator/templates/style-guide.md +64 -0
- package/.claude/skills/skill-generator/SKILL.md +277 -85
- package/.claude/skills/skill-generator/phases/01-requirements-discovery.md +4 -15
- package/.claude/skills/skill-generator/phases/02-structure-generation.md +72 -17
- package/.claude/skills/skill-generator/phases/03-phase-generation.md +218 -51
- package/.claude/skills/skill-generator/phases/04-specs-templates.md +111 -41
- package/.claude/skills/skill-generator/phases/05-validation.md +139 -56
- package/.claude/skills/skill-generator/templates/autonomous-action.md +78 -268
- package/.claude/skills/skill-generator/templates/autonomous-orchestrator.md +14 -0
- package/.claude/skills/skill-generator/templates/code-analysis-action.md +12 -0
- package/.claude/skills/skill-generator/templates/llm-action.md +12 -0
- package/.claude/skills/skill-generator/templates/script-template.md +368 -0
- package/.claude/skills/skill-generator/templates/sequential-phase.md +14 -0
- package/.claude/skills/skill-generator/templates/skill-md.md +14 -0
- package/.claude/skills/skill-tuning/SKILL.md +130 -266
- package/.claude/skills/skill-tuning/phases/orchestrator.md +95 -283
- package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +90 -198
- package/.claude/skills/skill-tuning/specs/tuning-strategies.md +193 -1345
- package/.claude/workflows/cli-templates/schemas/plan-verify-agent-schema.json +47 -0
- package/.claude/workflows/cli-templates/schemas/verify-json-schema.json +158 -0
- package/.claude/workflows/cli-tools-usage.md +1 -1
- package/.codex/AGENTS.md +1 -3
- package/.codex/prompts/analyze-with-file.md +607 -0
- package/.codex/prompts/brainstorm-to-cycle.md +455 -0
- package/.codex/prompts/brainstorm-with-file.md +933 -0
- package/.codex/prompts/debug-with-file.md +15 -20
- package/.codex/skills/ccw-cli-tools/SKILL.md +559 -0
- package/ccw/dist/commands/cli.d.ts.map +1 -1
- package/ccw/dist/commands/cli.js +29 -5
- package/ccw/dist/commands/cli.js.map +1 -1
- package/ccw/dist/commands/issue.d.ts +2 -0
- package/ccw/dist/commands/issue.d.ts.map +1 -1
- package/ccw/dist/commands/issue.js +62 -20
- package/ccw/dist/commands/issue.js.map +1 -1
- package/ccw/dist/config/litellm-api-config-manager.d.ts.map +1 -1
- package/ccw/dist/config/litellm-api-config-manager.js +5 -3
- package/ccw/dist/config/litellm-api-config-manager.js.map +1 -1
- package/ccw/dist/config/litellm-provider-models.d.ts +73 -0
- package/ccw/dist/config/litellm-provider-models.d.ts.map +1 -0
- package/ccw/dist/config/litellm-provider-models.js +172 -0
- package/ccw/dist/config/litellm-provider-models.js.map +1 -0
- package/ccw/dist/config/provider-models.d.ts +25 -51
- package/ccw/dist/config/provider-models.d.ts.map +1 -1
- package/ccw/dist/config/provider-models.js +84 -149
- package/ccw/dist/config/provider-models.js.map +1 -1
- package/ccw/dist/config/storage-paths.d.ts.map +1 -1
- package/ccw/dist/config/storage-paths.js +23 -5
- package/ccw/dist/config/storage-paths.js.map +1 -1
- package/ccw/dist/core/auth/csrf-middleware.js +3 -3
- package/ccw/dist/core/auth/csrf-middleware.js.map +1 -1
- package/ccw/dist/core/dashboard-generator.d.ts.map +1 -1
- package/ccw/dist/core/dashboard-generator.js +3 -1
- package/ccw/dist/core/dashboard-generator.js.map +1 -1
- package/ccw/dist/core/routes/claude-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/claude-routes.js +206 -14
- package/ccw/dist/core/routes/claude-routes.js.map +1 -1
- package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/cli-routes.js.map +1 -1
- package/ccw/dist/core/routes/commands-routes.d.ts +7 -0
- package/ccw/dist/core/routes/commands-routes.d.ts.map +1 -0
- package/ccw/dist/core/routes/commands-routes.js +480 -0
- package/ccw/dist/core/routes/commands-routes.js.map +1 -0
- package/ccw/dist/core/routes/model-routes.d.ts +11 -0
- package/ccw/dist/core/routes/model-routes.d.ts.map +1 -0
- package/ccw/dist/core/routes/model-routes.js +112 -0
- package/ccw/dist/core/routes/model-routes.js.map +1 -0
- package/ccw/dist/core/routes/nav-status-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/nav-status-routes.js +84 -1
- package/ccw/dist/core/routes/nav-status-routes.js.map +1 -1
- package/ccw/dist/core/routes/provider-routes.d.ts +11 -0
- package/ccw/dist/core/routes/provider-routes.d.ts.map +1 -0
- package/ccw/dist/core/routes/provider-routes.js +67 -0
- package/ccw/dist/core/routes/provider-routes.js.map +1 -0
- package/ccw/dist/core/routes/skills-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/skills-routes.js +219 -7
- package/ccw/dist/core/routes/skills-routes.js.map +1 -1
- package/ccw/dist/core/routes/system-routes.d.ts.map +1 -1
- package/ccw/dist/core/routes/system-routes.js +58 -6
- package/ccw/dist/core/routes/system-routes.js.map +1 -1
- package/ccw/dist/core/server.d.ts.map +1 -1
- package/ccw/dist/core/server.js +13 -0
- package/ccw/dist/core/server.js.map +1 -1
- package/ccw/dist/mcp-server/index.js +2 -2
- package/ccw/dist/mcp-server/index.js.map +1 -1
- package/ccw/dist/tools/claude-cli-tools.d.ts +48 -11
- package/ccw/dist/tools/claude-cli-tools.d.ts.map +1 -1
- package/ccw/dist/tools/claude-cli-tools.js +146 -50
- package/ccw/dist/tools/claude-cli-tools.js.map +1 -1
- package/ccw/dist/tools/cli-config-manager.d.ts +1 -13
- package/ccw/dist/tools/cli-config-manager.d.ts.map +1 -1
- package/ccw/dist/tools/cli-config-manager.js +3 -27
- package/ccw/dist/tools/cli-config-manager.js.map +1 -1
- package/ccw/dist/tools/cli-executor-core.d.ts.map +1 -1
- package/ccw/dist/tools/cli-executor-core.js +7 -2
- package/ccw/dist/tools/cli-executor-core.js.map +1 -1
- package/ccw/dist/tools/cli-executor-state.d.ts.map +1 -1
- package/ccw/dist/tools/cli-history-store.d.ts +11 -0
- package/ccw/dist/tools/cli-history-store.d.ts.map +1 -1
- package/ccw/dist/tools/cli-history-store.js +82 -2
- package/ccw/dist/tools/cli-history-store.js.map +1 -1
- package/ccw/dist/tools/command-registry.d.ts +7 -0
- package/ccw/dist/tools/command-registry.d.ts.map +1 -1
- package/ccw/dist/tools/command-registry.js +14 -1
- package/ccw/dist/tools/command-registry.js.map +1 -1
- package/ccw/dist/tools/generate-module-docs.d.ts.map +1 -1
- package/ccw/dist/tools/generate-module-docs.js +11 -7
- package/ccw/dist/tools/generate-module-docs.js.map +1 -1
- package/ccw/dist/tools/litellm-executor.d.ts +1 -0
- package/ccw/dist/tools/litellm-executor.d.ts.map +1 -1
- package/ccw/dist/tools/litellm-executor.js +11 -9
- package/ccw/dist/tools/litellm-executor.js.map +1 -1
- package/ccw/dist/types/skill-types.d.ts +97 -0
- package/ccw/dist/types/skill-types.d.ts.map +1 -0
- package/ccw/dist/types/skill-types.js +6 -0
- package/ccw/dist/types/skill-types.js.map +1 -0
- package/ccw/src/commands/cli.ts +36 -5
- package/ccw/src/commands/issue.ts +81 -26
- package/ccw/src/config/litellm-api-config-manager.ts +5 -3
- package/ccw/src/config/litellm-provider-models.ts +222 -0
- package/ccw/src/config/provider-models.ts +91 -190
- package/ccw/src/config/storage-paths.ts +20 -5
- package/ccw/src/core/auth/csrf-middleware.ts +3 -3
- package/ccw/src/core/dashboard-generator.ts +3 -1
- package/ccw/src/core/routes/claude-routes.ts +233 -15
- package/ccw/src/core/routes/cli-routes.ts +2 -3
- package/ccw/src/core/routes/commands-routes.ts +620 -0
- package/ccw/src/core/routes/nav-status-routes.ts +95 -1
- package/ccw/src/core/routes/provider-routes.ts +78 -0
- package/ccw/src/core/routes/skills-routes.ts +266 -45
- package/ccw/src/core/routes/system-routes.ts +102 -50
- package/ccw/src/core/server.ts +13 -0
- package/ccw/src/mcp-server/index.ts +2 -2
- package/ccw/src/templates/dashboard-css/18-cli-settings.css +35 -0
- package/ccw/src/templates/dashboard-css/37-commands.css +193 -0
- package/ccw/src/templates/dashboard-js/components/navigation.js +4 -0
- package/ccw/src/templates/dashboard-js/i18n.js +116 -0
- package/ccw/src/templates/dashboard-js/views/cli-manager.js +249 -4
- package/ccw/src/templates/dashboard-js/views/commands-manager.js +503 -0
- package/ccw/src/templates/dashboard-js/views/issue-manager.js +7 -7
- package/ccw/src/templates/dashboard-js/views/mcp-manager.js +2 -7
- package/ccw/src/templates/dashboard-js/views/skills-manager.js +164 -23
- package/ccw/src/templates/dashboard.html +7 -0
- package/ccw/src/tools/claude-cli-tools.ts +170 -56
- package/ccw/src/tools/cli-config-manager.ts +2 -33
- package/ccw/src/tools/cli-executor-core.ts +8 -2
- package/ccw/src/tools/cli-history-store.ts +92 -2
- package/ccw/src/tools/command-registry.ts +16 -1
- package/ccw/src/tools/generate-module-docs.ts +11 -7
- package/ccw/src/tools/litellm-executor.ts +13 -9
- package/ccw/src/types/skill-types.ts +99 -0
- package/package.json +1 -1
- package/.claude/commands/enhance-prompt.md +0 -93
- package/.claude/commands/memory/code-map-memory.md +0 -687
- package/.claude/commands/memory/docs.md +0 -615
- package/.claude/commands/memory/load-skill-memory.md +0 -182
- package/.claude/commands/memory/skill-memory.md +0 -525
- package/.claude/commands/memory/swagger-docs.md +0 -773
- package/.claude/commands/memory/tech-research-rules.md +0 -310
- package/.claude/commands/memory/workflow-skill-memory.md +0 -517
- package/.claude/commands/task/breakdown.md +0 -208
- package/.claude/commands/task/create.md +0 -152
- package/.claude/commands/task/execute.md +0 -270
- package/.claude/commands/task/replan.md +0 -441
- package/.claude/commands/version.md +0 -254
- package/.claude/commands/workflow/action-plan-verify.md +0 -485
- package/.claude/commands/workflow/brainstorm/api-designer.md +0 -587
- package/.claude/commands/workflow/brainstorm/data-architect.md +0 -220
- package/.claude/commands/workflow/brainstorm/product-manager.md +0 -200
- package/.claude/commands/workflow/brainstorm/product-owner.md +0 -200
- package/.claude/commands/workflow/brainstorm/scrum-master.md +0 -200
- package/.claude/commands/workflow/brainstorm/subject-matter-expert.md +0 -200
- package/.claude/commands/workflow/brainstorm/system-architect.md +0 -389
- package/.claude/commands/workflow/brainstorm/ui-designer.md +0 -221
- package/.claude/commands/workflow/brainstorm/ux-expert.md +0 -221
- package/.claude/commands/workflow/debug.md +0 -331
- package/.claude/commands/workflow/develop-with-file.md +0 -1044
- package/.claude/skills/ccw-loop/README.md +0 -303
- package/.claude/skills/skill-generator/templates/script-bash.md +0 -277
- package/.claude/skills/skill-generator/templates/script-python.md +0 -198
- package/.codex/prompts/debug.md +0 -318
- package/ccw/src/core/routes/mcp-routes.ts.backup +0 -549
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: tech-research-rules
|
|
3
|
-
description: "3-phase orchestrator: extract tech stack → Exa research → generate path-conditional rules (auto-loaded by Claude Code)"
|
|
4
|
-
argument-hint: "[session-id | tech-stack-name] [--regenerate] [--tool <gemini|qwen>]"
|
|
5
|
-
allowed-tools: SlashCommand(*), TodoWrite(*), Bash(*), Read(*), Write(*), Task(*)
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Tech Stack Rules Generator
|
|
9
|
-
|
|
10
|
-
## Overview
|
|
11
|
-
|
|
12
|
-
**Purpose**: Generate multi-layered, path-conditional rules that Claude Code automatically loads based on file context.
|
|
13
|
-
|
|
14
|
-
**Output Structure**:
|
|
15
|
-
```
|
|
16
|
-
.claude/rules/tech/{tech-stack}/
|
|
17
|
-
├── core.md # paths: **/*.{ext} - Core principles
|
|
18
|
-
├── patterns.md # paths: src/**/*.{ext} - Implementation patterns
|
|
19
|
-
├── testing.md # paths: **/*.{test,spec}.{ext} - Testing rules
|
|
20
|
-
├── config.md # paths: *.config.* - Configuration rules
|
|
21
|
-
├── api.md # paths: **/api/**/* - API rules (backend only)
|
|
22
|
-
├── components.md # paths: **/components/**/* - Component rules (frontend only)
|
|
23
|
-
└── metadata.json # Generation metadata
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
**Templates Location**: `~/.claude/workflows/cli-templates/prompts/rules/`
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## Core Rules
|
|
31
|
-
|
|
32
|
-
1. **Start Immediately**: First action is TodoWrite initialization
|
|
33
|
-
2. **Path-Conditional Output**: Every rule file includes `paths` frontmatter
|
|
34
|
-
3. **Template-Driven**: Agent reads templates before generating content
|
|
35
|
-
4. **Agent Produces Files**: Agent writes all rule files directly
|
|
36
|
-
5. **No Manual Loading**: Rules auto-activate when Claude works with matching files
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## 3-Phase Execution
|
|
41
|
-
|
|
42
|
-
### Phase 1: Prepare Context & Detect Tech Stack
|
|
43
|
-
|
|
44
|
-
**Goal**: Detect input mode, extract tech stack info, determine file extensions
|
|
45
|
-
|
|
46
|
-
**Input Mode Detection**:
|
|
47
|
-
```bash
|
|
48
|
-
input="$1"
|
|
49
|
-
|
|
50
|
-
if [[ "$input" == WFS-* ]]; then
|
|
51
|
-
MODE="session"
|
|
52
|
-
SESSION_ID="$input"
|
|
53
|
-
# Read workflow-session.json to extract tech stack
|
|
54
|
-
else
|
|
55
|
-
MODE="direct"
|
|
56
|
-
TECH_STACK_NAME="$input"
|
|
57
|
-
fi
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
**Tech Stack Analysis**:
|
|
61
|
-
```javascript
|
|
62
|
-
// Decompose composite tech stacks
|
|
63
|
-
// "typescript-react-nextjs" → ["typescript", "react", "nextjs"]
|
|
64
|
-
|
|
65
|
-
const TECH_EXTENSIONS = {
|
|
66
|
-
"typescript": "{ts,tsx}",
|
|
67
|
-
"javascript": "{js,jsx}",
|
|
68
|
-
"python": "py",
|
|
69
|
-
"rust": "rs",
|
|
70
|
-
"go": "go",
|
|
71
|
-
"java": "java",
|
|
72
|
-
"csharp": "cs",
|
|
73
|
-
"ruby": "rb",
|
|
74
|
-
"php": "php"
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
const FRAMEWORK_TYPE = {
|
|
78
|
-
"react": "frontend",
|
|
79
|
-
"vue": "frontend",
|
|
80
|
-
"angular": "frontend",
|
|
81
|
-
"nextjs": "fullstack",
|
|
82
|
-
"nuxt": "fullstack",
|
|
83
|
-
"fastapi": "backend",
|
|
84
|
-
"express": "backend",
|
|
85
|
-
"django": "backend",
|
|
86
|
-
"rails": "backend"
|
|
87
|
-
};
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**Check Existing Rules**:
|
|
91
|
-
```bash
|
|
92
|
-
normalized_name=$(echo "$TECH_STACK_NAME" | tr '[:upper:]' '[:lower:]' | tr ' ' '-')
|
|
93
|
-
rules_dir=".claude/rules/tech/${normalized_name}"
|
|
94
|
-
existing_count=$(find "${rules_dir}" -name "*.md" 2>/dev/null | wc -l || echo 0)
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
**Skip Decision**:
|
|
98
|
-
- If `existing_count > 0` AND no `--regenerate` → `SKIP_GENERATION = true`
|
|
99
|
-
- If `--regenerate` → Delete existing and regenerate
|
|
100
|
-
|
|
101
|
-
**Output Variables**:
|
|
102
|
-
- `TECH_STACK_NAME`: Normalized name
|
|
103
|
-
- `PRIMARY_LANG`: Primary language
|
|
104
|
-
- `FILE_EXT`: File extension pattern
|
|
105
|
-
- `FRAMEWORK_TYPE`: frontend | backend | fullstack | library
|
|
106
|
-
- `COMPONENTS`: Array of tech components
|
|
107
|
-
- `SKIP_GENERATION`: Boolean
|
|
108
|
-
|
|
109
|
-
**TodoWrite**: Mark phase 1 completed
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
### Phase 2: Agent Produces Path-Conditional Rules
|
|
114
|
-
|
|
115
|
-
**Skip Condition**: Skipped if `SKIP_GENERATION = true`
|
|
116
|
-
|
|
117
|
-
**Goal**: Delegate to agent for Exa research and rule file generation
|
|
118
|
-
|
|
119
|
-
**Template Files**:
|
|
120
|
-
```
|
|
121
|
-
~/.claude/workflows/cli-templates/prompts/rules/
|
|
122
|
-
├── tech-rules-agent-prompt.txt # Agent instructions
|
|
123
|
-
├── rule-core.txt # Core principles template
|
|
124
|
-
├── rule-patterns.txt # Implementation patterns template
|
|
125
|
-
├── rule-testing.txt # Testing rules template
|
|
126
|
-
├── rule-config.txt # Configuration rules template
|
|
127
|
-
├── rule-api.txt # API rules template (backend)
|
|
128
|
-
└── rule-components.txt # Component rules template (frontend)
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
**Agent Task**:
|
|
132
|
-
|
|
133
|
-
```javascript
|
|
134
|
-
Task({
|
|
135
|
-
subagent_type: "general-purpose",
|
|
136
|
-
description: `Generate tech stack rules: ${TECH_STACK_NAME}`,
|
|
137
|
-
prompt: `
|
|
138
|
-
You are generating path-conditional rules for Claude Code.
|
|
139
|
-
|
|
140
|
-
## Context
|
|
141
|
-
- Tech Stack: ${TECH_STACK_NAME}
|
|
142
|
-
- Primary Language: ${PRIMARY_LANG}
|
|
143
|
-
- File Extensions: ${FILE_EXT}
|
|
144
|
-
- Framework Type: ${FRAMEWORK_TYPE}
|
|
145
|
-
- Components: ${JSON.stringify(COMPONENTS)}
|
|
146
|
-
- Output Directory: .claude/rules/tech/${TECH_STACK_NAME}/
|
|
147
|
-
|
|
148
|
-
## Instructions
|
|
149
|
-
|
|
150
|
-
Read the agent prompt template for detailed instructions.
|
|
151
|
-
Use --rule rules-tech-rules-agent-prompt to load the template automatically.
|
|
152
|
-
|
|
153
|
-
## Execution Steps
|
|
154
|
-
|
|
155
|
-
1. Execute Exa research queries (see agent prompt)
|
|
156
|
-
2. Read each rule template
|
|
157
|
-
3. Generate rule files following template structure
|
|
158
|
-
4. Write files to output directory
|
|
159
|
-
5. Write metadata.json
|
|
160
|
-
6. Report completion
|
|
161
|
-
|
|
162
|
-
## Variable Substitutions
|
|
163
|
-
|
|
164
|
-
Replace in templates:
|
|
165
|
-
- {TECH_STACK_NAME} → ${TECH_STACK_NAME}
|
|
166
|
-
- {PRIMARY_LANG} → ${PRIMARY_LANG}
|
|
167
|
-
- {FILE_EXT} → ${FILE_EXT}
|
|
168
|
-
- {FRAMEWORK_TYPE} → ${FRAMEWORK_TYPE}
|
|
169
|
-
`
|
|
170
|
-
})
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
**Completion Criteria**:
|
|
174
|
-
- 4-6 rule files written with proper `paths` frontmatter
|
|
175
|
-
- metadata.json written
|
|
176
|
-
- Agent reports files created
|
|
177
|
-
|
|
178
|
-
**TodoWrite**: Mark phase 2 completed
|
|
179
|
-
|
|
180
|
-
---
|
|
181
|
-
|
|
182
|
-
### Phase 3: Verify & Report
|
|
183
|
-
|
|
184
|
-
**Goal**: Verify generated files and provide usage summary
|
|
185
|
-
|
|
186
|
-
**Steps**:
|
|
187
|
-
|
|
188
|
-
1. **Verify Files**:
|
|
189
|
-
```bash
|
|
190
|
-
find ".claude/rules/tech/${TECH_STACK_NAME}" -name "*.md" -type f
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
2. **Validate Frontmatter**:
|
|
194
|
-
```bash
|
|
195
|
-
head -5 ".claude/rules/tech/${TECH_STACK_NAME}/core.md"
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
3. **Read Metadata**:
|
|
199
|
-
```javascript
|
|
200
|
-
Read(`.claude/rules/tech/${TECH_STACK_NAME}/metadata.json`)
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
4. **Generate Summary Report**:
|
|
204
|
-
```
|
|
205
|
-
Tech Stack Rules Generated
|
|
206
|
-
|
|
207
|
-
Tech Stack: {TECH_STACK_NAME}
|
|
208
|
-
Location: .claude/rules/tech/{TECH_STACK_NAME}/
|
|
209
|
-
|
|
210
|
-
Files Created:
|
|
211
|
-
├── core.md → paths: **/*.{ext}
|
|
212
|
-
├── patterns.md → paths: src/**/*.{ext}
|
|
213
|
-
├── testing.md → paths: **/*.{test,spec}.{ext}
|
|
214
|
-
├── config.md → paths: *.config.*
|
|
215
|
-
├── api.md → paths: **/api/**/* (if backend)
|
|
216
|
-
└── components.md → paths: **/components/**/* (if frontend)
|
|
217
|
-
|
|
218
|
-
Auto-Loading:
|
|
219
|
-
- Rules apply automatically when editing matching files
|
|
220
|
-
- No manual loading required
|
|
221
|
-
|
|
222
|
-
Example Activation:
|
|
223
|
-
- Edit src/components/Button.tsx → core.md + patterns.md + components.md
|
|
224
|
-
- Edit tests/api.test.ts → core.md + testing.md
|
|
225
|
-
- Edit package.json → config.md
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
**TodoWrite**: Mark phase 3 completed
|
|
229
|
-
|
|
230
|
-
---
|
|
231
|
-
|
|
232
|
-
## Path Pattern Reference
|
|
233
|
-
|
|
234
|
-
| Pattern | Matches |
|
|
235
|
-
|---------|---------|
|
|
236
|
-
| `**/*.ts` | All .ts files |
|
|
237
|
-
| `src/**/*` | All files under src/ |
|
|
238
|
-
| `*.config.*` | Config files in root |
|
|
239
|
-
| `**/*.{ts,tsx}` | .ts and .tsx files |
|
|
240
|
-
|
|
241
|
-
| Tech Stack | Core Pattern | Test Pattern |
|
|
242
|
-
|------------|--------------|--------------|
|
|
243
|
-
| TypeScript | `**/*.{ts,tsx}` | `**/*.{test,spec}.{ts,tsx}` |
|
|
244
|
-
| Python | `**/*.py` | `**/test_*.py, **/*_test.py` |
|
|
245
|
-
| Rust | `**/*.rs` | `**/tests/**/*.rs` |
|
|
246
|
-
| Go | `**/*.go` | `**/*_test.go` |
|
|
247
|
-
|
|
248
|
-
---
|
|
249
|
-
|
|
250
|
-
## Parameters
|
|
251
|
-
|
|
252
|
-
```bash
|
|
253
|
-
/memory:tech-research [session-id | "tech-stack-name"] [--regenerate]
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
**Arguments**:
|
|
257
|
-
- **session-id**: `WFS-*` format - Extract from workflow session
|
|
258
|
-
- **tech-stack-name**: Direct input - `"typescript"`, `"typescript-react"`
|
|
259
|
-
- **--regenerate**: Force regenerate existing rules
|
|
260
|
-
|
|
261
|
-
---
|
|
262
|
-
|
|
263
|
-
## Examples
|
|
264
|
-
|
|
265
|
-
### Single Language
|
|
266
|
-
|
|
267
|
-
```bash
|
|
268
|
-
/memory:tech-research "typescript"
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
**Output**: `.claude/rules/tech/typescript/` with 4 rule files
|
|
272
|
-
|
|
273
|
-
### Frontend Stack
|
|
274
|
-
|
|
275
|
-
```bash
|
|
276
|
-
/memory:tech-research "typescript-react"
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
**Output**: `.claude/rules/tech/typescript-react/` with 5 rule files (includes components.md)
|
|
280
|
-
|
|
281
|
-
### Backend Stack
|
|
282
|
-
|
|
283
|
-
```bash
|
|
284
|
-
/memory:tech-research "python-fastapi"
|
|
285
|
-
```
|
|
286
|
-
|
|
287
|
-
**Output**: `.claude/rules/tech/python-fastapi/` with 5 rule files (includes api.md)
|
|
288
|
-
|
|
289
|
-
### From Session
|
|
290
|
-
|
|
291
|
-
```bash
|
|
292
|
-
/memory:tech-research WFS-user-auth-20251104
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
**Workflow**: Extract tech stack from session → Generate rules
|
|
296
|
-
|
|
297
|
-
---
|
|
298
|
-
|
|
299
|
-
## Comparison: Rules vs SKILL
|
|
300
|
-
|
|
301
|
-
| Aspect | SKILL Memory | Rules |
|
|
302
|
-
|--------|--------------|-------|
|
|
303
|
-
| Loading | Manual: `Skill("tech")` | Automatic by path |
|
|
304
|
-
| Scope | All files when loaded | Only matching files |
|
|
305
|
-
| Granularity | Monolithic packages | Per-file-type |
|
|
306
|
-
| Context | Full package | Only relevant rules |
|
|
307
|
-
|
|
308
|
-
**When to Use**:
|
|
309
|
-
- **Rules**: Tech stack conventions per file type
|
|
310
|
-
- **SKILL**: Reference docs, APIs, examples for manual lookup
|