Docsbook
← Back to catalog
automationpro_plusrequires Docsbook MCP

docs-stale-watcher

Register a Docsbook content.outdated webhook and generate a GitHub Actions workflow that converts each stale-content notification into a GitHub Issue in the documentation repository. Keeps docs maintenance visible in the team's normal issue triage flow. Requires PRO+ plan.

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-stale-watcher -a claude-code
2. Use
/docs-stale-watcher

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-stale-watcher"

docs-stale-watcher — Turn stale-content events into GitHub Issues

Workflow#

  1. Verify MCP transport — call list_workspaces as a connectivity probe. If it fails, print the MCP connection command and exit gracefully.
  2. Resolve staleness threshold — accept a configurable number of days (default 180). Pages untouched for longer than this threshold will trigger an event.
  3. Generate the handler workflow — produce a GitHub Actions workflow that fires on repository_dispatch with event_type: docsbook.content.outdated. For each page path in the payload, the workflow opens a GitHub Issue linking to the source file and explaining the staleness criterion.
  4. Write the workflow file — place it at .github/workflows/docsbook-stale-handler.yml, creating the directory if needed. Overwrite if the file already exists.
  5. Register the webhook — generate or use the provided HMAC secret and call register_webhook_content_outdated with the target URL pointing to the GitHub repository dispatches endpoint.
  6. Report — print a summary of the workflow path, webhook target, staleness threshold, secret handling instructions, and a note about the backend dependency.

Guardrails#

MCP Tools#

Tool Purpose
list_workspaces Probe MCP transport liveness
register_webhook_content_outdated Register the content.outdated webhook on the workspace

Acceptance Criteria#

View source on GitHub →Browse full catalog repo →
Keywords
staleoutdatedwatcherwebhookissuemaintenancefreshness
MCP tools used
list_workspacesregister_webhook_content_outdated