/ai-devkit:cmk:agent-instructionsfrom ai-devkit
Sets up a thin, multi-vendor root instruction file (CLAUDE.md) with on-demand engineering rules under docs/rules/. Handles init, update, and verify modes.
Ships in ai-devkit. 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.
Establish or maintain the root instruction file every agent vendor reads
before touching a repository, and the docs/rules/ files it points into.
The file itself stays thin; standards grow in rules files loaded on demand.
The root instruction file carries only: project identity, a layout map,
the 2-5 invariants that must never break, build/test commands, and
conditional pointers into docs/rules/ ("writing tests? read
docs/rules/common/testing.md"). Detailed standards never live inline — they live
in a rules file, loaded only when the triggering task comes up. A rules
file's Load when: line means exactly that — read the file before acting
whenever the named situation applies; otherwise it stays unloaded. Load
when needed, never preloaded wholesale. Target
length: readable in one screenful-ish. When a section keeps growing, that is
pressure to extract a rules file and replace the section with a pointer, not
license to let the root file grow indefinitely.
CLAUDE.md is the source of truth; AGENTS.md is a symlink to it
(ln -s CLAUDE.md AGENTS.md) so every vendor that reads its own filename —
Codex, OpenCode, and others — reads identical content with zero drift.
Vendor-specific mechanics (hooks, plugin manifests, tool-specific bindings)
never live in this file; they arrive separately, at whatever layer wires up
a given vendor, and stay out of the shared instructions entirely.
Init (default) — seed CLAUDE.md from references/claude-md-template.md,
symlink AGENTS.md to it, and seed docs/rules/common/ from the six rules
templates below. Never overwrite an existing CLAUDE.md; for each rules
topic file, follow the reconciliation rule below rather than skipping or
overwriting it outright.
Update — reconcile after a kit change: add new pointers or new rules files, but never flatten or overwrite a project's own edits to a rule it has since evolved. Confirm with the user before touching an existing file.
Verify — dry run; see ## Verify below.
This skill seeds baseline content into the same docs/rules/common/{topic}.md
file set cmk:rule owns and evolves afterward — it never invents a parallel
vocabulary. Canonical target: docs/rules/common/{topic}.md. Doing initial
setup? Seed these six templates, each into the topic file its conditional
pointer names:
references/rules-naming.md → docs/rules/common/naming.mdreferences/rules-doc-comments.md → docs/rules/common/doc-comments.mdreferences/rules-testing.md → docs/rules/common/testing.mdreferences/rules-git-workflow.md → docs/rules/common/git-workflow.mdreferences/rules-cli-surfaces.md → docs/rules/common/cli-surfaces.mdreferences/rules-agent-conduct.md → docs/rules/common/agent-conduct.mdAfter seeding files into docs/rules/common/, add or refresh a row for each
seeded topic in docs/rules/README.md — the index cmk:rule maintains
afterward.
Each is seeded once as a ready-to-use starting point, not a frozen mandate —
the repository owns and evolves its copy afterward (cmk:rule maintains
rules going forward; this skill only seeds the baseline).
Reconciling an existing target file. If a target topic file already
exists (seeded earlier by this skill, by cmk:docs's baseline scaffold, or
hand-written by the project), never silently skip it and never silently
overwrite it. Read it, compare it against the template, and propose a merge
that keeps every project-specific addition while upgrading the shared
baseline content the two files have in common. Report each of the six topics
as seeded (file didn't exist), merged (file existed and gained the
upgraded baseline alongside its own additions), or kept (file existed and
the user declined the merge) — with the reason — rather than reporting bare
success for a file that was actually left untouched.
Seeding or reconciling CLAUDE.md? Read references/claude-md-template.md
for the fenced template, its bracketed slots, the fixed lines every seed must
keep (the .local/tmp/ scratch pointer, the docs/rules/ pointer table, the
docs/README.md pointer), and the seeding instructions that follow it.
Report-only — never mutate:
CLAUDE.md exists and stays thin: no inline naming/testing/git/CLI
standard that belongs in a rules file instead.AGENTS.md exists and is a symlink to CLAUDE.md, not a copy.docs/rules/common/ is populated with at least the seeded topic files
still referenced from CLAUDE.md.CLAUDE.md resolves to a file that exists..local/tmp/ scratch line is present in CLAUDE.md.CLAUDE.md points at docs/guides/on-ramps.md, that file exists (Init/
Update may seed it from the kit's docs/guides/on-ramps.md; Verify only
reports).eval.json (opens in a new tab)references/claude-md-template.md (opens in a new tab)references/rules-agent-conduct.md (opens in a new tab)references/rules-cli-surfaces.md (opens in a new tab)references/rules-doc-comments.md (opens in a new tab)references/rules-git-workflow.md (opens in a new tab)references/rules-naming.md (opens in a new tab)references/rules-testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
claude-md, agents-md, engineering-rules, project-setup, multi-vendor
Generated from the plugin's indexed repository (commandosslabs/ai-devkit) — no native marketplace selected
npx claudepluginhub p/commandosslabs-ai-devkit36 skills in this plugin
/cmk:adrUse when the user asks to "record this decision", "we decided to use X over Y", "document why we chose this approach", "record an ADR", "update ADR-0003", or needs to create or update architecture decision records for system-level technical choices like choosing a database, communication protocol, or infrastructure pattern./cmk:agent-vendorsUse when the user asks to "vendor the kit's skills into this repo", "set up agent adapters", "add a coding-agent vendor", "wire skills for Claude Code / Codex / OpenCode / Grok Build / Cursor", or whenever a repo needs one canonical skill set discoverable by multiple coding agents./cmk:cicdUse when the user asks to "set up CI", "speed up CI", "add a deploy workflow", "structure GitHub Actions", "self-hosted runners", "persistent runner fleet", "runner pool", "runner capacity", "runner concurrency", "runner parallelism", "multi-project CI host", "runner isolation", "runner lifecycle", "runner cleanup", "run CI locally", "JIT runner", "protect the main branch", "add security scanning", "scan for vulnerabilities", or needs to structure CI, deployment, and policy automation as composable host-runnable scripts that GitHub Actions only automates.