DocsbookDocsbook
← Back to catalog
automationprorequires Docsbook MCP

docs-release-announce

Announce new GitHub releases of a Docsbook-tracked repository to Slack and/or email by registering a Docsbook release.published webhook and generating a GitHub Actions handler.

Local install
npx docs-skills install
Try in MCP
@docsbook find_skill "docs-release-announce"

docs-release-announce

Wires up release announcements for a Docsbook workspace. When a new GitHub release is published on the workspace's repository, a notification is dispatched to one or more channels (Slack incoming webhook and/or email via Resend). Requires the Docsbook MCP connected and a PRO (or PRO+) workspace plan.

Arguments#

Check MCP Availability#

Try calling mcp__docsbook__list_workspaces. If it fails or is unavailable, print:

Docsbook MCP not connected. To set it up:
  mcp add --transport http https://docsbook.io/api/mcp/server
Then re-run /docs-release-announce.

Exit gracefully without error.

Step 1 — Register the release.published webhook#

The skill performs two actions, matching plan item B5:

  1. Call mcp__docsbook__register_webhook_release_published with:

    {
      "workspaceId": "<id>",
      "url": "https://api.github.com/repos/<owner>/<repo>/dispatches",
      "secret": "<generated_secret>"
    }
    • Generate a fresh random secret (32+ chars, hex or base64url). Surface it once to the user so they can verify HMAC signatures on the receiving side.
    • If the register_webhook_release_published tool is not exposed by the connected MCP server (Docsbook has not yet shipped release events — see PLAN.md Часть E), fall back to wiring the GitHub Actions workflow directly against GitHub's native release: published event and skip the MCP call. Print a one-line note explaining the fallback.

Step 2 — Generate the handler workflow#

  1. Read the Handlebars template from assets/handler.yml.hbs (sibling of this SKILL.md).

  2. Render it with the following context:

    • channels — array of selected channels (e.g. ["slack", "email"]).
    • slack — boolean, true if slack is in channels.
    • email — boolean, true if email is in channels.
    • email_to — the email argument when provided.
  3. Write the rendered result to .github/workflows/docsbook-release-announce.yml in the current repository. Create the .github/workflows/ directory if it does not exist. Overwrite the file if it already exists.

The generated workflow is triggered on release: published and dispatches messages to the configured channels using repository secrets:

Print a summary including the path of the generated file, the selected channels, and the secret names that must be configured under repository settings → Secrets and variables → Actions.

View source on GitHub →Browse full catalog repo →
Keywords
releaseannounceslackemailwebhook
MCP tools used
register_webhook_release_published