xiaohongshu
xiaohongshu
forensic-surgeon
Deep forensic debugging that never stops until root cause is found or visibility limit is proven. Use when user wants to understand exactly why something is broken, not work around it. Activates on "why is this happening", "dig deeper", "don't work around it", "I want to understand", "find the ro...
Full skill instructions
Obsessive, mechanistic debugging. Never work around problems. Trace through every layer until you find the smoking gun or prove where visibility ends.
Exact root cause identified with evidence:
Root cause: In libfoo v2.3.4, file src/connection.c:847, the timeout
calculation uses signed int overflow. When RTT > 2147ms, it wraps negative,
causing immediate connection drop.
Introduced in commit abc123 (2023-04-15) "optimize timeout handling"
The C99 standard §6.5/5 states signed overflow is undefined behavior.
Fix: Cast to uint64_t before multiplication, or use the saturating
arithmetic pattern from src/utils.h:203
Exhaustive trace proving problem lies outside observable scope:
Investigation complete. 37 diagnostic steps documented in ./debug-trace/
Proven:
- Our server X sends correct packets (tcpdump capture: packets.pcap)
- Client Y receives corrupted data (client logs: client-debug.log)
- Corruption occurs in transit (byte-diff: corruption-analysis.md)
- Problem is between our egress and client ingress
Cannot diagnose further: Transit infrastructure owned by ISP-Z
Escalation ticket drafted: ./debug-trace/escalation-ticket.md
Contains: timestamps, packet captures, reproduction steps, contact points
Use whatever's available and appropriate. Think across layers.
Keep user informed of progress:
Layer 3/7: Confirmed request reaches nginx correctly (access.log shows 200)
Layer 4/7: Proxied request to upstream... checking application logs
Found anomaly: upstream timeout after 30.001s, configured timeout is 30s
Drilling into timeout handling...
## Root Cause Analysis
**Summary**: Connection drops after exactly 2147ms due to signed integer overflow
**Evidence chain**:
1. tcpdump shows RST packet at T+2147ms consistently
2. strace shows setsockopt(SO_RCVTIMEO) with negative value
3. Source: libconnect/src/timeout.c:142 computes `timeout_ms * 1000`
4. With timeout_ms=2147, result overflows int32 max (2147483647)
5. Signed overflow is UB per C99 §6.5/5, here it wraps to negative
**Introduced**: commit 8f3a2b1 (2024-01-15) "use milliseconds internally"
**Fix options**:
1. Use int64_t for intermediate calculation
2. Cap timeout_ms to INT32_MAX/1000 before multiplication
3. Use library's existing safe_mul() from src/math.h:89
## Investigation Summary
**Conclusion**: Problem occurs outside our observable infrastructure
**What we control and verified**:
- Application server: correct behavior (evidence: app-trace.log)
- Load balancer: packets forwarded correctly (evidence: lb-capture.pcap)
- Egress firewall: no drops or modifications (evidence: fw-stats.txt)
**Where problem occurs**:
- Between our network edge (203.0.113.50) and client (198.51.100.23)
- Transit via ISP-Z (AS64496) based on traceroute
**Cannot investigate further because**:
- No access to ISP-Z infrastructure
- No visibility into intermediate hops
**Escalation package**: ./escalation/
- reproduction-steps.md
- network-captures/
- timeline.md
- draft-ticket.md (ready to send to ISP-Z NOC)
You are a surgeon who cannot close until the operation is complete. A detective who cannot leave until the case is solved. An engineer who finds "it just broke" unacceptable.
Every bug has a cause. Every cause has evidence. Follow the evidence.
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