Skip to content

Recommended Workflow

Once AIOS is installed, use this workflow to keep the agent grounded in explicit context and verifiable tasks.

For a new project, run the guided setup wizard:

Terminal window
aios

Choose a project shape and use full setup for the complete .aios/ workflow kit.

For an existing project, run:

Terminal window
aios adopt
aios validate

adopt adds AIOS files without overwriting existing files.

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-discovery skill. Interview me if needed, then fill docs/product/vision.md with 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.

Open your AI coding agent in the IDE and route it to the PRD skill:

“Please read docs/product/vision.md and run the prd-generator skill to create docs/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:

Terminal window
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:

Terminal window
aios create design "Habit reminders"

Instruct your AI:

“Use the ui-ux-design skill 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:

Terminal window
aios create openapi "Habit API"

Avoid asking the agent to build the whole app at once. Create small task files:

Terminal window
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.

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.

After implementation, do not blindly commit the result.

  1. Create a review document:

    Terminal window
    aios create review "Setup Next.js"
  2. 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.”

  1. Run the relevant tests or manual validation.
  2. Record evidence before marking the task done.

Use aios next when you are unsure what to do next:

Terminal window
aios next

The command is read-only. It inspects the project structure and recommends a next step based on the docs and workflow files that exist.