agentleFS
riz007riz007/architect-os/skills/aos-generate/SKILL.md

aos-generate

Skill1 starsChanged 7 months agoMITView on GitHub

Multi-agent full-stack feature generator. Dispatches four specialised subagents — Architect, Backend Engineer, Frontend Engineer, Reviewer — to design, generate, and review a complete vertical slice in one pass. Use when user wants to generate a complete feature end-to-end, says "generate the full feature", or needs fullstack scaffolding beyond what /aos-feature provides.

The file

Files
SKILL.md

/aos-generate

Generate a complete full-stack feature using a coordinated chain of specialised agents.

/aos-generate <feature-name> [stack]

Examples

/aos-generate user-management nestjs+vue
/aos-generate order-processing fastapi+react
/aos-generate notifications nestjs+react
/aos-generate product-catalogue fastapi+vue

How it works

/aos-generate dispatches four real subagents in sequence via the Task tool — it does not just role-play them in one context. Each agent runs in its own context and receives the previous agent's output as input:

StepSubagentDefinition
1aos-architectagents/aos-architect.md
2aos-backend-engineeragents/aos-backend-engineer.md
3aos-frontend-engineeragents/aos-frontend-engineer.md
4aos-revieweragents/aos-reviewer.md

Each agent receives the output of the previous as context.

┌─────────────────────────────────────────────────────────┐
│                      /aos-generate                       │
└──────────────────────────┬──────────────────────────────┘
                           │
              ┌────────────▼────────────┐
              │   1. Architecture Agent  │
              │   Plans the feature:     │
              │   • Domain entities      │
              │   • API contract         │
              │   • Data model           │
              │   • Module boundaries    │
              └────────────┬────────────┘
                           │ architecture plan
              ┌────────────▼────────────┐
              │   2. Backend Agent       │
              │   Generates:             │
              │   • DTOs                 │
              │   • Domain entity        │
              │   • Repository interface │
              │   • Service + tests      │
              │   • Controller           │
              │   • Module               │
              └────────────┬────────────┘
                           │ API contract
              ┌────────────▼────────────┐
              │   3. Frontend Agent      │
              │   Generates:             │
              │   • API client module    │
              │   • Data-fetching hook   │
              │   • List component       │
              │   • Form component       │
              │   • Route + types        │
              └────────────┬────────────┘
                           │ complete feature
              ┌────────────▼────────────┐
              │   4. Review Agent        │
              │   Runs /aos-review on    │
              │   all generated files    │
              └─────────────────────────┘

Workflow

Step 1 — Gather requirements

Ask the user:

  1. Feature name (if not provided)
  2. Backend stack: nestjs or fastapi
  3. Frontend stack: vue or react
  4. Brief description: what does this feature do?
  5. Any specific requirements: auth-protected? file uploads? pagination?

Dispatch, don't role-play. For each step below, launch the named subagent with the Task tool, passing the feature name, stack, and the prior step's output. If the subagents are not installed (e.g. skills installed without agents/), fall back to performing each role inline using the same instructions.

Step 2 — Architecture Agent

Launch the aos-architect subagent with the feature name, stack, and description. It returns a structured architecture plan (it writes no code):

## Architecture Plan: <feature-name>

### Domain Model
- Entity: <Name>
  - id: UUID
  - <field>: <type> — <purpose>
  ...

### API Contract
POST   /api/<resources>          — create
GET    /api/<resources>          — list (paginated)
GET    /api/<resources>/:id      — get one
PATCH  /api/<resources>/:id      — update
DELETE /api/<resources>/:id      — delete

### Business Rules
- <rule>: <description>
- <validation>: <when it applies>

### Module Boundaries
- <ModuleName> owns: <entities/logic>
- Depends on: <other modules, if any>

### Data Model
<table/schema definition>

Step 3 — Backend Agent

Launch the aos-backend-engineer subagent with the architecture plan. It generates all backend files with no placeholders in this order:

  1. src/modules/<name>/dto/create-<name>.dto.ts
  2. src/modules/<name>/dto/update-<name>.dto.ts
  3. src/modules/<name>/dto/<name>-response.dto.ts
  4. src/modules/<name>/entities/<name>.entity.ts
  5. src/modules/<name>/repositories/<name>.repository.ts (interface)
  6. src/modules/<name>/services/<name>.service.ts
  7. src/modules/<name>/services/<name>.service.spec.ts
  8. src/modules/<name>/controllers/<name>s.controller.ts
  9. src/modules/<name>/<name>s.module.ts

Rules:

  • Services throw domain errors, not HTTP exceptions
  • Controllers are thin — one line per route
  • @UseGuards(JwtAuthGuard) on all non-public endpoints
  • Tests cover: happy path, not-found, duplicate/conflict, unauthorized
  • No any in TypeScript

Step 4 — Frontend Agent

Launch the aos-frontend-engineer subagent with the API contract from the architecture plan. It generates all frontend files with no placeholders in this order:

  1. src/modules/<name>s/types/<name>.ts
  2. src/modules/<name>s/api/<name>sApi.ts
  3. src/modules/<name>s/hooks/use<Name>s.ts (React) or composables/use<Name>s.ts (Vue)
  4. src/modules/<name>s/hooks/useCreate<Name>.ts / composables/useCreate<Name>.ts
  5. src/modules/<name>s/components/<Name>List.tsx / <Name>List.vue
  6. src/modules/<name>s/components/<Name>Form.tsx / <Name>Form.vue
  7. src/modules/<name>s/index.ts

Rules:

  • API module does HTTP only — no logic
  • Components handle loading, error, and empty states
  • Forms validate before submit
  • No any in TypeScript

Step 5 — Review Agent

Launch the aos-reviewer subagent on all generated files. It reports FAIL/WARN/PASS and fixes every blocking finding in place.

Output

## Generated: <feature-name>

### Architecture
✔ Domain model: <entities>
✔ API contract: <N> endpoints
✔ Business rules: <N> rules defined

### Backend (<stack>)
✔ src/modules/<name>/dto/create-<name>.dto.ts
✔ src/modules/<name>/dto/update-<name>.dto.ts
✔ src/modules/<name>/dto/<name>-response.dto.ts
✔ src/modules/<name>/entities/<name>.entity.ts
✔ src/modules/<name>/repositories/<name>.repository.ts
✔ src/modules/<name>/services/<name>.service.ts
✔ src/modules/<name>/services/<name>.service.spec.ts
✔ src/modules/<name>/controllers/<name>s.controller.ts
✔ src/modules/<name>/<name>s.module.ts

### Frontend (<stack>)
✔ src/modules/<name>s/types/<name>.ts
✔ src/modules/<name>s/api/<name>sApi.ts
✔ src/modules/<name>s/hooks/use<Name>s.ts
✔ src/modules/<name>s/components/<Name>List.tsx
✔ src/modules/<name>s/components/<Name>Form.tsx
✔ src/modules/<name>s/index.ts

### Review
✔ 0 failures · 0 warnings

Next steps:
1. Register <Name>sModule in AppModule
2. Add the <Name>s route to your router
3. Run: npm test src/modules/<name>/

Full reference

See REFERENCE.md for complete generated code examples.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.