agentleFS
LieubkLieubk/automotive-safety-security-assurance-kit/.claude/skills/trace-check/SKILL.md

trace-check

Skill4 starsChanged 15 days agoMITView on GitHub

Run the trace engine and explain what it reports: findings grouped by rule, what each rule means in plain words, which base practice it matters for, and which skill resolves it. Reads only and fixes nothing. Use when the check shows errors or warnings, before a review, a baseline or a process gate, or when someone asks what a FORMAT, SCHEMA, LINK, COV, UPSTREAM, SUSPECT, CONSISTENCY or QUERY line means.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 4 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If there is no project.yaml, say so before anything else: without a scope the engine treats every process as in scope, and the summary line …

    line 30
  2. Very specific:

    Run python tools/traceability.py status and python tools/traceability.py check.

    line 34
  3. Very specific:

    Every command of this skill takes --project <dir> right after the script name when the project is not the current directory.

    line 35
  4. Very specific:

    If a command does not run (no Python, no PyYAML, a broken project.yaml), stop: "Trace check: NOT ASSESSED - <what failed>".

    line 37
  5. Very specific:

    Default: python tools/traceability.py check.

    line 44
  6. Very specific:

    Read references/rules.md. From the column "Processes" of its coverage table list the rules that are inactive for this scope and say in one …

    line 52
  7. Very specific:

    If the summary says "N on drafts" and --all was not used, say that N info lines are hidden.

    line 58
  8. Very specific:

    Use facts to make a group concrete: python tools/traceability.py show <ID> for the links of one or two example items, python …

    line 83
  9. Distinctive:

    no active rule objects to an approved or reviewed item.

    line 91
  10. Very specific:

    no rule reads meaning: whether a requirement is right or a test proves anything is decided in /review.

    line 93
  11. Very specific:

    Every rule name that appears in the output is explained, and every explanation comes from references/rules.md.

    line 105
  12. Distinctive:

    Do not fix anything, and do not offer to "just add the link".

    line 126
  13. Distinctive:

    Do not explain a finding away.

    line 127
  14. Distinctive:

    Do not call a clean result "traceability is complete" or "consistent": say which rules ran.

    line 129
  15. Very specific:

    Do not invent a rule, a waiver or a skill that references/rules.md, the schema or the installed skills do not name.

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Trace check, explained

Toolkit root: ${CLAUDE_PLUGIN_ROOT} - where this shows a placeholder instead of a folder, it is the repository you are in. The tools/, schema/, aspice/, iso-26262/, iso-sae-21434/, examples/ and .claude/docs/ named here and in the references lie in the toolkit root; run its tools from the project folder as python "<toolkit root>/tools/<script>.py".

Runs python tools/traceability.py check and turns its lines into something a team can act on: what is wrong, why it matters, who resolves it. The facts come from the engine and are quoted as printed; the explanation comes from references/rules.md. The skill changes no file. It performs no process on its own; it shows where the traceability and consistency practices of the processes in scope stand.

Base practiceWhat this skill doesEvidence it leaves
Traceability practices in scope: SYS.2.BP6, SYS.3.BP6, SYS.4.BP7, SYS.5.BP5, SWE.1.BP6, SWE.2.BP7, SWE.3.BP5, SWE.4.BP5, SWE.5.BP7, SWE.6.BP5, SUP.10.BP8reports links that are missing, broken or not allowed, per rulenone: the links in the items are the evidence; matrix prints them
Consistency practices in scope: SYS.2.BP7, SYS.3.BP7, SYS.4.BP8, SYS.5.BP6, SWE.1.BP7, SWE.2.BP8, SWE.3.BP6, SWE.4.BP6, SWE.5.BP8, SWE.6.BP6reports stale approvals, approvals above items that are not approved, items and code changed after their review, and comparisons no review recordednone: the review records written by /review are the evidence
Every other practice a finding names in its bracketsays which practice the finding stands againstnone
Whether a practice is fulfillednot done here: /process-gate gives a verdict per practice-

Before you start

  1. If there is no project.yaml, say so before anything else: without a scope the engine treats every process as in scope, and the summary line says scope: all processes. Run the check anyway if the user wants it, and point to /aspice-start.
  2. Run python tools/traceability.py status and python tools/traceability.py check. Every command of this skill takes --project <dir> right after the script name when the project is not the current directory.
  3. If a command does not run (no Python, no PyYAML, a broken project.yaml), stop: "Trace check: NOT ASSESSED - <what failed>". Do not explain findings from memory or from an earlier run.

Steps

1. Run the check

  • Default: python tools/traceability.py check. With --all, or when the user asks about drafts: python tools/traceability.py check --all, which adds the info lines: gaps on drafts, and per item what its next state will still require.
  • Quote the summary line exactly, for example: 73 items | scope: SUP.8, SWE.1, SWE.2, SWE.3, SWE.4 | 21 of 30 coverage rules active | 0 errors, 0 warnings, 0 on drafts

2. Say what was checked and what was not

  • Repeat the number of active coverage rules and name the processes in scope.
  • Read references/rules.md. From the column "Processes" of its coverage table list the rules that are inactive for this scope and say in one sentence each group what therefore went unchecked. For the scope above: nothing about system requirements and system architecture as the project's own work (COV-01 to COV-04), about integration and qualification tests (COV-13 to COV-16), or about change requests (COV-20).
  • If the summary says "N on drafts" and --all was not used, say that N info lines are hidden.

3. Group the findings

  • Group by rule, then by item. The same line can be printed several times; count items.
  • Order: FORMAT, SCHEMA, LINK first (a coverage result on a malformed item is not reliable); then UPSTREAM, COV-19 and SUSPECT (approvals that do not hold); then the other coverage rules by number; then CONSISTENCY and QUERY; then info lines, previews last.
  • Name lines without a bracket separately: they count for no practice of the project but are findings all the same - a finding on an imported item, or an open query.
  • With a rule name or an item ID as argument, show only those lines. The summary line and step 2 are still reported in full.

4. Explain each group

For each rule that occurs, from references/rules.md:

  • what the rule expects and what the message says is missing, in plain words;
  • the typical cause, offered as a possibility, not as a diagnosis;
  • the base practices in the bracket of the line and why the finding matters for them ("Why a finding matters"), and what the level means here: an approved item breaking a rule (error), an item in review not there yet (warning), a draft (info);
  • the skill that resolves it, after checking that it is installed;
  • whether the schema allows a waiver, and what the waiver consists of. A waiver is written by the authoring skill and reviewed; say that this skill does not apply it.

Use facts to make a group concrete: python tools/traceability.py show <ID> for the links of one or two example items, python tools/traceability.py impact <ID> for what depends on an item whose approval is stale or whose change made others suspect, python tools/traceability.py list --status draft for the drafts behind the info lines. Read an item only when the user asks about its content.

5. Read a clean result correctly

With 0 errors and 0 warnings say what that establishes and what it does not:

  • no active rule objects to an approved or reviewed item;
  • inactive rules checked nothing (step 2), and drafts are only checked with --all;
  • no rule reads meaning: whether a requirement is right or a test proves anything is decided in /review;
  • practices the schema has no evidence structure for are not covered at all: /process-gate lists them.

Writing

This skill writes nothing: no item, no record, no status, no report file. If the user wants a finding resolved, name the skill and stop.

Checks before you finish

  • Every rule name that appears in the output is explained, and every explanation comes from references/rules.md. A rule name that is not in that file is reported as unknown, with the line, instead of being guessed at.
  • The counts per group add up to the numbers of the summary line (lines, not items; say both where they differ).
  • The number of active rules and the processes in scope are in the answer.

Hand-over

Report, in this order:

  1. The summary line, quoted, and the verdict of the trace check: FAIL with errors, CONCERNS with warnings only, PASS with neither - "PASS for the N active rules of <processes>" - or NOT ASSESSED when the engine did not run.
  2. What was not checked: inactive rules, hidden drafts.
  3. The groups, in the order of step 3, each with meaning, practices, resolving skill and waiver.
  4. Next: the skill that resolves the first group; /review for UPSTREAM, COV-19, SUSPECT and CONSISTENCY; /process-gate for a verdict per base practice.

Do not

  • Do not fix anything, and do not offer to "just add the link".
  • Do not explain a finding away. A coverage finding that is expected at this stage is still reported, with the reason why it is expected.
  • Do not call a clean result "traceability is complete" or "consistent": say which rules ran.
  • Do not invent a rule, a waiver or a skill that references/rules.md, the schema or the installed skills do not name.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.