Skip to content
Agentmart
Submit a tool

creating-agent-files

Creates or updates repository agent instruction files using Chad's shared source-of-truth pattern.

Skill by chadxz

IndexedMIT★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/chadxz-creating-agent-files

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Creates or updates repository agent instruction files using Chad's shared source-of-truth pattern. Use when adding CONTRIBUTING.md, AGENTS.md, or CLAUDE.md files, migrating existing agent instructions, or standardizing a repo or subdirectory so Codex, Claude, and other agents read the same guidance.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/creating-agent-files

What's inside

Skill name
creating-agent-files
Description
Creates or updates repository agent instruction files using Chad's shared source-of-truth pattern. Use when adding CONTRIBUTING.md, AGENTS.md, or CLAUDE.md files, migrating existing agent instructions, or standardizing a repo or subdirectory so Codex, Claude, and other agents read the same guidance.
License
MIT
Instructions
53 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# Creating Agent Files

Use this workflow when a repository or subdirectory needs agent instructions.
`CONTRIBUTING.md` is the source of truth. `AGENTS.md` points agents that load
that filename at the same content, and `CLAUDE.md` uses Claude's include syntax
to read it too.

## Pattern

Create these files in the same directory:

- `CONTRIBUTING.md` contains the actual guidance.
- `AGENTS.md` is a relative symlink to `CONTRIBUTING.md`.
- `CLAUDE.md` contains exactly `@CONTRIBUTING.md`, followed by a newline.

Use the same pattern at the repository root and in scoped directories that need
extra local instructions.

## Workflow

1. Read any existing `CONTRIBUTING.md`, `AGENTS.md`, and `CLAUDE.md` in the
   target directory before changing them.
2. Put all durable instructions in `CONTRIBUTING.md`. If existing `AGENTS.md` or
   `CLAUDE.md` files contain unique guidance, move that guidance into
   `CONTRIBUTING.md` before replacing them with the shared pattern.
3. Make `AGENTS.md` a relative symlink:

   ```bash
   ln -s CONTRIBUTING.md AGENTS.md
   ```

4. Make `CLAUDE.md` contain only the Claude include:

   ```markdown
   @CONTRIBUTING.md
   ```

5. Keep the instructions short and specific to that directory. Parent
   instructions still apply unless the local file says otherwise.

## Validation

Run these checks from the directory that owns the files:

```bash
test "$(readlink AGENTS.md)" = "CONTRIBUTING.md"
printf '@CONTRIBUTING.md\n' | cmp - CLAUDE.md
```

Also inspect the Git diff before finishing. `AGENTS.md` should show as a
symlink, and `CLAUDE.md` should show only the include line.

From chadxz/prompts, MIT.

More from chadxz/prompts

Signals

Stars
3
Forks
1
Open issues
0
Last commit (this folder)
Jul 7, 2026 (3 months ago)
Last release
Oct 15, 2026 (14 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from chadxz

Cite this page

creating-agent-files skill. Agent Mart. https://agentmart.dev/skills/chadxz-creating-agent-files (last updated 2026-10-24)