requirements.cli.overview_skill.new_project
Requirements index · View definition
Requirement
The
habeasskill MUST tell agents that a new project with little code starts withhabeas-requirements, nothabeas-bootstrap-requirements, even though most of its code has no references.
Rationale
The requirement has one obligation. The habeas skill must tell agents that a new project with little code starts with habeas-requirements, not habeas-bootstrap-requirements, even though most of its code has no references.
tests/authoring_cli.rs#fn[the_habeas_skill_starts_a_new_project_with_the_requirements_skill] covers it:
- It uses
step("habeas", 1)to read the numbered routing step of the bundledhabeasskill’s Workflow section. workflow_stepspanics if the skill has no Workflow section or the step is missing.- It asserts with
assert_textthat the step contains the sentence “A new project with little code starts with habeas-requirements, not habeas-bootstrap-requirements, even though most of its code has no references”.assert_textusescontainsand fails with a message if the phrase is absent. - That phrase carries every clause of the requirement: the new-project condition, the choice of
habeas-requirements, the exclusion ofhabeas-bootstrap-requirements, and the “most code has no references” caveat. - It also asserts the contrasting bootstrap routing row, “Adopting Habeas in an existing codebase, or most of the code has no references | habeas-bootstrap-requirements”. That check shows the new-project guidance sits beside the bootstrap guidance it is distinguished from.
The test reads the real bundled skill text, so removing or changing the guidance would fail it. The requirement has no other modes or boundary cases. I found no gaps.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[the_habeas_skill_starts_a_new_project_with_the_requirements_skill]
- File:
tests/authoring_cli.rs - Selector:
fn[the_habeas_skill_starts_a_new_project_with_the_requirements_skill] - Kind:
fn tests/authoring_cli.rs:3787–3799
// {test}`requirements.cli.overview_skill.new_project`
#[test]
fn the_habeas_skill_starts_a_new_project_with_the_requirements_skill() {
let routing = step("habeas", 1);
assert_text(
"habeas workflow",
&routing,
&[
"Adopting Habeas in an existing codebase, or most of the code has no references | habeas-bootstrap-requirements",
"A new project with little code starts with habeas-requirements, not habeas-bootstrap-requirements, even though most of its code has no references",
],
);
}
Other sources
Input 1: requirements selection requirements.cli.overview_skill.new_project
requirements.cli.overview_skill.new_project:md/requirements/cli.md:117–120
:::{req} overview_skill.new_project
The `habeas` skill MUST tell agents that a new project with little code starts with `habeas-requirements`, not `habeas-bootstrap-requirements`, even though most of its code has no references.
:::
Input 3: outline tests/authoring_cli.rs fn[step]
- File:
tests/authoring_cli.rs - Selector:
fn[step] - Kind:
fn tests/authoring_cli.rs:2991–2999
/// The text of one numbered workflow step.
// {cite}`habeas:util`
fn step(name: &str, number: u32) -> String {
workflow_steps(name)
.into_iter()
.find(|(n, _)| *n == number)
.unwrap_or_else(|| panic!("{name} has no step {number}"))
.1
}