Skip to content

Buổi 04: CodyMaster Skill System — Master 60+ Skills 🧠

Thành quả: Decision tree: cho bất kỳ tình huống dev nào → biết dùng skill combo nào


🎯 Mục Tiêu

  1. Nắm vững 6 skill domains và 60+ skills
  2. Xây dựng decision tree cho mọi use case
  3. Hiểu skill chaining và dependency graph
  4. Thực hành invoke skill combo cho 5 scenarios thực tế
  5. Master cm-skill-mastery + cm-skill-index

📖 Phần 1: 6 Skill Domains Deep Dive

Domain Map

                    ┌─────────────────────┐
                    │   YOUR OBJECTIVE    │
                    └──────────┬──────────┘

          ┌────────────────────┼────────────────────┐
          │                    │                    │
    ┌─────┴──────┐      ┌─────┴──────┐      ┌─────┴──────┐
    │ 🔧 BUILD  │      │ ⚙️ SHIP    │      │ 🔒 GUARD  │
    │ Engineering│      │ Operations │      │ Security   │
    └─────┬──────┘      └─────┬──────┘      └─────┬──────┘
          │                    │                    │
    ┌─────┴──────┐      ┌─────┴──────┐      ┌─────┴──────┐
    │ 🎨 DESIGN │      │ 📈 GROW    │      │ 🎯 ORCH   │
    │ Product    │      │ Growth     │      │Orchestrate │
    └────────────┘      └────────────┘      └────────────┘

🔧 Engineering Domain

SkillWhenInputOutput
cm-tddViết code mớiRequirementFailing test → passing code
cm-debuggingBug/errorError message, logsRoot cause + fix
cm-quality-gateTrước deployCodebasePass/Fail report
cm-test-gateSetup test infraProject4-layer test suite
cm-code-reviewPR workflowCode changesReview comments
cm-codeintellOnboard/analyzeCodebaseSkeleton + Architecture
cm-clean-codeTech debtSmelly codeClean refactored code

⚙️ Operations Domain

SkillWhenInputOutput
cm-safe-deployShip codeBuilt appLive URL + smoke test
cm-identity-guardBefore push/deployGit configVerified identity
cm-git-worktreesParallel featuresBranch nameIsolated worktree
cm-terminalAny commandShell commandLogged output
cm-safe-i18nTranslateSource codeMulti-language files
cm-secret-shieldAnytimeCode + envNo leaked secrets

🎨 Product Domain

SkillWhenInputOutput
cm-brainstorm-ideaComplex initiativeProblem statement2-3 qualified options
cm-planningBefore codingRequirementsImplementation plan
cm-ux-masterUI/UX designFeature descriptionDesign guidelines
cm-ui-previewVisual validationDesign specPreview mockups
cm-project-bootstrapNew projectProject descriptionFull setup
cm-dockitDocumentationCodebaseKnowledge base

📈 Growth Domain

SkillWhenInputOutput
cm-content-factoryContent marketingNiche + keywordsArticles + deploy
cm-ads-trackerConversion trackingTracking IDsGTM + Pixel setup
cm-cro-methodologyOptimize conversionLanding pageA/B test plan

🎯 Orchestration Domain

SkillWhenInputOutput
cm-executionRun planImplementation planExecuted tasks
cm-continuitySession managementCONTINUITY.mdPreserved context
cm-skill-chainMulti-skill workflowSkill sequenceChained output
cm-startFull autonomousObjectiveProduction code
cm-deep-searchLarge codebaseQueryRelevant code
cm-notebooklmKnowledge syncKey patternsCloud brain

📖 Phần 2: Decision Tree

Scenario → Skill Combo

📋 "Tôi cần..."

├── "...build feature mới"
│   └── cm-planning → cm-tdd → cm-execution → cm-quality-gate → cm-safe-deploy

├── "...fix bug production"
│   └── cm-debugging → cm-tdd (reproduce) → cm-code-review → cm-safe-deploy

├── "...onboard codebase mới"
│   └── cm-codeintell → cm-dockit → (optional: cm-deep-search)

├── "...refactor code cũ"
│   └── cm-codeintell → cm-brainstorm-idea → cm-clean-code → cm-tdd → cm-quality-gate

├── "...setup project mới"
│   └── cm-identity-guard → cm-project-bootstrap → cm-planning → cm-tdd

├── "...deploy lên production"
│   └── cm-identity-guard → cm-quality-gate → cm-safe-deploy

├── "...analyze & improve existing product"
│   └── cm-brainstorm-idea → cm-planning → cm-execution

├── "...translate to multi-language"
│   └── cm-safe-i18n → cm-quality-gate

├── "...create content/marketing"
│   └── cm-content-factory → cm-ads-tracker → cm-cro-methodology

└── "...automate workflow"
    └── cm-skill-chain → cm-execution (parallel mode)

📖 Phần 3: Skill Chaining

Dependency Graph

cm-identity-guard ─────────────────────────────────────────┐
        │                                                   │
cm-codeintell ──→ cm-brainstorm-idea ──→ cm-planning       │
                                             │              │
                                      cm-tdd ──→ cm-execution
                                             │              │
                                    cm-quality-gate         │
                                             │              │
                                    cm-safe-deploy ────────┘

                                    cm-continuity (update session)

5 Built-in Chains

ChainStepsUse Case
New Featureplan → tdd → execute → quality → deployFeature dev
Bug Fixdebug → tdd → review → deployProduction bugs
Refactorintell → brainstorm → clean → tdd → qualityTech debt
Onboardintell → dockit → deep-search → notebooklmNew project
Shipidentity → quality → deploy → continuityRelease

📖 Phần 4: Progressive Disclosure

cm-skill-index — 3 Layer Loading

Layer 1 (Always loaded — ~100 tokens):
→ Skill name + trigger keywords
→ "Oh, user said 'debug' → cm-debugging"

Layer 2 (On context match — ~300 tokens):
→ Skill summary + integration points
→ "cm-debugging: 5-phase investigation, works with cm-tdd"

Layer 3 (On execution — full SKILL.md):
→ Complete instructions, templates, examples
→ "Phase 1: Reproduce → Phase 2: Isolate → ..."

Why this matters: Saves 90% tokens when not using a skill.


📖 Phần 5: Practical Scenarios

Scenario 1: "Join existing team project"

Day 1:
→ cm-identity-guard: Verify git account
→ cm-codeintell: Generate skeleton index + architecture diagram
→ cm-dockit: Generate knowledge base from code

Day 2:
→ cm-brainstorm-idea: Assess assigned task complexity
→ cm-planning: Create implementation plan
→ cm-tdd: Start coding with tests

Scenario 2: "Legacy codebase, no tests"

Step 1: cm-codeintell → Understand architecture
Step 2: cm-clean-code → Identify code smells
Step 3: cm-test-gate → Setup test infrastructure
Step 4: cm-tdd → Add tests for critical paths
Step 5: cm-clean-code → Safely refactor with test safety net

Scenario 3: "Under pressure, hotfix needed"

Step 1: cm-debugging → Root cause in 15 min
Step 2: cm-tdd → Reproduce bug with failing test
Step 3: Fix → Make test pass (GREEN)
Step 4: cm-safe-deploy → Deploy via hotfix branch
Step 5: cm-continuity → Document the fix

🧪 Lab: Skill Decision Exercise

Bài tập: Cho mỗi tình huống, liệt kê skill chain phù hợp

  1. "CTO muốn thêm payment integration (Stripe) vào app hiện tại"
  2. "User report: Checkout page blank trên Safari mobile"
  3. "Startup mới, cần MVP trong 2 tuần"
  4. "Translation team yêu cầu thêm tiếng Nhật"
  5. "Code base 200 files, không ai hiểu architecture"

🎓 Tóm Tắt

ConceptKey Takeaway
6 DomainsBuild, Ship, Guard, Design, Grow, Orchestrate
Decision TreeSituation → Skill combo (never guess)
ChainingSkills connect: output of one = input of next
ProgressiveLoad skill details only when needed

⏭️ Buổi tiếp theo

Buổi 05: Codebase Onboarding — Đọc Hiểu Dự Án Trong 1 Giờ 🔍

Powered by CodyMaster × VitePress