Community skills, graph-native subagents, DI/framework rule packs, and policy
presets for rgctl — installed independently of the core
binary.
Core ships four built-in skills and stays offline-first, single-binary, and release-gated.
Extras is where fast-moving, task-specific, and opinionated content lives. It composes the
stable rgctl -f json contract; it never patches core at runtime.
The MCP server is a separate project and is not part of this repository.
Requires Node.js >= 18 and an rgctl binary on PATH. The installer has zero runtime
dependencies and performs no network access during install — packs ship in the npm package.
# discover
npx @rgctl/extras@latest list
npx @rgctl/extras@latest info rgctl-onboard
# install into the same default adapters core uses
npx @rgctl/extras@latest add rgctl-onboard
# install a subagent (defaults to Claude and Cursor)
npx @rgctl/extras@latest add rgctl-perf-engineer
npx @rgctl/extras@latest add rgctl-threat-analyzer --tools claude,opencode,gemini
# choose adapters, preview, or install globally
npx @rgctl/extras@latest add rgctl-tests --tools cursor,claude,codex,agents,antigravity
npx @rgctl/extras@latest add rgctl-di-audit --dry-run
npx @rgctl/extras@latest add rgctl-onboard --global
# keep the install honest
npx @rgctl/extras@latest verify
npx @rgctl/extras@latest remove rgctl-onboardDefault adapters for skills: cursor,claude,codex,agents,antigravity (the same defaults as
rgctl install --skill). --tools all targets every adapter. Adapters that share a directory
(.agents/skills for codex, agents, and zed) are deduplicated.
Agent packs default to claude,cursor; --tools all expands to the four supported subagent
hosts. Hosts without a subagent directory are skipped with a warning.
list --adapters prints the adapter table generated from the core repository.
| Pack | What it does |
|---|---|
rgctl-onboard |
10-minute architecture brief for an unfamiliar repo |
rgctl-change-plan |
pre-edit plan: targets, callers, blast radius, risk, rollback |
rgctl-tests |
changed symbols → impacted tests → exact commands |
rgctl-di-audit |
field injection, layering, cycles, service-locator audit |
Subagents with isolated context, a focused prompt, and the same graph protocol. Use them when a job reads broadly, produces noisy intermediate output, or needs independent verification.
| Agent | What it produces |
|---|---|
rgctl-perf-engineer |
PERF_REVIEW.md — hotspots, call paths, ranked experiments |
rgctl-test-generator |
test files + TEST_PLAN.md — cases from callers and path conditions |
rgctl-docs-generator |
docs/architecture/ — system docs, C4/Mermaid, ADR drafts |
rgctl-tutorial-generator |
docs/tutorial/ — learning path, chapters, exercises |
rgctl-threat-analyzer |
THREAT_MODEL.md — STRIDE, DFD, taint evidence, mitigations |
rgctl-architecture-reviewer |
ARCHITECTURE_REVIEW.md — boundaries, coupling, cycles, policy |
rgctl-migration-planner |
MIGRATION_PLAN.md — ordered slices, blast radius, rollback |
rgctl-refactorer |
REFACTOR_PLAN.md + verified code batches |
rgctl-incident-responder |
INCIDENT_NOTES.md — stack frame → call path → hypotheses |
rgctl-api-impact-analyst |
API_IMPACT.md — surface, consumers, breaking changes |
Every agent embeds the same protocol: confirm rgctl -f json status; query with -f json;
bound --limit/--depth; escalate from find to callers/relations to
blast-radius to slice/cpg/inspect; cite file:line; use recovery_command; never start
a long-running server.
| Pack | What it adds |
|---|---|
java-micronaut |
routes, beans, @Client/@Property injection |
java-quarkus |
CDI scopes, scope-based ctor injection, messaging entry points |
java-guice-dagger |
provider/module/qualifier tagging |
dotnet-minimal-api |
MapGet/… routes, keyed services, locator calls |
| Pack | What it does |
|---|---|
impact-budgets |
bound blast radius and PR size in CI |
strict-review |
new-violations-only review gate with regression failures |
legacy-sunset |
temporal grace/SLA/sunset template for legacy paydown |
Subagents run in their own context window, follow their own system prompt, and return a compact result. That is a better fit than a skill when the work is long-running, read-heavy, or should not pollute the main conversation.
| Host | Project directory | Global directory | Rendered frontmatter |
|---|---|---|---|
| Claude Code | .claude/agents/ |
~/.claude/agents/ |
name, description |
| Cursor | .cursor/agents/ |
~/.cursor/agents/ |
name, description |
| OpenCode | .opencode/agents/ |
~/.config/opencode/agents/ |
description, mode: subagent |
| Gemini CLI | .gemini/agents/ |
~/.gemini/agents/ |
name, description |
One canonical AGENT.md is rendered per host; models and tool lists are inherited so the same
pack works across hosts. Codex, Antigravity, and generic .agents adapters have no stable
subagent directory and are skipped with a warning.
| Use an agent when… | Use a skill when… |
|---|---|
| The task reads broadly and needs context isolation | The task is a short, repeatable workflow |
| You want a focused role (perf, security, docs) | You need step-by-step guidance in the main context |
| The result should be a summary plus one artifact | The result is a direct answer or a small edit |
They compose: an agent can tell the parent to run a skill, and a skill can hand off to an agent.
rgctl-tutorial-generator derives the learning path from the graph. It can optionally compose
with sshaaf/tutorial-skill for HonKit/Antora
rendering; that tool is never installed automatically and requires explicit user approval.
Core's framework catalog is declarative TOML compiled by build.rs. Extras hosts additive
rule packs in exactly that schema for frameworks core does not cover yet. They are
not runtime plugins and do not change detection until core is rebuilt.
# hand the validated TOML to a core checkout (upstream PR path)
npx @rgctl/extras@latest frameworks export java-micronaut --out ./frameworks
# or apply directly to a local core source checkout, then rebuild
npx @rgctl/extras@latest frameworks apply java-micronaut --checkout ../rgctl
cargo build --release --locked --bin rgctlapply refuses to overwrite existing files, validates the checkout layout, and rejects rule
ids that already exist for the same language in that checkout. Rules must be additive: never
re-declare an annotation core already handles (for example a bare @Inject), or the graph will
gain duplicate Injects edges.
The rgctl-di-audit skill consumes the resulting Injects/AnnotatedWith data read-only.
npx @rgctl/extras@latest add impact-budgets
rgctl check --policy-file .rgctl-extras/policies/impact-budgets.json
rgctl review check --policy-file .rgctl-extras/policies/strict-review.jsonTune the numbers after the first run; presets are starting points, not universal thresholds.
- State lives in
.rgctl-extras/(repo scope) or~/.rgctl-extras/(global), outside.rgctl/, so generated graph artifacts never collide with install metadata. - Installed Markdown carries
extras-managed: "<id>@<version>". It is deliberately notrgctl-managed, sorgctl install --skill --forcecannot clobber community skills or agents. .rgctl-extras/extras.lock.jsonrecords every installed file, its source digest, and its installed digest.verifycompares them;removedeletes only locked files.- Hand-edited files are preserved.
addandremoverefuse to overwrite or delete drifted files without--force.--dry-runprints the plan and touches nothing. addis additive: re-adding a pack with a different--toolsset keeps previously installed hosts.removedeletes every locked copy.- No
postinstallscripts. Installing changes what an agent does, so it must be an explicit command.
rgctl install --skill |
npx @rgctl/extras add |
|
|---|---|---|
| Content | core's embedded pack (4 skills) | community catalog (skills, agents, rules, policies) |
| Network | none (embedded) | none (bundled in the npm package) |
| Requires | rgctl |
rgctl + Node >= 18 |
| Release cadence | core releases | weekly / independent |
| Managed by | core's agent pack | extras-managed marker + lockfile |
Core stays network-free by design. If one-command UX is needed later, the smallest acceptable
core surface is rgctl install --from <local dir> — see IDEAS.md and the OpenSpec design.
npm test # node --test (76 tests)
npm run validate # validate every pack
npm run catalog # regenerate catalog.json
npm run catalog:check # CI: fail if catalog.json is stale
npm run registry -- --from ../rbuilder # sync adapters from a core checkoutRepository layout:
bin/ CLI entry point
lib/ installer, catalog, validation, framework export/apply
packs/ skills/, frameworks/, policies/
schema/ pack manifest JSON Schema
scripts/ build-catalog, validate-packs, sync-registry
test/ node --test suites
openspec/ proposal, design, specs, and tasks for this change
Contribution rules: CONTRIBUTING.md · authoring: docs/authoring.md ·
security review: docs/security-checklist.md.
The full idea catalog and the distribution decision live in IDEAS.md. Next
candidates: CI templates, taint rule packs, editor integrations, init/doctor, and a
standalone installer binary if Node proves to be a blocker.
MIT