Add Release Notes Generator workflow with AI-powered categorization#1
Open
Add Release Notes Generator workflow with AI-powered categorization#1
Conversation
Adds a new workflow for generating structured release notes from git commits and tags with automatic categorization. Features: - Automatic categorization (features, bugs, breaking changes, enhancements) - PR number extraction from commit messages - Component detection (API, UI/UX, Database, CLI, etc.) - Professional markdown formatting with emoji indicators - Statistics generation and analytics - /generate command for quick invocation - Conversational mode for guided generation Technical Details: - Uses utility-mcp-server Python package - Automatic tool installation on first use - Outputs to artifacts/release-notes/ - Supports clickable PR/commit links when repo URL provided - Works with conventional commit format Workflow Structure: - .ambient/ambient.json - Workflow configuration - .claude/commands/generate.md - /generate slash command - CLAUDE.md - Persistent context and behavioral guidelines - README.md - User-facing documentation with examples - DEPLOYMENT.md - Complete deployment guide - QUICKSTART.md - Fast-track deployment instructions Output Location: artifacts/release-notes/ Ready for use via Custom Workflow or as official ACP workflow. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Updated release-notes-generator workflow to follow Option B architecture where categorization instructions come from the MCP tool response. ## What Changed ### .ambient/ambient.json - Updated systemPrompt to emphasize following ai_instructions from tool - Changed from "YOU analyze" to "Follow the tool's ai_instructions" - Added example of ai_instructions structure in tool response - Documented process: extract instructions → follow guidelines → apply strategy - Updated startupPrompt to mention embedded instructions ### CLAUDE.md - Updated Architecture section: Tool provides data + instructions - Changed "Your Job" from creating instructions to following them - Updated Process Flow: Shows extracting ai_instructions from response - Updated "Analyze and Categorize" section to reference tool instructions - Changed "Intelligent Categorization Guidelines" to "Follow the Tool's Instructions" - Added code examples showing how to extract and use instructions ### README.md - Updated "How It Works" section to mention embedded instructions - Explained two-part architecture with instructions in tool response - Updated example output to show ai_instructions field - Added benefits of embedded instructions ## Architecture ``` OLD: Instructions hardcoded in workflow files NEW: Instructions embedded in MCP tool response Workflow: 1. Calls generate_release_notes() 2. Extracts ai_instructions from response 3. Follows the tool's guidelines 4. Creates categories per tool's strategy 5. Formats per tool's output_format spec ``` ## Benefits ✅ Instructions version-controlled with tool (single source of truth) ✅ Always in sync with tool capabilities ✅ Consistent across all workflows using the tool ✅ Self-documenting - tool tells AI how to use its data Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
…ate command - Document two modes: AI-Powered (default) and Pre-Formatted (IDE usage) - Remove /generate command reference (not supported by ACP) - Add formatted_output parameter documentation - Explain when to use each mode - Update CLAUDE.md with mode comparison table - Update README.md with advanced features section This aligns with MCP tool v0.2.0 changes that added the formatted_output parameter for direct IDE usage while keeping AI-powered categorization as the default for workflows. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
CRITICAL: Workflow now properly handles GitHub/GitLab authentication
Changes:
- Check for GITHUB_TOKEN and GITLAB_TOKEN from ACP integrations first
- Ask user for token if not found (3 options: provide, skip, or local clone)
- Handle authentication errors gracefully with fallback options
- Never silently fail - always offer alternatives
Token Handling Flow:
1. Check os.getenv('GITHUB_TOKEN') or os.getenv('GITLAB_TOKEN')
2. If found: Use automatically (no user prompt needed)
3. If not found: Ask user for token, proceed without, or use local clone
4. If remote fails: Offer to provide token or clone locally
This ensures:
- ACP integrations work seamlessly
- Users without integrations get clear options
- Private repos can fallback to local cloning
- No silent failures or confusing errors
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new Release Notes Generator workflow to the Ambient Code Platform workflows collection. The workflow uses the utility-mcp-server to fetch git commits and applies AI-powered intelligent categorization to create professional release notes.
Features
AI-Powered Intelligent Categorization
Multi-Platform Support
Automatic Token Handling (CRITICAL)
GITHUB_TOKENandGITLAB_TOKENfrom ACP integrationsTwo Output Modes
Mode 1: AI-Powered (Default - Recommended)
Mode 2: Pre-Formatted (For IDE Testing)
Workflow Files
.ambient/ambient.json
CLAUDE.md
README.md
Token Handling Strategy (Key Feature)
Step 1: Check for ACP Integration Tokens
Step 2: Decision Tree
Step 3: Handle Errors Gracefully
Changes Made
Commit 1d03fc8: Documentation Updates
formatted_outputparameter (two modes)/generatecommand reference (not supported by ACP)Commit 5153ddc: Token Handling Strategy (CRITICAL)
Usage Example
How It Works
Conversational Interface
/generatereference)Token Detection
AI Categorization
ai_instructionsfrom tool responseOutput Example
Benefits
✅ Seamless ACP Integration: Uses tokens from ACP automatically
✅ Smart Token Handling: Never fails silently, always offers options
✅ No Manual Commands: Conversational interface, no
/generateneeded✅ AI-Powered: Intelligent categorization, not regex patterns
✅ Multi-Platform: GitHub, GitLab, and local repos
✅ Two Modes: AI-powered (default) or pre-formatted (IDE testing)
✅ Well-Documented: Comprehensive instructions for AI agent
Testing
Dependencies
Requires:
utility-mcp-server>=0.2.0(MCP tool)Related
Notes for Reviewers
Key Changes to Review:
.ambient/ambient.jsonandCLAUDE.md/generatecommand (not supported by ACP)Why Token Handling is Critical: