A DAM Starter Kit that catches the documentation drift code reviews miss.
Most teams update docs in the same pull request as the code, and should keep doing that. Docs still drift: a page is written from the pull request description rather than the code, a neighbouring page that says the same thing is never touched, or a later feature quietly makes an old sentence false. This agent works after the merge. It reads each merged pull request, checks the docs against what your users actually run, and opens pull requests for anything wrong or missing.
Point it at a source repository and a documentation repository on GitHub or GitHub Enterprise.
The rule: Documentation must reflect what users run. If a change can't be verified, it waits in a queue until it can.
Onboarding asks which of two ways your users get the software:
- Tagged releases: docs describe the latest stable release. New changes wait in the queue until a release ships them, then each release gets one pull request.
- Main: docs describe the main branch as it is. New changes are documented the day they land, in one rolling update pull request.
- Daily: Reviews each newly merged pull request (or direct push) once, as a whole. With tagged releases it queues documentation updates; with main it adds them to the open update pull request. Fixes verified errors in existing docs immediately.
- On release (tagged releases only): Checks the release, re-verifies queued items, and opens a pull request with the necessary updates.
- Weekly: Audits documentation health and reports issues.
- On request: Runs a review, reports status, or deploys the site.
The agent never guesses. It leaves unreleased and feature-flagged changes undocumented and flags changes it can't verify.
This repository is available as a DAM Starter Kit through kit.yaml.
- Find
docs-maintainerin Starter Kits and open it. - Grant access to GitHub or GitHub Enterprise. Connect each host if the source and docs repositories use different hosts.
- Optionally connect Slack or Telegram for reports.
- Name the agent and create it.
- Answer four onboarding questions: which repositories, tagged releases or main, whether the docs are accurate today, and who reviews. The agent detects the rest and shows it to you to confirm.
The agent configures its schedules after onboarding is complete: three with tagged releases, two with main (no release check).
Create the agent manually, grant the required connections, and send it this message:
Read
ONBOARDING.mdin the deployed repository and follow its setup instructions:https://github.com/<your-org>/docs-maintainer/blob/main/ONBOARDING.md
Use the URL for the copy you actually deploy.
The agent creates work/CONFIG.md during onboarding.
Key settings include:
| Setting | Purpose |
|---|---|
source_repo |
Repository containing the software |
docs_repo |
Repository containing the documentation |
docs_branch, docs_path |
Documentation branch and directory |
release_model, stable_tag_pattern |
Tagged releases or main, and which tags count as stable |
build_command, deploy_command |
How docs are built and published |
reviewers |
Pull request reviewers |
structure_changes |
Whether the agent can create, delete, or move pages |
See docs/config.md for all settings and defaults.
Optional environment variables:
GITHUB_REPO_WORK: Private repository used to back up agent state.DEF_HOST: Git host for the Starter Kit definition when not usinggithub.com.- Environment variables matching configuration keys override stored values.
- Runs on the DAM agent platform with persistent storage and GitHub credential access.
- Requires
bash,git,jq,gh, GNUdate, andtimeout, plus any tools needed to build the documentation. - Needs read access to the source repository and permission to push branches and open pull requests in the docs repository.
- Never merges pull requests or pushes directly to the documentation branch.
- Deploys the site only when explicitly requested.
kit.yaml: Starter Kit definition and schedules.CLAUDE.md: Core agent instructions.ONBOARDING.md: Setup and initial configuration.docs/: Detailed procedures, including verification, configuration, and persistence.scripts/: Preflight checks, validation, backups, and tests.VERSIONandCHANGELOG.md: Versioning and upgrade instructions.LICENSE: Apache 2.0.