js-skills
SKILL.md
JS Skills — Zod Schema & Dayjs Patterns
Consistent Zod schema definition rules and dayjs date/time conventions extracted from production domain modeling.
When to Apply
Reference these guidelines when:
- Defining new domain model schemas with Zod
- Extending base schemas for entity models
- Integrating const assertion enums with Zod validation
- Composing or deriving schemas from existing ones
- Creating model instances with auto-generated base fields
- Setting up dayjs plugins and locale in a project
- Working with timestamps, time arithmetic, formatting, or durations
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Schema Patterns | HIGH | schema- |
| 2 | Dayjs Patterns | HIGH | dayjs- |
Quick Reference
1. Schema Patterns (HIGH)
schema-naming-convention— Consistent naming for schemas, types, and filesschema-type-inference— Derive types from schemas with z.inferschema-const-enum— Const assertion arrays + z.enum integrationschema-composition— Compose schemas via nesting, pick, partialschema-create-model— Use createModel for instance creation with auto base fields
2. Dayjs Patterns (HIGH)
dayjs-usage— Plugin setup, timestamp ops, time arithmetic, formatting, duration
How to Use
Read individual rule files for details and examples:
rules/schema-naming-convention.md
rules/schema-type-inference.md
rules/schema-const-enum.md
rules/schema-composition.md
rules/schema-create-model.md
rules/dayjs-usage.md
Each rule file contains:
- Why the rule matters
- Incorrect implementation example
- Correct implementation example
- Reference links
Weekly Installs
6
Repository
mym0404/agent-skillsGitHub Stars
1
First Seen
11 days ago
Security Audits
Installed on
cline6
gemini-cli6
github-copilot6
codex6
kimi-cli6
cursor6