Agent skill
customrule
This is a new rule
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/customrule
SKILL.md
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
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: Useunknownwith 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/sharedfor shared types.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?