Skip to content

Commit 2730d4a

Browse files
extended-thinking-orchestration
feat: add validation phases and update documentation
2 parents 5a06cd4 + 22a0186 commit 2730d4a

File tree

9 files changed

+204
-12
lines changed

9 files changed

+204
-12
lines changed

CONTRIBUTING.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Found a bug or have an enhancement? Great! Please:
3636
- Describe the current vs desired behavior
3737
- Include examples if relevant
3838
- Keep changes focused and minimal
39+
- Consider adding validation phases for complex commands
40+
- Use extended thinking for sophisticated analysis scenarios
3941

4042
### 3. Bug Reports
4143
Open an issue with:
@@ -73,18 +75,46 @@ Keep them simple:
7375
- [ ] Handles common edge cases
7476
- [ ] Clear, actionable output
7577
- [ ] Under 100 lines
78+
- [ ] Includes validation phase for complex commands
79+
- [ ] No emojis in git-related output
80+
81+
## Advanced Command Features
82+
83+
For complex commands, consider implementing:
84+
85+
### Validation Phases
86+
Commands like `/refactor` and `/implement` should include validation:
87+
```
88+
/refactor validate # Check completeness, find loose ends
89+
/implement validate # Verify integration completeness
90+
```
91+
92+
### Extended Thinking
93+
Use `<think>` blocks for sophisticated analysis in:
94+
- Complex architectural refactoring
95+
- Security vulnerability detection
96+
- Multi-step problem solving
97+
98+
### Command Integration
99+
Minimal, pragmatic suggestions for natural workflow:
100+
- Suggest `/test` after major changes
101+
- Suggest `/commit` at logical checkpoints
102+
- Avoid over-engineering command chains
76103

77104
## What We're Looking For
78105

79106
**Yes:**
80107
- Commands that automate tedious tasks
81108
- Cross-platform compatibility improvements
82109
- Real-world workflow optimizations
110+
- Validation phases for complex operations
111+
- Pragmatic command integration
83112

84113
**No:**
85114
- Framework-specific tools (unless very popular)
86115
- Commands requiring external dependencies
87116
- Overly complex multi-step wizards
117+
- Over-engineered command orchestration
88118

89119
## Issue Templates
90120

@@ -115,9 +145,10 @@ When creating issues, please use these templates:
115145
## Community Standards
116146

117147
1. **Professional Communication** - Clear, concise, technical
118-
2. **No Emojis in Code** - Keep commands clean and professional
148+
2. **No Emojis in Code** - Keep commands, commits, PRs, and issues clean and professional
119149
3. **Respect Time** - Quick reviews, fast merges for good contributions
120150
4. **Test Before Submit** - Ensure your command works on major platforms
151+
5. **Clean Architecture** - Follow clean code principles, no over-engineering
121152

122153
## Continuous Improvement
123154

README.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Professional commands for Claude Code CLI that save 2-3 hours per week on repeti
3535

3636
🚧 **Active Development Notice**: CCPlugins is continuously evolving based on real-world usage. We thoroughly test each command and refine them as we discover gaps and opportunities. This ensures you're always getting battle-tested, production-ready tools that solve actual developer problems.
3737

38-
CCPlugins is a curated set of 25 professional commands that extend Claude Code CLI with enterprise-grade development workflows. These commands leverage Claude's contextual understanding while providing structured, predictable outcomes optimized for Opus 4 and Sonnet 4 models.
38+
CCPlugins is a curated set of 24 professional commands that extend Claude Code CLI with enterprise-grade development workflows. These commands leverage Claude's contextual understanding while providing structured, predictable outcomes optimized for Opus 4 and Sonnet 4 models.
3939

4040
## Quick Links
4141

@@ -76,7 +76,7 @@ python uninstall.py
7676
```
7777

7878
## Commands
79-
25 professional commands optimized for Claude Code CLI's native capabilities.
79+
24 professional commands optimized for Claude Code CLI's native capabilities with enhanced validation and refinement phases.
8080

8181
### 🚀 Development Workflow
8282

@@ -86,15 +86,15 @@ python uninstall.py
8686
/format # Auto-detect and apply project formatter
8787
/scaffold feature-name # Generate complete features from patterns
8888
/test # Run tests with intelligent failure analysis
89-
/implement url/path/feature # Import and adapt code from any source (GitHub, CodePen, local)
90-
/refactor # Intelligent code restructuring with cross-session continuity
89+
/implement url/path/feature # Import and adapt code from any source with validation phase
90+
/refactor # Intelligent code restructuring with validation & de-para mapping
9191
```
9292

9393
### 🛡️ Code Quality & Security
9494

9595
```bash
9696
/review # Multi-agent analysis (security, performance, quality, architecture)
97-
/security-scan # Contextual vulnerability analysis with dependency health
97+
/security-scan # Vulnerability analysis with extended thinking & remediation tracking
9898
/predict-issues # Proactive problem detection with timeline estimates
9999
/remove-comments # Clean obvious comments, preserve valuable docs
100100
/fix-imports # Repair broken imports after refactoring
@@ -123,6 +123,26 @@ python uninstall.py
123123
```
124124

125125

126+
## Enhanced Features
127+
128+
### 🔍 Validation & Refinement
129+
Complex commands now include validation phases to ensure completeness:
130+
```bash
131+
/refactor validate # Find remaining old patterns, verify 100% migration
132+
/implement validate # Check integration completeness, find loose ends
133+
```
134+
135+
### 🧠 Extended Thinking
136+
Advanced analysis for complex scenarios:
137+
- **Refactoring**: Deep architectural analysis for large-scale changes
138+
- **Security**: Sophisticated vulnerability detection with chain analysis
139+
140+
### 🔗 Pragmatic Command Integration
141+
Natural workflow suggestions without over-engineering:
142+
- Suggests `/test` after major changes
143+
- Recommends `/commit` at logical checkpoints
144+
- Maintains user control, no automatic execution
145+
126146
## Real World Example
127147

128148
### Before `/cleanproject`:

commands/cleanproject.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ git commit -m "Pre-cleanup checkpoint" || echo "No changes to commit"
4343
- Include "Generated with Claude Code" or similar messages
4444
- Modify git config or user credentials
4545
- Add any AI/assistant attribution to the commit
46+
- Use emojis in commits, PRs, or git-related content
4647

4748
I'll identify cleanup targets using native tools:
4849
- **Glob tool** to find temporary and debug files

commands/commit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,6 @@ The commit message will be concise, meaningful, and follow your project's conven
7272
- Include "Generated with Claude Code" or similar messages
7373
- Modify git config or user credentials
7474
- Add any AI/assistant attribution to the commit
75+
- Use emojis in commits, PRs, or git-related content
7576

7677
The commit will use only your existing git user configuration, maintaining full ownership and authenticity of your commits.

commands/implement.md

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,37 @@ Based on my analysis, I'll create an implementation plan:
5252
- Design integration approach
5353
- Break work into testable chunks
5454

55-
I'll write this plan to `implement/plan.md` with clear checkpoints for continuity across sessions.
55+
I'll write this plan to `implement/plan.md`:
56+
57+
```markdown
58+
# Implementation Plan - [timestamp]
59+
60+
## Source Analysis
61+
- **Source Type**: [URL/Local/Description]
62+
- **Core Features**: [identified features to implement]
63+
- **Dependencies**: [required libraries/frameworks]
64+
- **Complexity**: [estimated effort]
65+
66+
## Target Integration
67+
- **Integration Points**: [where it connects]
68+
- **Affected Files**: [files to modify/create]
69+
- **Pattern Matching**: [how to adapt to project style]
70+
71+
## Implementation Tasks
72+
[Prioritized checklist with progress tracking]
73+
74+
## Validation Checklist
75+
- [ ] All features implemented
76+
- [ ] Tests written and passing
77+
- [ ] No broken functionality
78+
- [ ] Documentation updated
79+
- [ ] Integration points verified
80+
- [ ] Performance acceptable
81+
82+
## Risk Mitigation
83+
- **Potential Issues**: [identified risks]
84+
- **Rollback Strategy**: [git checkpoints]
85+
```
5686

5787
## Phase 3: Intelligent Adaptation
5888

@@ -137,6 +167,7 @@ When you return and run `/implement` or `/implement resume`:
137167
/implement # Auto-detects and resumes
138168
/implement resume # Explicit resume
139169
/implement status # Check progress
170+
/implement validate # Validate integration completeness
140171
```
141172

142173
## Execution Guarantee
@@ -148,12 +179,53 @@ When you return and run `/implement` or `/implement resume`:
148179
3. **Write plan** - Full implementation plan in `implement/plan.md`
149180
4. **Show plan** - Present summary before implementing
150181
5. **Execute systematically** - Follow plan with updates
182+
6. **Validate integration** - Run validation when requested
151183

152184
**I will NEVER:**
153185
- Start implementing without a written plan
154186
- Skip source or project analysis
155187
- Bypass session file creation
156188
- Begin coding before showing the plan
189+
- Use emojis in commits, PRs, or git-related content
190+
191+
## Phase 6: Implementation Validation
192+
193+
When you run `/implement validate` after implementation:
194+
195+
**Integration Analysis:**
196+
1. **Coverage Check** - Verify all planned features implemented
197+
2. **Integration Points** - Validate all connections work
198+
3. **Test Coverage** - Ensure new code is tested
199+
4. **TODO Scan** - Find any leftover TODOs
200+
5. **Documentation** - Check if docs reflect changes
201+
202+
**Validation Report:**
203+
```
204+
IMPLEMENTATION VALIDATION
205+
├── Features Implemented: 12/12 (100%)
206+
├── Integration Points: 8/10 (2 pending)
207+
├── Test Coverage: 87%
208+
├── Build Status: Passing
209+
└── Documentation: Needs update
210+
211+
PENDING ITEMS:
212+
- API endpoint /users/profile not connected
213+
- WebSocket integration incomplete
214+
- Missing tests for error scenarios
215+
- README needs feature documentation
216+
217+
ENHANCEMENT OPPORTUNITIES:
218+
1. Add error boundary for new components
219+
2. Implement caching for API calls
220+
3. Add performance monitoring
221+
4. Create usage examples
222+
```
223+
224+
**Validation Actions:**
225+
- Complete missing integrations
226+
- Generate comprehensive test suite
227+
- Update all affected documentation
228+
- Create migration guide if breaking changes
157229

158230
## Command Suggestions
159231

commands/refactor.md

Lines changed: 69 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,34 @@ Based on analysis, I'll create a structured plan:
9999

100100
**Plan Structure:**
101101
I'll create a detailed plan in `refactor/plan.md`:
102-
- Prioritized refactoring tasks
103-
- Risk assessment for each change
104-
- Checkpoints for validation
105-
- Rollback points if needed
102+
103+
```markdown
104+
# Refactor Plan - [timestamp]
105+
106+
## Initial State Analysis
107+
- **Current Architecture**: [description of existing patterns]
108+
- **Problem Areas**: [specific issues found]
109+
- **Dependencies**: [external/internal dependencies]
110+
- **Test Coverage**: [current coverage %]
111+
112+
## Refactoring Tasks
113+
[Prioritized list with risk levels]
114+
115+
## Validation Checklist
116+
- [ ] All old patterns removed
117+
- [ ] No broken imports
118+
- [ ] All tests passing
119+
- [ ] Build successful
120+
- [ ] Type checking clean
121+
- [ ] No orphaned code
122+
- [ ] Documentation updated
123+
124+
## De-Para Mapping
125+
| Before | After | Status |
126+
|--------|-------|--------|
127+
| OldService.method() | NewService.method() | Pending |
128+
| /api/v1/* | /api/v2/* | Pending |
129+
```
106130

107131
## Phase 3: Incremental Execution
108132

@@ -182,8 +206,46 @@ Continuing from checkpoint...
182206
/refactor resume # Continue existing session
183207
/refactor status # Check progress without continuing
184208
/refactor new # Start fresh (archives existing)
209+
/refactor validate # Validate completeness and find loose ends
185210
```
186211

212+
## Phase 6: Validation & Refinement
213+
214+
When you run `/refactor validate` after completing refactoring:
215+
216+
**Deep Validation Analysis:**
217+
1. **Coverage Check** - Find all remaining old patterns
218+
2. **Import Verification** - Detect broken or orphaned imports
219+
3. **Build & Test** - Run full build and test suite
220+
4. **Type Checking** - Verify type safety if applicable
221+
5. **Dead Code Detection** - Identify removable legacy code
222+
223+
**De-Para Mapping:**
224+
```
225+
MIGRATION STATUS REPORT
226+
├── Patterns Migrated: 45/48 (94%)
227+
├── Files Updated: 67/70
228+
├── Tests Status: 3 failing
229+
└── Build Status: Passing
230+
231+
PENDING MIGRATIONS:
232+
- src/legacy/UserHelper.js → Still using old pattern
233+
- api/v1/routes.js → Mixed patterns detected
234+
- tests/old-api.test.js → Needs update
235+
236+
SUGGESTED REFINEMENTS:
237+
1. Remove 12 orphaned files
238+
2. Consolidate duplicate utilities
239+
3. Update 3 missed import paths
240+
4. Optimize bundle size (-15KB possible)
241+
```
242+
243+
**Validation Actions:**
244+
- Generate comprehensive de-para documentation
245+
- Create migration guide for team
246+
- Fix remaining issues automatically
247+
- Ensure 100% pattern consistency
248+
187249
## Safety Guarantees
188250

189251
**Protection Measures:**
@@ -197,6 +259,7 @@ Continuing from checkpoint...
197259
- Modify git configuration
198260
- Break working functionality
199261
- Make changes without validation
262+
- Use emojis in commits, PRs, or git-related content
200263

201264
## Command Integration
202265

@@ -210,9 +273,10 @@ When appropriate, I may suggest using other commands:
210273

211274
1. **Setup session** - Check/create state files FIRST
212275
2. **Deep analysis** - Use extended thinking for complex scenarios
213-
3. **Write plan** - Document all changes in `refactor_plan.md`
276+
3. **Write plan** - Document all changes in `refactor/plan.md`
214277
4. **Get confirmation** - Show plan summary before starting
215278
5. **Execute incrementally** - Follow plan with checkpoints
279+
6. **Validate completeness** - Run validation phase when requested
216280

217281
**I will NEVER:**
218282
- Start refactoring without a written plan

commands/review.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ After review, I'll ask: "Create GitHub issues for critical findings?"
3939
- Include "Generated with Claude Code" in any output
4040
- Modify git config or repository settings
4141
- Add any AI/assistant signatures or watermarks
42+
- Use emojis in commits, PRs, issues, or git-related content
4243

4344
This focuses on real problems that impact your application's reliability and maintainability.

commands/session-end.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ I'll update the appropriate CLAUDE.md file with:
3737
- Include "Generated with Claude Code" or similar messages
3838
- Modify git config or user credentials
3939
- Add any AI/assistant attribution to the commit
40+
- Use emojis in commits, PRs, or git-related content
4041

4142
I'll preserve this summary in your memory system, ensuring continuity for future sessions and seamless handoffs to team members. This integrates with Claude Code CLI's native memory management for persistent context.

commands/todos-to-issues.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,6 @@ I'll handle rate limits and show you a summary of all created issues.
146146
- Include "Generated with Claude Code" in issue descriptions
147147
- Modify repository settings or permissions
148148
- Add any AI/assistant signatures or watermarks
149+
- Use emojis in issues, PRs, or git-related content
149150

150151
This helps convert your development notes into trackable work items.

0 commit comments

Comments
 (0)