js-skills

Zod schema definition patterns, dayjs date/time handling conventions, and @mj-studio/js-util guide-driven refactoring rules. Use when defining Zod schemas, creating domain models, integrating const assertion enums with Zod validation, working with dayjs for date/time operations, or using @mj-studio/js-util functions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "js-skills" with this command: npx skills add mym0404/agent-skills/mym0404-agent-skills-js-skills

JS Skills — Zod Schema, Dayjs & JS Util Patterns

Consistent Zod schema definition rules, dayjs date/time conventions, and guide-driven utility refactoring rules 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
  • Using or reviewing public APIs from @mj-studio/js-util

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Schema PatternsHIGHschema-
2Dayjs PatternsHIGHdayjs-
3JS Util PatternsHIGHjs-util-

Quick Reference

1. Schema Patterns (HIGH)

  • schema-naming-convention — Consistent naming for schemas, types, and files
  • schema-type-inference — Derive types from schemas with z.infer
  • schema-const-enum — Const assertion arrays + z.enum integration
  • schema-composition — Compose schemas via nesting, pick, partial
  • schema-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

3. JS Util Patterns (HIGH)

  • js-util-usage — Use upstream llms.txt to discover, apply, and refactor toward @mj-studio/js-util helpers instead of bespoke utility code

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
rules/js-util-usage.md

Each rule file contains:

  • Why the rule matters
  • Incorrect implementation example
  • Correct implementation example
  • Reference links

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

electron-skills

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

react-skills

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

web3-polymarket

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

define-architecture

No summary provided by upstream source.

Repository SourceNeeds Review