starwards-workflow
9
总安装量
4
周安装量
#32861
全站排名
安装命令
npx skills add https://github.com/starwards/starwards --skill starwards-workflow
Agent 安装分布
claude-code
3
windsurf
2
trae
2
opencode
2
codex
2
antigravity
2
Skill 文档
Starwards Development Workflow
Overview
This is the master index for all Starwards Claude skills. Use this to understand the complete development workflow and when to activate each skill.
Skill Map
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â STARWARDS WORKFLOW â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
ââââââââââââââââ
â NEW TASK â
ââââââââ¬ââââââââ
â
â¼
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â 1. PLANNING PHASE â
â â
â âââââââââââââââââââ ââââââââââââââââââââ â
â â writing-plans âââââââââ¶â executing-plans â â
â â (if complex) â â (batch execution)â â
â âââââââââââââââââââ ââââââââââââââââââââ â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â 2. DEVELOPMENT PHASE (Red-Green-Refactor) â
â â
â ââââââââââââââââââââââââââââââââââââââââââââââââ â
â â starwards-tdd â â
â â ⢠Write failing test (RED) â â
â â ⢠Verify it fails correctly â â
â â ⢠Minimal implementation (GREEN) â â
â â ⢠Verify it passes â â
â â ⢠Refactor & repeat â â
â ââââââââââââââââââââââââââââââââââââââââââââââââ â
â â â
â â (if test fails unexpectedly) â
â â¼ â
â ââââââââââââââââââââââââââââââââââââââââââââââââ â
â â starwards-debugging â â
â â Phase 1: Root cause investigation â â
â â Phase 2: Pattern analysis â â
â â Phase 3: Hypothesis testing â â
â â Phase 4: Implementation â â
â ââââââââââââââââââââââââââââââââââââââââââââââââ â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â 3. VERIFICATION PHASE â
â â
â ââââââââââââââââââââââââââââââââââââââââââââââââ â
â â starwards-verification â â
â â ⢠npm run test:types (TypeScript) â â
â â ⢠npm run test:format (ESLint/Prettier) â â
â â ⢠npm run build (all modules) â â
â â ⢠npm test (unit/integration) â â
â â ⢠npm run test:e2e (Playwright) â â
â ââââââââââââââââââââââââââââââââââââââââââââââââ â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â
â¼
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â 4. COMPLETION PHASE â
â â
â ⢠Git commit with descriptive message â
â ⢠Push to feature branch â
â ⢠Create PR (if ready) â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â SUPPORTING SKILLS (use as needed throughout) â
â â
â ââââââââââââââââââââ âââââââââââââââââââ âââââââââââââââââââ
â âstarwards-monorepoâ âstarwards-colyseusâ âusing-superpowersâ
â âBuild order â â@gameField â âSkill discovery â â
â â3-terminal setup â âState sync â âMandatory use â â
â âModule deps â âJSON Pointer â âAnnouncements â â
â ââââââââââââââââââââ âââââââââââââââââââ âââââââââââââââââââ
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
Skills Quick Reference
| Skill | When to Use | Key Activities |
|---|---|---|
| using-superpowers | Start of ANY conversation | Check for relevant skills, announce usage |
| writing-plans | Complex multi-step feature | Create detailed implementation roadmap |
| executing-plans | Following a plan | Batch execution with checkpoints |
| starwards-tdd | Implementing ANY feature/fix | Write test first, RED-GREEN-REFACTOR |
| starwards-debugging | Encountering bugs/failures | 4-phase systematic root cause analysis |
| starwards-ci-debugging | GitHub Actions CI failures | Install gh CLI, download logs, analyze errors |
| starwards-verification | Before claiming “done” | Run full test suite, verify evidence |
| starwards-monorepo | Build issues, workspace setup | Understand module dependencies, build order |
| starwards-colyseus | State sync issues, multiplayer | @gameField patterns, room architecture |
Common Workflows
Workflow 1: New Ship System
1. using-superpowers â Announce using starwards-tdd
2. starwards-monorepo â Ensure core watch mode running (Terminal 1)
3. starwards-tdd:
a. Write unit test (modules/core/test/shield.spec.ts) â RED
b. Implement system (modules/core/src/ship/shield.ts) â GREEN
c. Add to ShipState with @gameField
d. Write integration test with ShipTestHarness â RED
e. Create manager, add to update loop â GREEN
4. starwards-colyseus â Verify @gameField decorator order
5. starwards-verification â Run npm test, npm run build
6. Commit: "feat: add shield system with recharge mechanics"
Workflow 2: UI Widget
1. using-superpowers â Announce using starwards-tdd
2. starwards-monorepo â Ensure all 3 terminals running
3. starwards-tdd:
a. Write E2E test (modules/e2e/test/shield-widget.spec.ts) â RED
b. Create widget (modules/browser/src/widgets/shield.ts) â GREEN
c. Register in Dashboard
d. Test with data-id selector
4. starwards-verification â Run npm run test:e2e
5. Commit: "feat: add shield status widget to engineering screen"
Workflow 3: Bug Fix
1. starwards-debugging:
Phase 1: Investigate (read error, reproduce, check changes)
Phase 2: Pattern analysis (find working examples, compare)
Phase 3: Hypothesis (form single hypothesis, test minimally)
Phase 4: Implementation (see step 2 below)
2. starwards-tdd:
a. Write failing test reproducing bug â RED
b. Implement fix â GREEN
3. starwards-verification â Full test suite
4. Commit: "fix: shield strength not syncing to clients"
Workflow 4: Multiplayer Feature
1. starwards-colyseus â Review state sync patterns
2. starwards-tdd:
a. Write MultiClientDriver test â RED
b. Add @gameField to state
c. Implement command handler
d. Test with 2+ clients â GREEN
3. starwards-verification â npm test, npm run test:e2e
4. Commit: "feat: multi-crew shield power distribution"
Workflow 5: Monorepo Build Issues
1. starwards-debugging â Phase 1: Check which module failing
2. starwards-monorepo:
- Verify build order (core â others)
- Check if core watch mode running
- Try fresh build: npm run clean && npm run build
3. If still broken â starwards-debugging Phase 2-4
4. starwards-verification â Verify clean build
Integration Matrix
| From Skill | To Skill | When |
|---|---|---|
| using-superpowers | ANY | Start of conversation |
| writing-plans | executing-plans | Plan complete, ready to implement |
| executing-plans | starwards-tdd | Implementing each task in plan |
| starwards-tdd | starwards-debugging | Test fails unexpectedly |
| starwards-debugging | starwards-tdd | Found root cause, write test for fix |
| starwards-tdd | starwards-verification | Implementation complete |
| starwards-verification | (commit) | All checks pass |
| starwards-monorepo | starwards-tdd | Setting up dev environment |
| starwards-colyseus | starwards-tdd | Implementing state sync feature |
| starwards-colyseus | starwards-debugging | State sync not working |
Skill Dependencies
using-superpowers (master skill)
âââ ALL other skills
starwards-tdd
âââ starwards-monorepo (understand build workflow)
âââ starwards-colyseus (when testing state sync)
âââ starwards-debugging (when tests fail)
starwards-debugging
âââ starwards-tdd (write test for fix)
âââ starwards-monorepo (debug build issues)
âââ starwards-colyseus (debug state sync)
starwards-verification
âââ starwards-monorepo (understand test commands)
âââ starwards-tdd (verification patterns)
MANDATORY First Response Protocol
Before responding to ANY user message:
- â Check: Does this match any skill?
- â Read: Use Skill tool to load relevant skill
- â Announce: “I’m using [Skill Name] to [task]”
- â Follow: Execute skill instructions exactly
Example:
User: "Add a new cloaking device system to ships"
Claude:
1. Checks skills â starwards-tdd matches (implementing new feature)
2. Reads starwards-tdd skill
3. Announces: "I'm using starwards-tdd to implement the cloaking device"
4. Follows TDD cycle: write test â verify RED â implement â verify GREEN
Skill Activation Triggers
| User Says | Activate Skill |
|---|---|
| “Add X”, “Implement Y”, “Create Z” | starwards-tdd |
| “Fix bug”, “X is broken”, “Not working” | starwards-debugging |
| “Is it done?”, “Does it work?”, “Can I commit?” | starwards-verification |
| “Build fails”, “Can’t find module”, “Import error” | starwards-monorepo |
| “State not syncing”, “@gameField issue” | starwards-colyseus |
| “Plan out X”, “How should I implement Y?” | writing-plans |
| “Follow this plan…” | executing-plans |
Version History
- 2025-11-04: Initial workflow master index created
Related Documentation
- CLAUDE.md – Quick reference for AI assistants
- docs/DEVELOPMENT.md – Development setup
- docs/testing/README.md – Testing guide
- docs/PATTERNS.md – Code patterns
Quick Links
Skills:
- using-superpowers.md – Master skill activation
- starwards-tdd.md – Test-driven development
- starwards-debugging.md – Systematic debugging
- starwards-verification.md – Verification commands
- starwards-monorepo.md – Monorepo workflow
- starwards-colyseus.md – Multiplayer patterns
- writing-plans.md – Planning complex features
- executing-plans.md – Plan execution
The Bottom Line
Development workflow in 4 steps:
- Plan (if complex) â writing-plans
- Develop (always) â starwards-tdd (RED-GREEN-REFACTOR)
- Verify (always) â starwards-verification (full test suite)
- Commit â git commit & push
When stuck:
- Bug/failure â starwards-debugging (4 phases)
- Build issue â starwards-monorepo (check dependencies)
- State sync â starwards-colyseus (check @gameField)
Remember: using-superpowers is MANDATORY at start of every conversation.