external/tgd-skills/tgd-router/SKILL.md
Discovers and invokes agent skills. Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.
npx skillsauth add seikaikyo/dash-skills tgd-routerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
First, load the
tgd-rulesskill. It is the core rules — the Verification Iron Law, the per-phase tone, the Command Closing Report, and the human sign-off protocol — and it governs every phase. This router is injected at session start; loadingtgd-rulesfrom here is how the rules reliably enter context (there is no separate hook that injects them).
tGD is a collection of engineering workflow skills organized by development phase. Each skill encodes a specific process that senior engineers follow. This meta-skill helps you discover and apply the right skill for your current task.
When a task arrives, identify the development phase and apply the corresponding skill:
Task arrives
│
├── Don't know what you want yet? ──────→ tgd-interview-me
├── Have a rough concept, need variants? → tgd-idea-refine
├── New project/feature/change? ──→ tgd-spec-driven-development
│ └── UI feature? Mock variants → tgd-sketch
├── Have a spec, need tasks? ──────→ tgd-planning-and-task-breakdown
│ └── Want Jira tickets from TASKS.md? → tgd-jira-auto-sync
├── Implementing code? ────────────→ tgd-incremental-implementation
│ ├── Multi-task plan / high-stakes path? → tgd-subagent-driven-development
│ ├── UI work? ─────────────────→ tgd-frontend-ui-engineering
│ ├── API work? ────────────────→ tgd-api-and-interface-design
│ ├── Need better context? ─────→ tgd-context-engineering
│ ├── Need doc-verified code? ───→ tgd-source-driven-development
│ └── Stakes high / unfamiliar code? ──→ tgd-doubt-driven-development
├── Writing/running tests? ────────→ tgd-test-driven-development
│ └── Browser-based? ───────────→ tgd-agent-browser
├── Something broke? ──────────────→ tgd-debugging-and-error-recovery
├── About to claim "done"? ────────→ tgd-verification-before-completion
├── Reviewing code? ───────────────→ tgd-code-review-and-quality
│ ├── Works but overly complex? → tgd-code-simplification
│ ├── Security concerns? ───────→ tgd-security-and-hardening
│ └── Performance concerns? ────→ tgd-performance-optimization
├── Committing/branching? ─────────→ tgd-git-workflow-and-versioning
├── CI/CD pipeline work? ──────────→ tgd-ci-cd-and-automation
├── Writing docs/ADRs? ───────────→ tgd-documentation-and-adrs
├── Removing/migrating old systems? → tgd-deprecation-and-migration
└── Deploying/launching? ─────────→ tgd-shipping-and-launch
These behaviors apply at all times, across all skills. They are non-negotiable.
Before implementing anything non-trivial, explicitly state your assumptions:
ASSUMPTIONS I'M MAKING:
1. [assumption about requirements]
2. [assumption about architecture]
3. [assumption about scope]
→ Correct me now or I'll proceed with these.
Don't silently fill in ambiguous requirements. The most common failure mode is making wrong assumptions and running with them unchecked. Surface uncertainty early — it's cheaper than rework.
When you encounter inconsistencies, conflicting requirements, or unclear specifications:
Bad: Silently picking one interpretation and hoping it's right. Good: "I see X in the spec but Y in the existing code. Which takes precedence?"
You are not a yes-machine. When an approach has clear problems:
Sycophancy is a failure mode. "Of course!" followed by implementing a bad idea helps no one. Honest technical disagreement is more valuable than false agreement.
Your natural tendency is to overcomplicate. Actively resist it.
Before finishing any implementation, ask:
If you build 1000 lines and 100 would suffice, you have failed. Prefer the boring, obvious solution. Cleverness is expensive.
Touch only what you're asked to touch.
Do NOT:
Your job is surgical precision, not unsolicited renovation.
Every skill includes a verification step. A task is not complete until verification passes. "Seems right" is never sufficient — there must be evidence (passing tests, build output, runtime data).
These are the subtle errors that look like productivity but create problems:
Check for an applicable skill before starting work. Skills encode processes that prevent common mistakes.
Skills are workflows, not suggestions. Follow the steps in order. Don't skip verification steps.
Multiple skills can apply. A feature implementation might involve tgd-idea-refine → tgd-spec-driven-development → tgd-planning-and-task-breakdown → tgd-incremental-implementation → tgd-test-driven-development → tgd-code-review-and-quality → tgd-shipping-and-launch in sequence.
When in doubt, start with a spec. If the task is non-trivial and there's no spec, begin with tgd-spec-driven-development.
For a complete feature, the typical skill sequence is:
1. tgd-interview-me → Extract what the user actually wants
2. tgd-idea-refine → Refine vague ideas
3. tgd-spec-driven-development → Define what we're building
4. tgd-planning-and-task-breakdown → Break into verifiable chunks
5. tgd-context-engineering → Load the right context
6. tgd-source-driven-development → Verify against official docs
7. tgd-subagent-driven-development OR tgd-incremental-implementation
→ Fresh subagents per task, or build slice by slice
8. tgd-doubt-driven-development → Cross-examine non-trivial decisions in-flight
9. tgd-test-driven-development → Prove each slice works
10. tgd-verification-before-completion → Evidence before claiming any task done
11. tgd-code-review-and-quality → Review before merge
12. tgd-git-workflow-and-versioning → Clean commit history
13. tgd-documentation-and-adrs → Document decisions
14. tgd-shipping-and-launch → Deploy safely
Not every task needs every skill. A bug fix might only need: tgd-debugging-and-error-recovery → tgd-test-driven-development → tgd-code-review-and-quality.
| Phase | Skill | One-Line Summary | |-------|-------|-----------------| | Define | tgd-interview-me | Surface what the user actually wants before any plan, spec, or code exists | | Define | tgd-idea-refine | Refine ideas through structured divergent and convergent thinking | | Define | tgd-spec-driven-development | Requirements and acceptance criteria before code | | Define | tgd-sketch | Throwaway HTML mockups — 2-3 design variants to compare | | Plan | tgd-planning-and-task-breakdown | Decompose into small, verifiable tasks | | Plan | tgd-jira-auto-sync | Auto-create Jira issues from TASKS.md (opt-in, after /tgd-plan) | | Build | tgd-incremental-implementation | Thin vertical slices, test each before expanding | | Build | tgd-subagent-driven-development | Fresh subagent per task with two-stage review | | Build | tgd-verification-before-completion | Evidence before completion claims, always | | Build | tgd-source-driven-development | Verify against official docs before implementing | | Build | tgd-doubt-driven-development | Adversarial fresh-context review of every non-trivial decision | | Build | tgd-context-engineering | Right context at the right time | | Build | tgd-frontend-ui-engineering | Production-quality UI with accessibility | | Build | tgd-api-and-interface-design | Stable interfaces with clear contracts | | Verify | tgd-test-driven-development | Failing test first, then make it pass | | Verify | tgd-agent-browser | CDP-based browser automation for E2E verification | | Verify | tgd-debugging-and-error-recovery | Reproduce → localize → fix → guard | | Review | tgd-code-review-and-quality | Five-axis review with quality gates | | Review | tgd-security-and-hardening | OWASP prevention, input validation, least privilege | | Review | tgd-performance-optimization | Measure first, optimize only what matters | | Review | tgd-code-simplification | Simplify for clarity without changing behavior | | Release | tgd-git-workflow-and-versioning | Atomic commits, clean history | | Release | tgd-ci-cd-and-automation | Automated quality gates on every change | | Release | tgd-documentation-and-adrs | Document the why, not just the what | | Release | tgd-deprecation-and-migration | Sunset old systems and migrate users safely | | Release | tgd-shipping-and-launch | Pre-launch checklist, monitoring, rollback plan |
development
拋棄式 HTML mockup 比稿:產出 2 到 3 個設計立場不同的變體(密度 / 版式 / 強調軸,不是換色),各附取捨說明,最後給有立場的對比結論。適用:「畫個草圖」「比較 A 版 B 版」「先看方向再做」「給我看幾種做法」。要 production 元件或設計已定案時不適用。
tools
需求不明時的意圖萃取訪談:一次一題、每題附上自己的猜測、聽出「真正想要 vs 覺得應該要」,直到能預測使用者反應(約 95% 信心)才動工。適用:需求缺少對象 / 動機 / 成功標準 / 約束,或使用者點名「訪談我」「先確認一下」「我們確定嗎」。明確自足的指示、純資訊查詢、機械性操作不適用。
development
對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。
testing
Reference for writing and editing agent skills well — the vocabulary and principles that make a skill predictable. Consult when authoring, reviewing, or pruning a SKILL.md.