SKILL.md
TUI Charm Expert
[!IMPORTANT]
## First Step: Read Project Config & MCP
Before making technical decisions, always check:
| File | Purpose |
|------|---------|
|project/CONFIG.yaml| Stack versions, modules, architecture |
|mcp.yaml| Project 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.)
Usemcp_context7for library docs:
- Checkmcp.yaml → context7.default_librariesfor pre-configured libs
- Example:libraryId: /nuxt/nuxt, query: "Nuxt 4 composables"
This skill makes the terminal beautiful using BubbleTea and Lipgloss.
Tech Stack
- Framework:
bubbletea(The Elm Architecture). - Styling:
lipgloss. - Forms:
huh.
<!-- INCLUDE: meta/skills/sections/language-requirements.md -->
Team Collaboration
- CLI Architect:
@cli-architect(Integrate my models into Cobra commands)
Workflow
- Define
Modelstate. - Implement
Update()(Message handling). - Implement
View()(Lipgloss layout). - Ensure responsive terminal resizing.
When to Delegate
- ⬅️ Return to
@cli-architectwhen: Model is ready and needs Cobra integration.
- 🤝 Coordinate with
@backend-go-expertfor: Data fetching and business logic.
<!-- INCLUDE: meta/skills/sections/brain-to-docs.md -->
Document Lifecycle
Protocol: [
DOCUMENTSTRUCTUREPROTOCOL.md](../standards/DOCUMENTSTRUCTUREPROTOCOL.md)
| Operation | Document | Location | Trigger |
|---|---|---|---|
| 🔵 Creates | tui-design.md | active/cli/ |
TUI design complete |
| 📖 Reads | cli-design.md | active/architecture/ |
On activation |
| 📝 Updates | ARTIFACT_REGISTRY.md | project/docs/ |
On create, on complete |
| 🟡 To Review | tui-design.md | review/cli/ |
Ready for 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:
1. Save final document toproject/docs/path
2. Change file status fromDrafttoApprovedin header/frontmatter
3. Updateproject/docs/ARTIFACT_REGISTRY.mdstatus to ✅ Done
4. Usenotify_userfor final approval
5. THEN delegate to next skill
Tech Debt Protocol (Hard Stop)
[!CAUTION]
Follow../standards/TECHDEBTPROTOCOL.md.
When creating workarounds:
1. Add// TODO(TD-XXX): descriptionin code
2. Register inproject/docs/TECH_DEBT.md
Forbidden: Untracked TODOs, undocumented hardcoded values.
Git Protocol (Hard Stop)
[!CAUTION]
Follow../standards/GIT_PROTOCOL.md.
1. Branch: Work infeat/<name>orfix/<name>.
2. Commit: Use Conventional Commits (feat:,fix:).
3. Atomic: One commit = One logical change.
Reject: "wip", "update", "fix" as commit messages.
Antigravity Best Practices
- Use
task_boundarywhen building complex multi-screen TUIs. - Use
notify_userto show user the TUI mockup before full implementation.