Codex Maintainer Kit prepares open source repositories for Codex-assisted maintenance.
It scans a local repository, identifies basic maintenance gaps, and generates a MAINTAINER_BRIEF.md that a human maintainer can hand to Codex before asking it to improve docs, tests, issue templates, release notes, or repository instructions.
The goal is not to replace maintainers. The goal is to make recurring maintenance work easier to review, delegate, and verify.
New to this project? Start with a plain-language explanation:
Choose the shortest path for your situation:
- Start Here / まずここから: understand the CLI in the first 3 minutes.
- Use Cases / ユースケース: choose when to run an audit, brief, task queue, or review report.
Open source maintenance is rarely just writing new code. Maintainers spend time on:
- keeping README and contribution docs accurate
- adding tests before refactors
- preparing releases and changelogs
- reviewing pull requests
- making issue reports easier to act on
- deciding what AI-generated changes are safe to merge
Codex can help with that work, but it needs clear repository context and human review rules. This kit creates that starting context.
- Detects common maintainer files such as
README.md,LICENSE,CONTRIBUTING.md,SECURITY.md,AGENTS.md, issue templates, CI workflows, and tests. - Detects simple project hints such as Python, JavaScript, Go, Rust, Ruby, PHP, Java, .NET, and Swift markers.
- Summarizes current Git working-tree changes.
- Generates an OSS maintenance audit with a health score, maintainer essentials checklist, and prioritized next actions.
- Generates a Markdown maintainer brief with:
- repository readiness checklist
- Codex task queue
- suggested Codex prompt
- human review rule
- Creates starter maintainer files with
init. - Turns readiness gaps into
CODEX_TASKS.md, JSON, and GitHub issue Markdown files withtasks. - Adds suggested labels, verification commands, and maintainer review checklists to generated issue drafts.
- Generates
CODEX_REVIEW.mdfrom the current working-tree changes so maintainers can review AI-assisted diffs before merge.
From a local checkout:
python3 -m pip install -e .Use codex-maintainer-action when you want GitHub Actions to generate maintenance artifacts automatically:
- uses: goonobu-dot/codex-maintainer-action@v0.2.0
with:
output-dir: codex-maintenanceThe action runs this CLI, writes a GitHub Actions job summary, and uploads OSS_MAINTENANCE_AUDIT.md, MAINTAINER_BRIEF.md, CODEX_TASKS.md, codex-tasks.json, and CODEX_REVIEW.md as workflow artifacts.
Generate an OSS maintenance audit:
codex-maintainer-kit audit /path/to/repo --output OSS_MAINTENANCE_AUDIT.mdGenerate a maintainer brief:
codex-maintainer-kit brief /path/to/repo --output MAINTAINER_BRIEF.mdGenerate Codex-ready maintenance tasks:
codex-maintainer-kit tasks /path/to/repo --output CODEX_TASKS.mdGenerate a human maintainer review brief for current changes:
codex-maintainer-kit review /path/to/repo --output CODEX_REVIEW.mdGenerate machine-readable tasks:
codex-maintainer-kit tasks /path/to/repo --format json --output codex-tasks.jsonThe JSON output shape is documented in schema/codex-tasks.schema.json.
Generate GitHub issue drafts:
codex-maintainer-kit tasks /path/to/repo --github-issues-dir .github/generated-maintenance-issuesCustomize task output with a local config file:
# codex-maintainer-kit.toml
project_name = "Example OSS Project"
verification_command = "python3 -m pytest -p no:cacheprovider tests -q"
release_command = "gh release create vX.Y.Z --title vX.Y.Z --notes-file CHANGELOG.md"
default_labels = ["maintenance", "codex"]Currently, tasks uses verification_command and default_labels when generating Markdown, JSON, and GitHub issue drafts. Unknown keys are ignored to keep the config format forwards-compatible.
Preview starter files:
codex-maintainer-kit init /path/to/repo --dry-runCreate starter files:
codex-maintainer-kit init /path/to/repoThe init command creates:
AGENTS.mdCONTRIBUTING.md.github/ISSUE_TEMPLATE/maintenance.md
Existing files are skipped unless --force is passed.
See:
- examples/OSS_MAINTENANCE_AUDIT.generated.md, generated from this repository
- examples/MAINTAINER_BRIEF.example.md
- examples/MAINTAINER_BRIEF.generated.md, generated from this repository
- examples/CODEX_TASKS.example.md
- examples/CODEX_TASKS.generated.md, generated from this repository
- examples/CODEX_REVIEW.example.md
- examples/codex-maintainer-kit.toml
- schema/codex-tasks.schema.json
This project was created for maintainers who want to use Codex in open source workflows without removing human review.
The application notes and publishing checklist live in:
This project is intentionally not a replacement for mature repository health or security tools.
- OpenSSF Scorecard measures open source security posture.
- Repolinter linted repository metadata and policy files.
Codex Maintainer Kit focuses on a narrower workflow: creating a practical maintenance brief, turning gaps into Codex-ready tasks, generating issue drafts, and keeping human review as the final checkpoint.
- Run
codex-maintainer-kit auditto understand the repository's maintenance health. - Run
codex-maintainer-kit brief, or runcodex-maintainer-actionin GitHub Actions. - Review the generated checklist.
- Run
codex-maintainer-kit tasks. - Convert the generated task file or issue drafts into scoped maintenance work.
- Ask Codex to make the smallest useful change.
- Run
codex-maintainer-kit reviewto create a focused review brief for the current diff. - Run tests and inspect the diff.
- Merge only after human review.
Run tests:
python3 -m pytest tests -qRun the CLI without installing:
PYTHONPATH=src python3 -m codex_maintainer_kit.cli brief . --output /tmp/maintainer-brief.md
PYTHONPATH=src python3 -m codex_maintainer_kit.cli audit . --output /tmp/oss-maintenance-audit.md
PYTHONPATH=src python3 -m codex_maintainer_kit.cli tasks . --output /tmp/codex-tasks.md
PYTHONPATH=src python3 -m codex_maintainer_kit.cli review . --output /tmp/codex-review.mdMIT