ack-create-agents-md
Skill13 starsChanged 5 months agoMITView on GitHub
Create AGENTS.md files: the full root file (operational contract, spec-driven change workflow, project context) or a nested file that refines the root for one folder. Use when adding or regenerating any AGENTS.md.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- ack-create-checkpointSkill
- ack-create-skillSkill
- ack-create-user-contextSkill
- ack-drift-controlSkill
- ack-guideSkill
- ack-interviewSkill
- ack-interview-with-contextSkill
- ack-loop-01-readinessSkill
- ack-loop-02-implementSkill
- ack-loop-03-reviewSkill
- ack-loop-04-learningsSkill
- ack-loop-05-commitSkill
- ack-openspec-checkSkill
- ack-restore-checkpointSkill
- ack-sessionSkill
- ack-setupSkill
- ack-tddSkill
- ack-validate-agents-mdSkill
- ack-validate-skillSkill
- ack-validate-user-contextSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Use this skill when adding or regenerating a root or nested AGENTS.md.
- Very specific: line 23
Do not use this skill for user context files (ack-create-user-context) or skills (ack-create-skill).
- Very specific: line 37
Run discovery from references/discovery-phases.md: all eight phases in root mode.
- Very specific: line 41
Check the result against references/quality-checklist.md for the chosen mode.
- Distinctive: line 63
Do not copy normative specification text into AGENTS.md.
- Distinctive: line 64
Keep canonical paths stable and use relative paths only.
- Very specific: line 65
Do not run openspec init or any other command that changes the repository without explicit user approval.
- Distinctive: line 66
Do not overwrite an existing AGENTS.md without showing the diff and getting approval.
- Very specific: line 67
Keep a <!-- AI-CONTEXT-KIT:START --> … <!-- AI-CONTEXT-KIT:END --> block exactly as it is: the kit installer owns it and rewrites it on …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create AGENTS.md
Purpose
Generate an AGENTS.md file in one of two modes:
- root: the repository's primary entrypoint, following
templates/AGENTS_template.mdsection by section, including the spec-driven change workflow (spec section 11.1) and the full project context. - nested: a folder-level file that says only what differs for that folder and points to the root file for everything else.
This skill replaces create-agents-md and create-project-instructions (ADR-009).
When To Use
- Use this skill when adding or regenerating a root or nested
AGENTS.md. - Do not use this skill for user context files (
ack-create-user-context) or skills (ack-create-skill).
Choosing The Mode
- Target at the repository root: root mode. Target in a subfolder: nested mode.
- The user may override the mode explicitly.
- Nested mode requires an existing root
AGENTS.md. If there is none, stop and offer root mode first.
Required Inputs
- Target path (decides the mode).
- Root mode: repository purpose, canonical paths, source precedence, session-state defaults, OpenSpec setup, project context.
- Nested mode: the folder's purpose, local paths and commands, and the root rules it overrides.
Workflow
- Determine the mode as described above.
- Run discovery from
references/discovery-phases.md: all eight phases in root mode; phases 1, 2, 7 and 8, scoped to the folder, in nested mode. Look up facts in the repository before asking; ask each remaining question with a recommended answer. - In root mode, discovery phase 6 starts
ack-openspec-check, then runsopenspec list --json. An old CLI stops the skill until the user upgrades; without a CLI, readopenspec/directly and note that in the completion summary. - Build the file from
references/root-schema.md(root) orreferences/nested-schema.md(nested). In root mode, build the command reference fromreferences/command-template.mdand the roles fromreferences/role-template.md. - Root mode: stamp
<!-- spec_version: 2.0.0 -->as an HTML comment at the top of the file. Nested files carry the same stamp. - Check the result against
references/quality-checklist.mdfor the chosen mode. - Return the artifact and completion summary as described in
references/output-format.md.
Output Expectations
- One complete
AGENTS.mdfor the chosen mode. - Root mode: every section of
references/root-schema.md, in order, with project-specific content. - Nested mode: the five sections of
references/nested-schema.md, with no repetition of root content. - Relative links only; provider-neutral wording.
Resources
- Discovery:
references/discovery-phases.md - OpenSpec version check: the
ack-openspec-checkskill - Root schema:
references/root-schema.md - Nested schema:
references/nested-schema.md - Command reference template:
references/command-template.md - Role templates:
references/role-template.md - Output contract:
references/output-format.md - Quality checklist:
references/quality-checklist.md - Canonical template:
../../templates/AGENTS_template.md - Repository example:
../../AGENTS.md
Constraints And Safety
- Do not copy normative specification text into
AGENTS.md; link to it. - Keep canonical paths stable and use relative paths only.
- Do not run
openspec initor any other command that changes the repository without explicit user approval. - Do not overwrite an existing
AGENTS.mdwithout showing the diff and getting approval. - Keep a
<!-- AI-CONTEXT-KIT:START -->…<!-- AI-CONTEXT-KIT:END -->block exactly as it is: the kit installer owns it and rewrites it onai-context-kit update. - Keep wording provider-neutral.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

