Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: adaptive-enforcement-lab-claude-skills-command-architecture3description: Command Architecture4---56# Command Architecture78## When to Use This Skill910A well-designed CLI has commands that work both independently and as part of larger workflows. This section covers:1112- **[Orchestrator Pattern](orchestrator-pattern.md)** - Coordinate multi-step workflows13- **[Subcommand Design](subcommand-design.md)** - Build independently useful commands14- **[Input/Output Contracts](io-contracts.md)** - Design for pipelines and automation1516---171819## Implementation2021See the full implementation guide in the [source documentation](https://adaptive-enforcement-lab.com/build/go-cli-architecture/).222324## Key Principles2526| Practice | Description |27| ---------- | ------------- |28| **Flat hierarchy** | Avoid deeply nested subcommands (max 2 levels) |29| **Verb-noun ordering** | `myctl restart deployment` not `myctl deployment restart` |30| **Consistent flags** | Use same flag names across commands |31| **Hidden internal commands** | Mark debugging commands as hidden |32| **Exit codes** | Use consistent exit codes (0=success, 1=failure, 2=usage error) |3334---3536*Design commands for both humans and scripts.*373839## Examples4041See [examples.md](examples.md) for code examples.42## References4344- [Source Documentation](https://adaptive-enforcement-lab.com/build/go-cli-architecture/)45- [AEL Build](https://adaptive-enforcement-lab.com/build/)4647---48> Converted and distributed by [TomeVault](https://tomevault.io/claim/adaptive-enforcement-lab) — claim your Tome and manage your conversions.49<!-- tomevault:4.0:skill_md:2026-04-14 -->
Run npx skillmds@latest add tomevault-io/adaptive-enforcement-lab-claude-skills-command-architecture in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Command Architecture It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.