@ludecker/aaac 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/package.json +1 -1
- package/src/cli.mjs +10 -9
- package/templates/cursor/rules/aaac-enforcement.mdc +2 -2
- package/templates/cursor/skills/shared/governance/implementation/SKILL.md +2 -2
- package/templates/docs/agentic_architecture.md +11 -6
- package/templates/docs/architecture.md +44 -2
- package/templates/docs/master_rules.md +26 -2
package/README.md
CHANGED
|
@@ -24,14 +24,16 @@ npx @ludecker/aaac@latest init --yes --dir /path/to/your/repo
|
|
|
24
24
|
|
|
25
25
|
## What you get
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Works **out of the box** after `init` — open in Cursor and run commands. No post-install setup.
|
|
28
|
+
|
|
29
|
+
- `.cursor/hooks.json` — Run lifecycle and edit enforcement (installed with the project)
|
|
28
30
|
- `.cursor/aaac/` — ontology, graph, lifecycle, run model, enforcement
|
|
29
31
|
- `.cursor/skills/shared/` — full pipeline (discovery → execute → verify → report)
|
|
30
32
|
- `.cursor/agents/` — 13 generic subagent specs
|
|
31
33
|
- `.cursor/commands/` — ~130 generated slash commands
|
|
32
|
-
- `docs
|
|
34
|
+
- `docs/` — ready-to-use `master_rules.md`, `architecture.md`, and `agentic_architecture.md`
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
Optional later: add **domains** under `.cursor/domains/<slug>/` (see maintainer appendix in `agentic_architecture.md`).
|
|
35
37
|
|
|
36
38
|
## Regenerate
|
|
37
39
|
|
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -86,20 +86,21 @@ async function cmdInit(args) {
|
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
console.log(`
|
|
89
|
-
|
|
89
|
+
Agentic OS is ready.
|
|
90
90
|
|
|
91
91
|
.cursor/ → ${cursorDest}
|
|
92
92
|
docs/ → ${docsDest}
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
1. Enable Cursor Hooks (Settings → Hooks) and restart Cursor
|
|
96
|
-
2. Open the project in Cursor
|
|
97
|
-
3. Create ${options.docsRoot}/master_rules.md and ${options.docsRoot}/architecture.md if missing
|
|
98
|
-
4. Try /review-architecture or /check-architecture
|
|
99
|
-
5. Read ${options.docsRoot}/agentic_architecture.md — Part 2 for adding domains
|
|
94
|
+
Open this project in Cursor and use any command, for example:
|
|
100
95
|
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
/create-module api "Add health check endpoint"
|
|
97
|
+
/fix-module auth "Session expires too soon"
|
|
98
|
+
/review-architecture system "Check structure"
|
|
99
|
+
|
|
100
|
+
No setup required after install. Rules and architecture docs are already in place.
|
|
101
|
+
To go deeper later, read ${options.docsRoot}/agentic_architecture.md (Part 2 — optional).
|
|
102
|
+
|
|
103
|
+
Regenerate commands after ontology edits:
|
|
103
104
|
npx @ludecker/aaac@latest generate
|
|
104
105
|
`);
|
|
105
106
|
}
|
|
@@ -11,8 +11,8 @@ Every AAAC slash command (`/fix-module`, `/update-module`, `/write-article`, …
|
|
|
11
11
|
|
|
12
12
|
## Prerequisites
|
|
13
13
|
|
|
14
|
-
1. **
|
|
15
|
-
2. **Registry current** — `
|
|
14
|
+
1. **Project opened in Cursor** — `.cursor/hooks.json` is installed by `init`; hooks run when the project is open
|
|
15
|
+
2. **Registry current** — after ontology edits: `npx @ludecker/aaac@latest generate`
|
|
16
16
|
|
|
17
17
|
## Hook behavior (automatic)
|
|
18
18
|
|
|
@@ -48,6 +48,6 @@ Direction: **Input → State → Logic → Output**. No circular imports across
|
|
|
48
48
|
|
|
49
49
|
---
|
|
50
50
|
|
|
51
|
-
## Project overlay
|
|
51
|
+
## Project overlay (optional)
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
Generic rules ship in `{{DOCS_ROOT}}/master_rules.md` and work without edits. When you outgrow defaults, extend those docs or add a `skills/<project>/implementation/` skill and wire it in `graph.project.yaml`.
|
|
@@ -52,16 +52,21 @@ AAAC generates ~130 commands from **8 verbs × 12 objects**:
|
|
|
52
52
|
| `release-app` | Phased release swarm (git → deploy) |
|
|
53
53
|
| `fix-module` / `fix-bug` | Full fix swarm — domain optional until you add resolvers |
|
|
54
54
|
|
|
55
|
-
###
|
|
55
|
+
### Out of the box — no setup after install
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
Install copies everything you need. Open the project in Cursor and run commands.
|
|
58
|
+
|
|
59
|
+
- ~130 slash commands and the full shared pipeline (discover → plan → execute → verify → report)
|
|
60
|
+
- Generic `master_rules.md` and `architecture.md` in your docs folder — **already filled in**, not empty stubs
|
|
61
|
+
- Hook scripts and Run lifecycle under `.cursor/`
|
|
59
62
|
- Generic capability registry (shared skills only)
|
|
60
|
-
- **No** project domains
|
|
63
|
+
- **No** project domains required; **no** app build gate until you opt in (`verify.enabled: false` in `project.config.json`)
|
|
64
|
+
|
|
65
|
+
You do **not** need to enable hooks manually, write rules, add domains, or configure a stack before your first command.
|
|
61
66
|
|
|
62
|
-
###
|
|
67
|
+
### Optional — when you want more (any stack)
|
|
63
68
|
|
|
64
|
-
1.
|
|
69
|
+
1. Replace or extend `docs/master_rules.md` and `docs/architecture.md` with team-specific detail
|
|
65
70
|
2. Add `domains/<slug>/update/` (orchestrator + inventory) — see Part 2
|
|
66
71
|
3. Extend `graph.project.yaml` with resolvers and project skills
|
|
67
72
|
4. Enable verify in `project.config.json` when you have a web app to gate:
|
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# Architecture
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This describes how your repo works with Agentic OS. It ships ready to use — edit only when you want project-specific detail.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Your project + Agentic OS
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
your-repo/
|
|
9
|
+
(your app code — any stack)
|
|
10
|
+
.cursor/ ← Agentic OS (commands, skills, agents, runs)
|
|
11
|
+
docs/ ← rules and architecture (this folder)
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Agentic OS does not replace your app. It sits beside your code and gives Cursor a structured way to create, update, fix, review, test, and release work.
|
|
15
|
+
|
|
16
|
+
## How you work
|
|
17
|
+
|
|
18
|
+
You type a **command** and a short **intent**. The system runs a pipeline (discover → plan → execute → verify → report) and keeps agents on track.
|
|
19
|
+
|
|
20
|
+
```text
|
|
21
|
+
/create-module billing "Add invoice export"
|
|
22
|
+
/fix-module api "Webhook fails on retries"
|
|
23
|
+
/review-architecture system "Check layer boundaries"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
You do not need to learn skills, agents, or orchestrators — those are internal.
|
|
27
|
+
|
|
28
|
+
## Layers (generic)
|
|
29
|
+
|
|
30
|
+
| Layer | Does | Does not |
|
|
31
|
+
|-------|------|----------|
|
|
32
|
+
| UI | Render, user interaction | Business rules, direct database access |
|
|
33
|
+
| Domain | Rules, validation, invariants | UI markup, framework-specific rendering |
|
|
34
|
+
| Infrastructure | APIs, persistence, adapters | Business decisions |
|
|
35
|
+
|
|
36
|
+
## What ships on install
|
|
37
|
+
|
|
38
|
+
- ~130 slash commands (create, update, fix, review, check, test, release, remove × modules, APIs, UI, etc.)
|
|
39
|
+
- Shared pipeline skills and subagent specs
|
|
40
|
+
- Run lifecycle and hook scripts under `.cursor/`
|
|
41
|
+
- Generic rules in this folder (ready without edits)
|
|
42
|
+
|
|
43
|
+
## Optional later
|
|
44
|
+
|
|
45
|
+
Add domains under `.cursor/domains/<name>/` when you want deeper knowledge of a bounded area (payments, auth, CMS, etc.). Extend `.cursor/aaac/graph.project.yaml` to route commands to those domains. Enable build verification in `.cursor/aaac/project.config.json` when you have a web app to gate before release.
|
|
46
|
+
|
|
47
|
+
None of that is required to start.
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Master rules
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
These rules apply to every code change in this project. Agentic OS loads them automatically — you do not need to configure anything after install.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Core principles
|
|
6
|
+
|
|
7
|
+
1. **One source of truth** — Each fact lives in one place. Do not duplicate constants, config, or state.
|
|
8
|
+
2. **Clear layers** — UI renders and handles interaction. Domain logic holds business rules. Infrastructure talks to databases and APIs. Do not mix these roles in one file.
|
|
9
|
+
3. **Predictable flow** — Data moves in one direction: input → logic → output. No hidden side effects.
|
|
10
|
+
4. **Explicit errors** — Log and surface failures. Do not fail silently.
|
|
11
|
+
5. **Clarity over cleverness** — Prefer readable code over shortcuts.
|
|
12
|
+
|
|
13
|
+
## Implementation
|
|
14
|
+
|
|
15
|
+
- Pull values from config, env, or constants — not unexplained literals in components.
|
|
16
|
+
- Use shared styles or design tokens — not inline styles in UI code.
|
|
17
|
+
- One named component per file.
|
|
18
|
+
- Async work should be cancellable where possible and logged at boundaries.
|
|
19
|
+
- Add or update tests when behavior changes.
|
|
20
|
+
|
|
21
|
+
## Modules
|
|
22
|
+
|
|
23
|
+
- Keep files focused: one job per module.
|
|
24
|
+
- Reuse and extend existing code before adding parallel implementations.
|
|
25
|
+
- Name things for intent, not implementation detail.
|
|
26
|
+
|
|
27
|
+
## Optional later
|
|
28
|
+
|
|
29
|
+
When your project grows, you can replace or extend this file with team-specific rules. Until then, these defaults are enough.
|