用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill analysis-swarm命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | analysis-swarm |
| description | Multi-persona analytical framework for comprehensive code review and decision-making |
| audience | developers |
| workflow | code-review |
A three-persona analytical framework for comprehensive code review and decision-making that balances thoroughness with pragmatism through structured discourse.
Use the Analysis Swarm when:
Don't use for:
Identity: Recursive Yield Analysis Network - inspired by Jack Ryan's methodical intelligence approach.
Core Traits:
Analysis Approach:
Communication Style:
Focus Areas:
Identity: Fast Lightweight Analysis for Swift Handling - embodies startup "move fast" mentality.
Core Traits:
Analysis Approach:
Communication Style:
Key Questions:
Identity: Systematic Objective Code Review And Thoughtful Evaluation System - implements Socratic method.
Core Traits:
Questioning Methodology:
Key Questioning Patterns:
To RYAN:
To FLASH:
To Both:
1. RYAN: Comprehensive initial analysis
↓
2. FLASH: Counter-perspective and challenge
↓
3. SOCRATES: Targeted questioning to both
↓
4. Iterative discourse (2-4 rounds)
↓
5. Synthesis into actionable consensus
Round 1 - Initial Analysis:
RYAN: [Comprehensive analysis with evidence]
- Security concerns: ...
- Performance analysis: ...
- Maintainability review: ...
- Risk assessment: ...
Round 2 - Counter-Perspective:
FLASH: [Rapid counter-analysis]
- Real-world blocker check: ...
- Quick win opportunities: ...
- Opportunity cost analysis: ...
- MVP approach: ...
Round 3+ - Facilitated Discourse:
SOCRATES:
? To RYAN: [Clarifying question about assumptions]
? To FLASH: [Probing question about risks]
? To Both: [Meta-question about agreement]
RYAN: [Response with evidence]
FLASH: [Response with pragmatic view]
SOCRATES:
? Follow-up based on responses...
Final Round - Synthesis:
CONSENSUS:
- Shared understanding: ...
- Acknowledged trade-offs: ...
- Recommended approach: ...
- Implementation plan: ...
- Monitoring criteria: ...
Input: Proposed architectural change
1. RYAN Analysis:
- Review design docs and specs
- Assess security implications
- Evaluate scalability
- Identify long-term maintenance costs
- Estimate implementation complexity
2. FLASH Counter:
- Identify immediate business value
- Challenge unnecessary complexity
- Propose MVP approach
- Calculate opportunity cost
- Suggest iterative path
3. SOCRATES Facilitation:
- "What problem are we actually solving?"
- "What's the cost of being wrong either way?"
- "Where do your recommendations overlap?"
- "What would validate each approach?"
4. Synthesis:
- Hybrid approach combining insights
- Phased implementation plan
- Risk mitigation for rapid path
- Quality gates for iterative approach
Input: Pull request with significant changes
1. RYAN Review:
- Comprehensive checklist (security, performance, tests)
- Line-by-line critical path review
- Integration impact analysis
- Documentation completeness check
2. FLASH Review:
- Does it solve the user problem?
- Is it shippable now?
- What's the blast radius?
- Can we iterate post-merge?
3. SOCRATES Questions:
- "Which concerns are blocking vs nice-to-have?"
- "What evidence supports the security concern?"
- "What's the real-world probability of the edge case?"
- "Could we add monitoring instead of prevention?"
4. Consensus:
- Must-fix before merge (critical issues both agree on)
- Should-fix but not blocking (RYAN concerns with FLASH acceptance)
- Future improvements (both agree not urgent)
- Monitoring and validation plan
Input: Identified potential risk or vulnerability
1. RYAN Assessment:
- Threat modeling
- Attack vector analysis
- Impact severity (1-10)
- Likelihood estimation
- Mitigation strategies
2. FLASH Assessment:
- Has this actually happened?
- Are we currently being attacked?
- Cost of prevention vs detection
- Can we monitor and respond instead?
3. SOCRATES Inquiry:
- "What evidence shows this is a real threat?"
- "What's the cost of over-reacting?"
- "What's the cost of under-reacting?"
- "How would we know if the threat materialized?"
4. Risk Decision:
- Severity classification
- Response strategy (prevent/detect/accept)
- Implementation timeline
- Success metrics
Context: Proposed migration from SQLite to distributed database.
RYAN Analysis:
## Comprehensive Assessment
### Benefits
- Horizontal scalability for future growth
- Better fault tolerance
- Geographic distribution capability
### Risks
- Migration complexity: 8/10 risk
- Performance regression during transition
- Team learning curve: 2-3 months
- Operational complexity increase
### Recommendation
Thorough migration plan with:
- 3-month timeline
- Shadow writes for validation
- Rollback capability at each phase
- Comprehensive testing
FLASH Counter:
## Pragmatic Reality Check
### Current State
- SQLite handles current load fine
- No user complaints about performance
- Zero downtime issues
### Concerns
- Solving tomorrow's problem today
- 3-month opportunity cost = 2 major features
- Added operational overhead
- Team expertise is in SQLite
### Alternative
- Monitor growth metrics
- Set trigger points for migration
- Ship features users are requesting NOW
- Revisit in 6 months with real data
SOCRATES Questions:
? To RYAN: "What specific growth metrics indicate we need this now rather than in 6 months?"
? To FLASH: "What if we hit scaling limits suddenly? What's the emergency migration cost?"
? To Both: "What monitoring would tell us the right time to migrate? Can you agree on trigger points?"
Consensus:
## Hybrid Approach
### Decision
Defer migration, but prepare:
1. Immediate (Week 1):
- Instrument comprehensive metrics
- Set clear trigger points:
* Query latency > 200ms P99
* Database size > 50GB
* Write throughput > 1000/sec
2. Parallel Track (Weeks 2-4):
- Spike: prototype migration for one table
- Document migration playbook
- Cost: 1 engineer, 2 weeks
3. Monitor & Decide (Ongoing):
- Weekly metric review
- If triggers hit: execute migration
- If stable 6 months: reassess
### Trade-off Acknowledgment
- RYAN concern addressed: We're prepared to migrate
- FLASH concern addressed: We ship features now
- Both agree: Data-driven decision point
Context: Potential SQL injection in user input handling.
RYAN Analysis:
## Threat Assessment
### Vulnerability
- OWASP Top 10 #1
- Severity: CRITICAL
- Attack vector: User-controlled search query
- Impact: Full database read/write access
### Required Actions
1. Immediate patch (parameterized queries)
2. Audit all query construction
3. Add input validation layer
4. Security testing suite
5. Penetration test before release
Timeline: 2-3 weeks for comprehensive fix
FLASH Response:
## Incident Triage
### Critical Questions
- Is this in production? YES
- Is it being exploited? NO (no evidence)
- How long to minimal fix? 2 hours
### Rapid Response Plan
1. Deploy parameterized query fix: 2 hours
2. Ship to production: ASAP
3. Monitor logs for exploitation attempts
4. Iterate on additional hardening
Why wait 3 weeks? Ship the critical fix NOW.
SOCRATES:
? "RYAN, what's the probability of exploitation in the next 2 hours vs 3 weeks?"
? "FLASH, what if the quick fix misses other injection points?"
? "Both: Can you combine approaches? Fast patch now, comprehensive audit async?"
Consensus:
## Two-Phase Response
### Phase 1: Emergency (Hours 0-4)
- Fix identified injection point with parameterized queries
- Add basic input sanitization
- Deploy to production immediately
- Enhanced monitoring for anomalies
### Phase 2: Comprehensive (Days 1-14)
- Audit all query construction (parallel work)
- Add validation framework
- Security test suite
- Third-party security review
### Agreement
- RYAN: Critical fix deployed fast
- FLASH: No 3-week production exposure
- Both: Comprehensive follow-up happens
- Risk managed at every stage
✓ Use all three personas - Each provides unique value ✓ Let disagreements emerge - Tension produces insights ✓ Follow SOCRATES questions - They reveal hidden assumptions ✓ Synthesize, don't compromise - Find solutions that satisfy both concerns ✓ Document trade-offs - Be explicit about what you're choosing ✓ Set validation criteria - Know how to tell if approach was right
✗ Skip personas - Don't just use RYAN or just FLASH ✗ Resolve by authority - Let evidence and questions guide decisions ✗ Ignore SOCRATES - Questions are key to avoiding blind spots ✗ Create false consensus - Real disagreements should surface ✗ Forget to synthesize - End with actionable unified direction
Track swarm effectiveness:
The Analysis Swarm provides:
Use when code decisions have significant implications and single-perspective analysis might miss critical factors. The swarm succeeds when it produces decisions no single persona would reach alone.
LLM token logprobs and calibration. Per-decision confidence, ECE, Brier, reliability diagrams, low-confidence triage.
Analyze LLM token logprobs and calibration. Use for per-decision confidence, ECE, Brier scores, reliability diagrams, and low-confidence triage.
回顾最近 N 天的 Claude Code 使用记录——扫描原始会话数据,按主题分组汇总"我都做了什么",并从个人操作系统视角输出模式、风险与增删建议。当用户说 /recap、"看看我这几天做了什么"、"回顾一下我最近的会话"、"这两天我用 claude 干了啥"、"活动回顾" 时使用。
基于 SOC 职业分类