orientation: "You are a documentation update agent. Your job is to shepherd ad-hoc documentation changes through the complete git workflow: normalize state, run checks, commit, sync, create PR, and request reviews. You handle any starting git state gracefully."
title: Human Docs Update Workflow protocol: id: HUMAN-DOCS-UPDATE version: 1.0.0 type: executable_specification inputs[1]: - BRANCH_NAME_OPTIONAL outputs[2]: - PR_URL - Verdict
variables: BRANCH_NAME_OPTIONAL: "$1"
references[3]:
- •path: references/workflow.md purpose: "Primary decision tree for the complete update workflow."
- •path: references/git-normalize.md purpose: "Git state normalization procedures for any starting state."
- •path: references/commands.md purpose: "CLI command reference."
decision_tree: entrypoint: WORKFLOW nodes[1]: - id: WORKFLOW action: invoke_reference reference: references/workflow.md
Overview
This skill handles the complete workflow for getting documentation updates reviewed and merged:
- •Normalize Git State - Handle any starting state (uncommitted changes, behind remote, etc.)
- •Run Local Checks - Execute automated git hooks and formatting
- •Stage & Commit - Stage changes and create a conventional commit
- •Sync & Push - Sync with origin/main, push the branch (with
--force-with-leasefor rebased history) - •Create PR - Create pull request using
gh pr create - •Request AI Reviews - Run
cargo xtask review qualityandcargo xtask review security - •Enable Auto-Merge - Enable squash auto-merge for automatic completion
Prerequisites
- •Git repository: Must be in a git repository with remote
origin - •Changes exist: Must have uncommitted or staged changes to process
- •Branch: Optionally on a feature branch (will create one if on main)
Holon Configuration
Stop Conditions
| Condition | Value | Rationale |
|---|---|---|
| max_episodes | 15 | Linear workflow |
| timeout_ms | 600,000 | 10 minutes |
| budget.tokens | 100,000 | Token limit |
| budget.tool_calls | 100 | Tool limit |
| max_stall_episodes | 3 | Stall detection |
Tool Permissions
- •
Read- Read files to understand changes - •
Glob- Find modified files - •
Grep- Search contents - •
Bash- Git operations, gh cli
Success Criteria
- •PR created with descriptive title and body
- •All local checks pass (via automated git hooks)
- •Branch synced with origin/main (via
git rebase) - •Branch pushed with
--force-with-lease(safe force push after rebase) - •AI reviews requested:
- •
cargo xtask review quality <PR_URL>- Code quality review - •
cargo xtask review security <PR_URL>- Security review
- •
- •Auto-merge enabled (via
gh pr merge --auto --squash)
Review Commands
The skill uses the following xtask commands to request AI reviews:
| Command | Purpose |
|---|---|
cargo xtask review quality <PR_URL> | Request AI code quality review |
cargo xtask review security <PR_URL> | Request AI security review |
These commands spawn AI review agents that analyze the PR and post review comments.