xiaohongshu
xiaohongshu
analysis-swarm
Multi-persona analytical framework for comprehensive code review and decision-making
Full skill instructions
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.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience