Agent skill
update-types
Safely update the core data schema and types. Use when changing data models, adding fields, or modifying the report structure.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/update-types
SKILL.md
When updating types in the Weekly Report Builder, follow this sequence:
-
Modify the type definition:
- Edit
client/src/types.ts(orsrc/types.ts) - Add/modify the field with proper typing
- Add JSDoc comments for complex fields
- Edit
-
Update initialization:
- Check
src/App.tsxorclient/src/App.tsxforemptyReportinitialization - Ensure new fields have sensible default values
- Example:
newField: ''ornewField: []
- Check
-
Check update handlers:
- Review
src/components/ReportEditor.tsxgeneric update handlers - Ensure they can handle the new field type
- Review
-
Update any serialization:
- Check
data/directory for JSON schemas - Update any API endpoints that use the type
- Check
-
Verify:
- Run
npm run buildto catch type errors - Search for usages of the modified type to ensure compatibility
- Run
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?