From spark
Create, maintain, audit, and sync a repo's AI-agent behavioral-contract files — AGENTS.md (any agent) and CLAUDE.md (Claude Code). Use when the user wants to write, update, audit, or drift-check AGENTS.md or CLAUDE.md. Defers net-new CLAUDE.md creation to native /init. Not for prose docs — use `docit` (public) or `knowledge` (internal); this owns the agent-contract files only.
How this skill is triggered — by the user, by Claude, or both
Slash command
/spark:agents-mdThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A repo speaks to its AI contributors through two files:
A repo speaks to its AI contributors through two files:
CLAUDE.md — read by Claude Code specifically. Full project context: repo
map, commands, workflow, and the doctrine Claude must follow.AGENTS.md — the tool-agnostic companion. The same behavioral contract,
restated so any AI coding agent absorbs it regardless of vendor.This skill owns both. They share one behavioral contract and must stay in sync; when a rule changes in one, it is reviewed in the other.
/initClaude Code's native /init already creates a first CLAUDE.md by scanning a
repo. Do not reimplement that. This skill's jobs are the ones /init does not
do:
AGENTS.md — /init only writes CLAUDE.md; the tool-agnostic file
has no native generator.For a brand-new CLAUDE.md, run /init first, then this skill to enforce the
Spark sections and generate the matching AGENTS.md.
Both files carry these non-negotiable rules (restated in plain language for
AGENTS.md, in fuller context for CLAUDE.md):
Co-Authored-By lines for AI systems, in any commit, file, doc, or changelog.master/main directly; feature
branch → focused PR; one concern per PR.CLAUDE.md (rich, Claude-facing): Project Mission · Repository Purpose · Repo
Map · Common Commands · Development Workflow · Skill Authoring (Spark repos) ·
GitHub Integration Guardrails · Coding & Documentation Standards · Commit Rules ·
Attribution Rules · Destructive Change Rules · Agent Safety Rules.
AGENTS.md (scannable, tool-agnostic): What This Repo Is · Core Rules · Branch
and PR Discipline · Code Quality · Documentation · Destructive Actions · Commits ·
GitHub API and Automation · Scope Discipline · Skill Authoring Quick Reference.
Omit a section only when genuinely not applicable, and note why.
CLAUDE.md to /init; this skill maintains and audits it.AGENTS.md from CLAUDE.md — restate, don't duplicate verbatim; it
must read as a standalone document.CLAUDE.md is authoritative for Claude Code; AGENTS.md for all
other agents; update them together.Full file (new AGENTS.md, or a /init-seeded CLAUDE.md brought up to standard);
section patches; a sync audit (drift between the two); or a diff review for human
approval. Ask which is wanted if unspecified.
/init's CLAUDE.md creation — it defers to it.npx claudepluginhub jwogrady/spark --plugin sparkProvides 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.