maestro-flow 0.1.0 → 0.1.2
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/.codex/skills/manage-codebase-rebuild/SKILL.md +405 -405
- package/.codex/skills/manage-codebase-refresh/SKILL.md +82 -82
- package/.codex/skills/manage-issue/SKILL.md +65 -65
- package/.codex/skills/manage-status/SKILL.md +89 -89
- package/.codex/skills/quality-debug/SKILL.md +413 -413
- package/.codex/skills/quality-refactor/SKILL.md +191 -191
- package/.codex/skills/quality-sync/SKILL.md +89 -89
- package/.codex/skills/quality-test/SKILL.md +198 -198
- package/.codex/skills/spec-add/SKILL.md +79 -79
- package/.codex/skills/spec-load/SKILL.md +75 -75
- package/.codex/skills/spec-map/SKILL.md +182 -182
- package/.codex/skills/spec-setup/SKILL.md +76 -76
- package/.codex/skills/team-coordinate/SKILL.md +7 -7
- package/.codex/skills/team-coordinate/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -2
- package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +1 -1
- package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +2 -2
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +1 -1
- package/.codex/skills/team-lifecycle-v4/schemas/tasks-schema.md +1 -1
- package/.codex/skills/team-quality-assurance/SKILL.md +2 -2
- package/.codex/skills/team-quality-assurance/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-quality-assurance/roles/executor/role.md +1 -1
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +2 -2
- package/.codex/skills/team-review/SKILL.md +2 -2
- package/.codex/skills/team-review/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-review/roles/reviewer/role.md +2 -2
- package/.codex/skills/team-review/roles/scanner/role.md +1 -1
- package/.codex/skills/team-tech-debt/SKILL.md +2 -2
- package/.codex/skills/team-tech-debt/roles/coordinator/role.md +1 -1
- package/.codex/skills/team-tech-debt/roles/executor/role.md +1 -1
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +2 -2
- package/.codex/skills/team-tech-debt/roles/validator/role.md +1 -1
- package/.codex/skills/team-testing/SKILL.md +2 -2
- package/.codex/skills/team-testing/roles/coordinator/role.md +2 -2
- package/.codex/skills/team-testing/roles/executor/role.md +2 -2
- package/.codex/skills/team-testing/roles/generator/role.md +2 -2
- package/README.md +43 -4
- package/dist/agents/dashboard-bridge.d.ts +5 -0
- package/dist/agents/dashboard-bridge.d.ts.map +1 -1
- package/dist/agents/dashboard-bridge.js +13 -0
- package/dist/agents/dashboard-bridge.js.map +1 -1
- package/dist/agents/parallel-cli-runner.d.ts +42 -0
- package/dist/agents/parallel-cli-runner.d.ts.map +1 -0
- package/dist/agents/parallel-cli-runner.js +200 -0
- package/dist/agents/parallel-cli-runner.js.map +1 -0
- package/dist/agents/terminal-adapter.d.ts +94 -0
- package/dist/agents/terminal-adapter.d.ts.map +1 -0
- package/dist/agents/terminal-adapter.js +132 -0
- package/dist/agents/terminal-adapter.js.map +1 -0
- package/dist/agents/terminal-backend.d.ts +53 -0
- package/dist/agents/terminal-backend.d.ts.map +1 -0
- package/dist/agents/terminal-backend.js +286 -0
- package/dist/agents/terminal-backend.js.map +1 -0
- package/dist/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/coordinate.d.ts.map +1 -1
- package/dist/commands/coordinate.js +14 -5
- package/dist/commands/coordinate.js.map +1 -1
- package/dist/commands/delegate.d.ts +3 -0
- package/dist/commands/delegate.d.ts.map +1 -0
- package/dist/commands/delegate.js +142 -0
- package/dist/commands/delegate.js.map +1 -0
- package/dist/commands/msg.d.ts +3 -0
- package/dist/commands/msg.d.ts.map +1 -0
- package/dist/commands/msg.js +110 -0
- package/dist/commands/msg.js.map +1 -0
- package/dist/coordinator/graph-types.d.ts +17 -0
- package/dist/coordinator/graph-types.d.ts.map +1 -1
- package/dist/coordinator/graph-walker.d.ts +3 -1
- package/dist/coordinator/graph-walker.d.ts.map +1 -1
- package/dist/coordinator/graph-walker.js +147 -8
- package/dist/coordinator/graph-walker.js.map +1 -1
- package/dist/coordinator/index.d.ts +2 -0
- package/dist/coordinator/index.d.ts.map +1 -1
- package/dist/coordinator/index.js +1 -0
- package/dist/coordinator/index.js.map +1 -1
- package/dist/coordinator/parallel-executor.d.ts +24 -0
- package/dist/coordinator/parallel-executor.d.ts.map +1 -0
- package/dist/coordinator/parallel-executor.js +43 -0
- package/dist/coordinator/parallel-executor.js.map +1 -0
- package/package.json +3 -1
- package/templates/cli/prompts/rules-tech-rules-agent-prompt.txt +89 -89
- package/templates/cli/prompts/workflow-codex-feasibility-validation.txt +176 -176
- package/templates/cli/prompts/workflow-gemini-solution-design.txt +131 -131
- package/templates/cli/prompts/workflow-skill-index.txt +224 -224
- package/templates/cli/protocols/analysis-protocol.md +2 -2
- package/templates/cli/protocols/write-protocol.md +2 -2
- package/workflows/memory.md +2 -2
- package/.codex/skills/team-lifecycle-v4/MIGRATION-PLAN.md +0 -512
|
@@ -1,224 +1,224 @@
|
|
|
1
|
-
Template for generating SKILL.md (index file)
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
Create main SKILL package index with progressive loading structure and session references.
|
|
5
|
-
|
|
6
|
-
## File Location
|
|
7
|
-
`.claude/skills/workflow-progress/SKILL.md`
|
|
8
|
-
|
|
9
|
-
## Update Strategy
|
|
10
|
-
- **Always regenerated**: This file is always updated with latest session count, domains, dates
|
|
11
|
-
|
|
12
|
-
## Structure
|
|
13
|
-
|
|
14
|
-
```yaml
|
|
15
|
-
---
|
|
16
|
-
name: workflow-progress
|
|
17
|
-
description: Progressive workflow development history (located at {project_root}). Load this SKILL when continuing development, analyzing past implementations, or learning from workflow history, especially when no relevant context exists in memory.
|
|
18
|
-
version: {semantic_version}
|
|
19
|
-
---
|
|
20
|
-
# Workflow Progress SKILL Package
|
|
21
|
-
|
|
22
|
-
## Documentation: `../../../.workflow/.archives/`
|
|
23
|
-
|
|
24
|
-
**Total Sessions**: {session_count}
|
|
25
|
-
**Functional Domains**: {domain_list}
|
|
26
|
-
**Date Range**: {earliest_date} - {latest_date}
|
|
27
|
-
|
|
28
|
-
## Progressive Loading
|
|
29
|
-
|
|
30
|
-
### Level 0: Quick Overview (~2K tokens)
|
|
31
|
-
- [Sessions Timeline](sessions-timeline.md#recent-sessions-last-5) - Recent 5 sessions
|
|
32
|
-
- [Top Conflict Patterns](conflict-patterns.md#top-patterns) - Top 3 recurring conflicts
|
|
33
|
-
- Quick reference for last completed work
|
|
34
|
-
|
|
35
|
-
**Use Case**: Quick context refresh before starting new task
|
|
36
|
-
|
|
37
|
-
### Level 1: Core History (~8K tokens)
|
|
38
|
-
- [Sessions Timeline](sessions-timeline.md) - Recent 10 sessions with details
|
|
39
|
-
- [Lessons Learned](lessons-learned.md#best-practices) - Success patterns by category
|
|
40
|
-
- [Conflict Patterns](conflict-patterns.md) - Known conflict types and resolutions
|
|
41
|
-
- Context package references (metadata only)
|
|
42
|
-
|
|
43
|
-
**Use Case**: Understanding recent development patterns and avoiding known pitfalls
|
|
44
|
-
|
|
45
|
-
### Level 2: Complete History (~25K tokens)
|
|
46
|
-
- All archived sessions with metadata
|
|
47
|
-
- Full lessons learned (successes, challenges, watch patterns)
|
|
48
|
-
- Complete conflict analysis with resolutions
|
|
49
|
-
- IMPL_PLAN summaries from all sessions
|
|
50
|
-
- Context package paths for on-demand loading
|
|
51
|
-
|
|
52
|
-
**Use Case**: Comprehensive review before major refactoring or architecture changes
|
|
53
|
-
|
|
54
|
-
### Level 3: Deep Dive (~40K tokens)
|
|
55
|
-
- Full IMPL_PLAN.md and TODO_LIST.md from all sessions
|
|
56
|
-
- Detailed task completion summaries
|
|
57
|
-
- Cross-session dependency analysis
|
|
58
|
-
- Direct context package file references
|
|
59
|
-
|
|
60
|
-
**Use Case**: Investigating specific implementation details or debugging historical decisions
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## Quick Access
|
|
65
|
-
|
|
66
|
-
### Recent Sessions
|
|
67
|
-
{list of 5 most recent sessions with one-line descriptions}
|
|
68
|
-
|
|
69
|
-
### By Domain
|
|
70
|
-
- **{Domain_1}**: {count} sessions
|
|
71
|
-
- **{Domain_2}**: {count} sessions
|
|
72
|
-
- **{Domain_3}**: {count} sessions
|
|
73
|
-
|
|
74
|
-
### Top Watch Patterns
|
|
75
|
-
1. {most_frequent_watch_pattern}
|
|
76
|
-
2. {second_most_frequent}
|
|
77
|
-
3. {third_most_frequent}
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
## Session Index
|
|
82
|
-
|
|
83
|
-
### {Domain_Category} Sessions
|
|
84
|
-
- [{session_id}](../../../.workflow/.archives/{session_id}/) - {one_line_description} ({date})
|
|
85
|
-
- Context: [context-package.json](../../../.workflow/.archives/{session_id}/.process/context-package.json)
|
|
86
|
-
- Plan: [IMPL_PLAN.md](../../../.workflow/.archives/{session_id}/IMPL_PLAN.md)
|
|
87
|
-
- Tags: {tag1}, {tag2}, {tag3}
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
## Usage Examples
|
|
92
|
-
|
|
93
|
-
### Loading Quick Context
|
|
94
|
-
```markdown
|
|
95
|
-
Load Level 0 from workflow-progress SKILL for overview of recent work
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### Investigating {Domain} History
|
|
99
|
-
```markdown
|
|
100
|
-
Load Level 2 from workflow-progress SKILL, filter by "{domain}" tag
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### Full Historical Analysis
|
|
104
|
-
```markdown
|
|
105
|
-
Load Level 3 from workflow-progress SKILL for complete development history
|
|
106
|
-
```
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
## Data Sources
|
|
110
|
-
- Manifest: `.workflow/.archives/manifest.json`
|
|
111
|
-
- All session metadata from manifest entries
|
|
112
|
-
|
|
113
|
-
## Generation Rules
|
|
114
|
-
- Version format: `{major}.{minor}.{patch}` (increment patch for each update)
|
|
115
|
-
- Domain list: Extract unique tags from all sessions, sort by frequency
|
|
116
|
-
- Date range: Find earliest and latest archived_at timestamps
|
|
117
|
-
- Token estimates: Approximate based on content length
|
|
118
|
-
- Use relative paths (../../../.workflow/.archives/) for session references
|
|
119
|
-
|
|
120
|
-
## Formatting Rules
|
|
121
|
-
- Keep descriptions concise
|
|
122
|
-
- Sort sessions by date (newest first)
|
|
123
|
-
- Group sessions by primary tag
|
|
124
|
-
- Include only top 5 recent sessions in Quick Access
|
|
125
|
-
- Include top 3 watch patterns
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
## Variable Substitution Guide
|
|
130
|
-
|
|
131
|
-
### Required Variables
|
|
132
|
-
- `{project_root}`: Absolute project path from git root (e.g., "
|
|
133
|
-
- `{semantic_version}`: Version string (e.g., "1.0.0", increment patch for each update)
|
|
134
|
-
- `{session_count}`: Total number of archived sessions
|
|
135
|
-
- `{domain_list}`: Comma-separated unique tags sorted by frequency
|
|
136
|
-
- `{earliest_date}`: Earliest session archived_at timestamp
|
|
137
|
-
- `{latest_date}`: Most recent session archived_at timestamp
|
|
138
|
-
|
|
139
|
-
### Generated Variables
|
|
140
|
-
- `{one_line_description}`: Extract from session description (first sentence, max 80 chars)
|
|
141
|
-
- `{domain_category}`: Primary tag from session metadata
|
|
142
|
-
- `{most_frequent_watch_pattern}`: Top recurring watch pattern across sessions
|
|
143
|
-
- `{date}`: Session archived_at in YYYY-MM-DD format
|
|
144
|
-
|
|
145
|
-
### Description Field Generation
|
|
146
|
-
|
|
147
|
-
**Format Template**:
|
|
148
|
-
```
|
|
149
|
-
Progressive workflow development history (located at {project_root}).
|
|
150
|
-
Load this SKILL when continuing development, analyzing past implementations,
|
|
151
|
-
or learning from workflow history, especially when no relevant context exists in memory.
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
**Generation Rules**:
|
|
155
|
-
1. **Project Root**: Use `git rev-parse --show-toplevel` to get absolute path
|
|
156
|
-
2. **Use Cases**: ALWAYS include these trigger phrases:
|
|
157
|
-
- "continuing development" (开发延续)
|
|
158
|
-
- "analyzing past implementations" (分析历史)
|
|
159
|
-
- "learning from workflow history" (学习历史)
|
|
160
|
-
3. **Trigger Optimization**: MUST include "especially when no relevant context exists in memory"
|
|
161
|
-
4. **Path Format**: Use forward slashes for cross-platform compatibility (e.g., "/d/project")
|
|
162
|
-
|
|
163
|
-
**Why This Matters**:
|
|
164
|
-
- **Auto-loading precision**: Path reference ensures Claude loads correct project's SKILL
|
|
165
|
-
- **Context awareness**: "when no relevant context exists" prevents redundant loading
|
|
166
|
-
- **Action coverage**: Three use cases cover all workflow scenarios
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
## Generation Instructions
|
|
171
|
-
|
|
172
|
-
### Step 1: Get Project Root
|
|
173
|
-
```bash
|
|
174
|
-
git rev-parse --show-toplevel # Returns:
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
### Step 2: Read Manifest
|
|
178
|
-
```bash
|
|
179
|
-
cat .workflow/.archives/manifest.json
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
Extract:
|
|
183
|
-
- Total session count
|
|
184
|
-
- All session tags (for domain list)
|
|
185
|
-
- Date range (earliest/latest archived_at)
|
|
186
|
-
|
|
187
|
-
### Step 3: Aggregate Session Data
|
|
188
|
-
- Count sessions per domain
|
|
189
|
-
- Extract top 5 recent sessions
|
|
190
|
-
- Identify top 3 watch patterns from lessons
|
|
191
|
-
|
|
192
|
-
### Step 4: Generate Description
|
|
193
|
-
Apply format template with project_root from Step 1.
|
|
194
|
-
|
|
195
|
-
### Step 5: Calculate Version
|
|
196
|
-
- Read existing SKILL.md version (if exists)
|
|
197
|
-
- Increment patch version (e.g., 1.0.5 → 1.0.6)
|
|
198
|
-
- Use 1.0.0 for new SKILL package
|
|
199
|
-
|
|
200
|
-
### Step 6: Build Progressive Loading Sections
|
|
201
|
-
- Level 0: Recent 5 sessions + Top 3 conflicts
|
|
202
|
-
- Level 1: Recent 10 sessions + Best practices
|
|
203
|
-
- Level 2: All sessions + Full lessons + Full conflicts
|
|
204
|
-
- Level 3: Include IMPL_PLAN and TODO_LIST references
|
|
205
|
-
|
|
206
|
-
### Step 7: Write SKILL.md
|
|
207
|
-
- Apply all variable substitutions
|
|
208
|
-
- Use relative paths: `../../../.workflow/.archives/`
|
|
209
|
-
- Validate all referenced files exist
|
|
210
|
-
|
|
211
|
-
---
|
|
212
|
-
|
|
213
|
-
## Validation Checklist
|
|
214
|
-
|
|
215
|
-
- [ ] `{project_root}` uses absolute path with forward slashes
|
|
216
|
-
- [ ] Description includes all three use cases
|
|
217
|
-
- [ ] Description includes trigger optimization phrase
|
|
218
|
-
- [ ] Version incremented correctly
|
|
219
|
-
- [ ] All session references use relative paths
|
|
220
|
-
- [ ] Domain list sorted by frequency
|
|
221
|
-
- [ ] Date range matches manifest
|
|
222
|
-
- [ ] Quick Access section has exactly 5 recent sessions
|
|
223
|
-
- [ ] Top Watch Patterns section has exactly 3 items
|
|
224
|
-
- [ ] All referenced files exist in archives
|
|
1
|
+
Template for generating SKILL.md (index file)
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
Create main SKILL package index with progressive loading structure and session references.
|
|
5
|
+
|
|
6
|
+
## File Location
|
|
7
|
+
`.claude/skills/workflow-progress/SKILL.md`
|
|
8
|
+
|
|
9
|
+
## Update Strategy
|
|
10
|
+
- **Always regenerated**: This file is always updated with latest session count, domains, dates
|
|
11
|
+
|
|
12
|
+
## Structure
|
|
13
|
+
|
|
14
|
+
```yaml
|
|
15
|
+
---
|
|
16
|
+
name: workflow-progress
|
|
17
|
+
description: Progressive workflow development history (located at {project_root}). Load this SKILL when continuing development, analyzing past implementations, or learning from workflow history, especially when no relevant context exists in memory.
|
|
18
|
+
version: {semantic_version}
|
|
19
|
+
---
|
|
20
|
+
# Workflow Progress SKILL Package
|
|
21
|
+
|
|
22
|
+
## Documentation: `../../../.workflow/.archives/`
|
|
23
|
+
|
|
24
|
+
**Total Sessions**: {session_count}
|
|
25
|
+
**Functional Domains**: {domain_list}
|
|
26
|
+
**Date Range**: {earliest_date} - {latest_date}
|
|
27
|
+
|
|
28
|
+
## Progressive Loading
|
|
29
|
+
|
|
30
|
+
### Level 0: Quick Overview (~2K tokens)
|
|
31
|
+
- [Sessions Timeline](sessions-timeline.md#recent-sessions-last-5) - Recent 5 sessions
|
|
32
|
+
- [Top Conflict Patterns](conflict-patterns.md#top-patterns) - Top 3 recurring conflicts
|
|
33
|
+
- Quick reference for last completed work
|
|
34
|
+
|
|
35
|
+
**Use Case**: Quick context refresh before starting new task
|
|
36
|
+
|
|
37
|
+
### Level 1: Core History (~8K tokens)
|
|
38
|
+
- [Sessions Timeline](sessions-timeline.md) - Recent 10 sessions with details
|
|
39
|
+
- [Lessons Learned](lessons-learned.md#best-practices) - Success patterns by category
|
|
40
|
+
- [Conflict Patterns](conflict-patterns.md) - Known conflict types and resolutions
|
|
41
|
+
- Context package references (metadata only)
|
|
42
|
+
|
|
43
|
+
**Use Case**: Understanding recent development patterns and avoiding known pitfalls
|
|
44
|
+
|
|
45
|
+
### Level 2: Complete History (~25K tokens)
|
|
46
|
+
- All archived sessions with metadata
|
|
47
|
+
- Full lessons learned (successes, challenges, watch patterns)
|
|
48
|
+
- Complete conflict analysis with resolutions
|
|
49
|
+
- IMPL_PLAN summaries from all sessions
|
|
50
|
+
- Context package paths for on-demand loading
|
|
51
|
+
|
|
52
|
+
**Use Case**: Comprehensive review before major refactoring or architecture changes
|
|
53
|
+
|
|
54
|
+
### Level 3: Deep Dive (~40K tokens)
|
|
55
|
+
- Full IMPL_PLAN.md and TODO_LIST.md from all sessions
|
|
56
|
+
- Detailed task completion summaries
|
|
57
|
+
- Cross-session dependency analysis
|
|
58
|
+
- Direct context package file references
|
|
59
|
+
|
|
60
|
+
**Use Case**: Investigating specific implementation details or debugging historical decisions
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Quick Access
|
|
65
|
+
|
|
66
|
+
### Recent Sessions
|
|
67
|
+
{list of 5 most recent sessions with one-line descriptions}
|
|
68
|
+
|
|
69
|
+
### By Domain
|
|
70
|
+
- **{Domain_1}**: {count} sessions
|
|
71
|
+
- **{Domain_2}**: {count} sessions
|
|
72
|
+
- **{Domain_3}**: {count} sessions
|
|
73
|
+
|
|
74
|
+
### Top Watch Patterns
|
|
75
|
+
1. {most_frequent_watch_pattern}
|
|
76
|
+
2. {second_most_frequent}
|
|
77
|
+
3. {third_most_frequent}
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Session Index
|
|
82
|
+
|
|
83
|
+
### {Domain_Category} Sessions
|
|
84
|
+
- [{session_id}](../../../.workflow/.archives/{session_id}/) - {one_line_description} ({date})
|
|
85
|
+
- Context: [context-package.json](../../../.workflow/.archives/{session_id}/.process/context-package.json)
|
|
86
|
+
- Plan: [IMPL_PLAN.md](../../../.workflow/.archives/{session_id}/IMPL_PLAN.md)
|
|
87
|
+
- Tags: {tag1}, {tag2}, {tag3}
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Usage Examples
|
|
92
|
+
|
|
93
|
+
### Loading Quick Context
|
|
94
|
+
```markdown
|
|
95
|
+
Load Level 0 from workflow-progress SKILL for overview of recent work
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Investigating {Domain} History
|
|
99
|
+
```markdown
|
|
100
|
+
Load Level 2 from workflow-progress SKILL, filter by "{domain}" tag
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Full Historical Analysis
|
|
104
|
+
```markdown
|
|
105
|
+
Load Level 3 from workflow-progress SKILL for complete development history
|
|
106
|
+
```
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Data Sources
|
|
110
|
+
- Manifest: `.workflow/.archives/manifest.json`
|
|
111
|
+
- All session metadata from manifest entries
|
|
112
|
+
|
|
113
|
+
## Generation Rules
|
|
114
|
+
- Version format: `{major}.{minor}.{patch}` (increment patch for each update)
|
|
115
|
+
- Domain list: Extract unique tags from all sessions, sort by frequency
|
|
116
|
+
- Date range: Find earliest and latest archived_at timestamps
|
|
117
|
+
- Token estimates: Approximate based on content length
|
|
118
|
+
- Use relative paths (../../../.workflow/.archives/) for session references
|
|
119
|
+
|
|
120
|
+
## Formatting Rules
|
|
121
|
+
- Keep descriptions concise
|
|
122
|
+
- Sort sessions by date (newest first)
|
|
123
|
+
- Group sessions by primary tag
|
|
124
|
+
- Include only top 5 recent sessions in Quick Access
|
|
125
|
+
- Include top 3 watch patterns
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Variable Substitution Guide
|
|
130
|
+
|
|
131
|
+
### Required Variables
|
|
132
|
+
- `{project_root}`: Absolute project path from git root (e.g., "{project_root}")
|
|
133
|
+
- `{semantic_version}`: Version string (e.g., "1.0.0", increment patch for each update)
|
|
134
|
+
- `{session_count}`: Total number of archived sessions
|
|
135
|
+
- `{domain_list}`: Comma-separated unique tags sorted by frequency
|
|
136
|
+
- `{earliest_date}`: Earliest session archived_at timestamp
|
|
137
|
+
- `{latest_date}`: Most recent session archived_at timestamp
|
|
138
|
+
|
|
139
|
+
### Generated Variables
|
|
140
|
+
- `{one_line_description}`: Extract from session description (first sentence, max 80 chars)
|
|
141
|
+
- `{domain_category}`: Primary tag from session metadata
|
|
142
|
+
- `{most_frequent_watch_pattern}`: Top recurring watch pattern across sessions
|
|
143
|
+
- `{date}`: Session archived_at in YYYY-MM-DD format
|
|
144
|
+
|
|
145
|
+
### Description Field Generation
|
|
146
|
+
|
|
147
|
+
**Format Template**:
|
|
148
|
+
```
|
|
149
|
+
Progressive workflow development history (located at {project_root}).
|
|
150
|
+
Load this SKILL when continuing development, analyzing past implementations,
|
|
151
|
+
or learning from workflow history, especially when no relevant context exists in memory.
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Generation Rules**:
|
|
155
|
+
1. **Project Root**: Use `git rev-parse --show-toplevel` to get absolute path
|
|
156
|
+
2. **Use Cases**: ALWAYS include these trigger phrases:
|
|
157
|
+
- "continuing development" (开发延续)
|
|
158
|
+
- "analyzing past implementations" (分析历史)
|
|
159
|
+
- "learning from workflow history" (学习历史)
|
|
160
|
+
3. **Trigger Optimization**: MUST include "especially when no relevant context exists in memory"
|
|
161
|
+
4. **Path Format**: Use forward slashes for cross-platform compatibility (e.g., "/d/project")
|
|
162
|
+
|
|
163
|
+
**Why This Matters**:
|
|
164
|
+
- **Auto-loading precision**: Path reference ensures Claude loads correct project's SKILL
|
|
165
|
+
- **Context awareness**: "when no relevant context exists" prevents redundant loading
|
|
166
|
+
- **Action coverage**: Three use cases cover all workflow scenarios
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## Generation Instructions
|
|
171
|
+
|
|
172
|
+
### Step 1: Get Project Root
|
|
173
|
+
```bash
|
|
174
|
+
git rev-parse --show-toplevel # Returns: {project_root}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Step 2: Read Manifest
|
|
178
|
+
```bash
|
|
179
|
+
cat .workflow/.archives/manifest.json
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Extract:
|
|
183
|
+
- Total session count
|
|
184
|
+
- All session tags (for domain list)
|
|
185
|
+
- Date range (earliest/latest archived_at)
|
|
186
|
+
|
|
187
|
+
### Step 3: Aggregate Session Data
|
|
188
|
+
- Count sessions per domain
|
|
189
|
+
- Extract top 5 recent sessions
|
|
190
|
+
- Identify top 3 watch patterns from lessons
|
|
191
|
+
|
|
192
|
+
### Step 4: Generate Description
|
|
193
|
+
Apply format template with project_root from Step 1.
|
|
194
|
+
|
|
195
|
+
### Step 5: Calculate Version
|
|
196
|
+
- Read existing SKILL.md version (if exists)
|
|
197
|
+
- Increment patch version (e.g., 1.0.5 → 1.0.6)
|
|
198
|
+
- Use 1.0.0 for new SKILL package
|
|
199
|
+
|
|
200
|
+
### Step 6: Build Progressive Loading Sections
|
|
201
|
+
- Level 0: Recent 5 sessions + Top 3 conflicts
|
|
202
|
+
- Level 1: Recent 10 sessions + Best practices
|
|
203
|
+
- Level 2: All sessions + Full lessons + Full conflicts
|
|
204
|
+
- Level 3: Include IMPL_PLAN and TODO_LIST references
|
|
205
|
+
|
|
206
|
+
### Step 7: Write SKILL.md
|
|
207
|
+
- Apply all variable substitutions
|
|
208
|
+
- Use relative paths: `../../../.workflow/.archives/`
|
|
209
|
+
- Validate all referenced files exist
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## Validation Checklist
|
|
214
|
+
|
|
215
|
+
- [ ] `{project_root}` uses absolute path with forward slashes
|
|
216
|
+
- [ ] Description includes all three use cases
|
|
217
|
+
- [ ] Description includes trigger optimization phrase
|
|
218
|
+
- [ ] Version incremented correctly
|
|
219
|
+
- [ ] All session references use relative paths
|
|
220
|
+
- [ ] Domain list sorted by frequency
|
|
221
|
+
- [ ] Date range matches manifest
|
|
222
|
+
- [ ] Quick Access section has exactly 5 recent sessions
|
|
223
|
+
- [ ] Top Watch Patterns section has exactly 3 items
|
|
224
|
+
- [ ] All referenced files exist in archives
|
|
@@ -30,7 +30,7 @@ RULES: [templates | additional constraints]
|
|
|
30
30
|
|
|
31
31
|
## Execution Flow
|
|
32
32
|
|
|
33
|
-
0. **Load Project Specs** - MANDATORY first step: run `
|
|
33
|
+
0. **Load Project Specs** - MANDATORY first step: run `maestro spec load` to retrieve project specifications and constraints before any analysis. Adapt analysis scope and standards based on loaded specs
|
|
34
34
|
1. **Parse** all 6 fields (PURPOSE, TASK, MODE, CONTEXT, EXPECTED, RULES)
|
|
35
35
|
2. **Read** and analyze CONTEXT files thoroughly
|
|
36
36
|
3. **Identify** patterns, issues, and dependencies
|
|
@@ -41,7 +41,7 @@ RULES: [templates | additional constraints]
|
|
|
41
41
|
## Core Requirements
|
|
42
42
|
|
|
43
43
|
**ALWAYS**:
|
|
44
|
-
- Run `
|
|
44
|
+
- Run `maestro spec load` FIRST to obtain project specifications before starting any work
|
|
45
45
|
- Analyze ALL CONTEXT files completely
|
|
46
46
|
- Apply RULES (templates + constraints) exactly
|
|
47
47
|
- Provide code evidence with `file:line` references
|
|
@@ -24,7 +24,7 @@ RULES: [templates | additional constraints]
|
|
|
24
24
|
## Execution Flow
|
|
25
25
|
|
|
26
26
|
### MODE: write
|
|
27
|
-
0. **Load Project Specs** - MANDATORY first step: run `
|
|
27
|
+
0. **Load Project Specs** - MANDATORY first step: run `maestro spec load` to retrieve project specifications and constraints before any implementation. Apply loaded specs to guide coding standards, architecture decisions, and quality gates
|
|
28
28
|
1. **Parse** all 6 fields (PURPOSE, TASK, MODE, CONTEXT, EXPECTED, RULES)
|
|
29
29
|
2. **Read** CONTEXT files, find 3+ similar patterns
|
|
30
30
|
3. **Plan** implementation following RULES
|
|
@@ -35,7 +35,7 @@ RULES: [templates | additional constraints]
|
|
|
35
35
|
## Core Requirements
|
|
36
36
|
|
|
37
37
|
**ALWAYS**:
|
|
38
|
-
- Run `
|
|
38
|
+
- Run `maestro spec load` FIRST to obtain project specifications before starting any work
|
|
39
39
|
- Study CONTEXT files - find 3+ similar patterns before implementing
|
|
40
40
|
- Apply RULES exactly
|
|
41
41
|
- Test continuously (auto mode)
|
package/workflows/memory.md
CHANGED
|
@@ -368,7 +368,7 @@ Read `memory-index.json`, append new entry to `entries[]`:
|
|
|
368
368
|
"file": "MEM-20260315-143022.md",
|
|
369
369
|
"summary": "Session objective in one line",
|
|
370
370
|
"tags": [],
|
|
371
|
-
"project_root": "
|
|
371
|
+
"project_root": "/path/to/project",
|
|
372
372
|
"session_id": "WFS-001"
|
|
373
373
|
}
|
|
374
374
|
```
|
|
@@ -382,7 +382,7 @@ For tips:
|
|
|
382
382
|
"file": "TIP-20260315-143022.md",
|
|
383
383
|
"summary": "First 80 chars of note content",
|
|
384
384
|
"tags": ["config", "redis"],
|
|
385
|
-
"project_root": "
|
|
385
|
+
"project_root": "/path/to/project"
|
|
386
386
|
}
|
|
387
387
|
```
|
|
388
388
|
|