devflow-kit 0.1.1 → 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.
@@ -53,27 +53,51 @@ git log --oneline $BASE_BRANCH..HEAD
53
53
  echo ""
54
54
  ```
55
55
 
56
- ### Step 2: Launch Specialized Sub-Agents in Parallel
56
+ ### Step 2: Detect Change Categories
57
57
 
58
- Launch these sub-agents in parallel:
58
+ Analyze what types of changes are in this branch to determine which specialized agents are needed:
59
59
 
60
+ ```bash
61
+ # Check if database-related files changed
62
+ DB_CHANGES=$(git diff --name-only $BASE_BRANCH...HEAD | grep -E '\.(sql|prisma|migration|knex|sequelize|db)' || true)
63
+ DB_CHANGES+=$(git diff --name-only $BASE_BRANCH...HEAD | grep -iE '(migration|schema|database|models/)' || true)
64
+
65
+ if [ -n "$DB_CHANGES" ]; then
66
+ echo "đŸ—„ī¸ Database changes detected - will run database audit"
67
+ INCLUDE_DB_AUDIT=true
68
+ else
69
+ echo "â„šī¸ No database changes detected - skipping database audit"
70
+ INCLUDE_DB_AUDIT=false
71
+ fi
72
+ echo ""
73
+ ```
74
+
75
+ ### Step 3: Launch Specialized Sub-Agents in Parallel
76
+
77
+ Launch these sub-agents in parallel based on change detection:
78
+
79
+ **Core Audits (Always Run)**:
60
80
  1. audit-security sub-agent
61
81
  2. audit-performance sub-agent
62
82
  3. audit-architecture sub-agent
63
83
  4. audit-tests sub-agent
64
84
  5. audit-complexity sub-agent
65
85
  6. audit-dependencies sub-agent
86
+ 7. audit-documentation sub-agent
66
87
 
67
- ### Step 3: Synthesize Comprehensive Review
88
+ **Conditional Audits**:
89
+ 8. audit-database sub-agent (only if database changes detected)
90
+
91
+ ### Step 4: Synthesize Comprehensive Review
68
92
 
69
93
  After all sub-agents complete their analysis:
70
94
 
71
- 1. **Collect Results**: Gather findings from all 6 specialized sub-agents
95
+ 1. **Collect Results**: Gather findings from all 7-8 specialized sub-agents (depending on change types)
72
96
  2. **Cross-Reference Issues**: Identify overlapping concerns between domains
73
97
  3. **Prioritize for PR**: Focus on merge-blocking vs nice-to-have improvements
74
98
  4. **Create PR-Ready Review**: Structure for easy consumption by human reviewers
75
99
 
76
- ### Step 4: Save Comprehensive Review Document
100
+ ### Step 5: Save Comprehensive Review Document
77
101
 
78
102
  Create a detailed review document at `.docs/reviews/branch-{BRANCH_NAME}-{YYYY-MM-DD_HHMM}.md`:
79
103
 
@@ -178,6 +202,25 @@ Create a detailed review document at `.docs/reviews/branch-{BRANCH_NAME}-{YYYY-M
178
202
  #### Dependency Recommendations
179
203
  {specific dependency management improvements}
180
204
 
205
+ ### 📚 Documentation Analysis (audit-documentation)
206
+ **Documentation Quality**: {Excellent/Good/Acceptable/Poor}
207
+
208
+ #### Documentation Issues Found
209
+ {detailed documentation drift, missing docs, stale examples}
210
+
211
+ #### Documentation Recommendations
212
+ {specific documentation updates needed}
213
+
214
+ ### đŸ—„ī¸ Database Analysis (audit-database)
215
+ **Database Health**: {Excellent/Good/Acceptable/Poor}
216
+ **Note**: Only included if database changes detected
217
+
218
+ #### Database Issues Found
219
+ {detailed database design, migration, and query issues}
220
+
221
+ #### Database Recommendations
222
+ {specific database improvements needed}
223
+
181
224
  ---
182
225
 
183
226
  ## đŸŽ¯ Action Plan
@@ -209,6 +252,8 @@ Create a detailed review document at `.docs/reviews/branch-{BRANCH_NAME}-{YYYY-M
209
252
  - Test Coverage: {score}/10
210
253
  - Maintainability: {score}/10
211
254
  - Dependencies: {score}/10
255
+ - Documentation: {score}/10
256
+ - Database: {score}/10 (if applicable)
212
257
 
213
258
  ### Comparison to {BASE_BRANCH}
214
259
  - Quality Trend: {Improving/Stable/Declining}
@@ -253,7 +298,7 @@ Based on sub-agent analysis, human reviewers should focus on:
253
298
  *Next: Address blocking issues, then create PR with this review as reference*
254
299
  ```
255
300
 
256
- ### Step 5: Provide Executive Summary
301
+ ### Step 6: Provide Executive Summary
257
302
 
258
303
  Give the developer a clear, actionable summary:
259
304
 
@@ -0,0 +1,51 @@
1
+ ---
2
+ allowed-tools: Task
3
+ description: Comprehensive research workflow before implementation - use '/research [topic or feature description]'
4
+ ---
5
+
6
+ ## Your task
7
+
8
+ Launch the `research` sub-agent to conduct thorough research for implementing: `$ARGUMENTS`
9
+
10
+ If no arguments provided, prompt the user for the feature or topic to research.
11
+
12
+ ### Research Process
13
+
14
+ The research agent will:
15
+
16
+ 1. **Analyze Implementation Approaches** - Evaluate multiple solutions, trade-offs, and best practices
17
+ 2. **Study Official Documentation** - Find code examples, patterns, and recommended approaches
18
+ 3. **Review Codebase Patterns** - Understand existing architecture, conventions, and reusable code
19
+ 4. **Design Integration Strategy** - Plan how new code integrates elegantly with existing patterns
20
+ 5. **Produce Implementation Plan** - Concrete, actionable plan ready for development
21
+
22
+ ### Next: Synthesize Results
23
+
24
+ After the sub-agent completes, present a concise summary to the user:
25
+
26
+ ```markdown
27
+ đŸ”Ŧ RESEARCH COMPLETE: $ARGUMENTS
28
+
29
+ ## 📊 RECOMMENDED APPROACH
30
+ {Chosen solution with rationale}
31
+
32
+ ## đŸ—ī¸ INTEGRATION STRATEGY
33
+ {How it fits into existing codebase}
34
+
35
+ ## 📝 IMPLEMENTATION PLAN
36
+ {Step-by-step plan with file references}
37
+
38
+ ## âš ī¸ CONSIDERATIONS
39
+ {Risks, trade-offs, dependencies}
40
+
41
+ ## 🔗 KEY REFERENCES
42
+ {Relevant docs, examples, existing code}
43
+
44
+ 📄 Full research report available from sub-agent output above
45
+ ```
46
+
47
+ 💡 **Usage Examples**:
48
+ - `/research authentication with JWT tokens`
49
+ - `/research add dark mode support`
50
+ - `/research implement real-time websocket notifications`
51
+ - `/research migrate from REST to GraphQL`