Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: add AI-assisted description generation for Slack sharing#212

Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
feat/ai-slack-description-generationbreaking-brake/cc-wf-studio:feat/ai-slack-description-generationCopy head branch name to clipboard
Dec 3, 2025
Merged

feat: add AI-assisted description generation for Slack sharing#212
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
feat/ai-slack-description-generationbreaking-brake/cc-wf-studio:feat/ai-slack-description-generationCopy head branch name to clipboard

Conversation

@breaking-brake
Copy link
Copy Markdown
Owner

Problem

When sharing workflows to Slack, users must manually write descriptions for each share. This is time-consuming and inconsistent, especially for complex workflows.

Current Behavior

  1. User opens Slack share dialog
  2. ❌ User must manually type description or leave it empty

Expected Behavior

  1. User opens Slack share dialog
  2. ✅ User can click "Generate with AI" to auto-generate a description based on workflow content

Solution

Add an AI-assisted description generation feature that uses Claude Code CLI to analyze the workflow JSON and generate a concise description in the user's current UI language.

Changes

New File: src/extension/commands/slack-description-generation.ts

  • Main handler for AI description generation
  • Uses nano-spawn to execute Claude Code CLI
  • Supports 5 languages (en, ja, ko, zh-CN, zh-TW)
  • Generates 100-200 char descriptions (max 500)

File: src/extension/commands/open-editor.ts

  • Added routing for GENERATE_SLACK_DESCRIPTION message

File: src/shared/types/messages.ts

  • Added payload types for request/success/failed messages

File: src/webview/src/components/dialogs/SlackShareDialog.tsx

  • Added "Generate with AI" text button next to description label
  • Shows IndeterminateProgressBar during generation
  • Button changes to "Cancel" (red) during generation
  • Supports cancellation of in-progress requests

File: src/webview/src/services/slack-integration-service.ts

  • Added generateSlackDescription() function
  • Added AIGenerationError class

Files: Translation files (5 languages)

  • Added 3 new translation keys for the feature

Impact

  • UX: Users can quickly generate meaningful descriptions with one click
  • Breaking changes: None
  • Side effects: Requires Claude Code CLI installed locally

Testing

  • Manual E2E testing completed
    • Generate description for simple workflow
    • Generate description for complex workflow
    • Cancel during generation
    • Error handling when CLI unavailable
  • Code quality checks passed (format, lint, check, build)

🤖 Generated with Claude Code

- Add "Generate with AI" button in Slack share dialog
- Use Claude Code CLI to analyze workflow and generate description
- Support cancel during generation with progress indicator
- Localize for all 5 languages (en, ja, ko, zh-CN, zh-TW)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@breaking-brake breaking-brake merged commit f41908d into main Dec 3, 2025
3 checks passed
@breaking-brake breaking-brake mentioned this pull request Dec 3, 2025
github-actions Bot added a commit that referenced this pull request Dec 3, 2025
## [3.1.0](v3.0.0...v3.1.0) (2025-12-03)

### Features

* add AI-assisted description generation for Slack sharing ([#212](#212)) ([f41908d](f41908d))

### Code Refactoring

* clean up unused scope validation methods in SlackTokenManager ([#210](#210)) ([5c4c188](5c4c188)), closes [#172](#172)
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 3, 2025

🎉 This PR is included in version 3.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@breaking-brake breaking-brake deleted the feat/ai-slack-description-generation branch December 3, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.