What this agent does
Claude Projects drift the moment two people edit instructions in two places — someone updates the source-of-truth doc, forgets to paste it into the Project, and now the model is running on stale context. This agent keeps a Claude Project's custom instructions permanently in sync with a single source-of-truth document, so the doc is the only place anyone ever needs to edit.
doc-diff-checker— compares your source-of-truth doc (Google Doc, Notion page, or local Markdown file) against the last-synced version, and detects whether a meaningful change has happened.project-instructions-updater— when a diff is found, reformats the doc content to fit Claude Project's custom-instructions field constraints and updates it via the Claude API/Console, then records the new synced version.
Every run logs whether a sync happened and a short diff summary, so you can see exactly what changed and when.
Requirements
- A Claude Project with API-manageable custom instructions (Claude API access — not required to be Claude Max, but you do need API access for the update step).
- Your source-of-truth doc accessible via
gog(Google Docs) or a local/synced Markdown file. - Works on OpenClaw (scheduled trigger +
gogfor Docs access) or Claude Code run manually/via cron.
Setup
- Unzip the package into your workspace, keeping the folder structure intact.
- Point
config/sync-source.mdat your source-of-truth doc (Doc ID or file path) and the target Claude Project ID. - Run the starter prompt in
starter-prompts.mdonce to do an initial full sync and establish the baseline version. - Schedule
automation-prompt.mdto check for changes on your preferred cadence (hourly is typical for actively-edited docs).
What's included
Skills/doc-diff-checker/SKILL.mdandSkills/project-instructions-updater/SKILL.mdconfig/sync-source.md— doc source and target Project IDconfig/sync-log.md— append-only log of every sync check and diff summaryinstallation-prompt.md— Claude API andgogauth setupautomation-prompt.md— recurring schedule instructionsstarter-prompts.md— example prompts for the initial baseline syncassets/— pipeline diagram