Agent skill

Requirements

by rizsotto in rizsotto/Bear

Write, modify, or review a requirement file under docs/requirements -- pick the single owning file, keep the text contract-only, name IDs so they need no explanation, and verify cross-references and…

GPL-3.0Auto-check passedTesting & QA

Install Requirements

skills CLI
$ npx skills add rizsotto/Bear --skill requirements -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rizsotto/Bear requirements --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rizsotto/Bear.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/requirements .claude/skills/requirements && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
requirements
GitHub stars
6.5k
Token cost
~2k tokens
SKILL.md length
1,014 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
GPL-3.0

At a glance

Write, modify, or review a requirement file under docs/requirements -- pick the single owning file, keep the text contract-only, name IDs so they need no explanation, and verify cross-references and…

  • Works in 8 steps: Read the ground rules → Find the owner before writing a word → Name the ID so it needs no explanation → …
  • The user asks to add
  • SKILL.md covers 1. Read the ground rules, 2. Find the owner before…, 3. Name the ID so it needs no… and 4. Keep the body contract-only, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Requirements is an agent skill from rizsotto/Bear. Write, modify, or review a requirement file under docs/requirements -- pick the single owning file, keep the text contract-only, name IDs so they need no explanation, and verify cross-references and test coverage. Use when the user asks to add, change, audit, or review a requirement, or when the decision protocol calls for writing one.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Test coverage. The repository describes itself as: Generate compilecommands.json for any C or C++ build. The licence is GPL-3.0.

When your agent uses it

  • The user asks to add
  • Review a requirement
  • The decision protocol calls for writing one

Example prompts

  • “/requirements”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Read the ground rules
  2. Find the owner before writing a word
  3. Name the ID so it needs no explanation
  4. Keep the body contract-only
  5. Verify every cross-reference, gloss included
  6. Record limitations and exclusions where they belong
  7. Make the Testing section carry every criterion
  8. Verify before finishing

What it can do on your machine

Read from SKILL.md and the folder at commit 7238459. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Requirements loads about 2k tokens when it runs. Until then it costs about 88 tokens; SKILL.md has 1,014 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~88
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from rizsotto/Bear at commit 7238459, republished under its GPL-3.0 licence (© rizsotto). 1,014 words, ~1,951 tokens.

Download SKILL.mdSave it as .claude/skills/requirements/SKILL.md (or your agent's skills folder).
name
requirements
description
Write, modify, or review a requirement file under docs/requirements -- pick the single owning file, keep the text contract-only, name IDs so they need no explanation, and verify cross-references and test coverage. Use when the user asks to add, change, audit, or review a requirement, or when the decision protocol calls for writing one.

Write and maintain requirement files

docs/requirements/CLAUDE.md owns the format: the template, file naming, status lifecycle, test-tag convention, and the list of what does not belong. Read it first and follow it; this skill operationalizes it.

This skill adds the method. Every check below traces to a real cleanup this directory needed: duplicated passages that drifted into apparent contradiction, implementation detail displacing contract, confusable names that needed paragraphs to disambiguate, glosses that did not match their link, and acceptance criteria no test verified. Run the checks whether writing a new requirement, editing an existing one, or auditing the directory.

1. Read the ground rules

Read docs/requirements/CLAUDE.md. If the change involves reasoning or a rejected alternative, read docs/rationale/CLAUDE.md too -- the why goes there, linked from a ## Rationale section, never inlined.

2. Find the owner before writing a word

Every behavior has exactly one owning requirement file. Before adding any passage, find where it belongs:

  • ls docs/requirements/ and grep the directory for the key nouns of the behavior. Read every file that hits.
  • An owner exists: extend it. No owner: create a new file.
  • The new content is one instance of a contract other files also instantiate (another recognized toolchain, another output filter): extend the shared owner -- usually a table row -- instead of creating a per-instance file. A new file that would restate an existing contract with the names changed is a signal to merge, not to add.
  • Two files each state half of one contract (one says "exits non-zero when X", another says "X never affects the exit code"): that is a latent contradiction. Pick or create one owner, state the full contract there organized around the principle that resolves the halves, and reduce the other files to one-line deferrals.

When another file needs to mention the behavior, it gets a one-line pointer naming the owner ("owned by output-duplicate-detection"), never a re-narration. If a re-narration can drift, it will.

3. Name the ID so it needs no explanation

  • Take the prefix from the existing set (ls docs/requirements/ shows them: cli-, interception-, output-, recognition-). Do not invent a new prefix for one file, and pick the prefix by what the content is about, not by which crate implements it.
  • Place the new ID next to the most similar existing ID. If a reader needs prose to tell them apart, rename until the names alone carry the distinction. Disambiguation paragraphs are a naming bug.
  • Renaming or merging an ID is one atomic change: update every Requirements: tag in tests (grep -rn "Requirements:.*<old-id>" crates/ tests/), every cross-reference in docs/, and re-run the coverage script.

4. Keep the body contract-only

docs/requirements/CLAUDE.md ends with the list of what does not belong; this check is how to apply it. For every sentence ask: is this what the user can expect (keep), why we chose it (rationale entry), or how it is built (code comment)? Beyond that list, remove on sight:

  • Rust API and type names standing in for behavior (Path::canonicalize, crate names, function names). State the observable behavior instead.
  • Internal file names as actors in acceptance criteria (a YAML interpreter definition, a module path). The criterion is about observable output, not about which file produces it.
  • Buffering or performance speculation dressed as a constraint.
  • History: what the code used to do, fixed-bug narratives, references to unimplemented proposals, config keys that never shipped. A requirement states the present contract; git history remembers the past. (A regression-guard test scenario citing an issue number is fine -- that is contract, not history.)
  • Contracts phrased as a diff against the past ("byte-identical to today's behavior", "same as before this feature"): state the behavior absolutely. And an Intent that describes the pre-fix bug in present tense becomes false the day the status turns implemented.
  • Reproduced external specifications. Link them; do not copy them.

The boundary the no-literal-flags rule needs: it bans flags and config keys of Bear itself; flags of the compilers Bear classifies (-c, --version, -showme) are subject matter and do appear.

Show full SKILL.md (355 more words)Show less

5. Verify every cross-reference, gloss included

A link is two claims: the target exists, and the gloss describes it. Check both -- read the target and confirm the sentence around the link matches what that file actually owns. A gloss describing env-derived flags that links the wrapper-mode mechanism is worse than no link.

6. Record limitations and exclusions where they belong

  • Accepted gaps go in the owner file's ## Known limitations section (not in Notes, not in a neighboring file that happens to mention the feature); link the tracking issue when one exists.
  • A deliberate exclusion likely to be proposed again (a name not recognized, a mode not supported) is part of the contract: record it in the owner with the reasoning that keeps it out, so the next reader does not re-litigate it.

7. Make the Testing section carry every criterion

Walk the acceptance criteria one by one; each must map to at least one Given-When-Then scenario. A criterion with no scenario is either untestable (rewrite the criterion) or a coverage hole (write the scenario). Scenarios are canonical; tests implement them and cite the requirement ID.

Status discipline: a new requirement starts at proposed and waits for approval (see the decision protocol in the root CLAUDE.md); the full lifecycle is the status table in docs/requirements/CLAUDE.md. Set implemented only after step 8 passes.

8. Verify before finishing

sh
# every implemented requirement has at least one tagged test
./scripts/check-requirements-coverage.sh

# cross-references resolve (review hits; backticked non-ID words
# sharing a prefix are false positives; keep the prefix list in
# sync with step 3)
grep -hoE '`(cli|interception|output|recognition)-[a-z0-9-]+(\.md)?`' \
    docs/requirements/*.md | tr -d '`' | sed 's/\.md$//' | sort -u | \
    while read -r id; do
      [ -f "docs/requirements/$id.md" ] || echo "dangling: $id"
    done
# IDs are written without the .md extension; a suffixed hit is itself
# a style fix even when the target exists

# implementation-leakage heuristics on the touched file (review hits)
grep -nE '::|\.(rs|yaml|yml)\b|\bcrate\b' docs/requirements/<file>.md

The leakage grep is a prompt, not a verdict: hits in Intent or acceptance criteria almost always need fixing; a type deliberately named as the source of truth for an interchange format, or test-file locations in Testing and Notes, are legitimate and stay.

Then a final read of the touched file asking the step questions in order: single owner (2), self-explaining name (3), contract-only (4), verified references (5), limitations placed (6), every criterion tested (7).

Scope of a maintenance edit

When editing an existing file, apply the checks to the passages the change touches. Fix genre violations you are already rewriting; note violations elsewhere in the file and propose a separate cleanup rather than growing the change. A deliberate directory-wide sweep is its own task with its own commit series.

© rizsotto, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/requirements of rizsotto/Bear.

Open the folder on GitHubat commit 7238459

Compare with similar skills

Requirements next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Requirements compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Requirements this skillrizsotto/Bear6.5k—~2kAutomated safety check: PassGPL-3.0
Crap Analysisardalis/RiverBooks1352 repos~3.4kAutomated safety check: PassNone
Code Coverages3s-project/s3s311—~789Automated safety check: PassApache-2.0
Project Statusbactopia/bactopia522—~787Automated safety check: PassMIT
Check Coverageldayton/Dippy243—~403Automated safety check: PassMIT
Guarding Destructive Operationskajisho5/ffmpeg-skill1.9k—~2.6kAutomated safety check: PassMIT

Similar skills

  • Crap Analysis

    ardalis/RiverBooks

    Analyze code coverage and CRAP (Change Risk Anti-Patterns) scores to identify high-risk code.

    135 GitHub starsUsed in 2 repos~3.4k tokens
    Testing & QAAuto-check passed
  • Code Coverage

    s3s-project/s3s

    Measure and grow the line coverage of the s3s crate. An agent skill from s3s-project/s3s.

    311 GitHub stars~789 tokensUpdated today
    Testing & QAAuto-check passed
  • Project Status

    bactopia/bactopia

    Show a live snapshot of the Bactopia project state — component counts, GroovyDoc coverage, nf-test coverage, and structural issues.

    522 GitHub stars~787 tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • Check Coverage

    ldayton/Dippy

    Ensure comprehensive test coverage for a CLI handler. An agent skill from ldayton/Dippy.

    243 GitHub stars~403 tokensUpdated 3 mo ago
    Testing & QAAuto-check passed
  • Guarding Destructive Operations

    kajisho5/ffmpeg-skill

    Add and review preconditions on operations that delete, overwrite, rewrite history, or resolve a caller-supplied name to a filesystem path — refusing instead of warning, placing the guard ahead of…

    1.9k GitHub stars~2.6k tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • Atdd Mutate

    swingerman/engineer

    A skill your agent uses to add a third validation layer to the ATDD workflow — after acceptance tests verify WHAT and unit tests verify HOW, mutation testing verifies the tests actually catch bugs.

    154 GitHub stars~2.7k tokensUpdated 16 days ago
    Testing & QAAuto-check passed

More from rizsotto/Bear

  • Release

    rizsotto/Bear

    Cut a release of Bear -- verify metadata, run the full check set, fast-forward to master, tag, and publish a GitHub release plus discussion announcement.

    6.5k GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Requirements

What does Requirements do?

Write, modify, or review a requirement file under docs/requirements -- pick the single owning file, keep the text contract-only, name IDs so they need no explanation, and verify cross-references and…. Requirements is an agent skill from rizsotto/Bear. Write, modify, or review a requirement file under docs/requirements -- pick the single owning file, keep the text contract-only, name IDs so they need no explanation, and verify cross-references and test coverage.

When should I use Requirements?

Requirements fits situations like: the user asks to add; review a requirement; the decision protocol calls for writing one.

How do I install Requirements in Claude Code?

Run `npx skills add rizsotto/Bear --skill requirements -a claude-code`. Or copy the skill folder (.claude/skills/requirements in rizsotto/Bear) into .claude/skills/requirements in your project. Claude Code loads it when a task matches its description.

How do I install Requirements in Codex?

Run `npx skills add rizsotto/Bear --skill requirements -a codex`. Or copy the skill folder (.claude/skills/requirements in rizsotto/Bear) into .agents/skills/requirements in your project. Codex loads it when a task matches its description.

Can I use Requirements in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rizsotto/Bear --skill requirements -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/requirements, .gemini/skills/requirements, .github/skills/requirements and .opencode/skills/requirements in your project.

What does Requirements need to run?

SKILL.md names no scripts, command-line tools or credentials: Requirements is instructions for the agent only.

Does Requirements access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Requirements safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Requirements use?

Requirements is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Requirements use?

About 2k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Requirements?

Skills that share tags, products or a category with Requirements: Crap Analysis (ardalis/RiverBooks, 135 stars), Code Coverage (s3s-project/s3s, 311 stars), Project Status (bactopia/bactopia, 522 stars) and Check Coverage (ldayton/Dippy, 243 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Requirements?

rizsotto (a GitHub user) maintains it in rizsotto/Bear, which has 6,510 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 8, 2026.

Source: rizsotto/Bear on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.