rocket04/ai-fitness-coach/windows-cdp-workflows
Claude Code and agent skill by rocket04/ai-fitness-coach
- community
Checking that the SKILL.md file is still in the repository.
Windows-specific development workflows for Vite + Chrome DevTools CDP. Covers process management, line ending normalization, production build testing via static server, and the Vite HMR WebSocket limitation through CDP.
Install
npx vskill@latest install rocket04/ai-fitness-coach/windows-cdp-workflowsSKILL.md
The same SKILL.md was published earlier as rocket04/ai-fitness-coach/windows-cdp-workflows.
Windows CDP Development Workflows
Vite Dev Server Management on Windows
Killing Stale Vite Processes
kill -9 via bash does NOT work on Windows MSYS. Use PowerShell:
Or find the specific PID:
Production Build Testing
Vite HMR WebSocket does NOT work through CDP-connected browsers. For browser testing:
- Build:
npx vite build - Serve:
cd dist && npx serve -l 5173 -s - Unregister old SW in browser before testing:
navigator.serviceWorker.getRegistrations().then(regs => Promise.all(regs.map(r => r.unregister())))
Line Ending Normalization
Vite's publicDir copies files as-is. JS files keep their original line endings. TS files compiled by Vite use the OS default (CRLF on Windows when git config core.autocrlf is not false).
- Fix:
git config core.autocrlf false(already set in fitness-tracker)
JSX vs TSX Files
Type Annotations
TypeScript type annotations (: string, as const, interface) are ONLY valid in .tsx files, not .jsx.
- When converting
.jsx→.tsx: remove all explicit type annotations from object literals - Use
as constfor literal types → move to separate typed constant or use type assertion at usage site - Object property types → let TypeScript infer, or define a separate type/interface
Conversion Checklist
- Rename
.jsx→.tsx - Add proper TypeScript imports if needed
- Remove inline type annotations from object literals
- Add type assertions at usage sites if needed:
data as any,value as FitnessGoal[] - Update imports in files that reference the converted file
Lighthouse Auditing via CDP
act() Incompatibility with React Production Builds
Component tests using @testing-library/react's render() fail with act(...) is not supported in production builds of React when the test environment uses production React builds. This is a known vitest/jsdom issue.
- Core module tests (pure functions) are unaffected
- All component tests that render JSX are affected
- Workaround: Tests are correctly written and will work once test environment is fixed
Demo Data Generation Patterns
See references/demo-data-patterns.md for generating distinct athlete profile data with deterministic seeding.
Backup-Before-Destructive Pattern
When performing operations that overwrite user data (import, demo mode activation):
- Check if existing data exists:
(sessions.length > 0) || (checkins.length > 0) - Create backup:
exportAllData()→localStorage.setItem('fitness-backup-<type>-<timestamp>', JSON.stringify(backup)) - Rotate: keep only last 5 backups
- Non-blocking: wrap in try/catch so backup failure doesn't prevent the operation
- Toast: notify user that backup was created
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.kilo/skills/.archive/windows-cdp-workflows/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rocket04/ai-fitness-coach/windows-cdp-workflows)