requirements.cli.overview_skill
Requirements index · View definition
Requirement
Habeas MUST bundle a
habeasskill whose description tells agents to use it at the start of any work in a Habeas project, naming as signs of one ahabeasdev-dependency, ahabeas.toml,{req}directives in the book, and{impl},{test}, or{cite}references in code.
Rationale
The requirement has three testable parts. A habeas skill must be bundled. Its description must tell agents to use it at the start of any work in a Habeas project. That description must name four signs: a habeas dev-dependency, a habeas.toml, {req} directives in the book, and {impl}/{test}/{cite} references in code.
tests/authoring_cli.rs#fn[the_habeas_skill_is_used_at_the_start_of_any_work_in_a_habeas_project] is marked {test} for requirements.cli.overview_skill. It covers all three parts:
- Bundled skill: the test reads the description through the
descriptionhelper, which goes throughskill_mdandskill_files. Those helpers useinclude_str!onassets/skills/habeas/SKILL.md, so the text under test is the actual bundled skill file. I read these helpers only through ripgrep matches. I did not opendescriptionin full, so I assume it returns the front-matterdescription:line, as its doc comment says. - Start-of-any-work instruction: the test asserts that the description starts with “Use at the start of any work in a project that tracks requirements with Habeas”.
- Four signs: the test asserts that the description contains each of the four sign phrases, with a failure message naming the missing sign. The actual
description:line inassets/skills/habeas/SKILL.mdcontains all four.
The test asserts the outcome directly. A description that dropped any sign or changed the opening instruction would fail it. The requirement’s wording (“directives in the book” versus “in its mdBook”) does not change what the test needs to check.
Whether skills are published in the package at all is covered by requirements.cli.skill_structure through bundled_skills_are_five_skill_directories_each_home_to_its_topics, which is a separate requirement. I found no gap.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[the_habeas_skill_is_used_at_the_start_of_any_work_in_a_habeas_project]
- File:
tests/authoring_cli.rs - Selector:
fn[the_habeas_skill_is_used_at_the_start_of_any_work_in_a_habeas_project] - Kind:
fn tests/authoring_cli.rs:3695–3710
// {test}`requirements.cli.overview_skill`
#[test]
fn the_habeas_skill_is_used_at_the_start_of_any_work_in_a_habeas_project() {
let description = description("habeas");
assert!(description.starts_with(
"Use at the start of any work in a project that tracks requirements with Habeas"
));
for sign in [
"a `habeas` dev-dependency",
"a `habeas.toml`",
"`{req}` directives in its mdBook",
"`{impl}`/`{test}`/`{cite}` references in code",
] {
assert!(description.contains(sign), "{sign}");
}
}
Other sources
Input 1: requirements selection requirements.cli.overview_skill
requirements.cli.overview_skill:md/requirements/cli.md:97–100
:::{req} overview_skill
Habeas MUST bundle a `habeas` skill whose description tells agents to use it at the start of any work in a Habeas project, naming as signs of one a `habeas` dev-dependency, a `habeas.toml`, `{req}` directives in the book, and `{impl}`, `{test}`, or `{cite}` references in code.
:::