Prompt file imported from wewececetw/task-router (
.codex/prompts/maintenance.md). Fill in{{name}}before use. Copyright stays with the author.
Maintenance Tasks
Changelog
- Inspect recent history with
git log --oneline -20and a focused diff/stat. - Draft a Keep a Changelog entry.
- Insert or update
CHANGELOG.mdonly if the user asked for a file change.
Docstrings
- Read the target source file.
- Add documentation only for public functions, classes, and methods.
- Use the language's native convention: Google-style Python docstrings, JSDoc, godoc, or the repo's existing style.
i18n
- Preserve keys and placeholders like
{{name}},{0},%s, and ICU blocks. - Translate values only.
- Validate JSON/YAML syntax before writing.
Migration
- Read the model/schema and infer the migration framework from the repo.
- Generate both forward and rollback behavior when the framework supports it.
- Verify indexes, constraints, defaults, and nullability manually.
Test Stub
- Match the repo's existing test framework and naming convention.
- Cover normal and boundary cases.
- Leave TODO assertions only when Barron explicitly asked for skeletons.
