Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

requirements.cli.overview_skill

Requirements index · View definition

evidence Valid

Requirement

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.

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 description helper, which goes through skill_md and skill_files. Those helpers use include_str! on assets/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 open description in full, so I assume it returns the front-matter description: 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 in assets/skills/habeas/SKILL.md contains 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]
// {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
:::{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.
:::