Guidelines and constraints for modifying reqm data models or requirement frontmatter schemas. Use when touching reqm/models.py, any requirement frontmatter, or the FolderMeta schema.
Load this skill before touching reqm/models.py or any requirement frontmatter.
__post_init__ for normalisation.models.py and validate.py — never add one without the other.extra: dict collects unknown keys — validation raises a ValidationError for each one via _check_unknown_keys in validate.py.Read in full before making any changes.
reqm/models.pyAdd the new field as optional with a sensible default:
new_field: str | None = None
If the field has an allowed-values constraint, add the corresponding check in reqm/validate.py.
Use the validate skill if you are also touching validation logic.
Update the canonical schema block in .claude/skills/incose-rewrite/SKILL.md and
.claude/skills/models/SKILL.md to reflect the new field.
pytest tests/
Fix until green.
---