Ce requirements author

From Moffran/calibrated_explanations · View interactive version

Ce requirements author is an AI agent skill from the GitHub repository Moffran/calibrated_explanations. Author or revise CE requirement files (CE-REQ-AREA-FACET-NNN.md) in development/capabilities/requirements/; use when deriving testable obligations from a capability claim, updating acceptance criteria, or adding verification targets.

How to use this skill

Skill file

CE Requirements Author

Use this skill when

Inputs

Workflow

  1. Determine the requirement ID. Use the convention CE-REQ-<AREA>-<FACET>-<NNN>.

Check existing files in development/capabilities/requirements/ for the next number.

AREA and FACET match the parent claim's area (e.g. EXPL → CE-REQ-EXPL-API-001).

  1. Define the obligation scope. Identify:
  1. Write observable behavior. Enumerate what the system must do when the obligation

applies. Use numbered, observable statements:

Each statement should map 1-to-1 to an acceptance criterion.

  1. Write the acceptance criterion. State the pass/fail condition as a concrete

assertion using CE public API terms. Example:

  1. Assign the verification method. Choose from: automated pytest test,

analysis, inspection. Provide the test_id and file path if a test exists.

  1. List evidence required. Minimum: commit_sha, package_version, test_id,

dataset_id, random_seed, result.

  1. Write the assumption boundary. State what the requirement does NOT verify

(e.g. statistical validity, coverage guarantees, correctness of magnitudes).

  1. Add tif_refs field. Leave as [] if no TIF has been authored yet;

fill in the CE-TIF-... ID once the TIF is created.

Verification

python scripts/quality/validate_capability_chain.py --requirements-only

Output contract

Return:

  1. The complete CE-REQ-<AREA>-<FACET>-<NNN>.md file contents with all sections.
  2. A one-line summary: requirement ID, obligation type, parent claim ID, verification method.
  3. Any companion claim file update needed (adding this req ID to requirements: list).

Constraints

numerical_behavior, governance_constraint.

a passing test exists and evidence has been recorded.

implementation details.

conditions must each have their own requirement or be explicitly excluded in scope.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.