Automatically generate feature specs when a label is added to an issue, with full context from the codebase.
spec-draft
—and responds by generating a detailed feature specification using an autonomous agent.
This workflow includes context from the actual repository, allowing the agent to analyze relevant files, understand dependencies, and surface potential risks or integration points.
Open the Use Cases page
Use Cases
, then select Create Use Case
.Name your Use Case
Spec Draft from Issue
or Label-Based Spec Generator
.Edit the Trigger block
Select Label Added
Issue Label Added
as the trigger type.Set the Label Condition
spec-draft
.Configure delay (optional)
Add the Clone Repo block
Clone Repo
to the canvas and connect it to the trigger node.Configure the repo and branch
{{trigger.repository.name}}
{{trigger.repository.defaultBranch}}
Set the alias
project-repo
to help the agent refer to it in natural language.Agent Session
block to generate the spec from the issue context and the codebase, and be able to have a conversation with the agent on the results.
Add the Agent Session block
agent.session
onto the canvas and connect it to the Clone Repo
block.Assign the Spec Writer Agent
Product Manager
agent.Configure the instructions
Create a new issue
Add the trigger label
spec-draft
label to activate the workflow.Review the spec comment
Save the spec as a Markdown file
.md
file in a designated folder in your documentation repo or opens a PR.Request stakeholder feedback
Automatically create tasks
spec-draft
label is added