Automatically generate tasks from user stories with smart templates
npm install @sppg2001/atomize





Break down stories, build up velocity.
Atomize is a CLI tool that automatically generates granular tasks from user stories using YAML templates. Streamline your agile workflow with AI-powered task breakdowns, preset templates, and smart estimation distribution.
---
- ๐ค AI-Powered Generation - Create templates using Google Gemini or local Ollama (completely free)
- ๐ Preset Templates - Start with battle-tested templates for common workflows
- ๐ง Story Learning - Generate templates by analyzing your existing work items
- ๐ฏ Smart Estimation - Automatically distribute story points across tasks
- ๐ Azure DevOps Integration - Native support with more platforms coming soon
- โก Zero Config - Works out of the box with sensible defaults
- ๐จ Interactive Wizards - User-friendly prompts guide you through everything
- โ
Built-in Validation - Catch template errors before they cause problems
---
``bash`
npm install -g @sppg2001/atomize
`bash`
npx @sppg2001/atomize --help
`bash`
git clone https://github.com/Simao-Pereira-Gomes/atomize.git
cd atomize
bun install
bun run dev
---
`bashUse a preset template
atomize generate templates/backend-api.yaml
$3
`bash
AI-powered creation (free!)
atomize template create --ai "Backend API with authentication"From a preset
atomize template create --preset backend-apiLearn from an existing story
atomize template create --from-story STORY-123Step-by-step wizard
atomize template create --scratch
`$3
`bash
atomize validate templates/my-template.yaml
`---
๐ Usage Guide
$3
The
generate command creates tasks in your work item management system based on a template.`bash
Basic usage
atomize generate templates/backend-api.yamlWith options
atomize generate templates/backend-api.yaml \
--platform azure-devops \
--execute \
--verboseDry run (preview only)
atomize generate templates/backend-api.yaml --dry-run
`Options:
-
--platform - Platform to use (azure-devops, mock)
- --execute - Actually create tasks (default is dry-run)
- --dry-run - Preview without creating tasks
- --continue-on-error - Keep processing if errors occur
- --verbose - Show detailed outputExample Output:
`
โ Loaded template: Backend API Development
โ Found 3 matching user stories
โ Generated 18 tasks (6 per story)
โ Created 18 tasks in Azure DevOpsSummary:
Stories processed: 3
Tasks created: 18
Execution time: 2.3s
`$3
#### Create a Template
`bash
AI-powered (best for quick starts)
atomize template create --ai "Create template for React component development"From preset (fastest)
atomize template create --preset frontend-featureLearn from story (best for matching your workflow)
atomize template create --from-story STORY-456 --platform azure-devopsInteractive wizard (most control)
atomize template create --scratch
`#### List Available Presets
`bash
atomize template list
`Available Presets:
-
backend-api - Backend API with database integration
- frontend-feature - React/Vue UI component development
- bug-fix - Bug investigation and resolution workflow
- fullstack - Complete full-stack feature#### Validate a Template
`bash
atomize validate templates/my-template.yamlWith detailed output
atomize validate templates/my-template.yaml --verbose
`---
๐๏ธ Template Structure
Templates are YAML files that define how to break down user stories into tasks.
$3
`yaml
version: "1.0"
name: "Backend API Development"
description: "Standard backend API workflow"Which stories to process
filter:
workItemTypes: ["User Story"]
states: ["New", "Active"]
tags:
include: ["backend", "api"]
excludeIfHasTasks: trueTask breakdown
tasks:
- title: "Design API Endpoints: ${story.title}"
description: "Design REST API endpoints and schemas"
estimationPercent: 15
activity: "Design"
tags: ["design", "api"] - title: "Implement Core Logic: ${story.title}"
description: "Implement business logic and validation"
estimationPercent: 40
activity: "Development"
tags: ["implementation"]
- title: "Write Tests"
description: "Unit and integration tests"
estimationPercent: 30
activity: "Testing"
tags: ["testing"]
- title: "Code Review & Documentation"
description: "Review and document the implementation"
estimationPercent: 15
activity: "Documentation"
tags: ["review", "docs"]
Estimation settings
estimation:
rounding: "nearest"
minimumTaskPoints: 0.5Validation rules
validation:
totalEstimationMustBe: 100
minTasks: 3
maxTasks: 10
`$3
#### Variable Interpolation
Use story data in task titles and descriptions:
-
${story.title} - Story title
- ${story.id} - Story ID
- ${story.description} - Story description#### Task Assignment
`yaml
assignTo: "@ParentAssignee" # Inherit from story
assignTo: "@Me" # Current user
assignTo: "user@email.com" # Specific user
`#### Conditional Tasks
`yaml
- title: "Security Review"
estimationPercent: 10
condition: '${story.tags} CONTAINS "security"'
`#### Task Dependencies
`yaml
tasks:
- id: "design"
title: "Design Phase"
estimationPercent: 20 - id: "implement"
title: "Implementation"
estimationPercent: 60
dependsOn: ["design"] # Must complete design first
`---
๐ค AI-Powered Template Creation
Atomize supports two free AI providers for template generation:
$3
1. Get a free API key: https://makersuite.google.com/app/apikey
2. Set environment variable:
`bash
export GOOGLE_AI_API_KEY="your-key-here"
`
3. Create templates:
`bash
atomize template create --ai "Backend API with OAuth authentication"
`$3
1. Install Ollama: https://ollama.ai
2. Download a model:
`bash
ollama pull llama3.2
`
3. Start the service:
`bash
ollama serve
`
4. Create templates:
`bash
atomize template create --ai-provider ollama --ai "Mobile-first React component"
`$3
- Be specific: "Backend API with JWT auth, rate limiting, and PostgreSQL"
- Mention your tech stack: "React component with TypeScript and Tailwind CSS"
- Specify testing requirements: "Include unit tests and E2E tests"
- Refine iteratively: Use the refine option to adjust the generated template
---
๐ Platform Setup
$3
1. Get a Personal Access Token (PAT)
- Go to:
https://dev.azure.com/[your-org]/_usersSettings/tokens
- Create token with Work Items (Read, Write) scope2. Configure Environment Variables
`bash
export AZURE_DEVOPS_ORG_URL="https://dev.azure.com/your-org"
export AZURE_DEVOPS_PROJECT="YourProject"
export AZURE_DEVOPS_PAT="your-personal-access-token"
`3. Or Use Interactive Setup
`bash
atomize generate templates/backend-api.yaml
# CLI will prompt for configuration
`$3
`bash
atomize generate templates/backend-api.yaml --platform mock
`---
Real-World Examples
$3
Story: "As a user, I want to reset my password via email"
Generated Tasks:
1. Design password reset flow and email templates (1.5 pts)
2. Implement password reset endpoint (3.5 pts)
3. Create email service integration (1.5 pts)
4. Write unit and integration tests (2 pts)
5. Add API documentation (0.5 pts)
6. Security review and rate limiting (1 pt)
Total: 10 story points perfectly distributed
๐ ๏ธ Advanced Usage
$3
Filter stories with precise criteria:
`yaml
filter:
workItemTypes: ["User Story", "Bug"]
states: ["New", "Approved"]
tags:
include: ["backend"]
exclude: ["deprecated"]
areaPaths: ["MyProject\\Backend\\API"]
iterations: ["Sprint 23", "Sprint 24"]
assignedTo: ["john@company.com", "jane@company.com"]
priority:
min: 1
max: 2
excludeIfHasTasks: true
`$3
`yaml
estimation:
strategy: "percentage" # Distribute story points by percentage
rounding: "nearest" # nearest, up, down, none
minimumTaskPoints: 0.5 # Minimum points per task
`$3
`bash
Analyze a story and create a template
atomize template create --from-story STORY-123With percentage normalization
atomize template create --from-story STORY-123 --normalizeKeep original percentages
atomize template create --from-story STORY-123 --no-normalize
`---
๐งช Testing
`bash
Run all tests
bun testRun specific test suite
bun test tests/unit/atomizer.test.tsRun with coverage
bun test --coverageWatch mode
bun test --watch
`$3
`bash
Clone the repository
git clone https://github.com/Simao-Pereira-Gomes/atomize.git
cd atomizeInstall dependencies
bun installRun in development mode
bun run devRun tests
bun testBuild
bun run build
`---
๐ Roadmap
$3
- [x] Core task generation engine
- [x] Azure DevOps integration
- [x] AI-powered template creation
- [x] Preset templates
- [x] Story learning
- [x] Interactive wizards$3
- [ ] GitHub Issues integration
- [ ] Jira integration
- [ ] VS Code extension$3
- [ ] Multi-story batch processing
- [ ] Custom estimation formulas
- [ ] Template inheritance
- [ ] Workflow automation
- [ ] Analytics dashboard---
๐ Troubleshooting
$3
"Not authenticated" error
`bash
Make sure environment variables are set
echo $AZURE_DEVOPS_PATOr use interactive mode
atomize generate --interactive
`"Template validation failed"
`bash
Check your template
atomize validate templates/my-template.yaml --verboseCommon issues:
- Total estimation must equal 100%
- Task dependencies reference non-existent IDs
- Missing required fields
`AI provider not available
`bash
For Gemini
export GOOGLE_AI_API_KEY="your-key"For Ollama
ollama serve # Must be running
ollama pull llama3.2 # Model must be downloaded
``---
MIT License - see LICENSE file for details
- ๐ Report a Bug
- ๐ก Request a Feature
- ๐ฌ Discussions