aes-layer
Skill0 starsChanged 4 days agoMITView on GitHub
AES layer scaffolding for agent, capabilities, contract, root, surface, taxonomy, utility across Python, Rust, TypeScript, plus test-suite HOW-TOs under reference/test/. Create a new layer file or improve/audit an existing one.
In this repository75 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/skill-authoring/tools/AGENTS.mdAGENTS.md
- aes-docsSkill
- aes-fixSkill
- aes-migrationSkill
- android-emulator-linux-gpsSkill
- computer-useSkill
- flatpak-chromium-automationSkill
- qwen-webSkill
- grok-buildSkill
- hermes-agentSkill
- omnirouteSkill
- orcaSkill
- account-managerSkill
- brave-setupSkill
- password-managerSkill
- codegraphSkill
- deep-cleanSkill
- dogfoodSkill
- reviewSkill
- systematic-debuggingSkill
- blender-arwakySkill
- comfyuiSkill
- llm-writingSkill
- vision-arwakySkill
- playwright-toolingSkill
- setup-ci-quality-gatesSkill
- statuslineSkill
- systemd-headless-serviceSkill
- xdg-spec-complianceSkill
- figcraft-builderSkill
- figcraft-iconsSkill
- figcraft-motionSkill
- figcraft-prototyperSkill
- figcraft-reviewSkill
- figcraftSkill
- figcraft-svgSkill
- figcraft-typographySkill
- github-authSkill
- issue-makerSkill
- issue-workerSkill
- mergifySkill
- pr-babysitSkill
- releasingSkill
- repo-managerSkill
- ascii-artSkill
- ascii-videoSkill
- gif-searchSkill
- media-acquisitionSkill
- docxSkill
- emailSkill
- google-workspaceSkill
- notionSkill
- pdfSkill
- pptxSkill
- xlsxSkill
- competitor-news-monitorSkill
- product-price-monitorSkill
- weekly-review-planningSkill
- arxivSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Verify: lint-arwaky-cli scan <layer-path> → 0 violations.
- Very specific: line 28
Every reference/<layer>/<language>.md HOW-TO must use identical H2 heading order so a contributor can jump between Python, Rust, and …
- Very specific: line 40
Every language variant gets the Import Matrix table under ### Import rules: Allowed imports, Mandatory imports (AES202), Forbidden imports.
- Very specific: line 41
Every capabilities HOW-TO gets a Section Contract table with an Enforced column naming the AES403 check (e.g.
- Very specific: line 42
Every agent HOW-To gets an "Error and VO rules" block with Rule 1 "Never silently discard" through Rule 5 (primitive/bool/domain-field …
- Very specific: line 45
No extra top-level ## sections between Review and Verify — fold Anti-Patterns, Dogfood, or any other extra section into Review as ### …
- Very specific: line 47
Verify H2 order with grep -n "^## " reference/<layer>/<language>.md — output must match Rules → Template → Section Contract → Workflow → …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
aes-layer
Scaffold AES layer files — agent orchestrators, capabilities, contracts, composition roots, surface commands/UI, taxonomy VOs, and stateless utilities — across Python, Rust, and TypeScript. Each layer owns one domain: agent implements exactly one aggregate; capabilities implement one protocol; contract defines protocol ABCs; root wires containers and entries; surface maps input events to VOs; taxonomy holds shared VOs/constants; utility holds pure helpers. The layer chain reads contract → capabilities → agent, consumed by surface/root. One layer file implements one protocol/aggregate pair where applicable. Invariants read by more than one layer live in Global Rules below. The layer also provisions test-suite HOW-TOs under reference/test/ (python/rust/typescript), moved here from the former aes-testing-suite skill.
Rules
- Argument shape:
<path> [create|improve] [--dry-run].<path>is a folder (crate/module/package) or a single file; missing mode defaults to improve. - Language auto-detection: resolve the path, detect python (.py) / rust (.rs) / typescript (.ts/.tsx/.js/.jsx/.mts/.cts) from files present; on mixed or ambiguous input, list the detected languages and proceed with the dominant one, naming it in the report.
- Routing: dispatch to
reference/<layer>/<language>.mdbased on the detected layer and language; that language HOW-TO owns the workflow steps. - Mode create: scaffold a new file from the language HOW-TO template section.
- Mode improve: audit the named file/folder against the language HOW-TO rules, list findings, apply fixes.
- Safety model: default (no
--dry-run) = autonomous, no permission prompts, execute directly.--dry-run= read-only: produce the findings report and STOP before any write; the report is the deliverable. This bullet is the single source of truth for mode/safety semantics. - Report: every run ends with a report block — files touched (dry-run: files that WOULD be touched), language detected, mode, findings/fixes.
- Verify:
lint-arwaky-cli scan <layer-path>→ 0 violations. Language compile is fallback only. - On-disk verify: a parallel agent or
git resetcan revert files without notice — after applying any edit, re-read the touched region (or grep the new content) before declaring the run done. - One fact, one home: the language HOW-TO carries its layer's suffix, imports, and structure — read it, do not restate here. Cite the linter, not this file, when pointing at a rule. Each bullet states a fact once; references point at the bullet.
Cross-language consistency (all 3 languages)
Every reference/<layer>/<language>.md HOW-TO must use identical H2 heading order so a contributor can jump between Python, Rust, and TypeScript variants without relearning structure:
## Rules
## Template
## Section Contract
## Workflow
## Review
## VerifyWorkflowis its own##heading — never nested under## Rulesas###. The agent files set this standard; capabilities files must match it.- Every language variant gets the Import Matrix table under
### Import rules: Allowed imports, Mandatory imports (AES202), Forbidden imports. Do not drop the Mandatory row from any language file. - Every capabilities HOW-TO gets a Section Contract table with an
Enforcedcolumn naming the AES403 check (e.g.CapabilityBlockMarkers,CapabilityNoImplementor) and the severity. - Every agent HOW-To gets an "Error and VO rules" block with Rule 1 "Never silently discard" through Rule 5 (primitive/bool/domain-field rules), and the AES405-11 ≥2 injected subsystems note in the constructor comment.
- Rust template placeholders must use the standard
<Name>,<VO>,<domain>tokens — never<name-feature>,<name-policy>,<name-store>, or similar per-role variants. A Rust file with mixed placeholder conventions is a defect, not a language variant. - Watch for
ORCA_RICH_MDinline-html artifacts ([[ORCA_RICH_MD:...:inline-html:...]]) in Rust files — they are paste corruption, remove them and rewrite the line in plain markdown. - No extra top-level
##sections betweenReviewandVerify— fold Anti-Patterns, Dogfood, or any other extra section intoReviewas###subsections. A sibling## Anti-Patternsor## Dogfoodbreaks the cross-language order and is a defect. lint-arwaky-cli scan --layer <layer>→ 0 violations is the gate; language compile (tsc --noEmit,python -c "import ...",cargo check -p <crate>) is fallback only.- Verify H2 order with
grep -n "^## " reference/<layer>/<language>.md— output must matchRules → Template → Section Contract → Workflow → Review → Verifyexactly; no extra, no missing, no reordered.
Routing
| File | Purpose |
| reference/agent/python.md | Python agent HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/agent/rust.md | Rust agent HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/agent/typescript.md | TypeScript agent HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/capabilities/python.md | Python capabilities HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/capabilities/rust.md | Rust capabilities HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/capabilities/typescript.md | TypeScript capabilities HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/contract/python.md | Python contract HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/contract/rust.md | Rust contract HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/contract/typescript.md | TypeScript contract HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/root/python.md | Python root HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/root/rust.md | Rust root HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/root/typescript.md | TypeScript root HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/surface/python.md | Python surface HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/surface/rust.md | Rust surface HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/surface/typescript.md | TypeScript surface HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/taxonomy/python.md | Python taxonomy HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/taxonomy/rust.md | Rust taxonomy HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/taxonomy/typescript.md | TypeScript taxonomy HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/utility/python.md | Python utility HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/utility/rust.md | Rust utility HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/utility/typescript.md | TypeScript utility HOW-TO — both modes; rules, template, section contract, workflow steps, review, verify |
| reference/test/python.md | Python test-suite HOW-TO — prefixes, run commands, coverage, verify |
| reference/test/rust.md | Rust test-suite HOW-TO — prefixes, nextest, criterion, verify |
| reference/test/typescript.md | TypeScript test-suite HOW-TO — prefixes, vitest, coverage, verify |
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.

