ai-workflow-init 6.2.3 → 6.3.1

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.
@@ -0,0 +1,135 @@
1
+ # Cursor Sync Guide
2
+
3
+ Sync Claude Code workflows to Cursor format.
4
+
5
+ ---
6
+
7
+ ## Prerequisites
8
+
9
+ - Source: `.claude/commands/*.md`, `.claude/skills/**/SKILL.md`
10
+ - Target: `.cursor/commands/*.md`, `.cursor/rules/`
11
+
12
+ ---
13
+
14
+ ## Step 1: Fetch Cursor Documentation
15
+
16
+ **Search queries (try in order until successful):**
17
+ 1. `"cursor.com" rules for ai custom commands documentation`
18
+ 2. `site:docs.cursor.com rules commands`
19
+ 3. `cursor ai editor custom rules commands format`
20
+
21
+ **Key documentation URLs:**
22
+ - `https://docs.cursor.com/context/rules-for-ai`
23
+ - `https://docs.cursor.com/context/rules`
24
+ - `https://docs.cursor.com/chat/custom-modes`
25
+
26
+ **Extract and note:**
27
+ - Command file location: `.cursor/commands/` or `.cursor/rules/`
28
+ - File format: frontmatter structure, markdown body
29
+ - Supported frontmatter fields (name, description, etc.)
30
+ - Any special syntax or features (variables, context references)
31
+ - AGENTS.md support and location
32
+
33
+ ---
34
+
35
+ ## Step 2: Conversion Rules
36
+
37
+ ### Commands (`.cursor/commands/*.md`)
38
+
39
+ **Frontmatter:**
40
+ - Keep `name` and `description`
41
+ - Adjust other fields per Cursor docs
42
+
43
+ **Tool references conversion:**
44
+ | Claude Code | Cursor |
45
+ |-------------|--------|
46
+ | `AskUserQuestion(...)` | Ask user |
47
+ | `Task(subagent_type='Explore')` | Workspace search |
48
+ | `Read(file_path=...)` | Read file |
49
+ | `Write(file_path=...)` | Write file |
50
+ | `Edit(file_path=...)` | Edit file |
51
+ | `Glob(pattern=...)` | Find files |
52
+ | `Grep(pattern=...)` | Search content |
53
+ | `Bash(command=...)` | Run command |
54
+
55
+ **Skill references:**
56
+ - Convert `.claude/skills/...` → `.cursor/rules/...` or inline
57
+
58
+ **Keep:** Goal, Steps, Notes sections structure
59
+
60
+ ### Skills → Rules (`.cursor/rules/`)
61
+
62
+ Convert Claude skills to Cursor rules format.
63
+
64
+ ---
65
+
66
+ ## Step 3: Templates
67
+
68
+ ### Command Template
69
+
70
+ ```markdown
71
+ ---
72
+ name: {command-name}
73
+ description: {description}
74
+ ---
75
+
76
+ ## Goal
77
+
78
+ {goal from Claude command}
79
+
80
+ ## Workflow Alignment
81
+
82
+ {workflow section}
83
+
84
+ ## Step 1: {step name}
85
+
86
+ {converted step content - replace Claude-specific tool syntax}
87
+
88
+ ...
89
+
90
+ ## Notes
91
+
92
+ {notes section}
93
+ ```
94
+
95
+ ### Rule Template (for skills)
96
+
97
+ ```markdown
98
+ ---
99
+ name: {skill-name}
100
+ description: {description}
101
+ ---
102
+
103
+ {skill instructions converted to Cursor rule format}
104
+ ```
105
+
106
+ ---
107
+
108
+ ## Step 4: Write Files
109
+
110
+ **Tools:**
111
+ - `mkdir -p .cursor/commands`
112
+ - `mkdir -p .cursor/rules`
113
+ - Write(file_path=".cursor/commands/{name}.md")
114
+ - Write(file_path=".cursor/rules/{name}.md")
115
+
116
+ **Also sync base instructions:**
117
+ - Copy `.claude/CLAUDE.md` → `.cursor/CLAUDE.md`
118
+
119
+ ---
120
+
121
+ ## Step 5: Output Classification
122
+
123
+ ```
124
+ Cursor (.cursor/commands/):
125
+ - create-plan.md: [STATUS]
126
+ - execute-plan.md: [STATUS]
127
+ - sync-workflow.md: [STATUS]
128
+
129
+ Cursor (.cursor/rules/):
130
+ - frontend-design-fundamentals.md: [STATUS]
131
+ - quality-code-check.md: [STATUS]
132
+
133
+ Cursor Base Instructions:
134
+ - .cursor/CLAUDE.md: [STATUS]
135
+ ```
@@ -0,0 +1,234 @@
1
+ # Factory Droid Sync Guide
2
+
3
+ Sync Claude Code workflows to Factory Droid format.
4
+
5
+ ---
6
+
7
+ ## Prerequisites
8
+
9
+ - Source: `.claude/commands/*.md`, `.claude/skills/**/SKILL.md`, `.claude/CLAUDE.md`
10
+ - Target: `.factory/commands/*.md`, `.factory/skills/*/SKILL.md`, `.factory/droids/*.md`
11
+
12
+ ---
13
+
14
+ ## Step 1: Fetch Factory Droid Documentation
15
+
16
+ **Search queries (try in order until successful):**
17
+ 1. `site:docs.factory.ai cli configuration commands skills`
18
+ 2. `factory.ai droid custom commands skills documentation`
19
+ 3. `factory droid cli configuration custom-droids`
20
+
21
+ **Key documentation URLs:**
22
+ - `https://docs.factory.ai/cli/configuration/custom-slash-commands` - Custom commands
23
+ - `https://docs.factory.ai/cli/configuration/skills` - Skills configuration
24
+ - `https://docs.factory.ai/cli/configuration/custom-droids` - Custom droids (sub-agents)
25
+
26
+ ---
27
+
28
+ ## Step 2: Conversion Rules
29
+
30
+ ### Commands (`.factory/commands/*.md`)
31
+
32
+ **Location**: `.factory/commands/{name}.md` (workspace) or `~/.factory/commands/` (personal)
33
+
34
+ **File format:** Markdown (`.md`) or executable with shebang (`#!`)
35
+
36
+ **Frontmatter:**
37
+ - `description`: command description
38
+ - `argument-hint`: optional hint for arguments (e.g., `<feature-name>`)
39
+
40
+ **Arguments:**
41
+ - `$ARGUMENTS` for all text after command name
42
+ - Executable commands receive `$1`, `$2`, etc.
43
+
44
+ **Tool references conversion:**
45
+ | Claude Code | Factory Droid |
46
+ |-------------|---------------|
47
+ | `AskUserQuestion(...)` | (handled by TUI) |
48
+ | `Task(subagent_type='Explore')` | Search codebase |
49
+ | `Task(subagent_type='General')` | General analysis |
50
+ | `Read(file_path=...)` | Read file |
51
+ | `Write(file_path=...)` | Write file |
52
+ | `Edit(file_path=...)` | Edit file |
53
+ | `Glob(pattern=...)` | Find files |
54
+ | `Grep(pattern=...)` | Search content |
55
+ | `Bash(command=...)` | Run command |
56
+
57
+ ### Skills (`.factory/skills/<name>/SKILL.md`)
58
+
59
+ **Location**: `.factory/skills/{skill-name}/SKILL.md` (workspace) or `~/.factory/skills/` (personal)
60
+
61
+ **File format:** `SKILL.md` or `skill.mdx`
62
+
63
+ **Frontmatter (required):**
64
+ - `name`: skill name (should match directory name)
65
+ - `description`: clear description of when to use the skill
66
+
67
+ **Content:** Markdown instructions for skill behavior
68
+
69
+ ### Droids (`.factory/droids/*.md`)
70
+
71
+ **Location**: `.factory/droids/{droid-name}.md` (project) or `~/.factory/droids/` (personal)
72
+
73
+ **File format:** Markdown with YAML frontmatter and non-empty body
74
+
75
+ **Frontmatter:**
76
+ - `name`: Required, droid identifier (matches filename)
77
+ - `description`: Optional, shown in UI
78
+ - `model`: `inherit` (use default) or specific model identifier
79
+ - `reasoningEffort`: Optional (`low`, `medium`, `high`)
80
+ - `tools`: Array of tool IDs or category string
81
+
82
+ **Tool categories:**
83
+ - `read-only` - Read, LS, Grep, Glob
84
+ - `edit` - Write, Edit
85
+ - `execute` - Bash, shell commands
86
+ - `web` - WebSearch, WebFetch
87
+ - `mcp` - MCP tools
88
+
89
+ **Note:** `TodoWrite` tool is automatic for all droids.
90
+
91
+ ---
92
+
93
+ ## Step 3: Templates
94
+
95
+ ### Command Template
96
+
97
+ ```markdown
98
+ ---
99
+ description: {description}
100
+ argument-hint: {optional hint for arguments, e.g., "<feature-name>"}
101
+ ---
102
+
103
+ ## Goal
104
+
105
+ {goal from Claude command}
106
+
107
+ ## Instructions
108
+
109
+ {step-by-step instructions}
110
+
111
+ ### Step 1: {step name}
112
+
113
+ {converted step content}
114
+ - Search codebase for relevant files
115
+ - Read and analyze existing code
116
+ - Write/edit files as needed
117
+
118
+ ...
119
+
120
+ ## Notes
121
+
122
+ {notes section}
123
+ ```
124
+
125
+ ### Skill Template
126
+
127
+ ```markdown
128
+ ---
129
+ name: {skill-name}
130
+ description: {description from Claude skill - explain when to trigger}
131
+ ---
132
+
133
+ # {Skill Title}
134
+
135
+ ## Instructions
136
+
137
+ 1. {step 1}
138
+ 2. {step 2}
139
+ 3. {step 3}
140
+
141
+ ## Guidelines
142
+
143
+ - {guideline 1}
144
+ - {guideline 2}
145
+ ```
146
+
147
+ ### Droid Template
148
+
149
+ ```markdown
150
+ ---
151
+ name: {droid-name}
152
+ description: {description of what this droid does}
153
+ model: inherit
154
+ reasoningEffort: medium
155
+ tools: ["Read", "LS", "Grep", "Glob"]
156
+ ---
157
+
158
+ You are a specialized {role} droid.
159
+
160
+ ## Focus
161
+
162
+ - {behavior 1}
163
+ - {behavior 2}
164
+ - {behavior 3}
165
+
166
+ ## Guidelines
167
+
168
+ - {guideline 1}
169
+ - {guideline 2}
170
+ ```
171
+
172
+ ---
173
+
174
+ ## Step 4: Write Files
175
+
176
+ **Tools:**
177
+ - `mkdir -p .factory/commands`
178
+ - `mkdir -p .factory/skills/{name}`
179
+ - `mkdir -p .factory/droids`
180
+ - Write(file_path=".factory/commands/{name}.md")
181
+ - Write(file_path=".factory/skills/{name}/SKILL.md")
182
+ - Write(file_path=".factory/droids/{name}.md") - only if custom droid needed
183
+
184
+ **Skill name mapping:**
185
+ - `.claude/skills/design/figma-extraction/` → `.factory/skills/figma-extraction/`
186
+ - `.claude/skills/architecture/quality-code-check/` → `.factory/skills/quality-code-check/`
187
+ - `.claude/skills/ux/accessibility/` → `.factory/skills/ux-accessibility/`
188
+
189
+ ---
190
+
191
+ ## Step 5: Output Classification
192
+
193
+ ```
194
+ Factory Droid Commands (.factory/commands/):
195
+ - create-plan.md: [STATUS]
196
+ - execute-plan.md: [STATUS]
197
+ - sync-workflow.md: [STATUS]
198
+
199
+ Factory Droid Skills (.factory/skills/):
200
+ - figma-extraction/SKILL.md: [STATUS]
201
+ - quality-code-check/SKILL.md: [STATUS]
202
+ - frontend-design-fundamentals/SKILL.md: [STATUS]
203
+
204
+ Factory Droid Droids (.factory/droids/):
205
+ - code-reviewer.md: [STATUS] (if custom review workflow)
206
+ - No custom droids needed otherwise
207
+ ```
208
+
209
+ ---
210
+
211
+ ## Factory Droid-Specific Notes
212
+
213
+ 1. **Skills are native**: Factory Droid reads skills from `.factory/skills/*/SKILL.md`
214
+
215
+ 2. **AGENTS.md is native**: Factory Droid reads `AGENTS.md` from root - no conversion needed
216
+
217
+ 3. **Command management:**
218
+ - Reload commands: Press `R` in `/commands`
219
+ - Import existing commands: Press `I` in `/commands`
220
+
221
+ 4. **Droid tool arrays:**
222
+ - Array format: `["Read", "LS", "Grep", "Glob"]`
223
+ - Category string: `"read-only"`, `"edit"`, `"execute"`, `"web"`, `"mcp"`
224
+ - Combine as needed for custom permissions
225
+
226
+ 5. **Example droids:**
227
+ - `code-reviewer`: `tools: ["Read", "LS", "Grep", "Glob"]` - read-only review
228
+ - `security-sweeper`: `tools: ["Read", "Grep", "WebSearch"]` - security analysis
229
+ - `docs-writer`: `tools: ["Read", "Write", "Edit", "Glob"]` - documentation
230
+
231
+ 6. **Reasoning effort:**
232
+ - `low`: Fast, simple tasks
233
+ - `medium`: Balanced (default)
234
+ - `high`: Complex analysis tasks
@@ -0,0 +1,137 @@
1
+ # GitHub Copilot Sync Guide
2
+
3
+ Sync Claude Code workflows to GitHub Copilot format.
4
+
5
+ ---
6
+
7
+ ## Prerequisites
8
+
9
+ - Source: `.claude/commands/*.md`, `.claude/CLAUDE.md`
10
+ - Target: `.github/prompts/*.prompt.md`, `.github/copilot-instructions.md`
11
+
12
+ ---
13
+
14
+ ## Step 1: Fetch GitHub Copilot Documentation
15
+
16
+ **Search queries (try in order until successful):**
17
+ 1. `"github.com" copilot custom instructions repository documentation`
18
+ 2. `site:docs.github.com copilot custom instructions prompts`
19
+ 3. `github copilot prompt files .github/prompts format`
20
+
21
+ **Key documentation URLs:**
22
+ - `https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot`
23
+ - `https://docs.github.com/en/copilot/how-tos/configure-custom-instructions`
24
+
25
+ **Extract and note:**
26
+ - Prompt file location: `.github/prompts/`
27
+ - File format: `*.prompt.md` naming convention
28
+ - Frontmatter structure (applyTo, excludeAgent, etc.)
29
+ - Custom instructions file: `.github/copilot-instructions.md`
30
+ - AGENTS.md support (location, format)
31
+
32
+ ---
33
+
34
+ ## Step 2: Conversion Rules
35
+
36
+ ### Commands → Prompts (`.github/prompts/*.prompt.md`)
37
+
38
+ **Filename:** `{name}.prompt.md` format
39
+
40
+ **Frontmatter:**
41
+ - May need `applyTo` for path-specific prompts
42
+ - Keep `name` and `description`
43
+
44
+ **Tool references conversion:**
45
+ | Claude Code | GitHub Copilot |
46
+ |-------------|----------------|
47
+ | `AskUserQuestion(...)` | Ask user for clarification |
48
+ | `Task(subagent_type='Explore')` | Search codebase for... |
49
+ | `Read(file_path=...)` | Read file |
50
+ | `Write(file_path=...)` | Write file |
51
+ | `Edit(file_path=...)` | Edit file |
52
+ | `Glob(pattern=...)` | Find files |
53
+ | `Grep(pattern=...)` | Search pattern |
54
+ | `Bash(command=...)` | Run command |
55
+
56
+ **Remove:** Claude-specific skill references (Copilot doesn't have skills system)
57
+
58
+ **Keep:** Goal, Steps structure, acceptance criteria
59
+
60
+ ### Skills
61
+
62
+ GitHub Copilot doesn't have a skills system. Options:
63
+ 1. Inline skill content into relevant prompts
64
+ 2. Add to `copilot-instructions.md` as guidelines
65
+ 3. Skip skills (not applicable)
66
+
67
+ ---
68
+
69
+ ## Step 3: Templates
70
+
71
+ ### Prompt Template
72
+
73
+ ```markdown
74
+ ---
75
+ name: {command-name}
76
+ description: {description}
77
+ ---
78
+
79
+ ## Goal
80
+
81
+ {goal from Claude command}
82
+
83
+ ## Workflow Alignment
84
+
85
+ {workflow section - simplified}
86
+
87
+ ## Step 1: {step name}
88
+
89
+ {converted step content - generic instructions}
90
+
91
+ ...
92
+
93
+ ## Notes
94
+
95
+ {notes section - remove Claude-specific references}
96
+ ```
97
+
98
+ ### copilot-instructions.md Template
99
+
100
+ ```markdown
101
+ # Repository Instructions for GitHub Copilot
102
+
103
+ ## Coding Philosophy
104
+
105
+ {core philosophy from .claude/CLAUDE.md}
106
+
107
+ ## Workflow Guidelines
108
+
109
+ {workflow guidelines - converted to generic instructions}
110
+
111
+ ## Code Standards
112
+
113
+ {code presentation, TODO policy, etc.}
114
+ ```
115
+
116
+ ---
117
+
118
+ ## Step 4: Write Files
119
+
120
+ **Tools:**
121
+ - `mkdir -p .github/prompts`
122
+ - Write(file_path=".github/prompts/{name}.prompt.md")
123
+ - Write(file_path=".github/copilot-instructions.md")
124
+
125
+ ---
126
+
127
+ ## Step 5: Output Classification
128
+
129
+ ```
130
+ GitHub Copilot (.github/prompts/):
131
+ - create-plan.prompt.md: [STATUS]
132
+ - execute-plan.prompt.md: [STATUS]
133
+ - sync-workflow.prompt.md: [STATUS]
134
+
135
+ GitHub Copilot Base Instructions:
136
+ - .github/copilot-instructions.md: [STATUS]
137
+ ```