Skip to main content

Overview

AIOX uses a story-driven development approach where all work starts from a story file in docs/stories/. This ensures traceability, consistent quality, and clear acceptance criteria.

Story-Driven Development

Core Principle

Every feature, bug fix, or enhancement begins with a story. Stories provide:
  • Clear requirements - Acceptance criteria define what “done” means
  • Task tracking - Checkboxes track progress
  • Traceability - Link code changes to requirements
  • Context - Maintain understanding across sessions

Story Structure

The Story Development Cycle

Phase 1: Story Creation

Agent: @sm (Scrum Master)
The SM will:
  1. Ask about the feature/requirement
  2. Create a story file in docs/stories/
  3. Define acceptance criteria
  4. Break down into tasks

Phase 2: Story Validation

Agent: @po (Product Owner)
The PO runs a 10-point validation checklist:
  1. Story ID is unique and follows convention
  2. Title is clear and descriptive
  3. Description explains “what” and “why”
  4. Acceptance criteria are testable
  5. Tasks are well-defined
  6. Dependencies are documented
  7. Risks are identified
  8. Estimate is reasonable
  9. Story is properly sized
  10. Story aligns with product goals

Phase 3: Implementation

Agent: @dev (Developer)
Dex will:
  1. Read the story file
  2. Implement code according to acceptance criteria
  3. Write tests for each criterion
  4. Update checkboxes as tasks complete: [ ][x]
  5. Update the File List section
  6. Change story status to “Ready for Review”

Phase 4: QA Review

Agent: @qa (Quality Assurance)
Quinn will:
  1. Run all quality gates (lint, typecheck, tests)
  2. Verify test coverage meets threshold (80%+)
  3. Check acceptance criteria are met
  4. Review code quality and patterns
  5. Validate error handling

Phase 5: Git Operations

Agent: @devops (DevOps)
Felix will:
  1. Stage changes
  2. Create commit with story reference
  3. Push to remote
  4. Create pull request if needed
Note: Only @devops has push authority in AIOX.

Daily Development Workflow

Starting Your Day

During Development

Before Committing

End of Day

Working with Tasks

Task Categories

Executing Tasks

Task-First Architecture

Tasks are the primary entry point. Everything in AIOX is a task.

Working with Workflows

Available Workflows

Running Workflows

Workflow State

Workflows persist state across sessions in .aiox/{instance-id}-state.yaml:

Agent Collaboration

Command Authority

Each command has exactly one authoritative agent owner:

Agent Handoffs

Typical handoff sequence:

Code Quality Standards

Pre-commit Checks

Before every commit, these checks run automatically:

Coverage Requirements

  • Minimum: 80% overall coverage
  • Statements: 80%
  • Branches: 75%
  • Functions: 80%
  • Lines: 80%

Code Style

Follow the coding standards in .aiox-core/framework/coding-standards.md:
  • Use absolute imports
  • Follow TypeScript strict mode
  • Write descriptive variable names
  • Add JSDoc comments for public APIs
  • Keep functions small and focused

Story Status Management

Status Flow

Status Definitions

Updating Status

Best Practices

Story Creation

  1. Keep stories small - 1-3 days of work maximum
  2. Clear acceptance criteria - Must be testable
  3. Include “why” - Document the business value
  4. Link dependencies - Reference related stories

Implementation

  1. Work from the story - Read it before coding
  2. Update as you go - Check off tasks immediately
  3. Test each criterion - One test per acceptance criterion
  4. Update file list - Track all changed files

Quality

  1. Run checks frequently - Don’t wait for pre-commit
  2. Fix issues immediately - Don’t accumulate technical debt
  3. Review your own code - Before requesting @qa review
  4. Write meaningful tests - Not just for coverage

Collaboration

  1. Use the right agent - Follow command authority
  2. Clear handoffs - Document what’s ready for next agent
  3. Ask questions - Use *help when unsure
  4. Document decisions - Keep notes in story file

Troubleshooting

Story Validation Fails

Quality Gate Fails

Agent Not Responding

  1. Verify agent file exists: ls .aiox-core/development/agents/
  2. Sync IDE: npm run sync:ide
  3. Restart IDE/CLI session
  4. Check agent syntax: *help

Next Steps

  • Git Workflow Guide - Learn the multi-layer validation system
  • Quality Gates Guide - Deep dive into quality assurance
  • Custom Workflows - Create your own workflows
  • Squad Development - Build domain-specific extensions