Docsbook
← Back to catalog
automationfree

docs-pr-check

Add a CI gate to every pull request that checks whether code changes are accompanied by documentation updates, validates frontmatter in changed markdown files, and detects broken internal links. Generates a ready-to-use GitHub Actions workflow file.

Install & use this skill

Pick your AI client — install this single skill and call it.

1. Install
npx skills add Docsbook-io/docs-skills --skill docs-pr-check -a claude-code
2. Use
/docs-pr-check

Invoke as a slash command in chat.

Or: runtime discovery via Docsbook MCP

Already connected to the Docsbook MCP server? Skip install — ask your agent to load this skill on demand.

@docsbook find_skill "docs-pr-check"

docs-pr-check — CI gate for documentation hygiene on pull requests

Generates a GitHub Actions workflow that runs on every pull request and enforces three documentation quality checks: code-to-docs change ratio, frontmatter validity, and internal link integrity.

Workflow#

  1. Receive configuration — accept the block_on_broken_links flag (default false) that controls whether broken links fail the build or are reported as warnings only.
  2. Render the workflow file — produce a GitHub Actions workflow configured with the supplied settings. The workflow triggers on pull_request and runs three jobs.
  3. Write to the repository — place the workflow at .github/workflows/docsbook-docs-check.yml, creating the directory if it does not exist. Overwrite if the file already exists.
  4. Report — print the output path, the effective block_on_broken_links value, and a reminder to commit and open a PR to activate the check.

Guardrails#

Acceptance Criteria#

View source on GitHub →Browse full catalog repo →
Keywords
prcigithub-actionslintfrontmatterbroken-links