/solo-skills:claude-code-expertisefrom solo-skills
Expert map of Claude Code's extension surfaces for authoring and debugging extenders — skills, subagents, hooks, commands, plugins, marketplaces, MCP servers, and settings/permissions contracts. Use to decide which surface fits a need, to look up a surface's frontmatter or config contract, to author or debug a skill, subagent, hook, command, or plugin, or to answer how any Claude Code extension surface works. Not for changing settings, permissions, or hook wiring in a project - that is claude-code-config.
Ships in solo-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Claude Code is extensible through a small set of distinct surfaces, each with its own contract, file location, and trigger model. The hardest part of extending it is usually not authoring — it is picking the right surface for a need. This skill is the map: which surface, which contract, what's idiomatic. It complements the official skill-authoring and plugin-authoring builders (they scaffold and validate a chosen surface); it does not restate their job — reach for a builder once this map has told you which surface you're building.
Claude Code moves quickly. Treat contracts below as accurate to the verified date; when a
field is rejected or a path is ignored, check the current official docs before assuming a bug.
Start here. Match the need to the surface, then open the matching reference for the contract.
| You want to… | Surface | Why this one, not the others |
|---|---|---|
| Give the model reusable know-how / a procedure it pulls in on demand when a task matches | Skill | Model-invoked by description match; loads only when relevant. Not a command (no user keystroke) and not an agent (same context, no separate tool budget). |
| Run deterministic code automatically at a lifecycle moment (before/after a tool, on session start, on stop) | Hook | Only surface that executes on an event without the model choosing to. A skill can't fire on an event; a command needs a user to type it. |
| Offload a bounded sub-task to a fresh context with its own tool set and model tier | Subagent (agent) | Separate context window + independent tool/model selection. A skill runs in the same context; a hook can't reason. |
| Give the user a typed slash shortcut that expands to a prompt/workflow | Command (now a skill) | Commands were merged into skills: .claude/commands/x.md and .claude/skills/x/SKILL.md both create /x. Write new ones as skills; disable-model-invocation: true makes a skill user-only. |
| Connect an external tool or data source (API, DB, service) as callable tools | MCP server | The protocol for external tools/resources. Not a hook (hooks gate/observe existing tools; they don't add tool servers). |
| Package and distribute several of the above as one installable unit | Plugin | The bundling unit. Contains skills/agents/commands/hooks/MCP together. |
| Let users discover and install your plugins by name | Marketplace | The registry a plugin is installed from. One marketplace lists many plugins. |
| Gate tool use, set defaults, or wire the above on for a project or user | Settings / permissions | settings.json is where permissions, enabled plugins, hooks, env, and model live. |
Two frequent confusions, resolved:
references/subagents.md./<name>; a legacy command
file is the same thing with fewer features (no supporting files, no invocation control).| Surface | Canonical artifact | Lives (project · user) | Trigger | Reference |
|---|---|---|---|---|
| Skill | SKILL.md + optional references/, scripts/, assets/ | .claude/skills/<name>/ · ~/.claude/skills/<name>/ | model, by description match | references/surfaces.md |
| Subagent | one .md with frontmatter | .claude/agents/<name>.md · ~/.claude/agents/<name>.md | model (auto) or explicit request | references/subagents.md |
| Hook | handler script + config | settings.json hooks block (user, project, local, managed) · plugin hooks/hooks.json · skill/agent frontmatter | lifecycle event | references/surfaces.md |
| Command (legacy) | one .md, body is the prompt | .claude/commands/<name>.md (a user-scope commands dir is no longer documented; use ~/.claude/skills/) | user types /<name> | references/surfaces.md |
| MCP server | server entry in .mcp.json / ~/.claude.json | .mcp.json (project) · ~/.claude.json (user and local scopes, not settings.json) | model calls the server's tools | references/surfaces.md |
| Plugin | .claude-plugin/plugin.json + surface dirs | a plugin repo/dir | installed, then its surfaces load | references/distribution.md |
| Marketplace | .claude-plugin/marketplace.json | a marketplace repo/dir | /plugin marketplace add, then install | references/distribution.md |
| Settings/permissions | settings.json | .claude/settings.json (+ .local) · ~/.claude/settings.json | always in effect | references/surfaces.md |
description is what the
model matches on. Say what it does AND when to use it, name the concrete situations, and
keep it free of angle-bracket tags (the docs say Claude Code escapes them; the older claim that a
tag makes a skill fail to load is unverified). A vague description means the surface never
fires. See references/authoring.md.references/*.md the
entry file points to. The model reads the pointer first and pulls a reference only when
needed — this keeps context small and relevance high.allow /
ask / deny. Broad tool access dilutes intent and raises risk./name you expect (name is optional and only a display label for project/user skills),
relative links resolve inside the folder, no machine-specific paths baked in.
claude plugin validate <dir> checks plugin and marketplace manifests plus skill, agent, and
command frontmatter.references/surfaces.md — every surface with where its files live and what triggers it, plus
the frontmatter contract and a worked example for the ones this skill authors (skills,
commands). For hooks, MCP servers, and settings/permissions it carries only what you need to
choose between them; their config contracts and wiring belong to claude-code-config.references/subagents.md — authoring subagents end to end: scaffold, tool selection, model /
tier choice, and writing the when-to-use description that makes delegation fire.references/authoring.md — frontmatter contracts, description/triggering quality, progressive
disclosure, and a validation + common-failure checklist.references/distribution.md — plugin structure, marketplace registration, versioning, and the
enable / install mechanics that ship the above to a user.What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/claude-code-configConfigure Claude Code itself — settings-file precedence, permissions, hooks, env vars, and MCP registration, closed by a take-effect check. Use for "change a setting", "allow/deny a command", "add or move a permission rule", "set up a hook", "run something automatically whenever X happens", "always do Y every time", "add an environment variable", "register an MCP server", or "why isn't my setting taking effect"./datavizDesign data visualizations - charts, graphs, plots, and dashboards - that are correct, legible, and honest, in any medium. Consult this BEFORE writing any chart, graph, plot, or dashboard code, whatever the library (matplotlib, plotly, d3, Recharts, inline SVG) or output (static image, notebook, web app, deck). Use whenever a task involves picking a chart type, a color palette for data, dashboard or KPI-tile layout, axis and label formatting, or making a visualization colorblind-safe and light/dark-ready. Covers the data-shape to mark-type heuristic, chart anti-patterns to refuse (pie overuse, dual axes, truncated bar axes, rainbow scales, 3D), a brand-neutral colorblind-safe palette you can rebrand, composition, interaction and static degradation, and a final validation checklist. Data charts only - structural diagrams and deck theming are out of scope./deep-researchRun a deep, multi-source, fact-checked research investigation that ends in a cited report, not a single web lookup. Use when the user asks to "research X", "do a deep dive on", "find out everything about", "investigate", "compare the options for", "what's the state of the art on", or "give me a report with sources" — or poses a broad, open-ended question that one search cannot settle and that needs several sources cross-checked against each other. Runs the pipeline scope -> decompose into angles -> fan out searches -> dedupe and fetch sources -> extract falsifiable claims -> adversarially verify each load-bearing claim -> synthesize a confidence-ranked, per-claim-cited report that keeps negative findings. Prefer it over an ad-hoc search whenever being wrong is costly or the answer must be defensible./editor-project-configDesign the tracked per-repo editor configuration for VS Code (`.vscode/`) and Zed (`.zed/`) — settings overrides, extension recommendations, tasks, and debug configs that travel with the repo. Use when asked to "set up editor config for this project", "add a .vscode or .zed folder", "recommend extensions for this repo", "wire lint or tests into editor tasks", or when a repo's files open without syntax highlighting (extensionless scripts, odd filenames, JSONC named .json). Covers the surface map for both editors, the two association mechanisms (files.associations vs file_types), mirroring the repo's existing lint toolchain instead of inventing one, and keeping the two folders in parity./iterm2Configure iTerm2 and exploit the features that distinguish it from other terminal emulators. Use for any iTerm2 request: "set iTerm2 as my default terminal", "change a profile or theme", "my iTerm setting keeps reverting", "add a dynamic profile", "version-control my iTerm config", "install shell integration", "set up triggers / status bar / hotkey window / badges / captured output", "why didn't my `defaults write` stick", or "what iTerm2 features am I not using". Covers the preferences model (why iTerm2 silently reverts scripted changes and how to write them safely), dynamic profiles, tracking the config in a dotfiles repo, shell integration and its utilities, the macOS default-terminal binding, and the power-feature catalog./opencode-expertiseExpert knowledge of opencode — every extension surface (config, agents, skills, commands, custom tools, plugins, MCP, rules), the TypeScript constraint, and the claude-code → opencode translation mapping. Use when configuring opencode, authoring or migrating extenders for it, designing an opencode distribution target for a Claude Code skill collection, or answering how any opencode surface works.npx claudepluginhub hsb3/dotfiles-agents --plugin solo-skillsOther plugins' skills for the same job