Docsbook
← Back to catalog
automationprorequires Docsbook MCP

docs-enable-translation

Enable AI auto-translation for a Docsbook workspace across up to 15 languages in one command. Validates inputs, checks the workspace plan, enables the requested languages, switches translation mode to auto, and optionally registers a Slack webhook that fires when each translation batch completes. 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-enable-translation -a claude-code
2. Use
/docs-enable-translation

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-enable-translation"

docs-enable-translation — Enable AI auto-translation via Docsbook MCP

Workflow#

  1. Verify MCP transport — call list_workspaces as a connectivity probe. If it fails, print the MCP connection command and exit gracefully without error.
  2. Validate inputs — confirm the language list is non-empty and contains only codes from the 15 supported languages. If a Slack webhook URL is provided, confirm it is a valid https://hooks.slack.com/ URL.
  3. Check plan — read the workspace plan via get_workspace. If the plan is below PRO, stop and print an upgrade prompt. Do not proceed to write any settings.
  4. Enable languages — call update_languages with the validated language set.
  5. Switch translation mode — call set_translation_mode with mode: auto so Docsbook translates new and changed pages on every push.
  6. Register Slack webhook (optional) — if a Slack URL was provided, generate a random HMAC secret and call register_webhook_translation_completed. Surface the secret to the user once.
  7. Update AGENTS.md — append or replace a managed ## Docsbook Translation section in AGENTS.md documenting the enabled languages, mode, and notification status.
  8. Report — print a summary of what was applied and next steps.

Guardrails#

MCP Tools#

Tool Purpose
list_workspaces Probe MCP transport liveness
get_workspace Read workspace plan and current settings
update_languages Enable the requested language set
set_translation_mode Switch mode to auto
register_webhook_translation_completed Wire Slack notification on batch completion

Acceptance Criteria#

View source on GitHub →Browse full catalog repo →
Keywords
translatei18nmultilanglocalizationauto-translation
MCP tools used
list_workspacesget_workspaceupdate_languagesset_translation_moderegister_webhook_translation_completed