Help us improve
Share bugs, ideas, or general feedback.
From project-scaffold
Author or update a project's AGENTS.md to install behavioral guidelines that govern any agent acting in that project. Use when the user wants to configure project-level agent behavior, set up or extend AGENTS.md, add a behavioral floor, prepend a coding-discipline preamble, or apply a named behavior pack to a project. Bundles the Karpathy behavioral preamble as one reference pack and supports adding more. Trigger phrases include "set up AGENTS.md", "configure agent behavior", "add behavioral guidelines", "add karpathy preamble", "install behavior pack", "create AGENTS.md", "control how agents behave in this repo".
How this skill is triggered — by the user, by Claude, or both
Slash command
/project-scaffold:project-behaviorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Bootstrap or extend a project's `AGENTS.md` with one or more *behavior packs* — short, opinionated preambles that set the rules agents must follow when working in the project. Karpathy's four-section preamble is included as the default pack; additional packs can be added by dropping more files into `references/`.
Share bugs, ideas, or general feedback.
Bootstrap or extend a project's AGENTS.md with one or more behavior packs — short, opinionated preambles that set the rules agents must follow when working in the project. Karpathy's four-section preamble is included as the default pack; additional packs can be added by dropping more files into references/.
AGENTS.md from scratch.AGENTS.md that lacks a behavioral preamble.canonical-project-skills-layout: that skill enforces the file layout (where AGENTS.md lives, that CLAUDE.md is @AGENTS.md); this skill controls the content of AGENTS.md.Locate the guide. Look for <project>/AGENTS.md. If it doesn't exist but <project>/CLAUDE.md does, ask whether to (a) rename/promote CLAUDE.md to AGENTS.md and replace CLAUDE.md with @AGENTS.md, or (b) write directly into CLAUDE.md. The canonical answer is (a); recommend it unless the user is on a Claude-only project.
Detect existing preamble. Read the first ~30 lines of AGENTS.md. If the H1 is # Agent behavioral guidelines or any pack's first line is already present verbatim, the preamble is installed — skip ahead and ask whether to add another pack on top, swap it, or exit.
Pick pack(s). List the files under references/ to the user with a one-line summary of each. Default: karpathy.md. Allow multi-select for stacking.
Compose the preamble. For each chosen pack, append its content in the order picked. Between packs and between the preamble and the rest of the file, insert a horizontal --- separator on its own line.
Render to disk. Use Edit (or Write only for new files). Prepend the composed preamble before the existing top-level H1 of the project. Preserve every byte of the existing project-specific content below the preamble.
Verify. Re-read the top of the file. Confirm the first H1 is # Agent behavioral guidelines, that each selected pack appears once, and that a --- separates the preamble from the existing project content.
AGENTS.md. The provenance of each pack is documented inside the pack file itself for the skill author, not for end users of the project.---. Multiple packs stack vertically, separated by ---. The project-specific content begins after the final ---.To extend this skill with a new behavior pack:
references/<pack-name>.md containing only the rendered preamble content — what should land in AGENTS.md verbatim. Start with an H1 (recommend # Agent behavioral guidelines so the existing detection signal still works) and a 1-line tagline; structure the rest as numbered H2 sections.<!-- source: ... -->). The skill must strip any HTML comment block when copying into AGENTS.md.references/ is auto-listed at step 3 of the workflow.references/karpathy.md — Karpathy's four-section behavioral preamble (Think Before Coding, Simplicity First, Surgical Changes, Goal-Driven Execution). Default pack.npx claudepluginhub memorysaver/skills --plugin memoryCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.