requirements.cli.requirements_review_skill.text_change.rename
Requirements index · View definition
Requirement
The
habeas-requirementsskill MUST direct agents to rename or move a committed requirement only with the user’s agreement, usinghabeas-refactor, and to commit the rename or move before changing the requirement’s text.
Rationale
The requirement has one testable claim. The habeas-requirements skill must tell agents to do three things for a committed requirement that is renamed or moved:
- Do it only with the user’s agreement.
- Use
habeas-refactor. - Commit the rename or move before changing the requirement’s text.
tests/authoring_cli.rs#fn[the_requirements_skill_renames_requirements_through_refactor_before_editing] calls assert_phrases("habeas-requirements", ...). That helper checks that the whitespace-collapsed bundled skill text (SKILL.md plus its reference files) contains the phrase “Renaming or moving a committed requirement is a habeas-refactor task, agreed with the user and committed before its text changes”. It collapses whitespace through collapse in bundled_skill. That matters because the sentence wraps across lines in assets/skills/habeas-requirements/SKILL.md, in the Workflow section. The test would fail if the skill dropped or reworded the sentence.
The one asserted phrase covers all three parts of the requirement:
- Renaming or moving a committed requirement.
- Routing it through
habeas-refactor. - “Agreed with the user”, and committing before the text changes.
No other input class or boundary is named, so no further scenario is needed. A phrase check on the skill text is the usual way to test a requirement about skill content, and the project’s other skill-guidance tests use it too. I found no gap.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[the_requirements_skill_renames_requirements_through_refactor_before_editing]
- File:
tests/authoring_cli.rs - Selector:
fn[the_requirements_skill_renames_requirements_through_refactor_before_editing] - Kind:
fn tests/authoring_cli.rs:4152–4161
// {test}`requirements.cli.requirements_review_skill.text_change.rename`
#[test]
fn the_requirements_skill_renames_requirements_through_refactor_before_editing() {
assert_phrases(
"habeas-requirements",
&[
"Renaming or moving a committed requirement is a habeas-refactor task, agreed with the user and committed before its text changes",
],
);
}
Other sources
Input 1: requirements selection requirements.cli.requirements_review_skill.text_change.rename
requirements.cli.requirements_review_skill.text_change.rename:md/requirements/cli.md:237–240
:::{req} requirements_review_skill.text_change.rename
The `habeas-requirements` skill MUST direct agents to rename or move a committed requirement only with the user's agreement, using `habeas-refactor`, and to commit the rename or move before changing the requirement's text.
:::