Create a Knowledge Draft

Syntax

/knowledge draft <slack-thread-url> [more-thread-urls...] [--repo owner/repo] [--path docs-relative-path] [--jira] [--jira-project KEY_OR_QUOTED_NAME] [--jira-issue-type TYPE] [--confluence] [--confluence-space SPACE] [--confluence-parent PAGE_ID]

One link is required; the configured MAX_THREAD_LINKS limit defaults to 5. Links must be Slack archive thread URLs. --repo overrides the configured GitHub target and is still allowlisted. --path is a safe repository-relative output path. --jira requests an issue after GitHub PR creation. --confluence changes the destination; it cannot be combined with --jira. Space and parent flags override Confluence defaults.

The service fetches all messages (up to Slack’s configured/default fetch behavior), normalizes them, redacts recognizable secrets, generates structured content, stores a pending draft, and posts a preview. No GitHub or Confluence write occurs yet. create-pr accepts the same inputs but also follows this approval workflow despite its legacy name.