スキル一覧に戻る
CleanExpo

fix-hardcoded-workspaceid-pages

by CleanExpo

Unite Group CRM

1🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: fix-hardcoded-workspaceid-pages description: Use when asked to remove hardcoded workspaceId values from client pages and replace them with useWorkspace() + friendly loading/error states.

Goal: remove hardcoded workspaceId values from client-side pages and use useWorkspace() instead.

Workflow:

  1. Locate hardcoded workspace IDs

    • Search for workspaceId = and the sentinel UUID 00000000-0000-0000-0000-000000000000.
  2. Replace with useWorkspace()

    • Import useWorkspace from @/hooks/useWorkspace.
    • Destructure { workspaceId, loading: workspaceLoading, error: workspaceError }.
  3. Ensure safe fetch execution

    • Guard data loads: do not call APIs until workspaceId is available.
    • Add dependencies so effects re-run when workspaceId changes.
  4. Add friendly UI states

    • While workspaceLoading: show "Loading workspace…"
    • If workspaceError or missing workspaceId: show a clear error card/message
  5. Validate

    • Run npm run typecheck.
    • Run the smallest tests that exercise the changed pages or helper logic.

スコア

総合スコア

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

レビュー

💬

レビュー機能は近日公開予定です