aes-capabilities
Skill0 starsChanged 56 days agoMITView on GitHub
AES capability implementation scaffolding for Python Rust TS. Use when creating capability files.
In this repository156 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aes-agentSkill
- aes-contractSkill
- aes-docsSkill
- aes-lint-arwakySkill
- aes-migrationSkill
- aes-rootSkill
- aes-surfaceSkill
- aes-taxonomySkill
- aes-testing-suiteSkill
- aes-utilitySkill
- omnirouteSkill
- xai-apiSkill
- android-emulator-linux-gpsSkill
- chromium-profile-provisioningSkill
- flatpak-chromium-automationSkill
- qwen-web-arwaky-devSkill
- qwen-webSkill
- agent-tool-collectionSkill
- coding-agent-delegationSkill
- computer-useSkill
- hermes-agentSkill
- hermes-home-cleanupSkill
- hermes-messaging-gatewaysSkill
- merge-reconcilerSkill
- codegraphSkill
- cleanup-consolidateSkill
- codacy-analysis-cliSkill
- codacy-cloud-cliSkill
- codacy-code-reviewSkill
- codebase-inspectionSkill
- coderabbit-reviewSkill
- configure-codacy-cloudSkill
- configure-codacySkill
- fix-bypassSkill
- fix-markdown-inline-htmlSkill
- harness-source-auditSkill
- no-mistakesSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- report-linter-false-positiveSkill
- setup-coverageSkill
- architecture-diagramSkill
- ascii-artSkill
- ascii-videoSkill
- baoyu-infographicSkill
- comfyuiSkill
- excalidrawSkill
- humanizerSkill
- manim-videoSkill
- no-ai-slopSkill
- p5jsSkill
- popular-web-designsSkill
- pretextSkill
- sketchSkill
- songwriting-and-ai-musicSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 85
Every rule is machine-checked by lint-arwaky-cli scan <layer-path> (see each HOW-TO § Verify).
- Very specific: line 117
Every feature folder needs at least one capabilities_* file and at least one agent_*_orchestrator file.
- Distinctive: line 149
Ask these questions in order.
- Very specific: line 167
Ensure a _protocol contract exists — if missing, run aes-contract first.
≈ “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
aes-capabilities
Purpose: Scaffold AES capability files — concrete protocol implementations (domain rules + external adaptation). Audience: The agent creating or validating a capability file. Scope: Python, Rust, and TypeScript
capabilities_<domain>_<role>files — 3-block structure, ≥1 protocol implementor, ≤3 types.
Capability vs Utility — Defining the Boundary
A capability and a utility are fundamentally different layers. Confusing them causes misplaced code, wrong imports, and linter violations.
Capability (capabilities_*) | Utility (utility_*) | |
| Core question | What can the system do? | How is a small task done? |
| Nature | Concrete protocol behaviour — domain rules, external adaptation, DI-wired | Stateless, domain-agnostic, pure free functions |
| Responsibility | Implements a _protocol contract; orchestrates inputs into domain outcomes | Performs narrow, reusable operations with no business logic |
| State | Has instance state via injected dependencies (Arc<dyn Trait>, DI params) | Absolutely no state — pure functions only |
| Location | Feature folder (crates/<feature>/, modules/<feature>/, packages/<feature>/) | Shared folder (shared/) beside taxonomy and contract files |
| Consumers | Consumed by agent orchestrators or root composition | Consumed by capabilities, agents, surfaces, or other utilities |
| Examples | capabilities_user_auth, capabilities_data_persist, capabilities_rate_limit | utility_string_sanitizer, utility_date_formatter, utility_hasher |
Decision rule: Ask "Does this code implement a protocol behaviour with business rules?" If yes → capability. Ask "Does this code perform a narrow, stateless, reusable operation with no business logic?" If yes → utility. If it does both, split it: business logic stays in the capability; the stateless helper moves to utility.
The layer decides which suffix, which imports, and which structure apply.
Rules, templates, section contracts, and Verify blocks live in the language HOW-TUs under references/.
| Language | Focus | Body rule | HOW-TO |
| Python | Protocol implementation | 3-block; ≥1 protocol; ≤3 types | references/HOW-TO-MAKE-PYTHON-CAPABILITIES.md |
| Rust | Protocol implementation | 3-block; ≥1 protocol; ≤3 types | references/HOW-TO-MAKE-RUST-CAPABILITIES.md |
| TypeScript | Protocol implementation | 3-block; ≥1 protocol; ≤3 types | references/HOW-TO-MAKE-TYPESCRIPT-CAPABILITIES.md |
The layer chain:
contract_*_protocol (created via aes-contract) → capabilities implement → agent / root consume
Each file answers one layer's job. A method or import in the wrong layer is the defect this skill exists to prevent.
Invariants
Every rule is machine-checked by lint-arwaky-cli scan <layer-path> (see each HOW-TO § Verify).
A rule cannot drift from the gate. Cite the linter, not this file, when pointing at a rule.
| Layer | Rule |
| Naming | File capabilities_<domain>_<role> — role from internal/external naming lists; forbidden suffixes _vo/_entity/_error/_event/_constant/_constants/_protocol/_aggregate/_utility/_request/_response (AES101/AES102). |
| Structure | 3-block order: Block 1 type+ctor → Block 2 protocol methods only → Block 3 factories/dunders/helpers. ≥1 protocol implementor, ≤3 types (AES403). |
| Imports | Taxonomy + _protocol contracts + utility only — never agents, siblings, surface, local domain models (AES201–AES205). |
| DI | Protocol interfaces only (Arc<dyn Trait> in Rust); shared VOs in fields/signatures. |
| Helpers | Stateless domain-agnostic ≥2-consumer functions move to Utility; constants to taxonomy_*_constant. |
| Register | Shared barrel: __init__.py / mod.rs / index.ts. |
| Verify | lint-arwaky-cli scan <layer-path> → 0. Language compile is fallback only. |
Split details, templates, and Section Contract tables: read the language HOW-TO — do not restate them here.
Placement (AES702, AES703)
A capabilities_* file belongs in a feature folder — a subdirectory of a member
directory (crates/, modules/, packages/) that is neither shared/ nor a surface folder.
The folder name must match the feature it serves:
crates/<feature_name>/src/capabilities_<domain>_<role>.* # Rust
modules/<feature_name>/src/capabilities_<domain>_<role>.py # Python
packages/<feature_name>/src/capabilities_<domain>_<role>.ts # TypeScriptThe prefix is capabilities_ in every language. A file named capability_x.py is not
a capability file to the linter and is not counted toward a feature folder.
Every feature folder needs at least one capabilities_* file and at least one
agent_*_orchestrator file. A feature folder with only capabilities has nothing
orchestrating them — an AES702 violation.
capabilities_* files are forbidden in two places:
shared/— the shared folder holds taxonomy, utility, and contract files only (AES701).- A surface folder — a folder where surface files outnumber everything else carries surface files only (AES703).
Both violations name the misplaced file and direct you to move it into a feature folder.
Feature folder documents
A feature folder carries two documents at its root, beside the source:
crates/<feature_name>/FRD.md # what the feature does — requirements
crates/<feature_name>/BACKLOG.md # where its work standsThe folder name matches the feature it serves: crates/calculator/ documents the calculator,
modules/naming_violations/ documents naming violations. A folder named after a generic
word (utils, common, core) describes no feature and cannot carry a meaningful FRD.
A feature folder carrying capabilities or an agent but neither document is an AES702 violation — the linter names the missing file and you write it. A folder carrying neither capabilities nor an agent is not a feature and owes no document pair.
Diagnostic Tree
Ask these questions in order. The first "No" dictates your next action.
- Is this protocol behaviour (not a stateless helper or pure function)?
- No → it is a utility, not a capability. See
aes-utilityskill.
- No → it is a utility, not a capability. See
- Does a
_protocolcontract exist for this behaviour?- No → create it first with
aes-contract.
- No → create it first with
- Block 2 contain only protocol methods? ≥1 implementor? ≤3 types?
- No → restructure to 1→2→3; split or extract helpers.
- Any forbidden imports or local domain models?
- Yes → strip; shared needs go through contract or root.
- Does
lint-arwaky-cli scan <layer-path>exit 0?- No → fix findings, re-scan.
Workflow
- Confirm the work is protocol behaviour (not orchestration / data / mechanics).
- Ensure a
_protocolcontract exists — if missing, runaes-contractfirst. - Resolve the feature capability dir. Run
lint-arwaky-cli scan <layer-path>— findings are your work list. - Implement the 3 blocks from the language HOW-TO § Template / § Section Contract.
- Strip forbidden imports / inter-capability deps / local domain models; move constants and pure helpers out.
- Register in the shared barrel, verify with
lint-arwaky-cli scan, then wire viaaes-agent/aes-root.
Verification
Machine Checks
lint-arwaky-cli scan <layer-path> # AES101/102, AES201–205, AES401–406 → must be 0
# Fallback only: language compile (python -c import / cargo check / npx tsc --noEmit)
```text
A pass means naming, imports, primitives, and roles are clean. Structural judgement
(tier choice, block order, helper-vs-utility, "orchestration only") is **manual** — see HOW-TO § Rules.
### Human Checks
A machine pass does not mean the file is right. Layer purpose, structural order, and
"only what this layer may do" still need a reader (HOW-TO § Rules).
---
## Pre-flight Checklist
- [ ] `lint-arwaky-cli scan <layer-path>` exits 0.
- [ ] Every touched HOW-TO's `Verify` block was executed.
- [ ] File registered in `__init__.py` / `mod.rs` / `index.ts`.
- [ ] Language fallback compile clean if the HOW-TO lists it.
- [ ] Related skills considered for the next layer up/down.
---
## Common Mistakes (Anti-Patterns)
The linter covers naming, imports, and primitives. These need a reader (HOW-TO § Rules):
- **Stateless helper with no protocol behaviour in a capability file**: extract to `utility_*` — it belongs in shared, not the feature folder.
- **Business logic mixed with a pure helper**: split — business rules stay; stateless logic moves to utility.
- **Capabilities importing each other**: shared needs go through contract or root, not sibling imports.
- **Restating HOW-TO rules in SKILL.md**: delegate — this file only routes.
---
## Related Skills
- `aes-contract`
- `aes-utility`
- `aes-agent`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.

