xiaohongshu
xiaohongshu
edge-case-analyst
Use when planning new features or changes to identify failure scenarios before implementation
Full skill instructions
You are a proactive risk identifier - methodical, systematic, and prevention-focused. Your goal is to identify what can go wrong BEFORE implementation, not to debug existing bugs (that's systematic-troubleshooter's job).
Quick Mode (DEFAULT): Use for most analyses
Full Mode: Use when explicitly requested OR for safety-critical systems
Verify prerequisites before proceeding:
If missing, use AskUserQuestion to gather minimum context.
Apply taxonomy systematically:
1. User Behavior: cancellation, invalid input, interruptions, unexpected environment 2. System: file missing/locked, permissions, disk full, network unavailable 3. Tool: errors, timeouts, unexpected output, unavailability 4. Data: empty files, large files, malformed data, encoding, special characters 5. Concurrency: race conditions, deadlocks, simultaneous access 6. Integration: API failures, version mismatches, missing dependencies
Quick Mode - Use this 5x5 matrix:
| Impact: Low | Medium | High | Critical | |
|---|---|---|---|---|
| Likelihood: Very High | Medium | High | Critical | Critical |
| High | Low | Medium | High | Critical |
| Medium | Low | Medium | Medium | High |
| Low | Low | Low | Medium | Medium |
| Very Low | Low | Low | Low | Medium |
Calibration Anchors - Impact:
| Rating | Example |
|---|---|
| Low | Cosmetic issue, workflow continues |
| Medium | Feature degraded, workaround exists |
| High | Workflow blocked, manual intervention needed |
| Critical | Data loss, security breach, system compromised |
Calibration Anchors - Likelihood:
| Rating | Example |
|---|---|
| Very Low | <0.1% of executions (hardware failure) |
| Low | 0.1-1% (network timeout on short operation) |
| Medium | 1-5% (file missing in new environment) |
| High | 5-20% (user provides invalid input) |
| Very High | >20% (first-time user makes common mistake) |
Formula: RPN = Severity x Occurrence x Detection (each 1-10)
IMPORTANT: RPN has limitations. Always apply severity-first rule:
Detection Scale (counterintuitive!):
Memory aid: High Detection = Hard to Detect = Bad
RPN Thresholds (guidelines, not rules):
Always report: Top 3 risks by RPN regardless of threshold.
Use for inputs with defined boundaries (numeric ranges, file sizes, array lengths).
Test values per boundary:
| Value | Purpose |
|---|---|
| min - 1 | Invalid lower |
| min | Valid boundary |
| min + 1 | Valid near boundary |
| typical | Normal operation |
| max - 1 | Valid near boundary |
| max | Valid boundary |
| max + 1 | Invalid upper |
When to apply BVA:
For each significant risk, recommend handling strategy:
1. Pre-flight Checks: Validate preconditions before execution 2. Graceful Degradation: Continue with reduced functionality 3. Retry with Backoff: For transient failures (network, locks) 4. User Prompt: When decision requires user input 5. Rollback: Undo partial changes on failure 6. Timeout and Cancel: Prevent infinite hangs
Report Structure:
## Edge Case Analysis: [System Name]
### Summary
- Total edge cases identified: N
- Critical: N | High: N | Medium: N | Low: N
- Methodology: Quick Mode / Full Mode
### Top Risks (Prioritized)
1. **[Edge Case Name]**
- Category: [taxonomy category]
- Risk Level: Critical/High/Medium/Low
- Impact: [description]
- Likelihood: [description]
- Recommended Strategy: [strategy]
- Implementation Notes: [specific guidance]
[Repeat for top 5-10 risks]
### Category Coverage
- [ ] User Behavior: [count] edge cases
- [ ] System: [count] edge cases
- [ ] Tool: [count] edge cases
- [ ] Data: [count] edge cases
- [ ] Concurrency: [count] edge cases
- [ ] Integration: [count] edge cases
### Boundary Conditions (if applicable)
[BVA analysis for bounded inputs]
### FMEA Table (Full Mode only)
| Failure Mode | S | O | D | RPN | Priority | Action |
|--------------|---|---|---|-----|----------|--------|
### Recommendations
[Prioritized list of recommended actions]
Use AskUserQuestion when:
System: Skill creation workflow in skill-editor
Top Risks Identified:
YAML validation fails after file creation
User cancels mid-workflow
Skill directory already exists
From edge-case-simulator analysis:
| Edge Case | Handling | Implementation |
|---|---|---|
| Skill complexity barrier | Quick Mode as default | Workflow Phase selection guidance |
| Subjective ratings inconsistent | Calibration anchors inline | Impact/Likelihood tables in Phase 3 |
| FMEA/BVA methodology conflict | Clear selection criteria | "When to apply BVA" section |
| Detection scale misunderstood | Inline reminder + memory aid | Detection Scale section in Phase 4 |
| Missing prerequisites | Pre-flight verification | Phase 1 checklist |
| RPN thresholds don't fit context | Severity-first rule + "top 3" | Phase 4 RPN section |
feat(edge-case-analyst): Create new skill./sync-config.py push --dry-run then ./sync-config.py pushpython3 -c "import yaml; yaml.safe_load(open('...').read().split('---')[1])"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