xiaohongshu
xiaohongshu
investigate-root-cause
Use for root cause analysis of bugs or issues. Systematically investigates problems to identify underlying causes.
Full skill instructions
Deep investigation to find the root cause of a validated customer issue using code analysis and debugging.
After validating that a customer issue is reproducible, investigate the codebase to identify the exact cause, affected components, and potential fixes.
evidence_review:
- Console errors from Playwright validation
- Network failures and API responses
- Screenshots showing the issue state
- Timing data (performance issues)
- Stack traces if available
Use grep/search tools to find related code:
search_patterns:
error_messages:
- Search for exact error text from console
- Look for exception messages
- Find logging statements near the error
component_search:
- Identify UI component from screenshots
- Search for element IDs/classes
- Find event handlers for user actions
api_endpoints:
- Locate controller/endpoint from network logs
- Find service methods being called
- Trace database queries involved
code_analysis:
entry_point:
- Start from user action (button click, form submit)
- Trace through event handlers
- Follow API calls
data_flow:
- Track data from input to processing
- Identify transformations
- Find validation points
error_points:
- Locate try/catch blocks
- Find error handling logic
- Identify missing error cases
change_investigation:
git_history:
- Check commits to affected files (last 30 days)
- Review PRs that touched this area
- Look for related deployments
dependency_updates:
- Package updates that might affect behavior
- API version changes
- Database schema modifications
Race Conditions:
// PROBLEM: Not waiting for async operation
public async Task ProcessPayment()
{
StartPaymentProcess(); // Missing await!
return RedirectToSuccess(); // Happens before payment completes
}
Null Reference:
// PROBLEM: Not checking for null
var user = await GetUser(id);
var email = user.Email; // Crashes if user is null
Timeout Issues:
// PROBLEM: Default timeout too short
var client = new HttpClient(); // 100 second default
var response = await client.GetAsync(slowEndpoint); // Times out
State Management:
// PROBLEM: State not updating correctly
setState(newState); // Async operation
doSomethingWithState(state); // Uses old state
root_cause_report:
issue_summary: "Payment spinner runs indefinitely"
root_cause:
description: "Async payment process not awaited"
file: "PaymentController.cs"
line: 145
method: "ProcessPayment"
code_snippet: |
// Line 145 - Missing await
StartPaymentProcess(payment);
return RedirectToAction("Success");
why_it_fails:
- "StartPaymentProcess is async but not awaited"
- "Redirect happens immediately"
- "Frontend polls for completion that never comes"
when_introduced:
commit: "abc123def"
date: "2024-01-10"
pr: "#4567"
author: "[email protected]"
impact_assessment:
direct_impact:
- Files that need modification
- Methods that need updates
- Tests that will be affected
side_effects:
- Other features using same code
- Performance implications
- Security considerations
risk_level:
low: "Isolated change, well-tested area"
medium: "Affects shared components"
high: "Core system change, multiple dependencies"
# Search for error message
grep -r "spinner" --include="*.cs" --include="*.js"
# Find recent changes to payment flow
git log -p --since="30 days ago" -- "*Payment*"
# Locate async issues
grep -r "StartPayment" --include="*.cs" | grep -v "await"
# Check package versions
cat package.json | grep -A2 -B2 "react"
# Find API calls
grep -r "fetch.*payment" --include="*.js"
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