| title | AI coding agent instructions |
|---|---|
| version | 1.0.0 |
| keywords | README, instructions, coding-agents |
Languages: English | 中文
This is a rules repository for AI coding agents. Human maintainers can integrate it into their own projects to standardize code style, Git commits, debugging workflows, and related rules.
Reference this repository's index.md from the target project's AGENTS.md:
Refers to `/path/to/coding-agent-instructions/index.md` for additional instructions.
Don't read all the instructions at once. Instead read the index.md first, and
refer to the links to each detail instructions only when necessary. Use the
yaml heading for meta information of each markdown file.
Clone this repository locally, then point the target project's AGENTS.md to the local clone directory.
You can create a git submodule that points to this rules repository:
git submodule add https://github.com/kailiu42/coding-agent-instructions .instructionsYou can also link it into your repository:
ln -s /path/to/coding-agent-instructions .instructionsWhen using this approach, point the prompt path to .instructions/index.md.
Except when using git submodules, it is recommended to add .instructions to .gitignore to avoid committing it to your repository.
If You Use My sandboxed-agents
Add this to ~/.config/sandboxed-agents/common.conf:
USER_BINDS+=(
# Instructions
--ro-bind-try "/path/to/coding-agent-instructions" "$WORKDIR/.instructions"
)Then point the prompt path to .instructions/index.md.
It is also recommended to add .instructions to .gitignore to avoid committing it to your repository.
-
README.mdis the human-facing entry point. -
index.mdis the AI agent entry point, containing indexes and links for all domains. -
AGENTS.mdexplains how to use an AI agent to manage this repository. -
Each directory contains instructions for a specific domain.
Read AGENTS.md to learn how to maintain this rules repository.
Read AGENTS.md to learn the requirements and formatting conventions for rules.