GitHub Docs PR Workflow

VerifiedCaution

End-to-end workflow: inspect changes, file a docs issue, create branch, commit, push, and open a PR.

Sby Skills Guide Bot
DocumentationIntermediate
7/22/2026
Claude Code
#git#github#pull-requests#docs-workflow#cli

Recommended for

Automated summary

Automates a documentation-only GitHub workflow: inspect diffs under the given paths (or the whole workspace), file a documentation issue, create a docs/ branch, commit just those files, and push the branch.

Strengths

  • Chains issue creation, branching, committing and pushing in one step driven by the actual diffs
  • Stages only files under the supplied paths, so unrelated changes are never committed
  • Derives the issue title/body and commit message from the diff analysis
  • Adds a lint gate before pushing and expects errors to be fixed rather than pushed

Limitations

  • Commands are written in PowerShell and assume a repo laid out like the author's (hard-coded FinanceFrontEnd paths for linting)
  • Does not open the pull request itself — it stops at the push and defers to a separate /pr command
  • Assumes gh is authenticated and that the 'documentation' label already exists on the repository
When to use it

Use it when a set of purely documentation changes should be shipped as an issue, a branch and a pushed, PR-ready branch in one go.

When not to use it

Avoid it when the changes are not documentation-only, or when you need an opened pull request right away without an extra step.

Security analysis

Caution
Quality score85/100

The workflow uses powerful but legitimate development tools for documentation changes. It does not contain destructive commands, secret exfiltration, obfuscated payloads, or safety-disabling instructions, but it does modify local files and remote GitHub state, so caution is appropriate.

Findings
  • •Uses git and GitHub CLI to create issues, branches, commits, and push to a remote repository.
  • •Runs npm lint and potentially npm run lint:fix, which can modify files.
  • •No allowed-tools are declared even though the skill requires shell, git, gh, and npm execution.
How this analysis is made

Examples

Docs PR for a path
Create a docs PR for the changes under docs/ — we added a new architecture decision record and updated the index.
README update
Ship the README.md updates: file a docs issue, branch, commit only README.md and push it.
Whole workspace
There are uncommitted documentation edits scattered around; inspect all unstaged changes and publish them as a docs branch.

name: docs description: "Create a GitHub docs issue, branch, commit, and publish a docs branch for staged or unstaged changes under one or more given paths, if no given paths then all the unstaged files should be used. Use when: shipping documentation changes, committing doc updates, publishing a docs branch." argument-hint: "<path1> [path2 ...] — one or more workspace-relative paths whose changes to include"

GitHub Docs PR Workflow

End-to-end workflow: inspect changes under the given path(s) or the whole workspace if no paths are provided, file a docs issue, create a docs branch, commit only those changes, push, and open a PR populated from the repo's PR template.

When to Use

  • Adding or updating documentation (README, guides, architecture docs, skill files, etc.)
  • Generating a GitHub issue + PR pair in one step for doc-only changes
  • Any time the user says "create a docs PR for changes under <path>"
  • Works for any documentation format — Markdown, ADRs, diagrams, comments, etc.

Required Inputs

| Input | Example | |---|---| | One or more repo-relative paths | .github/docs/ docs/ README.md |

Multiple paths can be provided space-separated or as a list.

Procedure

1 — Inspect changes

Paths: $ARGUMENTS

For each provided path run:

git diff --stat HEAD -- <path>
git diff HEAD -- <path>

Also run git status to see any untracked files under the paths.

Use the diffs to understand:

  • Which files changed or were added
  • What the documentation covers (new guide, updated reference, corrected info, etc.)
  • A concise one-line summary and a fuller description for the issue body

2 — Create the GitHub docs issue

Use the GH CLI. Derive the title and body from the diff analysis:

gh issue create `
  --title "<concise title describing the documentation change>" `
  --body "<markdown body: Description / Affected files / What was added or corrected>" `
  --label documentation

Note the issue number returned (e.g. #82).

3 — Create a docs branch

Branch name convention: docs/<short-slug> derived from the issue title (lowercase, hyphens only).

git checkout -b docs/<short-slug>

4 — Commit only the target paths

Stage exclusively the files under the provided path(s):

git add <path1> [<path2> ...]
git commit -m "docs: <one-line summary>

<Optional body paragraph>

Closes #<issue-number>"

Do NOT stage files outside the paths the user specified.

5 — Run lint before pushing

If any of the changed files are frontend (TypeScript/TSX/JS under FinanceFrontEnd/), run lint from the relevant app directory and fix any errors before proceeding. Do not push if lint fails.

# For FinanceApp changes:
cd FinanceFrontEnd/FinanceApp; npm run lint

# For FinanceFunds changes:
cd FinanceFrontEnd/FinanceFunds; npm run lint

If lint:fix is available and there are auto-fixable errors, run it and amend the commit:

npm run lint:fix
git add <affected-files>
git commit --amend --no-edit

6 — Publish the branch

git push -u origin docs/<short-slug>

Output

Report to the user:

  • Issue URL
  • Branch name
  • Commit SHA (from git log -1 --oneline)

Run /pr to open the pull request when ready.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/github-docs-pr-workflow-mrwakeh0/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/github-docs-pr-workflow-mrwakeh0' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/github-docs-pr-workflow-mrwakeh0/download' --output '.skill-downloads/github-docs-pr-workflow-mrwakeh0/SKILL.md.part' && mv '.skill-downloads/github-docs-pr-workflow-mrwakeh0/SKILL.md.part' '.skill-downloads/github-docs-pr-workflow-mrwakeh0/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/github-docs-pr-workflow-mrwakeh0/SKILL.md' && test -s '.skill-downloads/github-docs-pr-workflow-mrwakeh0/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/docs' && cp -R '.skill-downloads/github-docs-pr-workflow-mrwakeh0' '.claude/skills/docs'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/github-docs-pr-workflow-mrwakeh0'

openskills read 'github-docs-pr-workflow-mrwakeh0'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/github-docs-pr-workflow-mrwakeh0/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills