Project Maintainer is a Codex skill for creating and maintaining compact, structured project documentation inside a target repository.
The skill is designed for long-lived codebases where agents need to understand project structure without loading a large documentation corpus into context. It creates a .doc_project_maintainer/ artifact in the maintained project and keeps that artifact organized by modules, directories, cross-boundary flows, code symbols, changes, decisions, and build progress.
skills/
project-maintainer/
SKILL.md
VERSION
metadata.yaml
LICENSE
agents/openai.yaml
references/
artifact-structure.md
audit-workflows.md
code-symbol-docs.md
evidence-and-verification.md
repository-delivery.md
resource-lifecycle-checklist.md
scoped-maintenance.md
templates.md
scripts/
check_doc_sizes.py
check_fix_sync.py
audit_integrity.py
render_audit_report.py
inventory_symbols.py
project_context.py
project-maintainer.zip
Current version: 0.0.12
- Initializes
.doc_project_maintainer/in a target repository. - Documents project overview, architecture, module boundaries, and directory responsibilities.
- Documents cross-boundary causal flows for user-visible, stateful, generated, integration, background, or operator-facing behavior.
- Documents every stable source file, top-level class, top-level function, and class method using a source-mirrored
code/tree with class, function, and method health assessment. - Routes ordinary code changes through scoped maintenance, expands context for boundary/high-risk changes, and reserves full inventory, coverage closure, signing, and trusted audit for explicit delivery work.
- Queries path-linked modules, flows, symbols, changes, open issues, staleness, and active verification failures through a read-only
project_context.pyentrypoint. - Applies an evidence completion gate so weaker local passing tests cannot override a newer applicable live/provider or integration failure.
- Stores structured verification records separately from prose and keeps task-slice synchronization distinct from global coverage status.
- Generates source symbol inventories, git-linked coverage maps, and symbol audit maps through a dependency-light script that automatically uses stronger extractors when available and falls back without blocking.
- Promotes and verifies audit status transitions through
scripts/audit_integrity.py, including HMAC-SHA256 integrity metadata, source and entry-doc hash checks, and trusted/provisional/suspicious/invalid agent audit reporting. - Generates a self-contained HTML audit visualization report through
scripts/render_audit_report.py, combiningcoverage-map.json,symbol-audit-map.json, and a freshly refreshedaudit_integrity.py reportresult for human review. - Requires single-symbol health audits to be performed by the current agent after reading implementation evidence, and multiple-symbol health audits to use one audit agent per required symbol instead of bulk script-generated health.
- Classifies inventoried files with
source_roleandaudit_scopeso full repository coverage stays separate from default runtime/library health audit. - Records a directory disposition summary showing recorded source directories, excluded directories with reasons, and skipped non-source directories.
- Summarizes git history by module, directory, flow, and code symbol when applicable.
- Records meaningful project and code changes, including features, fixes, refactors, behavior or structure changes, test strategy changes, and design decisions, while excluding routine artifact synchronization from change records.
- Tracks partial coverage with
project/coverage-map.jsonandproject/build-plan.mdfor large projects. - Tracks class, top-level function, and class method audit state with
project/symbol-audit-map.json, including symbol-level expiration that avoids invalidating unchanged sibling methods, agent/human audit state, health snapshots, issue records, and default health audit summaries. - Recommends repository coverage slices and default runtime/library audit slices for first scans or stale coverage when the repository exceeds file, symbol, or module-size thresholds.
- Requires a coverage closure audit before marking project-wide coverage or sync status as current.
- Requires full repository analysis goals to continue through actionable pending slices instead of ending after a partial map.
- Requires every top-level class, top-level function, and class method to have
Actual Roleplus health before code symbol coverage can be current; pending symbol slices keep coverage partial. - Requires scoped repairs to synchronize directly affected existing claims while allowing missing historical coverage to remain explicit pending work.
- Enforces small file budgets so future agents can read only the relevant slices.
Validate the skill metadata:
python C:/Users/Administrator/.codex/skills/.system/skill-creator/scripts/quick_validate.py skills/project-maintainerCheck generated project-maintainer artifacts for oversized files:
python skills/project-maintainer/scripts/check_doc_sizes.py <repo-root>/.doc_project_maintainerQuery scoped context without changing the target artifact:
python skills/project-maintainer/scripts/project_context.py --repo-root <repo-root> --paths <source-path>Check only changed artifact files during scoped maintenance:
python skills/project-maintainer/scripts/check_doc_sizes.py <repo-root>/.doc_project_maintainer --profile scoped --paths <artifact-relative-path>Generate an audit visualization report for a maintained project:
python skills/project-maintainer/scripts/render_audit_report.py <repo-root>The output defaults to <repo-root>/.doc_project_maintainer/project/audit-report.html. If inventory, coverage maps, symbol audit maps, or integrity reports are refreshed afterward, regenerate the HTML because the report reflects older data.
The packaged skill archive is available at skills/project-maintainer.zip.
This project is licensed under the Apache License, Version 2.0. See LICENSE.