Automations
Internal bots and automated workflows that run alongside the development process. These are distinct from CI pipelines — they integrate with external tools (ClickUp, GitHub) rather than building or testing code.
ClickUp PR bot
Automates ClickUp task lifecycle based on GitHub pull request events. When a PR is opened, reviewed, or merged, the bot creates or updates the corresponding ClickUp task to reflect the current state.
Phase 0 note: implementation details (trigger mechanism, ClickUp workspace/list targets, field mappings) to be documented during baseline generation.
Doc-writer agent
A GitHub Actions bot that drafts documentation pull requests automatically whenever a code PR is merged to main in the backend or frontend repositories.
How it works
- Triggered on
pull_request: closedwheremerged == trueandbase.ref == main - Reads PR metadata: title, body, author, commits, changed file paths, unified diff
- Fetches
frontmatter-index.jsonfrom the docs site to find which doc pages relate to the changed files - If no pages match: posts a comment on the code PR and exits — no doc PR opened
- Calls Claude (Anthropic API) with the diff, PR context, matched pages, and
claude-skills/doc-update-skill/SKILL.mdas the prompt - Opens a draft PR on the docs repo targeting
main, taggedbot-generated, with the code PR author's reviewers assigned - Once a human pushes to the bot branch, the
human-editedlabel is applied and the bot will not overwrite it
Bot behaviour rules
- Never blocks a code merge — the workflow only fires after merge
- Retries up to 3 times on failure (silent on attempts 1–2, comments on the code PR on final failure)
- Never edits Tier 2 auto-generated directories (
reference/backend/api/rest/,reference/backend/pkgsite/,reference/frontend/components/)
Related
../../../../claude-skills/doc-update-skill/SKILL.md— the prompt the bot reads on every run (stub, Issue 09)../../../../meta/frontmatter-schema.md— definesrelates_toglobs used for page matching- Full implementation spec:
.scratch/engineering-docs-foundation/PRD.md§doc-bot workflow