💡 摘要
CCMP集成插件,实现Claude Code中的无缝上下文管理和TDD工作流程。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);API Key/Token 的获取、存储与泄露风险;文件读写范围与路径穿越风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
Anthem's Claude Code Marketplace (CCMP)
The Integrated Development Experience for Claude Code
A curated collection of deeply integrated plugins that work together to provide compound value: context management, session workflows, and test-driven development that amplify each other's effectiveness.
🎯 Why CCMP?
Most plugin collections are just that: collections. CCMP plugins are designed to work together, providing exponentially more value when used as a system rather than individually.
The Power of Integration
| Using Individually | Using Together (CCMP) | |-------------------|----------------------| | Manually check context health | Auto-checked at every checkpoint | | Remember to update documentation | Auto-updated on GREEN checkpoints | | Track TDD discipline manually | Automatically analyzed and scored | | Context goes stale | Real-time monitoring and alerts | | Session handoffs miss details | Comprehensive: context + TDD + decisions |
Result: Zero cognitive overhead. Everything happens automatically.
🚀 Quick Start
Installation
# Add the marketplace to Claude Code claude-code marketplace add AnthemFlynn/ccmp # Install all three core plugins for full integration claude-code plugin add AnthemFlynn/ccmp/claude-context-manager claude-code plugin add AnthemFlynn/ccmp/session-management claude-code plugin add AnthemFlynn/ccmp/tdd-workflow
Your First Integrated Session
# 1. Start a TDD session (activates all three plugins) python scripts/session.py start feature/payment --tdd --objective "Add Stripe integration" # Integration provides automatically: # ✅ Loads relevant claude.md context files # ✅ Shows context health warnings # ✅ Activates TDD workflow # ✅ Sets up checkpoint tracking # 2. Work with full context + TDD discipline # - Write failing test (RED) # - Implement minimal code (GREEN) # - Refactor if needed # 3. Create GREEN checkpoint (magic happens here!) python scripts/session.py checkpoint --label "stripe-webhook" --tdd-phase GREEN # Automatically: # ✅ Analyzes test patterns # ✅ Updates tests/claude.md with discovered patterns # ✅ Checks context health # ✅ Increments TDD cycle counter # ✅ Creates git commit # 4. Analyze TDD discipline python scripts/session.py analyze # Shows: # - TDD score (0-100) # - Violations detected # - Cycle timing # - Recommendations # 5. End with comprehensive handoff python scripts/session.py end # Includes: # - Context health report # - TDD metrics and violations # - Test pattern updates # - Next session recommendations
Zero manual integration. Everything just works.
🔗 The Integrated Ecosystem
CCMP plugins share state through .ccmp/state.json and coordinate automatically:
┌─────────────────────────────────────────────────────┐
│ Session Management (Orchestrator) │
│ • Git-native workflows │
│ • Checkpoint tracking │
│ • Objective management │
└──────────────┬─────────────────────┬────────────────┘
│ │
┌───────▼────────┐ ┌──────▼────────┐
│ Context │ │ TDD │
│ Manager │ │ Workflow │
│ │ │ │
│ • Health │ │ • Cycle │
│ monitoring │ │ tracking │
│ • Auto-updates │ │ • Pattern │
│ • Staleness │ │ discovery │
│ detection │ │ • Violation │
│ │ │ detection │
└────────┬───────┘ └───────┬───────┘
│ │
└────────┬───────────┘
│
┌────▼────┐
│ .ccmp/ │
│ state │
│ .json │
└─────────┘
Integration Patterns
Pattern 1: Context Loading
- Sessions auto-load relevant
claude.mdfiles based on objectives - Full situational awareness from the start
Pattern 2: Health Monitoring
- Checkpoints detect stale context (>30 days)
- Automatic warnings and update recommendations
Pattern 3: Test Documentation
- GREEN checkpoints analyze test patterns
- Auto-generate/update
tests/*/claude.md - Patterns documented for future tests
Pattern 4: TDD Analysis
- Git history analyzed for violations
- Discipline scores calculated
- Cycle timing tracked
Pattern 5: Comprehensive Handoffs
- Context health + TDD metrics + decisions
- Next session knows exactly what needs attention
⭐ Featured Plugins
1. Claude Context Manager
Autonomous codebase intelligence through claude.md files
Standalone Features:
- Context health monitoring
- Automatic staleness detection
- Intelligent context updates
- Quality standards enforcement
Integration Enhancements:
- Sessions auto-load relevant context
- Checkpoints trigger health checks
- Handoffs include health reports
- Real-time monitoring available
# Monitor context health python lib/context_monitor.py # Watch mode (continuous monitoring) python lib/context_monitor.py --watch # Update stale context python scripts/auto_update.py src/api/
2. Session Management
Git-native session lifecycle with context preservation
Standalone Features:
- Branch-based sessions
- Objective tracking
- Decision logging
- Blocker management
Integration Enhancements:
- Auto-loads context on start
- Health checks at checkpoints
- TDD metrics in status
- Comprehensive handoffs
# Start session python scripts/session.py start feature/auth --objective "Add OAuth" # Check status (shows context + TDD state) python scripts/session.py status # Create checkpoint (health check + TDD analysis) python scripts/session.py checkpoint --label "milestone" # End with full handoff python scripts/session.py end
3. TDD Workflow
Test-Driven Development with automatic pattern discovery
Standalone Features:
- RED-GREEN-REFACTOR enforcement
- Rationalization detection
- TDD discipline guidance
- Best practices
Integration Enhancements:
- Session-aware checkpoints
- Automatic test pattern discovery
- Test context auto-documentation
- Violation detection and scoring
- Cycle timing analysis
# Start TDD session python scripts/session.py start feature/api --tdd # GREEN checkpoint (auto-documents patterns!) python scripts/session.py checkpoint --label "green-validation" --tdd-phase GREEN # Analyze TDD discipline python scripts/session.py analyze # View discovered patterns cat tests/claude.md
📊 Integration Achievements
All plugins fully integrated through 3 implementation phases:
| Phase | Features | Status | |-------|----------|--------| | Phase 1 | Integration API, Context loading, State management | ✅ Complete | | Phase 2 | Bidirectional sync, Real-time monitoring, Health checks | ✅ Complete | | Phase 3 | Pattern discovery, Test documentation, Violation detection | ✅ Complete |
View Integration Review → Phase 1 Details → Phase 2 Details → Phase 3 Details →
Result: 100% of integration goals achieved. Plugins amplify each other seamlessly.
🎓 Example Workflows
Complete TDD Session with Auto-Documentation
# Morning: Start integrated TDD session python scripts/session.py start feature/payment --tdd --objective "Add Stripe webhooks" # Integration shows: # - Loaded src/payment/claude.md # - Context health: 92/100 # - TDD mode activated # Work: Write test (RED) # src/tests/test_webhook.py created python scripts/session.py checkpoint --label "red-webhook-signature" --tdd-phase RED # Work: Implement code (GREEN) # src/webhook.py updated python scripts/session.py checkpoint --label "green-webhook-signature" --tdd-phase GREEN # Magic happens: # ✅ Test patterns analyzed # ✅ tests/claude.md auto-updated with: # - Framework: pytest # - Patterns: Direct assertions, Mocking with Mock() # ✅ Context health checked # ✅ TDD cycle: 1 completed # ✅ Git commit created # Continue working... (more RED-GREEN cycles) # Check discipline python scripts/session.py analyze # Shows: # - TDD Score: 95/100 # - Cycles: 5 # - Average cycle time: 15.3 minutes # - No violations detected # End session python scripts/session.py end # Handoff includes: # - TDD metrics: 5 cycles, 95/100 score # - Context health: 92/100 # - Test patterns documented: tests/claude.md # - Recommendations for next session
Total manual effort: Running 4 commands. Everything else automatic.
Context-Driven Session Handoff
# Developer A ends session python scripts/session.py end # Output: # 📝 SESSION HANDOFF # ============================================================ # Branch: feature/payment # Mode: TDD # # 🏥 CONTEXT HEALTH # Final score: 87/100 # ⚠️ Attention needed: # • src/api/ (35 days old) # # 🧪 TDD METRICS # Cycles completed: 12 # Discipline score: 95/100 # Commits with tests: 11 # Commits without tests: 1 # # 💡 RECOMMENDATIONS # • Update src/api/claude.md before next session # • Review commit abc123 (source without tests) # Developer B resumes py
优点
- 多个插件的无缝集成
- 自动上下文管理
- 增强的TDD工作流程
- 实时监控和警报
缺点
- 需要熟悉Claude Code
- 对新用户可能复杂
- 依赖多个插件
- 高级功能的文档有限
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 AnthemFlynn.
