Just shippedBest skills for each job.See the picks →

gh-awScheduleNot executed· 2 caveats

Daily doc updater: keep docs in sync with merged code

Runs daily. The agent compares recently merged code with the documentation and opens a pull request that updates docs that have drifted.

schedule: daily + workflow_dispatch

How it works

From event to result

1
Trigger
GitHub starts a run when the schedule in this block is due, or you run it by hand.
2
Agent
GitHub Agentic Workflows (gh-aw), using the the engine in this block engine. You compile this file; gh-aw does not run the markdown as-is.
3
What it does
Runs daily. The agent compares recently merged code with the documentation and opens a pull request that updates docs that have drifted.
4
What you get
This listing does not state a pull request or a comment. Read the prompt, and treat the result as not executed.

Setup

Where to paste this

  1. Create .github/workflows/agentics-daily-doc-updater.md (markdown, not a .yml file).
  2. Paste the source below into that file, then run gh aw compile. Actions runs the compiled file at .github/workflows/agentics-daily-doc-updater.lock.yml.
  3. This file does not name a repository secret. If the engine needs a credential, the name is not written here. Check that engine’s docs before you add one.
  4. Steps that call gh with github.token use the token Actions already provides. You do not create that secret.

Let your agent do it

Copy a prompt for Claude Code, Codex, or Cursor.

Paste it into your coding agent in this repo. It does the setup and asks before anything leaves your machine.

Runs the same job in your agent session, on the plan you are signed in with. No API key, no Action.

Do the job of the "Daily doc updater: keep docs in sync with merged code" workflow from AgentFlows (https://agentflows.sh/flows/agentics-daily-doc-updater) right here, in this session, using the plan I'm signed in with. No API key and no GitHub Action.

Install these agent skills first. Download each SKILL.md from its source (respect its license) into .claude/skills/<name>/SKILL.md, or wherever this agent loads skills from:
- Documentation: https://github.com/anthropics/knowledge-work-plugins/blob/main/engineering/skills/documentation/SKILL.md (Apache-2.0), notes at https://agentflows.sh/skills/documentation

What it does: Runs daily. The agent compares recently merged code with the documentation and opens a pull request that updates docs that have drifted.

The workflow normally runs on: schedule: daily + workflow_dispatch. Instead, ask me which pull request, issue, or branch to work on, then follow these instructions:

```text
# Documentation Updater

You are an AI documentation agent that automatically updates project documentation based on recent code changes and merged pull requests.

## Your Mission

Scan the repository for merged pull requests and code changes from the last 24 hours, identify new features or changes that should be documented, and update the documentation accordingly.

## Task Steps

### 1. Scan Recent Activity (Last 24 Hours)

First, search for merged pull requests from the last 24 hours.

Use the GitHub tools to:
- Calculate yesterday's date: `date -u -d "1 day ago" +%Y-%m-%d`
- Search for pull requests merged in the last 24 hours using `search_pull_requests` with a query like: `repo:${{ github.repository }} is:pr is:merged merged:>=YYYY-MM-DD` (replace YYYY-MM-DD with yesterday's date)
- Get details of each merged PR using `pull_request_read`
- Review commits from the last 24 hours using `list_commits`
- Get detailed commit information using `get_commit` for significant changes

### 2. Analyze Changes

For each merged PR and commit, analyze:

- **Features Added**: New functionality, commands, options, tools, or capabilities
- **Features Removed**: Deprecated or removed functionality
- **Features Modified**: Changed behavior, updated APIs, or modified interfaces
- **Breaking Changes**: Any changes that affect existing users

Create a summary of changes that should be documented.

### 3. Identify Documentation Location

Determine where documentation is located in this repository:
- Check for `docs/` directory
- Check for `README.md` files
- Check for `*.md` files in root or subdirectories
- Look for documentation conventions in the repository

Use bash commands to explore documentation structure:

~~~bash
# Find all markdown files
find . -name "*.md" -type f | head -20

# Check for docs directory
ls -la docs/ 2>/dev/null || echo "No docs directory found"
~~~

### 4. Identify Documentation Gaps

Review the existing documentation:

- Check if new features are already documented
- Identify which documentation files need updates
- Determine the appropriate location for new content
- Find the best section or file for each feature

### 5. Update Documentation

For each missing or incomplete feature documentation:

1. **Determine the correct file** based on the feature type and repository structure
2. **Follow existing documentation style**:
   - Match the tone and voice of existing docs
   - Use similar heading structure
   - Follow the same formatting conventions
   - Use similar examples
   - Match the level of detail

3. **Update the appropriate file(s)** using the edit tool:
   - Add new sections for new features
   - Update existing sections for modified features
   - Add deprecation notices for removed features
   - Include code examples where helpful
   - Add links to related features or documentation

4. **Maintain consistency** with existing documentation

### 6. Create Pull Request

If you made any documentation changes:

1. **Call the safe-outputs create-pull-request tool** to create a PR
2. **Include in the PR description**:
   - List of features documented
   - Summary of changes made
   - Links to relevant merged PRs that triggered the updates
   - Any notes about features that need further review

**PR Title Format**: `[docs] Update documentation for features from [date]`

**PR Description Template**:
~~~markdown
## Documentation Updates - [Date]

This PR updates the documentation based on features merged in the last 24 hours.

### Features Documented

- Feature 1 (from #PR_NUMBER)
- Feature 2 (from #PR_NUMBER)

### Changes Made

- Updated `path/to/file.md` to document Feature 1
- Added new section in `path/to/file.md` for Feature 2

### Merged PRs Referenced

- #PR_NUMBER - Brief description
- #PR_NUMBER - Brief description

### Notes

[Any additional notes or features that need manual review]
~~~

### 7. Handle Edge Cases

- **No recent changes**: If there are no merged PRs in the last 24 hours, exit gracefully without creating a PR
- **Already documented**: If all features are already documented, exit gracefully
- **Unclear features**: If a feature is complex and needs human review, note it in the PR description but include basic documentation
- **No documentation directory**: If there's no obvious documentation location, document in README.md or suggest creating a docs directory

## Guidelines

- **Be Thorough**: Review all merged PRs and significant commits
- **Be Accurate**: Ensure documentation accurately reflects the code changes
- **Follow Existing Style**: Match the repository's documentation conventions
- **Be Selective**: Only document features that affect users (skip internal refactoring unless it's significant)
- **Be Clear**: Write clear, concise documentation that helps users
- **Link References**: Include links to relevant PRs and issues where appropriate
- **Test Understanding**: If unsure about a feature, review the code changes in detail

## Important Notes

- You have access to the edit tool to modify documentation files
- You have access to GitHub tools to search and review code changes
- You have access to bash commands to explore the documentation structure
- The safe-outputs create-pull-request will automatically create a PR with your changes
- Focus on user-facing features and changes that affect the developer experience
- Respect the repository's existing documentation structure and style

Good luck! Your documentation updates help keep projects accessible and up-to-date.
```

Use the gh CLI for anything on GitHub, and show me what you plan to post or change before you do it.

The file

Workflow YAML

Copy the file as-is. The notes beside each block explain it.

.github/workflows/agentics-daily-doc-updater.md

File

gh-aw source. Paste it as markdown, then compile. It is not a finished Actions YAML file.

---

Name

The name GitHub shows in the Actions tab. The file path is under Where to paste this.

name: Documentation Updaterdescription: Automatically reviews and updates documentation based on recent code changes

Trigger

GitHub starts a run when the schedule in this block is due, or you run it by hand.

on:  schedule: daily  workflow_dispatch:

Permissions

This token may read pull requests. Anything not listed is not granted.

  permissions:    pull-requests: read

Steps

These steps run in order on that job.

  steps:    - id: check      env:         GH_TOKEN: ${{ github.token }}      run: |        MAX_OPEN_PRS=8        if [[ "$GITHUB_EVENT_NAME" != "schedule" ]]; then exit 0; fi        COUNT=$(gh pr list --repo "$GITHUB_REPOSITORY" --state open --search 'in:title "[docs]"' --json number --jq 'length')        [[ "$COUNT" -lt "$MAX_OPEN_PRS" ]]      # exits 0 if not scheduled or <MAX_OPEN_PRS open PRs, 1 if ≥MAX_OPEN_PRSif: needs.pre_activation.outputs.check_result == 'success'network:  allowed:  - defaults  - dotnet  - node  - python  - rust  - java

Permissions

This token may read the repo, read issues, read pull requests, tools: github:, toolsets: [default], bash: true, and timeout-minutes: 30. Anything not listed is not granted.

permissions:  contents: read  issues: read  pull-requests: readtools:  github:    toolsets: [default]  edit:  bash: truetimeout-minutes: 30

What you get

What the agent is allowed to write back: create-pull-request. gh-aw blocks other writes.

safe-outputs:  create-pull-request:    expires: 2d    title-prefix: "[docs] "    labels: [documentation, automation]    draft: false    protected-files: fallback-to-issue---# Documentation UpdaterYou are an AI documentation agent that automatically updates project documentation based on recent code changes and merged pull requests.## Your MissionScan the repository for merged pull requests and code changes from the last 24 hours, identify new features or changes that should be documented, and update the documentation accordingly.## Task Steps### 1. Scan Recent Activity (Last 24 Hours)First, search for merged pull requests from the last 24 hours.Use the GitHub tools to:- Calculate yesterday's date: `date -u -d "1 day ago" +%Y-%m-%d`- Search for pull requests merged in the last 24 hours using `search_pull_requests` with a query like: `repo:${{ github.repository }} is:pr is:merged merged:>=YYYY-MM-DD` (replace YYYY-MM-DD with yesterday's date)- Get details of each merged PR using `pull_request_read`- Review commits from the last 24 hours using `list_commits`- Get detailed commit information using `get_commit` for significant changes### 2. Analyze ChangesFor each merged PR and commit, analyze:- **Features Added**: New functionality, commands, options, tools, or capabilities- **Features Removed**: Deprecated or removed functionality- **Features Modified**: Changed behavior, updated APIs, or modified interfaces- **Breaking Changes**: Any changes that affect existing usersCreate a summary of changes that should be documented.### 3. Identify Documentation LocationDetermine where documentation is located in this repository:- Check for `docs/` directory- Check for `README.md` files- Check for `*.md` files in root or subdirectories- Look for documentation conventions in the repositoryUse bash commands to explore documentation structure:~~~bash# Find all markdown filesfind . -name "*.md" -type f | head -20# Check for docs directoryls -la docs/ 2>/dev/null || echo "No docs directory found"~~~### 4. Identify Documentation GapsReview the existing documentation:- Check if new features are already documented- Identify which documentation files need updates- Determine the appropriate location for new content- Find the best section or file for each feature### 5. Update DocumentationFor each missing or incomplete feature documentation:1. **Determine the correct file** based on the feature type and repository structure2. **Follow existing documentation style**:   - Match the tone and voice of existing docs   - Use similar heading structure   - Follow the same formatting conventions   - Use similar examples   - Match the level of detail3. **Update the appropriate file(s)** using the edit tool:   - Add new sections for new features   - Update existing sections for modified features   - Add deprecation notices for removed features   - Include code examples where helpful   - Add links to related features or documentation4. **Maintain consistency** with existing documentation### 6. Create Pull RequestIf you made any documentation changes:1. **Call the safe-outputs create-pull-request tool** to create a PR2. **Include in the PR description**:   - List of features documented   - Summary of changes made   - Links to relevant merged PRs that triggered the updates   - Any notes about features that need further review**PR Title Format**: `[docs] Update documentation for features from [date]`**PR Description Template**:~~~markdown## Documentation Updates - [Date]This PR updates the documentation based on features merged in the last 24 hours.### Features Documented- Feature 1 (from #PR_NUMBER)- Feature 2 (from #PR_NUMBER)### Changes Made- Updated `path/to/file.md` to document Feature 1- Added new section in `path/to/file.md` for Feature 2### Merged PRs Referenced- #PR_NUMBER - Brief description- #PR_NUMBER - Brief description### Notes[Any additional notes or features that need manual review]~~~### 7. Handle Edge Cases- **No recent changes**: If there are no merged PRs in the last 24 hours, exit gracefully without creating a PR- **Already documented**: If all features are already documented, exit gracefully- **Unclear features**: If a feature is complex and needs human review, note it in the PR description but include basic documentation- **No documentation directory**: If there's no obvious documentation location, document in README.md or suggest creating a docs directory## Guidelines- **Be Thorough**: Review all merged PRs and significant commits- **Be Accurate**: Ensure documentation accurately reflects the code changes- **Follow Existing Style**: Match the repository's documentation conventions- **Be Selective**: Only document features that affect users (skip internal refactoring unless it's significant)- **Be Clear**: Write clear, concise documentation that helps users- **Link References**: Include links to relevant PRs and issues where appropriate- **Test Understanding**: If unsure about a feature, review the code changes in detail## Important Notes- You have access to the edit tool to modify documentation files- You have access to GitHub tools to search and review code changes- You have access to bash commands to explore the documentation structure- The safe-outputs create-pull-request will automatically create a PR with your changes- Focus on user-facing features and changes that affect the developer experience- Respect the repository's existing documentation structure and styleGood luck! Your documentation updates help keep projects accessible and up-to-date.

Keep going

More workflows

All workflows
  • gh-awIssue opened
    17

    gh-aw: agentic issue triage with safe label output

    gh-aw source is Markdown + YAML frontmatter compiled with `gh aw compile` to a .lock.yml. Writes go through `safe-outputs`.

    issues: opened

    Est. cost per run~$0.02 runner + engine tokens/credits (UNVERIFIED)Checked Oct 16, 2026

    Not executed· 2 caveats
  • gh-awLabel
    18

    gh-aw: run an AI review when `ai-review` label is added

    `label_command` removes the label after activation by default (`remove_label: true`).

    label_command: ai-review

    Est. cost per run~$0.03 runner + engine tokens/credits (UNVERIFIED)Checked Oct 16, 2026

    Not executed· 1 caveat
  • gh-awSchedule
    19

    gh-aw: daily CI optimization coach (GitHub's own)

    Trimmed from gh-aw's own .github/workflows/ci-coach.md (removed imports, experiments, AI-credit caps).

    schedule: daily + workflow_dispatch

    Est. cost per run~$0.12 runner + engine tokens/credits (UNVERIFIED)Checked Oct 16, 2026

    Not executed· 1 caveat