repopact
v0.1.0
Published
Installable RepoPact project operating contract. Run `npx repopact init` to bootstrap AGENTS.md and planning docs.
Readme
RepoPact
RepoPact is a copy-paste project operating contract for AI coding agents and human contributors. It gives any repository a clear structure for planning, documentation, verification, task logs, and closeout discipline without forcing a specific tech stack.
Use it for web apps, APIs, CLIs, libraries, mobile apps, infrastructure repositories, automation projects, internal tools, and client projects.
What This Provides
- Root
AGENTS.mdcontract for AI coding agents. CLAUDE.mdthat strictly redirects Claude to readAGENTS.md.- MIT license for reuse in personal, open-source, and commercial projects.
- Documentation structure under
docs/. - Centralized planning files:
docs/plan/specs.mddocs/plan/design.mddocs/plan/tasks.md
- Latest-first implementation journal:
docs/developers/task-logs.md
- Root Markdown guardrails that prevent random summary, guide, fix, note, roadmap, changelog, and scratch files from accumulating.
How To Use
The fastest way to add RepoPact to a project is with npx:
npx repopact initThis copies AGENTS.md into your project root and creates the planning and task-log files under docs/.
Alternatively, copy these files into the root of your own project:
docs/
.gitattributes
.gitignore
AGENTS.md
CLAUDE.md
CONTRIBUTING.md
LICENSE
README.mdThen edit these placeholders:
- Replace
RepoPactreferences inREADME.mdif this is your actual product repository. - Update the
Project Mapsection inAGENTS.mdonce your real project structure is known. - Replace the starter content in
docs/plan/specs.mdanddocs/plan/design.mdwith your project-specific requirements and design. - Keep
docs/plan/tasks.mdas a flat checkbox list only. - Keep implementation decisions in
docs/developers/task-logs.md.
Repository Rules
Root-level Markdown is intentionally restricted to:
README.mdCONTRIBUTING.mdCLAUDE.mdAGENTS.md
Do not create root-level CHANGELOG.md, ROADMAP.md, PLAN.md, TODO.md, *_SUMMARY.md, *_GUIDE.md, *_FIXES.md, *_NOTES.md, or similar task debris.
Before the project becomes an operating/released product, use docs/developers/task-logs.md for implementation history. Create customer-facing changelogs only when the owner explicitly wants release notes.
Planning Flow
For non-trivial changes:
- Update
docs/plan/specs.md. - Update
docs/plan/design.md. - Update
docs/plan/tasks.mdas flat checkboxes. - Implement the smallest safe change.
- Run relevant checks.
- Update
docs/developers/task-logs.md. - Commit when the task is complete, unless told not to.
Verification
Run the checks that make sense for your project and keep them documented in docs/developers/task-logs.md.
License
RepoPact is released under the MIT License. You may copy, modify, and use it in commercial or private projects.
See LICENSE for the full license text.
