Analyze

From sigridjineth/oh-my-codex · View interactive version

Analyze is an AI agent skill from the GitHub repository sigridjineth/oh-my-codex. Deep analysis and investigation

How to use this skill

Skill file

<Purpose>

Analyze performs deep investigation of architecture, bugs, performance issues, and dependencies. It routes to the architect agent or Codex MCP for thorough analysis and returns structured findings with evidence.

</Purpose>

<Use_When>

</Use_When>

<Do_Not_Use_When>

</Do_Not_Use_When>

<Why_This_Exists>

Deep investigation requires a different approach than quick lookups or code changes. Analysis tasks need broad context gathering, cross-file reasoning, and structured findings. Routing these to the architect agent or Codex ensures the right level of depth without the overhead of a full planning or execution workflow.

</Why_This_Exists>

<Execution_Policy>

</Execution_Policy>

<Steps>

  1. Identify the analysis type: Architecture, bug investigation, performance, or dependency analysis
  2. Gather relevant context: Read or identify the key files involved
  3. Route to analyzer:
  1. Return structured findings: Present the analysis with evidence, file references, and actionable recommendations

</Steps>

<Tool_Usage>

</Tool_Usage>

<Examples>

<Good>

User: "analyze why the WebSocket connections drop after 30 seconds"

Action: Gather WebSocket-related files, route to architect with context, return root cause analysis with specific file:line references and a recommended fix.

Why good: Clear investigation target, structured output with evidence.

</Good>

<Good>

User: "investigate the dependency chain from src/api/routes.ts"

Action: Use explore agent to map the import graph, then route to architect for impact analysis.

Why good: Uses explore for fact-gathering, architect for reasoning.

</Good>

<Bad>

User: "analyze the auth module"

Action: Returning "The auth module handles authentication."

Why bad: Shallow summary without investigation. Should examine the module's structure, patterns, potential issues, and provide specific findings with file references.

</Bad>

<Bad>

User: "fix the bug in the parser"

Action: Running analysis skill.

Why bad: This is a fix request, not an analysis request. Route to executor or ralph instead.

</Bad>

</Examples>

<Escalation_And_Stop_Conditions>

</Escalation_And_Stop_Conditions>

<Final_Checklist>

</Final_Checklist>

Task: {{ARGUMENTS}}

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.