← スキル一覧に戻る

dev-parity-guard
by canyouseeus
THE LOST+UNFOUNDS - Modern web application
⭐ 0🍴 0📅 2026年1月23日
SKILL.md
name: dev-parity-guard description: Maintains parity between development and production environments by validating scripts, proxies, and project structure.
Dev Parity Guard Skill
This skill prevents regressions by ensuring the local development environment correctly mirrors the production "save point" and incorporates all critical architectural fixes.
Critical Parity Rules
1. Script Integrity (package.json)
The dev script must ALWAYS support API routes.
- Rule:
scripts.devshould be"vercel dev". - Why: Standard
viteserver ignores/apidirectory, leading to 404s/500s on checkout, mail, and image streaming. - Verification:
grep '"dev": "vercel dev"' package.json
2. API Proxying (vite.config.ts)
The frontend must correctly route API calls to the local backend during development.
- Rule: Ensure
server.proxyinclude/api/galleryand/api/photostargetinghttp://localhost:3001. - Reason: Local development (port 3000) needs to talk to the local background server (port 3001) for heavy lifting like image processing.
3. Image Delivery Consistency
High-resolution images must be proxied to avoid Google Drive 3rd-party cookie blocks.
- Rule: ALWAYS use
/api/gallery/stream?fileId=...instead of direct Drive URLs insrc/components/. - Detection: Check
PhotoGallery.tsxandPhotoLightbox.tsxfor direct Drive links.
4. Project Root Awareness
Commands must be run from the repository root.
- Rule: Never run
npmorgitfrom the user home directory. - Target Dir:
/Users/thelostunfounds/thelostandunfounds
Pre-Flight Checklist (Run Before Every Session)
- Sync Branch:
git pull origin mainto get the latest "save point". - Check Port 3000:
lsof -ti:3000(Stop existing rogue servers). - Validate Env:
./scripts/validate-env.sh --local - Check Dependencies:
npm installifpackage.jsonchanged.
Automated Verification
Run the parity validation script to check for common regressions:
./scripts/validate-parity.sh
Regression Prevention Workflow
- Commit: Before committing, verify the change works locally with
vercel dev. - Deploy: After deployment, verify production URL.
- Save Point: Immediately sync your local branch with the deployed
mainbranch.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です