SKILL.md
{{SKILL_TITLE}}
{{SKILLPURPOSESUMMARY}}
[!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.mcpxlinefitness-bot*):
-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"
When to use this skill
- Trigger 1: Description of situation...
- Trigger 2: Description of situation...
- Anti-pattern: Do NOT use this skill when...
Decision Tree
Before acting, determine the specific scenario:
- IF [Condition A]:
- Use scripts/scripta.py - Refer to references/guidea.md
- IF [Condition B]:
- Follow the manual workflow below
- ELSE:
- Ask user for clarification
Workflow
Phase 1: Preparation
- Verify prerequisites...
- Check for existing files...
Phase 2: Execution
Tip: Use
task_boundaryto track progress if this is a long task.
- Step 1...
- Step 2...
Phase 3: Verification
- Run validation checks...
- Notify user...
Iteration Protocol (Ephemeral → Persistent)
[!IMPORTANT]
Phase 1: Draft in Brain
- Create drafts as UI Artifacts (inbrain/conversation directory)
- Iterate with user vianotify_useruntil approved
- Keep Q&A and sketches here — do NOT polluteproject/docs/
Phase 2: Persist on Approval
- ONLY after "Looks good" → write final toproject/docs/path
- Update file status:Draft→Approvedin header
- Theproject/docs/folder is the ONLY memory that survives sessions
Artifact Ownership
- Creates:
project/docs/<category>/<artifact>.md - Reads:
<previous skill artifacts> - Updates:
project/docs/ARTIFACT_REGISTRY.md(status + timestamp)
TDD Protocol
[!CAUTION]
NO CODE WITHOUT FAILING TEST.
- Red: Write test → Fail.
- Green: Write code → Pass.
- Refactor: Clean up.
NEVER write implementation code without a failing test.
NEVER fix a bug without a reproduction case.
Handoff Protocol
[!CAUTION]
BEFORE delegating to next skill:
1. ✅ Final document exists inproject/docs/(not just brain artifact)
2. ✅ File header changed fromDrafttoApproved
3. ✅project/docs/ARTIFACT_REGISTRY.mdupdated to ✅ Done
4. ✅ User approved vianotify_user
5. THEN delegate
Resources
scripts/:
- examplescript.py: {{SCRIPTDESC}}
references/:
- reference.md: {{REF_DESC}}