aos-implementing-features
Skill1 starsChanged 7 months agoMITView on GitHub
Apply ArchitectOS layering and patterns when adding or changing application code — new endpoints, services, controllers, components, hooks, repositories, DTOs, or domain entities. Use proactively whenever writing a feature, route, module, form, or data-fetching layer, even if the user did not ask for a review. Keeps business logic in services, controllers thin, inputs validated at the boundary, and entities out of API responses.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aos-auditSkill
- aos-ciSkill
- aos-codereviewSkill
- aos-debuggingSkill
- aos-featureSkill
- aos-frontendSkill
- aos-generateSkill
- aos-hardeningSkill
- aos-pragmaticSkill
- aos-qaSkill
- aos-refactorSkill
- aos-reviewSkill
- aos-scaffoldSkill
- aos-setupSkill
- aos-tddSkill
- aos-uxSkill
- aos-vuetifySkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
UI components: never call HTTP directly. They call a hook / composable that calls an API module.
- Distinctive: line 34
Verify resource ownership: before read or mutation (IDOR check).
- Distinctive: line 35
Parameterised queries: only — never string-concatenate SQL.
≈ “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.
Files
Implementing features the ArchitectOS way
This is a model-invoked discipline. When you are about to write or modify feature code, follow these rules before producing the code — not after. They are self-contained here; you do not need the rest of the repo present.
The layering contract
HTTP / UI → Controller / Component → Service (use case) → Repository → DB
(thin) (all business logic) (interface)- Controllers / route handlers delegate in one line. No
if/else, no calculations, no DB calls, no validation logic. Parse request → call service → map result. - Services / use cases hold all business logic. They throw domain errors
(
ConflictError,NotFoundError), never HTTP exceptions. - Repositories are interfaces in the domain layer; implementations live in infrastructure. Services depend on the interface.
- UI components never call HTTP directly. They call a hook / composable that calls an API module. No business logic in components.
Always-on rules
- Validate at the boundary — Zod, class-validator, or Pydantic on every input DTO.
- Never expose entities — return a response DTO; strip password hashes, internal flags.
- No
anyin TypeScript (useunknownor a real type); type hints on all Python defs. - Auth guard on every state-changing or sensitive route.
- Verify resource ownership before read or mutation (IDOR check).
- Parameterised queries only — never string-concatenate SQL.
- Feature-based folders — group by domain (
modules/order/...), not by technical layer. - Tests with the code — at minimum a happy path and one error path per service method. See aos-tdd when the change is behavior-driven.
Target structure (backend)
src/modules/<name>/
dto/ create / update / response DTOs
entities/ domain entity
repositories/ <name>.repository.ts (interface)
services/ <name>.service.ts + <name>.service.spec.ts
controllers/ <name>s.controller.ts (thin)
<name>s.module.tsTarget structure (frontend)
src/modules/<name>s/
api/<name>sApi.ts HTTP only, no logic
hooks/use<Name>s.ts data fetching (React Query / Vue composable)
components/<Name>List.* display
components/<Name>Form.* form
types/<name>.ts
index.ts public surface of the moduleBefore you finish
- Did logic leak into a controller or component? Move it to the service.
- Is every input validated and every output a DTO?
- Are there tests for the error path, not just the happy path?
For an explicit, on-demand generation of a full slice use /aos-feature. For a standards
pass over what you wrote use /aos-review.
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
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.

