Claude Code Agent Development
anthropics/claude-plugins-official
Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.
Reverse-generate OpenSpec capability specs (openspec/specs/<cap/spec.md) from code that lacks them, or reconcile an existing stale spec with --refresh, using parallel subagents.
$ npx skills add BlackBeltTechnology/pi-agent-dashboard --skill reverse-spec-from-code -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install BlackBeltTechnology/pi-agent-dashboard reverse-spec-from-code --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/openspec-workflow/.pi/skills/reverse-spec-from-code .claude/skills/reverse-spec-from-code && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "reverse-spec-from-code" agent skill from https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/openspec-workflow/.pi/skills/reverse-spec-from-code into .claude/skills/reverse-spec-from-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reverse-spec-from-code", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/openspec-workflow/.pi/skills/reverse-spec-from-codeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add BlackBeltTechnology/pi-agent-dashboard --skill reverse-spec-from-code -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install BlackBeltTechnology/pi-agent-dashboard reverse-spec-from-code --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/openspec-workflow/.pi/skills/reverse-spec-from-code .agents/skills/reverse-spec-from-code && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "reverse-spec-from-code" agent skill from https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/openspec-workflow/.pi/skills/reverse-spec-from-code into .agents/skills/reverse-spec-from-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reverse-spec-from-code", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BlackBeltTechnology/pi-agent-dashboard --skill reverse-spec-from-code -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install BlackBeltTechnology/pi-agent-dashboard reverse-spec-from-code --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/openspec-workflow/.pi/skills/reverse-spec-from-code .cursor/skills/reverse-spec-from-code && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "reverse-spec-from-code" agent skill from https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/openspec-workflow/.pi/skills/reverse-spec-from-code into .cursor/skills/reverse-spec-from-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reverse-spec-from-code", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/BlackBeltTechnology/pi-agent-dashboard.git --path packages/openspec-workflow/.pi/skills/reverse-spec-from-code--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add BlackBeltTechnology/pi-agent-dashboard --skill reverse-spec-from-code -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install BlackBeltTechnology/pi-agent-dashboard reverse-spec-from-code --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/openspec-workflow/.pi/skills/reverse-spec-from-code .gemini/skills/reverse-spec-from-code && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "reverse-spec-from-code" agent skill from https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/openspec-workflow/.pi/skills/reverse-spec-from-code into .gemini/skills/reverse-spec-from-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reverse-spec-from-code", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install BlackBeltTechnology/pi-agent-dashboard reverse-spec-from-codeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add BlackBeltTechnology/pi-agent-dashboard --skill reverse-spec-from-code -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/openspec-workflow/.pi/skills/reverse-spec-from-code .github/skills/reverse-spec-from-code && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "reverse-spec-from-code" agent skill from https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/openspec-workflow/.pi/skills/reverse-spec-from-code into .github/skills/reverse-spec-from-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reverse-spec-from-code", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add BlackBeltTechnology/pi-agent-dashboard --skill reverse-spec-from-code -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install BlackBeltTechnology/pi-agent-dashboard reverse-spec-from-code --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/openspec-workflow/.pi/skills/reverse-spec-from-code .opencode/skills/reverse-spec-from-code && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "reverse-spec-from-code" agent skill from https://github.com/BlackBeltTechnology/pi-agent-dashboard/tree/develop/packages/openspec-workflow/.pi/skills/reverse-spec-from-code into .opencode/skills/reverse-spec-from-code/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "reverse-spec-from-code", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
reverse-spec-from-codeReverse-generate OpenSpec capability specs (openspec/specs/<cap/spec.md) from code that lacks them, or reconcile an existing stale spec with --refresh, using parallel subagents.
Reverse Spec From Code is an agent skill from BlackBeltTechnology/pi-agent-dashboard. Reverse-generate OpenSpec capability specs (openspec/specs/<cap/spec.md) from code that lacks them, or reconcile an existing stale spec with --refresh, using parallel subagents. Fans out one blind generator per capability, audits each spec against the code for hallucinations, and promotes only on user confirm. Use on "generate specs from code", "backfill openspec specs", "refresh a stale spec".
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files (for example `prompts/auditor.md`, `prompts/discovery.md` and `prompts/generator.md`).
It sits in Agent Workflows, covering Subagents. The repository describes itself as: Real-time web dashboard for pi coding-agent sessions. Multi-session view, live chat mirroring, integrated terminal, diff viewer, pi-flows execution, and mobile-first remote… The licence is MIT.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e23e533. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Reverse Spec From Code loads about 2.4k tokens when it runs. Until then it costs about 106 tokens; SKILL.md has 1,116 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from BlackBeltTechnology/pi-agent-dashboard at commit e23e533, republished under its MIT licence (© BlackBeltTechnology). 1,116 words, ~2,421 tokens.
.claude/skills/reverse-spec-from-code/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Turn spec-less code into OpenSpec capability specs so kb_search has high-signal,
consistently-formatted behavioral documents to index. Tuned via a blind
generate→judge loop against 6 real specs: requirement coverage 97%, scenario
coverage 91% (see docs/research/reverse-spec-from-code.md for the tuning record
Scratch MUST live OUTSIDE
openspec/(kb indexesopenspec/). Use the gitignored repo-root dir.reverse-spec-scratch/— otherwise every draft polluteskb_searchwith duplicate spec chunks. Promotion MOVES the file intoopenspec/specs/(the only kb-indexed copy).
packages/ has behavior but no openspec/specs/<cap>/spec.md.kb_search (it indexes openspec/ markdown) with behavioral specs.--refresh).Skip for a single trivial file, or when the capability already has an accurate spec.
A capability's contract is not confined to one file. The single biggest
quality driver is making each generator FOLLOW the behavioral contract across
file boundaries: every emitted message/event, registry write, spawned/killed
process, config read, or DOM attribute is a contract with another component and
must be spec'd too. In tuning this moved requirement coverage from 40% to 95% on
the cross-cutting capability. The generator prompt (prompts/generator.md)
enforces this in STEP 1 — do not weaken it.
"Match an existing spec" is a PROXY, not the goal. Real specs drift from code. The goal is a spec that accurately describes current code and is searchable. Target: high requirement coverage + zero code-ungrounded hallucination. Code-current divergence from a stale spec is a win, not a miss.
Resolve target + scope. User names a directory/package (e.g. packages/server)
and optionally a single capability. Confirm the target path exists.
Discover capability boundaries. Spawn ONE discovery subagent
(prompts/discovery.md, model @compact is fine) that clusters the target's
files into capabilities using the directory AGENTS.md tree (kb agents <dir>,
kb_search --doc-type agents) + grep. It returns a manifest:
[{ capability, purpose_hint, files[] }]. For a single-capability target you
may skip this and build the manifest by hand.
Skip already-specced capabilities. For each manifest entry, if
openspec/specs/<capability>/spec.md exists and --refresh was NOT requested,
drop it (report as skipped). With --refresh, keep it and reconcile.
Generate in parallel (blind). Fan out ONE generator subagent per remaining
capability IN A SINGLE MESSAGE (prompts/generator.md). Each reads code only
— never an existing spec — and writes .reverse-spec-scratch/<capability>/spec.md.
Pass capability, purpose_hint, start files, and the output path. Model: a
fast/cheap model (@fast/@compact) is viable AS LONG AS the format gate
(step 6.5) and the @research auditor run — see "Model choice" below.
Audit in parallel (code-grounding). Fan out ONE auditor subagent per
generated spec IN A SINGLE MESSAGE (prompts/auditor.md, model @research).
Each verifies the generated spec against the ACTUAL code and returns strict
JSON: hallucinated_requirements[] (in spec, not in code),
missing_behaviors[] (in code, not in spec), format_ok, verdict
(pass|revise). No real spec is needed — the code is the oracle.
Revise if needed. For any spec with verdict: revise, re-spawn its
generator with the auditor's findings appended (remove the listed
hallucinations, add the listed missing behaviors). One revise pass is usually
enough; re-audit only if the first audit was severe.
6.5. Format gate (openspec validate) — HARD, deterministic. openspec validate only reads specs under openspec/specs/, so validate each scratch
spec via a throwaway id, then delete it:
for c in <cap1> <cap2> ...; do
d="openspec/specs/_rsfc-val-$c"; mkdir -p "$d"
cp ".reverse-spec-scratch/$c/spec.md" "$d/spec.md"
openspec validate "_rsfc-val-$c" --type spec 2>&1 | grep -qi "is valid" \
&& echo "$c: VALID" || echo "$c: INVALID"
rm -rf "$d"
done Any spec that is INVALID is treated exactly like verdict: revise with reason
"format: openspec validate failed" — re-spawn its generator emphasizing the
FORMAT rule (no tables, no bold **Scenario:**, no numbered requirements),
then re-run this gate. A spec that fails validate is NEVER promoted. Cheap
generator models fail here most often — this gate is what makes them safe.
Present + promote on confirm. Show the user: per-capability spec path,
requirement count, and audit + validate summary (skipped / passed / revised /
valid). Only specs that BOTH audit-pass AND validate-pass are promotable. Use
ask_user (confirm or multiselect) to choose which to promote. On confirm,
MOVE .reverse-spec-scratch/<cap>/spec.md → openspec/specs/<cap>/spec.md
(create the dir; move, don't copy, so no duplicate stays under an indexed
root). NEVER write openspec/specs/ without explicit confirm.
Verify KB indexing. After promotion, run kb_search "<a phrase from a new spec>" to confirm the spec is discoverable. Report the result.
| Role | Prompt | Model | Access | Parallel |
|---|---|---|---|---|
| discovery | prompts/discovery.md | @compact | read-only | 1 pass |
| generator | prompts/generator.md | @research (max quality) or @fast/@compact (cheap; needs gate) | read+write (scratch) | N in one message |
| auditor | prompts/auditor.md | @research (keep strong — the safety net) | read-only | N in one message |
Fan out generators (then auditors) as multiple Agent calls in a SINGLE message
so they run concurrently. One capability per subagent — isolated context.
Judge/generator swap on the 6 ground-truth specs (judge held @research):
| generator | req cov | scen cov | openspec validate |
|---|---|---|---|
opus (@research) | 97% | 91% | 6/6 |
deepseek-flash (@fast) + format directive | 96% | 90% | 6/6 |
haiku (@compact), no directive | 88% | 81% | 3/6 |
@fast (deepseek-flash) nearly matched opus on coverage.@fast generator + format gate + @research auditorFull-form OpenSpec spec (post-archive shape, NOT the ## ADDED Requirements delta):
# <capability> Specification
## Purpose
<1-3 sentences>
## Requirements
### Requirement: <short imperative name>
The <subject> SHALL <behavioral obligation>.
#### Scenario: <name>
- **WHEN** <trigger>
- **THEN** <observable outcome>
- **AND** <optional>.reverse-spec-scratch/ (NEVER under openspec/, which kb indexes),
promote (move) only on confirm.@fast/@compact)
tend to emit markdown tables, bold **Scenario:**, or numbered requirements
that FAIL openspec validate. The format directive in prompts/generator.md
plus the step-6.5 validate gate catch this; never promote a cheap-model spec
without running the gate.openspec validate <capability> --type spec → "is valid"). This is a HARD
gate, not an advisory check — an invalid spec is never promoted.verdict: pass (or revise was resolved) for every promoted spec.kb_search "<phrase from a new spec>" returns the new spec.openspec/specs/ was written without user confirm.© BlackBeltTechnology, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files in packages/openspec-workflow/.pi/skills/reverse-spec-from-code of BlackBeltTechnology/pi-agent-dashboard.
Open the folder on GitHubat commit e23e533
Reverse Spec From Code next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Reverse Spec From Code this skillBlackBeltTechnology/pi-agent-dashboard | 315 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Claude Code Agent Developmentanthropics/claude-plugins-official | 38k | 8 repos | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Subagent Driven DevelopmentAsvarox/allkaraoke | 261 | 38 repos | ~1.2k | Automated safety check: Pass | None | |
| Dispatching Parallel Agentsultralisp/ultralisp | 258 | 41 repos | ~1.5k | Automated safety check: Pass | None | |
| Paseo Advisor Second Opiniongetpaseo/paseo | 20k | 1 repos | ~756 | Automated safety check: Pass | Custom licence | |
| Task Observerrebelytics/one-skill-to-rule-them-all | 3.2k | 1 repos | ~12k | Automated safety check: Pass | CC-BY-4.0 |
anthropics/claude-plugins-official
Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.
Asvarox/allkaraoke
A skill your agent uses when executing implementation plans with independent tasks in the current session
ultralisp/ultralisp
A skill your agent uses when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
getpaseo/paseo
Launches one separate agent through Paseo to give a second opinion on the current task, with a self-contained briefing and no permission to edit files.
rebelytics/one-skill-to-rule-them-all
Monitors task execution for skill improvement opportunities.
openobserve/openobserve
Splits a change into planner, coder and independent reviewer roles: you confirm a spec, a subagent implements it, and a separate reviewer checks each round's local WIP commit.
BlackBeltTechnology/pi-agent-dashboard
Browser automation via the agent-browser CLI. An agent skill from BlackBeltTechnology/pi-agent-dashboard.
BlackBeltTechnology/pi-agent-dashboard
Monitor and control the pi-dashboard server. An agent skill from BlackBeltTechnology/pi-agent-dashboard.
BlackBeltTechnology/pi-agent-dashboard
Diagnose failed GitHub Actions runs for pi-agent-dashboard: the 11-file workflow taxonomy, affected-test selection, the release pipeline, known failure modes, and how to read gh run logs and…
BlackBeltTechnology/pi-agent-dashboard
Diagnose problems in the running pi-agent-dashboard system: server.log, /api/health, bridge WebSocket connectivity, vitest triage, known-issue FAQ entries.
BlackBeltTechnology/pi-agent-dashboard
Disciplined implementation in pi-agent-dashboard: the rebuild matrix (extension→reload, server→restart, client→build+restart, openspec-apply→full rebuild) plus the project's code discipline rules.
BlackBeltTechnology/pi-agent-dashboard
Turn a pi session into a Markdown "how-we-did-it" collaboration guideline: reads the session's JSONL transcript and synthesizes a reusable playbook of which prompts worked, what had to be steered…
Categories
Reverse-generate OpenSpec capability specs (openspec/specs/<cap/spec.md) from code that lacks them, or reconcile an existing stale spec with --refresh, using parallel subagents. Reverse Spec From Code is an agent skill from BlackBeltTechnology/pi-agent-dashboard.md) from code that lacks them, or reconcile an existing stale spec with --refresh, using parallel subagents.
Reverse Spec From Code fits situations like: tasks that involve Subagents.
Run `npx skills add BlackBeltTechnology/pi-agent-dashboard --skill reverse-spec-from-code -a claude-code`. Or copy the skill folder (packages/openspec-workflow/.pi/skills/reverse-spec-from-code in BlackBeltTechnology/pi-agent-dashboard) into .claude/skills/reverse-spec-from-code in your project. Claude Code loads it when a task matches its description.
Run `npx skills add BlackBeltTechnology/pi-agent-dashboard --skill reverse-spec-from-code -a codex`. Or copy the skill folder (packages/openspec-workflow/.pi/skills/reverse-spec-from-code in BlackBeltTechnology/pi-agent-dashboard) into .agents/skills/reverse-spec-from-code in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add BlackBeltTechnology/pi-agent-dashboard --skill reverse-spec-from-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/reverse-spec-from-code, .gemini/skills/reverse-spec-from-code, .github/skills/reverse-spec-from-code and .opencode/skills/reverse-spec-from-code in your project.
SKILL.md names no scripts, command-line tools or credentials: Reverse Spec From Code is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Reverse Spec From Code is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Reverse Spec From Code: Claude Code Agent Development (anthropics/claude-plugins-official, 38k stars), Subagent Driven Development (Asvarox/allkaraoke, 261 stars), Dispatching Parallel Agents (ultralisp/ultralisp, 258 stars) and Paseo Advisor Second Opinion (getpaseo/paseo, 20k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
BlackBeltTechnology (a GitHub organization) maintains it in BlackBeltTechnology/pi-agent-dashboard, which has 315 GitHub stars. The repository holds 66 skills in this directory. The repository was last updated on October 8, 2026.
Source: BlackBeltTechnology/pi-agent-dashboard on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.