スキル一覧に戻る
akira103150146

customrule

by akira103150146

0🍴 0📅 2025年12月30日
GitHubで見るManusで実行

SKILL.md


name: customrule description: This is a new rule

TypeScript Migration Rules for 9jang Project

Architecture Standard

  • We are using a Monorepo structure with pnpm workspaces.
  • Centralized Data Source: All API schemas and types MUST reside in packages/shared/src/schemas.
  • Never define types locally if they represent API entities; always use z.infer<typeof Schema> from the shared package.

TypeScript Best Practices

  • No any: Use unknown with type guards if a type is truly uncertain.
  • Zod Integration: Use Zod for runtime validation at the API service layer.
  • Tiptap Extensions: When migrating extensions, use "Module Augmentation" to register custom commands and attributes in @tiptap/core.

Migration Strategy

  • When converting Vue components, prioritize <script setup lang="ts">.
  • For large composables (e.g., usePrintPreview), break down the logic into smaller, typed internal functions.
  • Ensure all path aliases use @/ for frontend and @9jang/shared for shared types.

スコア

総合スコア

40/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

レビュー

💬

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