.agents/skills/technical-documentation/references/agent-and-contributing.md
This reference consolidates the core rules for agent-policy and contributor-governance docs.
You must:
rg --files -g 'AGENTS.md' -g 'CONTRIBUTING.md' -g 'CLAUDE.md' -g 'AGENT.md' -g '.cursor/rules/*' -g '.cursorrules' -g '.agent/**' -g '.agents/**' -g '.pi/**' -g 'AGENTS.*.md'AGENTS.md/CONTRIBUTING.md pair before editing.AGENTS.md preferred when present; otherwise nearest alias), plus compatibility pointers or explicit symlink notes.Source: https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/setting-guidelines-for-repository-contributors Source: https://agents.md/ Source: https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/ Source: https://cobusgreyling.substack.com/p/what-is-agentsmd Source: https://www.infoq.com/news/2025/08/agents-md/
Use these as default operating principles:
CONTRIBUTING.md discoverable and actionable (.github, root, or docs).Always, Ask first, Never.Source: https://agents.md/ Source: https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/
AGENTS.md as canonical when present.AGENTS.md is absent, treat the nearest alias file as canonical.AGENTS.md, AGENT.md, .cursorrules, .cursor/rules/*, .agent/, .agents/, .pi/..agents/ as canonical rule storage, keep .cursor as a compatibility symlink to .agents for Cursor rule auto-loading.Source: https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md Source: https://github.com/openai/codex/blob/main/AGENTS.md
.agents/.cursor -> .agents symlinkAGENTS.md pointing to .agents paths where relevant.agents/ exists and .cursor is missing, create .cursor symlink to .agents.cursor is a symlink to another target, fix target or document why it must differ.cursor is a real directory/file, treat as migration conflict and ask before replacement.agents/rules/*.mdc with valid frontmatter (description, globs, alwaysApply as needed).agents/commands/*.md when command routing is used.agents/mcp.json when MCP is in scopeAGENTS.md is primary for Codex repository instructions.cursor compatibility is for Cursor auto-loading and does not replace canonical AGENTS policySource: https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/ Source: https://agents.md/ Source: https://github.com/openai/codex/blob/main/AGENTS.md Source: https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md
AGENTS.md/rule surface).Source: https://github.blog/ai-and-ml/github-copilot/how-to-write-a-great-agents-md-lessons-from-over-2500-repositories/ Source: https://github.com/openai/codex/blob/main/AGENTS.md Source: https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md
README.md that docs depend on), create a minimal actionable file and update references.make * or npm run * is idealSource: https://contributing.md/how-to-build-contributing-md/ Source: https://blog.codacy.com/best-practices-to-manage-an-open-source-project Source: https://mozillascience.github.io/working-open-workshop/contributing/ Source: https://github.com/openclaw/openclaw/blob/main/CONTRIBUTING.md
CONTRIBUTING.md focused on setup, issue flow, PR flow, testing, and review gates.Source: https://github.com/openclaw/openclaw/blob/main/AGENTS.md Source: https://github.com/openclaw/openclaw/blob/main/CONTRIBUTING.md Source: https://github.com/openclaw/openclaw/blob/main/VISION.md Source: https://github.com/openai/codex/blob/main/AGENTS.md Source: https://github.com/processing/p5.js/blob/main/AGENTS.md Source: https://github.com/vercel-labs/agent-skills/blob/main/AGENTS.md Source: https://github.com/agentsmd/agents.md/blob/main/AGENTS.md Source: https://github.com/rails/rails/blob/main/CONTRIBUTING.md Source: https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md Source: https://github.com/atom/atom/blob/master/CONTRIBUTING.md Source: https://github.com/github/docs/blob/main/CONTRIBUTING.md Source: https://github.com/facebook/react/blob/main/CONTRIBUTING.md
When these rules conflict: