This document is a guide for safe and productive collaboration between AI agents (e.g., GitHub Copilot / Copilot Chat) and human maintainers in this repository.
- Make precise, minimal changes to keep the repository stable
- Document important knowledge (policies, structure, rules) for easy sharing
- Consolidate changes in
docs/rather than in the README
- Break down tasks and create a TODO list (small, observable steps)
- Gather context (search, then read large relevant file sections)
- Make minimal diffs (avoid unrelated formatting)
- Run quality gates and report results (Build / Lint / Typecheck / Test)
- Update documentation (add details to
docs/content/docs, use README as an entry point) - Record changes, results, and follow-ups concisely
- Build: Ensure builds and scripts are not broken
- Lint/Typecheck: Pass static analysis
- Tests: All existing tests must PASS; if none, record a small manual check
- Example report:
Build: PASS / Lint: PASS / Tests: N/A
- Avoid leaking secrets (tokens, cookies, environment variables)
- Destructive actions (e.g.,
rm -rf ~, forced push) are forbidden - Minimize external network calls and document the reason when needed
- Only change global OS/tool settings with explicit consent
- Use GNU Stow for symlink deployment
- Before deploy, read
/.deploy_subdirand create required directories withmkdir -p - Use
README.mdas an entry point; put detailed steps/background indocs/ - Follow existing style (frontmatter, naming, hierarchy) when creating files
- Follow Conventional Commits:
feat:,fix:,docs:,chore:, etc. - One change per commit (keep changes small)
- State what you want to do and where (e.g., "Add AGENTS.md", "Add to docs")
- Indicate consistency with existing implementation (e.g., use stow, use justfile recipes)
- Specify output language (Japanese/English) and location (README or docs)
- Main operations are summarized in the root
justfile - Documentation is managed as MDX in
docs/content/docsand published on the site - Navigation is auto-completed by
meta.json(usually just add a page)
- GNU Stow: https://www.gnu.org/software/stow/
- just: https://github.com/casey/just
- sheldon: https://github.com/rossmacarthur/sheldon