.claude/skills/gwt-build-spec/SKILL.md
Use when implementation should proceed from an approved SPEC or approved standalone task, and the work should run through the build/test/verify loop.
npx skillsauth add akiojin/gwt gwt-build-specInstall 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.
Implement code using strict TDD (Red-Green-Refactor) methodology. Operates in two modes:
tasks.md, full progress trackingOnce started, keep moving until one of these is true:
gwt-discussion to investigate and discussRoutine CI failures, update-branch merges, and test-first edits are handled autonomously.
Use the current user's language for task summaries, completion reports, task check updates, and any user-facing text generated while executing the workflow, unless an existing artifact must keep its established language.
Determine the mode at entry:
gwt issue spec <N> --section tasks で tasks セクションが取得できるgwt issue spec <N> で SPEC の全セクション(spec, plan, tasks)を読み込む。gwt issue spec <N> --section <name> / gwt issue spec <N> --edit <name> -f <file> を使用する。This phase is non-optional in both modes. See references/tdd-workflow.md for detailed methodology.
crates/*/tests/ or #[cfg(test)] modules.tasks.md in SPEC mode).spec.md and plan.md.cargo fmt, naming, module structure.Tests may be skipped only when the task does not change observable behavior:
docs:)chore:)All other changes require the TDD loop.
Run the smallest meaningful validation set first, then broaden:
cargo test -p gwt-core -p gwt (or narrower scope first)cargo clippy --all-targets --all-features -- -D warningscargo fmt -- --checkcargo build -p gwtIn SPEC mode, also verify:
spec.md acceptance scenariostasks.mdgwt-discussionHandle PR operations autonomously using the gwt-manage-pr skill:
gwt-manage-pr to create one.gwt-manage-pr to fix.gwt-manage-pr handle routine merge/push/fix loops.Do not create a PR until Phase 3 verification passes.
Reconcile implemented behavior against all SPEC artifacts. See references/completion-gate.md for details.
Required checks:
tasks.md matches the implementationgwt-discussion — do not proceed to PRUpdate execution tracking:
tasks.mdgwt issue spec <N> --edit tasks -f <file> で更新するOn completion, suggest gwt-arch-review for code review if available, or proceed to gwt-manage-pr if not already done.
Stop only when:
gwt-discussion if the gap requires user discussion, or update the
SPEC artifact directly if the fix is mechanical## <Build Report in the current user's language>
Mode: SPEC-<id> | Standalone
Completed tasks: <N> | <summary>
Updated files: <paths>
Verification:
- <command/result>
Next:
- `gwt-manage-pr` (create/update PR)
- `gwt-arch-review` (code review)
- return to `gwt-discussion` (artifact repair)
- ask user for decision
tools
Create distinctive, production-grade terminal user interfaces. Use when building TUI components with ratatui, CLI output styling, or xterm.js terminal rendering. Triggers: 'design TUI', 'terminal UI', 'TUIデザイン', 'ターミナルUI', 'ratatui widget'
testing
Semantic search over SPEC Issues (GitHub Issue cache at ~/.gwt/cache/issues/) using vector embeddings. Use when searching for existing specs, finding related specs, checking for duplicate specs, or determining which spec owns a scope. Mandatory preflight before gwt-discussion when the work may need a SPEC owner. Use when user says 'search specs', 'find related specs', 'check for duplicate specs', or asks which spec owns a scope.
testing
Mandatory preflight before gwt-discussion, gwt-register-issue, and gwt-fix-issue. Use proactively before creating any SPEC or Issue owner or before reusing an existing one. Searches SPEC Issues, GitHub Issues, and project files via ChromaDB. Triggers: 'search', 'find related', 'check duplicates'.
business
Use when the user wants to register new work from a bug report, idea, or task description and an existing GitHub Issue number is not already known.