JS
json-serialization
Defines how to create and maintain JSON-serializable models using json_serializable. Use when adding models or APIs.
Install
mkdir -p .claude/skills/json-serialization && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13887" && unzip -o skill.zip -d .claude/skills/json-serialization && rm skill.zipInstalls to .claude/skills/json-serialization
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Defines how to create and maintain JSON-serializable models using json_serializable. Use when adding models or APIs.116 chars✓ has a “when” trigger
About this skill
JSON Serialization Skill
Standardizes model creation and code generation.
When to use this skill
- Creating new data models
- Integrating API responses
- Persisting structured data
Conventions
- Annotate with
@JsonSerializable - Keep models immutable
- Use
uuidfor IDs where needed
File structure
model.dartmodel.g.dart(generated)
Rules
- Never edit generated files
- Regenerate with build_runner after changes