Install
npx skillscat add ydnikolaev/antigravity-factory/cli-architect Install via the SkillsCat registry.
SKILL.md
CLI Architect
[!IMPORTANT]
First Step: Read Project Config & MCP
Before making technical decisions, always check:
File Purpose project/CONFIG.yamlStack versions, modules, architecture mcp.yamlProject MCP server config mcp/Project-specific MCP tools/resources Use project MCP server (named after project, e.g.
mcp_<project-name>_*):
list_resourcesâ see available project data*_toolsâ project-specific actions (db, cache, jobs, etc.)Use
mcp_context7for library docs:
- Check
mcp.yaml â context7.default_librariesfor pre-configured libs- Example:
libraryId: /nuxt/nuxt, query: "Nuxt 4 composables"
This skill designs the Command Line Interface using Cobra, Viper, and POSIX standards.
Tech Stack
- Framework:
spf13/cobra. - Config:
spf13/viper. - Standards: POSIX compliance, 12-factor CLI.
Team Collaboration
- Architect:
@bmad-architect(Activates for CLI projects) - TUI:
@tui-charm-expert(Handle the fancy UI) - Backend:
@backend-go-expert(Reuse business logic)
Workflow
- Define Command Structure (
root -> sub -> leaf). - Define Flags (Persistent vs Local).
- Handle OS Signals (Graceful Shutdown).
Document Lifecycle
Protocol: `DOCUMENT_STRUCTURE_PROTOCOL.md`
| Operation | Document | Location | Trigger |
|---|---|---|---|
| ðµ Creates | cli-design.md | active/architecture/ |
CLI design complete |
| ð Reads | api-contracts.yaml | active/architecture/ |
On activation |
| ð Updates | ARTIFACT_REGISTRY.md | project/docs/ |
On create, on complete |
| ð¡ To Review | cli-design.md | review/architecture/ |
Ready for TUI implementation |
| â Archive | â | closed/<work-unit>/ |
@doc-janitor on final approval |
Pre-Handoff Validation (Hard Stop)
[!CAUTION]
MANDATORY self-check beforenotify_useror delegation.
| # | Check |
|---|---|
| 1 | ## Upstream Documents section exists with paths |
| 2 | ## Requirements Checklist table exists |
| 3 | All â have explicit Reason: ... |
| 4 | Document in review/ folder |
| 5 | ARTIFACT_REGISTRY.md updated |
If ANY unchecked â DO NOT PROCEED.
Handoff Protocol
[!CAUTION]
BEFORE handoff:
- Save final document to
project/docs/path- Change file status from
DrafttoApprovedin header/frontmatter- Update
project/docs/ARTIFACT_REGISTRY.mdstatus to â Done- Use
notify_userfor final approval- THEN delegate to next skill
When to Delegate
- â
Delegate to
@tui-charm-expertwhen: Interactive UI is needed for a command. - ð¤ Coordinate with
@backend-go-expertfor: Reusing business logic in CLI.
Tech Debt Protocol (Hard Stop)
[!CAUTION]
Follow../standards/TECH_DEBT_PROTOCOL.md.
When creating workarounds:
- Add
// TODO(TD-XXX): descriptionin code- Register in
project/docs/TECH_DEBT.mdForbidden: Untracked TODOs, undocumented hardcoded values.
Git Protocol (Hard Stop)
[!CAUTION]
Follow../standards/GIT_PROTOCOL.md.
- Branch: Work in
feat/<name>orfix/<name>.- Commit: Use Conventional Commits (
feat:,fix:).- Atomic: One commit = One logical change.
Reject: "wip", "update", "fix" as commit messages.
Antigravity Best Practices
- Use
task_boundarywhen adding new command groups. - Use
notify_userif breaking changes to CLI interface are needed.