Recommended Workflow
Once AIOS is installed, use this workflow to keep the agent grounded in explicit context and verifiable tasks.
1. Initialize Or Adopt A Workspace
Section titled “1. Initialize Or Adopt A Workspace”For a new project, run the guided setup wizard:
aiosChoose a project shape and use full setup for the complete .aios/ workflow kit.
For an existing project, run:
aios adoptaios validateadopt adds AIOS files without overwriting existing files.
2. Define The Product Vision
Section titled “2. Define The Product Vision”Open your AI coding agent and route it to product discovery. The agent should interview you and fill docs/product/vision.md.
Example:
“I want to build a habit tracker where users can log in, add habits, check them off daily, and see a streak counter. Use React and Tailwind.”
Prompt:
“Please use the
product-discoveryskill. Interview me if needed, then filldocs/product/vision.mdwith the problem, users, MVP scope, non-goals, success metrics, assumptions, constraints, and open questions.”
Review the vision before generating the PRD. Make sure the MVP is small enough and the target user is clear.
3. Generate Or Refine The PRD
Section titled “3. Generate Or Refine The PRD”Open your AI coding agent in the IDE and route it to the PRD skill:
“Please read
docs/product/vision.mdand run theprd-generatorskill to createdocs/product/prd.md. Ask clarification questions first if the vision is still too thin.”
Review the PRD manually. Make sure the target users, scope, non-goals, and acceptance criteria match what you actually want to build.
4. Record Architecture And Interface Decisions
Section titled “4. Record Architecture And Interface Decisions”Create architecture and ADR documents before implementation:
aios create adr "Use Next.js and Supabase"Instruct your AI:
“Fill out the new ADR in
docs/adr/explaining why this stack fits the PRD. Include trade-offs, alternatives, and consequences.”
For user-facing UI, create a design document before frontend tasks:
aios create design "Habit reminders"Instruct your AI:
“Use the
ui-ux-designskill to fill the design document. Cover user flow, screens, interface states, accessibility, data dependencies, and frontend task guidance. Do not implement code yet.”
For app integrations, create the API contract before backend or client integration tasks:
aios create openapi "Habit API"5. Break Work Into Tasks
Section titled “5. Break Work Into Tasks”Avoid asking the agent to build the whole app at once. Create small task files:
aios create task "Setup Next.js boilerplate and Tailwind"aios create task "Create Supabase database schema"aios create task "Build Login UI"Each task should include scope, acceptance criteria, context links, risks, and validation steps.
If the task is UI-facing, link the relevant design document. If it depends on backend integration, link the OpenAPI contract or API notes.
6. Implement One Task At A Time
Section titled “6. Implement One Task At A Time”Open the first task file, then instruct the agent:
“Please implement task 001. Read the task file, use implementation-planner before editing, then use task-implementation to make the change, validate acceptance criteria, and update the task Done Summary when complete.”
Keep the request narrow. If the agent needs more context, point it to a specific document instead of asking it to read the whole repo.
7. Review And Validate
Section titled “7. Review And Validate”After implementation, do not blindly commit the result.
-
Create a review document:
Terminal window aios create review "Setup Next.js" -
Ask the agent to review against the task:
“Run a self-review of the code you just wrote against the acceptance criteria in task 001. Fill out the review document.”
- Run the relevant tests or manual validation.
- Record evidence before marking the task done.
8. Ask For The Next Step
Section titled “8. Ask For The Next Step”Use aios next when you are unsure what to do next:
aios nextThe command is read-only. It inspects the project structure and recommends a next step based on the docs and workflow files that exist.