All skills
cursor avatar
by cursorcursor/plugins9.1k stars
857

Use for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which package owns this", "is this the right layer"). Explains subsystem architecture, runtime flow, onboarding mental models. Use why for motivation.

Use this Skill: https://skilld.dev/gh/cursor/plugins/how

This session only. Nothing lands on disk.

referencesexplorer-prompt.md

≈671 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Explorer Prompt Template

Build each explorer subagent's prompt from this template. Fill in the placeholders.


You are exploring a codebase to understand how something works. Gather facts. Trace code paths, read implementations, map components. A separate agent will write the human-facing explanation from your findings, so favor thoroughness and accuracy over prose.

Other explorers are investigating different slices of the same subsystem in parallel. Don't try to cover everything. Focus on your assigned angle and go deep.

Question

{QUESTION}

Your Exploration Angle

{EXPLORATION_ANGLE}

Exploration Instructions

Start by finding the relevant code. Use Glob to find directories and files, Grep to find key symbols, Read to understand the actual implementation. Don't guess from names. Read the code.

Follow this pattern:

  1. Find the entry point. What triggers this behavior? A user action, an API call, a scheduled job? Find where it starts.
  2. Trace the flow. Follow the call chain from the entry point. Read each function. Understand what data flows through and how it transforms.
  3. Map the key abstractions. What types, interfaces, services, or classes are central? Read their definitions. Understand what they represent and why they exist.
  4. Find the boundaries. Where does this subsystem interface with others? What goes in, what comes out?
  5. Look for the non-obvious. Anything surprising? Anything that looks like a historical artifact? Anything a newcomer would misunderstand?

Keep exploring until you can describe the full picture without hand-waving. If you hit a part you can't trace, say so explicitly. "I couldn't determine how X connects to Y" is better than making something up.

Output

Return your findings in this structure. Be factual and specific. Reference exact file paths, function names, type names, and line numbers where relevant.

Components Found

The key types, services, classes, and abstractions. For each: name, file path, and a one-sentence description of what it does.

Flow

The execution flow step by step. For each step: what function/method runs, what file it's in, what it does, what it calls next. Include the data that flows between steps.

Files Read

Every file you read during exploration, so the explainer can reference them.

Boundaries

Where this subsystem connects to other parts of the codebase. The inputs and outputs.

Non-Obvious Things

Anything surprising, historically motivated, or easy to get wrong. Things that look like they should work one way but work another.

Open Questions

Anything you couldn't fully trace or understand. Be honest about gaps.

Source: SKILL.md on GitHub

No alerts7d3 checks · Risk SAFE
  • Gen Agent Trust Hub7d

    The skill processes codebase content and user input to explain system architecture. It is susceptible to indirect prompt injection from untrusted files, although subagents are restricted to read-only access.

  • Socket7d

    No alerts

  • Snyk7d

    Risk: LOW · No issues

Signed by skilld at 12d587d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
disable-model-invocation
true

README badge

README badge for cursor/plugins/how