Agent skill
entity-validator
Validation rules for extracted entities. Checks required fields, data types, cross-references, duplicates, enum values, and domain constraints.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/entity-validator
SKILL.md
entity-validator
Base skill for validating extracted lore entities against the domain model.
Validation Checks
- Export format: Verify that the top level contains only collections from the schema
lore_data.pyandnext_id - Data types: Verify string, number, boolean, array, object types match schema
- Required fields: Every entity must have all required fields corresponding to the domain model
- Cross-references: All referenced entity IDs must exist and refer to numeric
id - No duplicates: Same entity type + name combination must not appear twice
Domain Constraints
From src/domain/:
| Constraint | Rule |
|---|---|
| Character backstory | min 100 characters |
| Ability power_level | integer 1–10 |
| Item level | integer 1–100 |
| Reputation value | integer -1000 to 1000 |
| Combat stats | ≥ 0 (attack, defense, health, speed) |
| Timestamps | updated_at ≥ created_at |
| Version | ≥ 1 |
Error Handling
- WARN on missing optional fields
- ERROR on missing required fields or invalid types
- ERROR on duplicate entity (same type + name)
- WARN on unresolved cross-references (may be resolved during merge)
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?