Welcome to AIWF (AI Workflow Framework)! This guide will help you get up and running quickly with AIWF and Claude Code.
- Prerequisites
- Quick Start
- Your First Project
- Understanding the Structure
- Essential Commands
- Working with Claude Code
- Best Practices
- Next Steps
Before you begin, ensure you have:
-
Node.js version 14.0.0 or higher
node --version # Should output v14.0.0 or higher -
npm (comes with Node.js)
npm --version
-
Git for version control
git --version
-
Claude Code access (claude.ai/code)
# Install globally (if not already installed)
npm install -g aiwf
# Navigate to your project directory
cd my-project
# Initialize AIWF in your project
aiwf installDuring installation, you'll be prompted to select a language:
? Select your preferred language:
❯ English
한국어 (Korean)
# Check that AIWF directories were created
ls -la .aiwf/
ls -la .claude/commands/aiwf/You should see:
.aiwf/- Project management directory.claude/commands/aiwf/- Claude Code commands.cursor/rules/- Cursor IDE rules (if using Cursor).windsurf/rules/- Windsurf IDE rules (if using Windsurf)
Let's create a simple task management application to demonstrate AIWF workflow.
Open your project in Claude Code and run:
/project:aiwf:initializeClaude will help you set up the project structure and create initial documentation.
/project:aiwf:aiwf_create_prd "Task Manager" "A simple task management app with CRUD operations"This creates:
- Project manifest in
.aiwf/00_PROJECT_MANIFEST.md - Project documentation in
.aiwf/01_PROJECT_DOCS/
/project:aiwf:aiwf_create_milestone_plan "Basic Task Management"Claude will guide you through:
- Defining milestone objectives
- Breaking down into features
- Setting acceptance criteria
- Estimating timeline
Example milestone structure:
## M01: Basic Task Management
### Objectives
- Create, read, update, delete tasks
- Mark tasks as complete
- Filter tasks by status
- Basic UI for task management
### Timeline: 2 weeks/project:aiwf:create_sprints_from_milestone M01This automatically creates sprint directories:
S01_M01_backend_setup/- API and database setupS02_M01_frontend_development/- UI implementationS03_M01_integration_testing/- Testing and polish
# List tasks in current sprint
/project:aiwf:list_tasks S01
# Start a specific task
/project:aiwf:do_task T01_S01Claude will:
- Load task requirements
- Suggest implementation approach
- Help you write code
- Track progress
my-project/
├── .aiwf/ # AIWF project management
│ ├── 00_PROJECT_MANIFEST.md # Central tracking document
│ ├── 01_PROJECT_DOCS/ # Project documentation
│ │ └── OVERVIEW.md
│ ├── 02_REQUIREMENTS/ # Milestone definitions
│ │ └── M01_Basic_Task_Management/
│ ├── 03_SPRINTS/ # Sprint execution
│ │ ├── S01_M01_backend_setup/
│ │ ├── S02_M01_frontend_development/
│ │ └── S03_M01_integration_testing/
│ ├── 04_GENERAL_TASKS/ # Non-sprint tasks
│ ├── 05_ARCHITECTURAL_DECISIONS/ # ADRs
│ └── 99_TEMPLATES/ # Reusable templates
├── .claude/commands/aiwf/ # Claude commands
├── src/ # Your source code
└── package.json # Node.js project file
- Milestones:
M01_,M02_, etc. - Sprints:
S01_M01_,S02_M01_, etc. - Tasks:
T01_S01_,T02_S01_, etc. - Features:
FL001,FL002, etc. - Completed items: Prefix with
X(e.g.,XT01_S01_)
| Command | Description |
|---|---|
/project:aiwf:initialize |
Initialize AIWF in your project |
/project:aiwf:status |
View project status |
/project:aiwf:review |
Comprehensive project review |
| Command | Description |
|---|---|
/project:aiwf:aiwf_create_milestone_plan |
Create a new milestone |
/project:aiwf:create_sprints_from_milestone |
Generate sprints |
/project:aiwf:sprint_status |
Check sprint progress |
| Command | Description |
|---|---|
/project:aiwf:create_task |
Create a new task |
/project:aiwf:do_task |
Work on a specific task |
/project:aiwf:list_tasks |
List tasks in sprint |
/project:aiwf:complete_task |
Mark task as done |
| Command | Description |
|---|---|
/project:aiwf:aiwf_issue_create |
Create GitHub issue |
/project:aiwf:aiwf_pr_create |
Create pull request |
AIWF includes an AI Persona system that optimizes Claude Code's behavior for different development tasks:
| Command | Description |
|---|---|
/project:aiwf:aiwf_persona_architect |
System design and architecture |
/project:aiwf:aiwf_persona_security |
Security-focused development |
/project:aiwf:aiwf_persona_frontend |
Frontend development |
/project:aiwf:aiwf_persona_backend |
Backend development |
/project:aiwf:aiwf_persona_data_analyst |
Data analysis and insights |
| Command | Description |
|---|---|
/project:aiwf:aiwf_yolo |
Autonomous task execution |
/project:aiwf:aiwf_code_review |
Automated code review |
/project:aiwf:aiwf_test |
Run project tests |
/project:aiwf:aiwf_validate_state |
Validate workflow state |
See the AI Personas Guide for detailed information.
| Command | Description |
|---|---|
/project:aiwf:compress_context:aggressive |
Maximum compression |
/project:aiwf:compress_context:balanced |
Balanced compression |
/project:aiwf:compress_context:conservative |
Minimal compression |
Be Specific:
# Good
/project:aiwf:do_task T01_S01
"Implement the POST /api/tasks endpoint with validation"
# Less effective
"Make the API"AIWF's AI Persona system helps Claude Code focus on specific aspects of development:
# For design decisions
/project:aiwf:ai_persona:architect
"Design the database schema for tasks"
# For bug fixing
/project:aiwf:ai_persona:debugger
"Fix the issue where completed tasks still appear as active"
# For documentation
/project:aiwf:ai_persona:documenter
"Create API documentation for the task endpoints"
# For performance optimization
/project:aiwf:ai_persona:optimizer
"Optimize the task query performance"
# For code review
/project:aiwf:ai_persona:reviewer
"Review the authentication module for security issues"Auto-Detection Feature:
# Enable automatic persona switching
/project:aiwf:ai_persona:auto on
# Claude will automatically switch personas based on your task
"Debug the login error" # → Automatically switches to debugger personaCheck Persona Performance:
# View current session metrics
/project:aiwf:ai_persona:status
# Generate performance report
/project:aiwf:ai_persona:report
# Check specific persona statistics
/project:aiwf:ai_persona:stats debuggerFor large codebases:
# Start with overview
/project:aiwf:compress_context:aggressive
"Show me the overall project structure"
# Then focus on specifics
/project:aiwf:compress_context:balanced
"Now let's work on the user authentication module"# Regular status checks
/project:aiwf:status
# Detailed sprint review
/project:aiwf:sprint_status S01
# Feature progress
/project:aiwf:feature_status FL001Always reference features in commits:
git commit -m "feat(FL001): add task creation endpoint"
git commit -m "fix(FL001): validate task title length"
git commit -m "docs(FL001): update API documentation"Keep tasks small and focused:
- ✅ "Implement GET /api/tasks endpoint"
- ✅ "Add pagination to task list"
- ❌ "Build entire API" (too large)
# Daily
/project:aiwf:sprint_status
# Weekly
/project:aiwf:review
# Per milestone
/project:aiwf:milestone_review M01Document as you go:
# After implementing a feature
/project:aiwf:ai_persona:documenter
"Document the task API endpoints we just created"
# Update architecture decisions
/project:aiwf:create_adr "Use PostgreSQL for task storage"Feature-Git Integration:
# Link commits to features automatically
/project:aiwf:install_git_hooksPerformance Monitoring:
// Use built-in performance tools
import { PerformanceBenchmark } from '@aiwf/performance';Team Collaboration:
# Generate team reports
/project:aiwf:team_status_report
# Create shared documentation
/project:aiwf:export_project_docs- Read the Commands Guide for all available commands
- Check out Examples for real-world scenarios
- Review API Reference for programmatic usage
- See Troubleshooting if you encounter issues
- GitHub: github.com/moonklabs/aiwf
- Discord: discord.gg/aiwf
- Discussions: Share your experiences and learn from others
Create custom templates:
# Add your own templates
cp my-template.md .aiwf/99_TEMPLATES/
# Customize personas
echo "Custom rules" > .aiwf/personas/custom.json# Start new task
/project:aiwf:aiwf_create_general_task "Feature Name" # → T001
git checkout -b feature/T001-feature-name
# Work on tasks
/project:aiwf:list_tasks S01
/project:aiwf:do_task T01_S01
# Switch personas
/project:aiwf:ai_persona:architect # Design
/project:aiwf:ai_persona:developer # Code
/project:aiwf:ai_persona:debugger # Debug
/project:aiwf:ai_persona:reviewer # Review
/project:aiwf:ai_persona:documenter # Document
/project:aiwf:ai_persona:optimizer # Optimize
# Persona management
/project:aiwf:ai_persona:auto on # Enable auto-detection
/project:aiwf:ai_persona:status # Check current persona
/project:aiwf:ai_persona:report # Performance report
# Manage context
/project:aiwf:compress_context:aggressive # Overview
/project:aiwf:compress_context:balanced # Normal work
/project:aiwf:compress_context:conservative # Detailed work
# Track progress
/project:aiwf:status # Overall
/project:aiwf:sprint_status S01 # Sprint
/project:aiwf:feature_status FL001 # FeatureYou now have the foundation to effectively use AIWF with Claude Code. Remember:
- Start small - Begin with simple tasks and gradually take on more complex features
- Use the right tools - Leverage personas and compression modes appropriately
- Stay organized - Follow the naming conventions and project structure
- Collaborate - Share your learnings with the community
Happy coding with AIWF! 🚀