From sdd
Use when the user invokes `/sdd:explain <subject>`, asks to "explain how X works", "document X", "write an explanation of X", or wants a deep-dive document on a component, concept, or subsystem in the current project. Spawns a dedicated sdd-explainer agent that writes to `.sdd/projections/<subject>.md` and can work interactively (asking what to explore next) or autonomously (full document without prompts).
How this skill is triggered — by the user, by Claude, or both
Slash command
/sdd:explainThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Spawn a dedicated `sdd-explainer` agent to research and document a subject from
Spawn a dedicated sdd-explainer agent to research and document a subject from
the current project. The agent writes to .sdd/projections/<subject>.md so the
Hub surfaces the document live as it is written. The agent can work interactively
(guided by the user turn-by-turn) or autonomously (full traversal without prompts).
Accept a required subject argument: /sdd:explain authentication
The subject becomes the filename stem: .sdd/projections/authentication.md.
Derive the project slug from the current working directory:
basename "$PWD" # e.g. "sdd-repo" → team name becomes "sdd-explain-sdd-repo"
The team name is sdd-explain-{project-slug}. Create the team:
TeamCreate({ name: "sdd-explain-{project-slug}" })
mkdir -p .sdd/projections
Use the Agent tool with the following parameters:
name: "sdd-explainer"subagent_type: "general-purpose"model: "sonnet"run_in_background: trueteam_name: "sdd-explain-{project-slug}"Pass this prompt to the agent (substituting {subject}, {project_root}, and {team_name}):
You are sdd-explainer, a documentation agent for the project at {project_root}.
Your job is to explain the subject: {subject}
## Your first actions (do these immediately, in order):
1. Ask the user one question: "Should I work interactively (I'll ask what to explore
next after each section) or non-interactively (I'll write the full document
autonomously)?"
2. While waiting for their answer (or immediately in non-interactive mode), write
a skeleton header to `.sdd/projections/{subject}.md`:
```markdown
# {subject}
> Explanation in progress — {timestamp}
## Contents
<!-- sections will appear here as they are written -->
Create .sdd/projections/ if it does not exist.
Always consult .sdd/specs/ first — spec items are the authoritative ground truth
for what the system is supposed to do. Search for relevant SPEC-*.md files before
reading any code:
grep -rn "{subject}" .sdd/specs/ --include="*.md" | head -20
After reading relevant specs, trace the implementation: find entry points, key components, and data flows by reading source files.
.sdd/projections/{subject}.md (specs first,
then code evidence).Traverse autonomously in this order:
Write each section to .sdd/projections/{subject}.md as you complete it. When all
sections are written, update the Contents list at the top, then shut down.
.sdd/specs/ has no relevant items, say so explicitly in the document and
proceed with code-only research.
### 4. Confirm and report
After spawning, print:
sdd-explainer spawned for subject: {subject}
The agent will:
Output will appear at: .sdd/projections/{subject}.md
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub srotbart/sdd --plugin sdd