@torka/claude-workflows 0.1.0 → 0.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.
package/README.md CHANGED
@@ -9,8 +9,7 @@ Claude Code workflow helpers for epic automation, git management, and developer
9
9
  | **Git Cleanup & Merge** | Intelligent branch management, PR creation, CI monitoring | Yes |
10
10
  | **Parallelization Analysis** | Identify which epics can run in parallel with Git worktrees | Yes |
11
11
  | **Agent Creator** | Design and deploy custom Claude Code agents | Yes |
12
- | **Auto-Approve Hook** | Safe command auto-approval for solo dev workflows | Yes |
13
- | **Context Monitor** | Real-time context usage status line | Yes |
12
+ | **Designer-Founder** | Transform ideas into dev-ready frontend artifacts | Yes |
14
13
  | **Epic Orchestration** | Automate multi-story epic execution with sub-agents | Requires BMAD |
15
14
  | **Code Review Agent** | Principal-level code review automation | Requires BMM |
16
15
  | **Story Prep Agent** | Convert requirements to developer-ready specs | Requires BMM |
@@ -35,45 +34,14 @@ The installer automatically copies files to your `.claude/` directory:
35
34
 
36
35
  ## Post-Installation Setup
37
36
 
38
- ### 1. Configure Hooks (recommended)
39
-
40
- Copy the hooks configuration from `examples/settings.local.example.json` to your `.claude/settings.local.json`.
41
-
42
- **Auto-approve hook** (auto-approves safe commands):
43
-
44
- ```json
45
- {
46
- "hooks": {
47
- "PreToolUse": [
48
- {
49
- "matcher": "Bash|Read|Grep|Glob|Write|Edit|MultiEdit",
50
- "hooks": [
51
- {
52
- "type": "command",
53
- "command": "python3 .claude/scripts/auto_approve_safe.py"
54
- }
55
- ]
56
- }
57
- ]
58
- }
59
- }
60
- ```
61
-
62
- ### 2. Configure Status Line (optional)
37
+ After installation, try running one of the commands to test:
63
38
 
64
- Add to your `.claude/settings.local.json`:
65
-
66
- ```json
67
- {
68
- "statusLine": {
69
- "type": "command",
70
- "command": "python3 .claude/scripts/context-monitor.py"
71
- }
72
- }
39
+ ```bash
40
+ /git-cleanup-and-merge
41
+ /plan-parallelization
42
+ /designer-founder
73
43
  ```
74
44
 
75
- This shows a real-time context usage bar with percentage and warnings.
76
-
77
45
  ## Usage
78
46
 
79
47
  ### Commands
@@ -150,44 +118,22 @@ Design and deploy custom Claude Code agents:
150
118
  /agent-creator
151
119
  ```
152
120
 
153
- ### Hooks
154
-
155
- #### `auto_approve_safe.py`
156
-
157
- PreToolUse hook that auto-approves safe commands:
158
- - **Allowed**: Read-only commands, tests, linting, git status/diff/log
159
- - **Denied**: Dangerous commands (sudo, rm -rf, etc.)
160
- - **Prompted**: Everything else defers to normal permissions
161
-
162
- Customize rules in `.claude/scripts/auto_approve_safe.rules.json`:
163
-
164
- ```json
165
- {
166
- "allow_patterns": [
167
- "^npm test",
168
- "^git status"
169
- ],
170
- "deny_patterns": [
171
- "^sudo",
172
- "rm.*-rf"
173
- ],
174
- "sensitive_paths": [
175
- "\\.env$",
176
- "credentials"
177
- ]
178
- }
179
- ```
121
+ #### `/designer-founder`
180
122
 
181
- ### Scripts
123
+ Transform design ideas into production-ready frontend artifacts:
124
+ - UI/UX design workflow optimized for solo developers
125
+ - Component-first approach using shadcn/ui + Tailwind CSS
126
+ - Multiple design tools: wireframes, MagicPatterns, SuperDesign
127
+ - Dev-ready output: component strategies, layouts, user journeys
182
128
 
183
- #### `context-monitor.py`
129
+ **Philosophy:**
130
+ - Library-first: Start from "what existing component can I use?"
131
+ - Decision-focused: Capture choices, not specifications
132
+ - Speed over perfection: Working prototype beats perfect mockup
184
133
 
185
- Status line script showing:
186
- - Current model name
187
- - Working directory
188
- - Git branch
189
- - Context usage bar with percentage
190
- - Warnings at 75%, 90%, 95% usage
134
+ ```
135
+ /designer-founder
136
+ ```
191
137
 
192
138
  ## Dependencies
193
139
 
@@ -203,8 +149,7 @@ Some components require the [BMAD Method](https://github.com/bmad-method) workfl
203
149
  - `/git-cleanup-and-merge`
204
150
  - `/plan-parallelization`
205
151
  - `/agent-creator` skill
206
- - `auto_approve_safe` hook
207
- - `context-monitor` status line
152
+ - `/designer-founder` skill
208
153
 
209
154
  ## File Structure
210
155
 
@@ -219,17 +164,18 @@ After installation, files are placed in:
219
164
  ├── agents/
220
165
  │ ├── principal-code-reviewer.md
221
166
  │ └── story-prep-master.md
222
- ├── skills/
223
- │ └── agent-creator/
224
- ├── SKILL.md
225
- ├── REGISTRY.yaml
226
- ├── STORY-AGENT-TEMPLATE.md
227
- ├── NON-STORY-AGENT-TEMPLATE.md
228
- └── COMMUNITY-REPOS.md
229
- └── scripts/
230
- ├── auto_approve_safe.py
231
- ├── auto_approve_safe.rules.json
232
- └── context-monitor.py
167
+ └── skills/
168
+ ├── agent-creator/
169
+ ├── SKILL.md
170
+ ├── REGISTRY.yaml
171
+ ├── STORY-AGENT-TEMPLATE.md
172
+ ├── NON-STORY-AGENT-TEMPLATE.md
173
+ └── COMMUNITY-REPOS.md
174
+ └── designer-founder/
175
+ ├── workflow.md
176
+ ├── steps/
177
+ ├── templates/
178
+ └── tools/
233
179
  ```
234
180
 
235
181
  ## Uninstallation
@@ -248,27 +194,11 @@ rm -rf .claude/commands/implement-epic-with-subagents.md \
248
194
  .claude/agents/principal-code-reviewer.md \
249
195
  .claude/agents/story-prep-master.md \
250
196
  .claude/skills/agent-creator \
251
- .claude/scripts/auto_approve_safe.py \
252
- .claude/scripts/auto_approve_safe.rules.json \
253
- .claude/scripts/context-monitor.py
197
+ .claude/skills/designer-founder
254
198
  ```
255
199
 
256
- **Note**: Your `settings.local.json` is not modified—you may want to manually remove hook/statusLine configurations.
257
-
258
200
  ## Customization
259
201
 
260
- ### Extending Auto-Approve Rules
261
-
262
- Edit `.claude/scripts/auto_approve_safe.rules.json`:
263
-
264
- ```json
265
- {
266
- "allow_patterns": [
267
- "^your-custom-command"
268
- ]
269
- }
270
- ```
271
-
272
202
  ### Creating Custom Agents
273
203
 
274
204
  Use the `/agent-creator` skill to create project-specific agents:
@@ -294,6 +224,5 @@ Varun Torka
294
224
 
295
225
  ## Links
296
226
 
297
- - [GitHub Repository](https://github.com/varuntorka/vt-claude-workflows)
298
- - [Issue Tracker](https://github.com/varuntorka/vt-claude-workflows/issues)
299
227
  - [Claude Code Documentation](https://code.claude.com/docs)
228
+ - [npm Package](https://www.npmjs.com/package/@torka/claude-workflows)
@@ -14,44 +14,5 @@
14
14
  ],
15
15
  "deny": [],
16
16
  "ask": []
17
- },
18
- "hooks": {
19
- "PreToolUse": [
20
- {
21
- "matcher": "Bash|Read|Grep|Glob|Write|Edit|MultiEdit",
22
- "hooks": [
23
- {
24
- "type": "command",
25
- "command": "python3 .claude/scripts/auto_approve_safe.py"
26
- }
27
- ]
28
- }
29
- ],
30
- "PostToolUse": [
31
- {
32
- "matcher": "Edit|MultiEdit",
33
- "hooks": [
34
- {
35
- "type": "command",
36
- "command": "if [[ \"$CLAUDE_TOOL_FILE_PATH\" == *.js || \"$CLAUDE_TOOL_FILE_PATH\" == *.ts || \"$CLAUDE_TOOL_FILE_PATH\" == *.jsx || \"$CLAUDE_TOOL_FILE_PATH\" == *.tsx ]]; then npx eslint \"$CLAUDE_TOOL_FILE_PATH\" --fix 2>/dev/null || true; fi"
37
- }
38
- ]
39
- }
40
- ],
41
- "Stop": [
42
- {
43
- "matcher": "*",
44
- "hooks": [
45
- {
46
- "type": "command",
47
- "command": "if command -v osascript >/dev/null 2>&1; then osascript -e 'display notification \"Claude Code task completed\" with title \"Claude Code\"'; elif command -v notify-send >/dev/null 2>&1; then notify-send 'Claude Code' 'Task completed'; fi"
48
- }
49
- ]
50
- }
51
- ]
52
- },
53
- "statusLine": {
54
- "type": "command",
55
- "command": "python3 .claude/scripts/context-monitor.py"
56
17
  }
57
18
  }
package/install.js CHANGED
@@ -133,8 +133,6 @@ function install() {
133
133
  { src: 'commands', dest: 'commands' },
134
134
  { src: 'agents', dest: 'agents' },
135
135
  { src: 'skills', dest: 'skills' },
136
- { src: 'hooks', dest: 'scripts' }, // Hooks go to scripts directory
137
- { src: 'scripts', dest: 'scripts' },
138
136
  ];
139
137
 
140
138
  for (const { src, dest } of mappings) {
@@ -154,9 +152,8 @@ function install() {
154
152
 
155
153
  // Post-install instructions
156
154
  log('\n' + colors.bold + '📝 Next Steps' + colors.reset);
157
- log(' 1. Configure hooks in .claude/settings.local.json');
158
- log(' 2. See examples/settings.local.example.json for configuration');
159
- log(' 3. Run /git-cleanup-and-merge or /plan-parallelization to test\n');
155
+ log(' 1. Run /git-cleanup-and-merge or /plan-parallelization to test');
156
+ log(' 2. Try /designer-founder for UI/UX design workflows\n');
160
157
 
161
158
  // Note about BMAD dependencies
162
159
  log(colors.yellow + '⚠️ Note: Some components require BMAD Method workflows:' + colors.reset);
@@ -167,8 +164,7 @@ function install() {
167
164
  log(' ✓ git-cleanup-and-merge');
168
165
  log(' ✓ plan-parallelization');
169
166
  log(' ✓ agent-creator skill');
170
- log(' ✓ auto_approve_safe hook');
171
- log(' ✓ context-monitor status line\n');
167
+ log(' ✓ designer-founder skill\n');
172
168
  }
173
169
 
174
170
  // Run installation
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@torka/claude-workflows",
3
- "version": "0.1.0",
4
- "description": "Claude Code workflow helpers: epic automation, git cleanup, agents, hooks, and status line",
3
+ "version": "0.2.0",
4
+ "description": "Claude Code workflow helpers: epic automation, git cleanup, agents, and design workflows",
5
5
  "keywords": [
6
6
  "claude-code",
7
7
  "ai-workflows",
@@ -14,14 +14,6 @@
14
14
  ],
15
15
  "author": "Varun Torka",
16
16
  "license": "MIT",
17
- "homepage": "https://github.com/varuntorka/vt-claude-workflows#readme",
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/varuntorka/vt-claude-workflows.git"
21
- },
22
- "bugs": {
23
- "url": "https://github.com/varuntorka/vt-claude-workflows/issues"
24
- },
25
17
  "scripts": {
26
18
  "postinstall": "node install.js",
27
19
  "preuninstall": "node uninstall.js"
@@ -30,8 +22,6 @@
30
22
  "commands",
31
23
  "agents",
32
24
  "skills",
33
- "hooks",
34
- "scripts",
35
25
  "examples",
36
26
  ".claude-plugin",
37
27
  "install.js",
@@ -0,0 +1,171 @@
1
+ # Step 1: Context & Mode Selection
2
+
3
+ ## MANDATORY EXECUTION RULES (READ FIRST)
4
+
5
+ - 🛑 NEVER assume project state without checking
6
+ - 📖 CRITICAL: Read complete step file before taking action
7
+ - ✅ ALWAYS treat this as collaborative discovery
8
+ - 🎯 Goal: Understand where we are and what mode to use
9
+
10
+ ---
11
+
12
+ ## YOUR TASK
13
+
14
+ Establish context and select the appropriate workflow mode based on project state and user intent.
15
+
16
+ ---
17
+
18
+ ## TASK SEQUENCE
19
+
20
+ ### 1. Greet and Understand Intent
21
+
22
+ Start with a brief greeting using `{user_name}` and ask what they'd like to design:
23
+
24
+ ```
25
+ Hey {user_name}! I'm ready to help you design.
26
+
27
+ What are you looking to create today?
28
+ ```
29
+
30
+ Wait for user input describing what they want to design.
31
+
32
+ ---
33
+
34
+ ### 2. Detect Project State
35
+
36
+ After user describes their intent, quickly assess:
37
+
38
+ **Check for existing project artifacts:**
39
+ - `_bmad-output/planning-artifacts/` - Do specs exist?
40
+ - `_bmad-output/planning-artifacts/ux-design/` - Existing design docs?
41
+ - Epic/story files related to user's intent?
42
+
43
+ **Determine project phase:**
44
+ - **Greenfield**: No relevant specs found → Need to establish design direction
45
+ - **Mid-project**: Specs exist → Pull context, focus on specific scope
46
+
47
+ **Report findings concisely:**
48
+ ```
49
+ Project Context:
50
+ - [Greenfield / Existing project with specs]
51
+ - Related artifacts found: [list or "none"]
52
+ - Relevant epics/stories: [list or "none"]
53
+ ```
54
+
55
+ ---
56
+
57
+ ### 3. Check Available Tools
58
+
59
+ Detect and report tool availability:
60
+
61
+ ```
62
+ Available Tools:
63
+ ✓ SuperDesign - HTML/CSS prototyping
64
+ [✓/✗] MagicPatterns MCP - React component generation
65
+ [✓/✗] shadcn MCP - Component search & install
66
+ [✓/✗] Playwright MCP - Screenshot verification
67
+ ```
68
+
69
+ Note: shadcn CLI (`npx shadcn@latest add`) is always available as fallback.
70
+
71
+ ---
72
+
73
+ ### 4. Present Mode Selection
74
+
75
+ Based on context, recommend a mode and let user choose:
76
+
77
+ ```
78
+ WORKFLOW MODE
79
+
80
+ Based on your request, I recommend: [Quick Prototype / Production Flow]
81
+
82
+ [Q] Quick Prototype
83
+ → Fast visual exploration
84
+ → Output: HTML prototype or wireframe
85
+ → Best for: Testing ideas, exploring directions
86
+
87
+ [P] Production Flow
88
+ → Full dev-ready artifacts
89
+ → Output: Component strategy, layouts, user journeys
90
+ → Best for: Features going into the product
91
+
92
+ Which mode? [Q/P]
93
+ ```
94
+
95
+ **Recommendation logic:**
96
+ - User says "explore", "try", "prototype", "quick" → Recommend Quick
97
+ - User mentions specific epic/story, "build", "implement" → Recommend Production
98
+ - Greenfield project, first design → Recommend Production (establish foundation)
99
+ - Uncertain → Ask user
100
+
101
+ ---
102
+
103
+ ### 5. Confirm and Route
104
+
105
+ Once user selects mode, confirm and route:
106
+
107
+ **If Quick Prototype:**
108
+ ```
109
+ Quick Prototype mode selected.
110
+
111
+ We'll skip detailed specs and focus on rapid visualization.
112
+ Ready to move to design tool selection.
113
+ ```
114
+ → Proceed to Step 3 (skip Step 2)
115
+
116
+ **If Production Flow:**
117
+ ```
118
+ Production Flow selected.
119
+
120
+ We'll create dev-ready artifacts including:
121
+ - Component strategy with shadcn mappings
122
+ - Page layouts (responsive)
123
+ - User journeys (if multi-step flow)
124
+
125
+ Let's define the scope first.
126
+ ```
127
+ → Proceed to Step 2
128
+
129
+ ---
130
+
131
+ ## COLLABORATION MENU
132
+
133
+ After confirming mode, present:
134
+
135
+ ```
136
+ [A] Advanced - Deep dive into project context
137
+ [P] Party Mode - Get multiple agent perspectives
138
+ [C] Continue - Proceed to next step
139
+ ```
140
+
141
+ **Menu Handlers:**
142
+ - **A**: Load `{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml` for deeper discovery
143
+ - **P**: Load `{project-root}/_bmad/core/workflows/party-mode/workflow.md` for multi-perspective input
144
+ - **C**: Proceed to next step based on mode selection
145
+
146
+ ---
147
+
148
+ ## STATE TO CARRY FORWARD
149
+
150
+ Store in working memory for subsequent steps:
151
+
152
+ ```yaml
153
+ mode: [quick_prototype | production]
154
+ user_intent: "[what user wants to design]"
155
+ project_state: [greenfield | existing]
156
+ related_artifacts: [list of relevant files found]
157
+ tools_available:
158
+ superdesign: true
159
+ magicpatterns: [true/false]
160
+ shadcn_mcp: [true/false]
161
+ playwright: [true/false]
162
+ ```
163
+
164
+ ---
165
+
166
+ ## NEXT STEP
167
+
168
+ - If mode = `quick_prototype`: Load `./step-03-design.md`
169
+ - If mode = `production`: Load `./step-02-scope.md`
170
+
171
+ Remember: Do NOT proceed until user explicitly selects [C]
@@ -0,0 +1,75 @@
1
+ # Step 1b: Continue Existing Session
2
+
3
+ ## PURPOSE
4
+
5
+ Handle resumption of an interrupted designer-founder workflow session.
6
+
7
+ ---
8
+
9
+ ## DETECTION
10
+
11
+ This step is loaded when:
12
+ - User invokes designer-founder workflow
13
+ - Existing design session state is detected
14
+ - User confirms they want to continue (not start fresh)
15
+
16
+ ---
17
+
18
+ ## TASK SEQUENCE
19
+
20
+ ### 1. Detect Previous State
21
+
22
+ Check for indicators of previous session:
23
+ - Recent files in `{planning_artifacts}/ux-design/` matching current date
24
+ - Incomplete artifacts (missing expected files)
25
+ - SuperDesign files created recently in `.superdesign/design_iterations/`
26
+
27
+ ### 2. Present Recovery Options
28
+
29
+ ```
30
+ EXISTING SESSION DETECTED
31
+
32
+ I found evidence of a previous design session:
33
+ - {list what was found}
34
+
35
+ Would you like to:
36
+
37
+ [C] Continue - Resume from where we left off
38
+ [R] Review - Show me what was created
39
+ [N] New - Start fresh (previous work preserved)
40
+ ```
41
+
42
+ ### 3. If Continue
43
+
44
+ Reconstruct state:
45
+ ```yaml
46
+ mode: {infer from artifacts}
47
+ scope: {infer from artifact names}
48
+ design:
49
+ tool_used: {infer from output files}
50
+ output_location: {found files}
51
+ last_completed_step: {infer from artifacts present}
52
+ ```
53
+
54
+ Route to appropriate step:
55
+ - Only design brief exists → Step 3 (Design) or Step 4 (Artifacts)
56
+ - Component strategy exists but incomplete → Step 4
57
+ - All artifacts exist → Offer to refine or start new
58
+
59
+ ### 4. If Review
60
+
61
+ Display summary of found artifacts and their contents.
62
+ Return to recovery options after review.
63
+
64
+ ### 5. If New
65
+
66
+ Proceed to `step-01-context.md` for fresh start.
67
+ Do not delete previous work.
68
+
69
+ ---
70
+
71
+ ## NEXT STEP
72
+
73
+ Based on user selection, route to:
74
+ - Appropriate step for continuation
75
+ - `step-01-context.md` for fresh start