skills/debugging/root-cause-tracing/SKILL.md
Root Cause tracing
npx skillsauth add harshahosur81/ag-opencode-skills root-cause-tracingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Concept: Bugs are rarely where they explode. The explosion (Stack Trace) is just where the bad data finally violated a constraint.
Do not fix the line in the stack trace yet. Follow the data upstream.
What specific value caused the crash?
null user ID."" where a date was expected.-1 in a price field.Open your IDE. Use "Find Usages" or "Call Hierarchy."
processPayment(user.id) -> Crashed because user.id is null.
processPayment?CheckoutService.submitOrder called it.
CheckoutService get the user object?SessionManager.getCurrentUser().
SessionManager return a user object with a null ID?SessionManager hydrated it from the Redis Cache.
LoginHandler wrote the user to Redis before the database generated the ID.LoginHandler (Level 4), not processPayment (Level 0).LoginHandler ordering.if (user.id == null) return; at Level 0 fixes the crash, but it creates a "Zombie Order" (an order that fails silently). Do not do this.Rule: Fix the data generation, not the data consumption.
devops
Optimize vector index performance for latency, recall, and memory. Use when tuning HNSW parameters, selecting quantization strategies, or scaling vector search infrastructure.
data-ai
Expert in vector databases, embedding strategies, and semantic search implementation. Masters Pinecone, Weaviate, Qdrant, Milvus, and pgvector for RAG applications, recommendation systems, and similar
development
Implement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or optimizing retrieval performance.
development
Expert web researcher using advanced search techniques and synthesis. Masters search operators, result filtering, and multi-source verification. Handles competitive analysis and fact-checking. Use PROACTIVELY for deep research, information gathering, or trend analysis.