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

aos-setup

Skill1 starsChanged 7 months agoMITView on GitHub

One-time setup that configures ArchitectOS for the current project. Detects the stack, writes AI tool configs (.cursorrules, .windsurfrules, copilot-instructions.md), and shows which commands are available. Use when user runs /aos-setup, opens a new project, or wants ArchitectOS standards applied to their codebase.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run once when starting a project or adding ArchitectOS to an existing one.

    line 8
  2. Distinctive:

    Look for stack indicators, then confirm with the user:

    line 21
  3. Distinctive:

    Write that (expanded for the detected stack) into each selected tool's config file.

    line 55
  4. Distinctive:

    Never modify existing source files — only write config files.

    line 76
  5. Very specific:

    If .architect-os.json already exists, ask whether to update it or just refresh AI tool configs.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/aos-setup

Run once when starting a project or adding ArchitectOS to an existing one.

What it does

  1. Detects your stack from existing files (package.json, pyproject.toml, etc.)
  2. Asks which AI tools you use
  3. Writes the right config files for each tool
  4. Prints your playbook and available commands

Workflow

Step 1 — Detect or ask about the stack

Look for stack indicators, then confirm with the user:

  • Frontend: Vue 3, React, Angular, or none?
  • Backend: NestJS, FastAPI, Node.js, Java, or none?
  • AI tools: Cursor, Windsurf, GitHub Copilot, Aider, Continue.dev?

Step 2 — Write .architect-os.json

{
  "stack": { "frontend": "vue", "backend": "nestjs" },
  "version": "1.0.0"
}

Step 3 — Install AI tool configs

Tool selectedFile written
Cursor.cursorrules
Windsurf.windsurfrules
GitHub Copilot.github/copilot-instructions.md
Aider.aider.conf.yml

Content for each file comes from the matching file in prompts/ if the ArchitectOS repo is checked out. When installed as a standalone skill (no prompts/ directory present), generate the config content yourself from CONTEXT.md and the non-negotiables below — do not fail or skip the step:

Follow ArchitectOS conventions. Logic lives in services; controllers/components stay thin. Validate inputs at the boundary and return DTOs, never entities. Auth guard + ownership check on sensitive routes. Parameterised queries only. No any in TypeScript; type hints on every Python def. Feature-based folders. Tests cover error paths, not just happy paths.

Write that (expanded for the detected stack) into each selected tool's config file.

Step 4 — Print summary

✔ Stack: Vue 3 + NestJS
✔ Cursor rules written → .cursorrules
✔ Windsurf rules written → .windsurfrules

Playbook: playbooks/vue/README.md + playbooks/nestjs/README.md
Standards: standards/

Available commands:
  /aos-scaffold  — start a new project from a template
  /aos-review    — review code against ArchitectOS standards
  /aos-feature   — generate a feature (service + controller + tests)
  /aos-audit     — security audit

Notes

  • Never modify existing source files — only write config files.
  • If .architect-os.json already exists, ask whether to update it or just refresh AI tool configs.

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.