agentleFS
LieubkLieubk/automotive-safety-security-assurance-kit/.claude/skills/import-inputs/SKILL.md

import-inputs

Skill4 starsChanged 15 days agoMITView on GitHub

Register delivered inputs (customer or stakeholder requirements, system requirements, system architecture and interfaces, or software-level inputs when the scope starts lower) as imported items, unchanged, one item per delivered requirement or element; write the questions to their source as query items; and prepare the input acceptance review. Use after /aspice-start, when a document was received, when a new version of an input arrives, or when a query has been answered.

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. About 0 are common, 8 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    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, stop: "This project has no scope yet.

    line 52
  2. Very specific:

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

    line 54
  3. Very specific:

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

    line 55
  4. Distinctive:

    Read the document. If it cannot be read as text (an office file, a tool database), stop and ask for an export as PDF or plain text.

    line 61
  5. Very specific:

    Run python tools/traceability.py list --imported and search the item folders with Grep for the source name of the delivery.

    line 64
  6. Distinctive:

    Read the whole document, chapter by chapter if it is large.

    line 76
  7. Very specific:

    Read references/registering-inputs.md.

    line 83
  8. Very specific:

    Write links between inputs only where the delivery states them.

    line 106
  9. Very specific:

    When the user reports that the source answered: write the answer into the Answer section as it was given, set answered_by to who answered …

    line 134
  10. Very specific:

    If the delivery is new in inputs, show the entry and add it.

    line 159
  11. Distinctive:

    Not registered, with the reason for each group.

    line 181
  12. Distinctive:

    Do not reword, correct, translate, merge or complete what was delivered.

    line 194
  13. Distinctive:

    Do not answer a query yourself, and do not record an answer the user has not reported, with who gave it and when.

    line 195
  14. Very specific:

    Do not set a status other than draft on an input.

    line 197
  15. Distinctive:

    Do not write a review record.

    line 199
  16. Distinctive:

    Do not change what an accepted input says, except by registering a new version from its source, and do not work around the write hook that …

    line 200
  17. Distinctive:

    Do not register the team's own work as imported, and do not invent a link, an ASIL or an identifier the delivery does not contain.

    line 202

≈ “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

Registering delivered inputs

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".

Turns a delivered document into items the project can trace to: one item per requirement or element, in the words of the source, with the source's identifier, its version and the date received. The result is a set of imported items in state draft and a set of query items, ready for an input acceptance review through /review.

A ReqIF delivery is registered with tools/reqif.py (see "A delivery as ReqIF" in references/registering-inputs.md), an Excel delivery with tools/xlsx.py import, and work items in the customer's Polarion, codebeamer or Jama Connect with tools/alm.py pull (.claude/docs/tools.md has the options); each has a compare for the next version. Other documents are read and the item files written by the skill.

Cybersecurity work products the customer delivers - item definition, threat scenarios, cybersecurity goals and claims, cybersecurity requirements - are registered the same way, as imported items of the types item-definition, threat-scenario, cybersecurity-goal, cybersecurity-claim or system-requirement (with security_relevant). The rules of ISO/SAE 21434 apply to them only for the clauses under scope.cybersecurity; COV-59 still asks for the requirements derived from a goal. An ASIL or a link the source states in its text ("ASIL B, derived from SG-BL-01") is set as the attribute or link at registration: it is what the source says, not a change of it. A ReqIF attribute that carries such a value is taken over with python tools/reqif.py import ... --attribute asil=<ReqIF attribute>. Safety work products from the customer - item definition, hazardous events, safety goals, functional and technical safety requirements with their ASIL - are registered likewise, as item-definition, hazardous-event, safety-goal and system-requirement; COV-67 asks for the requirements derived from a received goal when part 3, 4 or 6 is in scope.

The practices are those of SYS.1. With SYS.1 in scope the rows are evidence for it; without it the same steps are the entry check of the first process in scope, and no base practice is claimed.

Base practiceWhat this skill doesEvidence it leaves
SYS.1.BP1 Obtain stakeholder requirements and requestsregisters each delivered requirement or element as one item with source, version, date received and source identifierimported items; entry in inputs of project.yaml
SYS.1.BP2 Understand stakeholder expectationswrites what is unclear, contradictory or missing as questions to the source; never answers them itselfquery items with an about link to the inputs concerned
SYS.1.BP3 Agree on requirementsprepares the input acceptance review; acceptance is a person's verdict, recorded by /reviewproposed findings; review record written by /review
SYS.1.BP4 Establish stakeholder requirements baselinenot done here: /baseline-
SYS.1.BP5 Manage stakeholder requirements changescompares a new version with what is registered, replaces changed items in place under the new version and shows what depends on them; a change to baselined content is decided through /change-requestcomparison report; items carrying the new imported.version; SUSPECT, UPSTREAM and LINK findings on what depends on them
SYS.1.BP6 Establish customer-supplier query communication mechanismkeeps every question with its addressee, date and state, and records the answer the user reports; the channel to the source itself is the project'squery items in state open, answered or closed

Before you start

  1. If there is no project.yaml, stop: "This project has no scope yet. Run /aspice-start first."
  2. Run python tools/traceability.py status and python tools/traceability.py check --all. Every command of this skill takes --project <dir> after the script name when the project is not the current directory.
  3. With a query ID as argument, go straight to step 8.
  4. Find the delivery in inputs of project.yaml. If the key or the entry is missing, ask for level, source, version, date received and format; do not assume any of them. The entry is added under "Writing".
  5. Read the document. If it cannot be read as text (an office file, a tool database), stop and ask for an export as PDF or plain text. Do not work from a summary or from what the user remembers of it.
  6. Run python tools/traceability.py list --imported and search the item folders with Grep for the source name of the delivery. If items of this source exist, compare their imported.version with the delivered one before anything else:
    • higher than every registered version: a new version; read references/new-version.md now and follow it after step 1;
    • the same, or lower (1.3 arriving after 2.1): stop and ask. It may be a repeated delivery, a mistake of the sender or a deliberate step back; only the user can find out, with the source. Register nothing until they have.

Steps

1. Take stock of the delivery

Read the whole document, chapter by chapter if it is large. List every object with its identifier or place in the source and what it is: requirement, architecture element, interface, information, heading, definition, reference to another document, project condition. Show the counts per chapter and ask whether everything is to be registered or a part the user names. A partial registration is said so in the hand-over.

2. Choose the type

Read references/registering-inputs.md. The type follows from what the content is for the first process in scope that uses it, not from the title of the document. Show the proposed type per kind of content and have it confirmed. If the level of the delivery is produced by a process in scope.processes, explain the consequence given there before going on.

3. Split into items without rewording

  • One identified object of the source is one item, even when it states two needs: the compound is a query, not a reason to split.
  • Without identifiers in the source, split at the smallest unit the source marks itself (numbered paragraph, table row) and use its place as source_id.
  • The text goes in unchanged: wording, values, units, language, the identifiers it uses for other objects, also its errors. No correction, no translation, no summary. title is a label for lists: the source's own heading or object name, else words taken from the statement.

4. Attributes and links

  • Set an attribute only where the source states the value and it maps to an allowed value without interpretation. Show each mapping once (source value -> schema value) and have it confirmed. What does not map is left out and becomes a query.
  • A missing ASIL on a requirement of a safety-relevant product is a query. Do not infer it from neighbours. If safety is missing in project.yaml, ask the user whether the product is safety relevant.
  • Write links between inputs only where the delivery states them. An allocation is written on the element or interface: it fulfils the requirement. The requirement carries no allocation link, whichever document states the allocation.

5. Content that is not a requirement

Headings give structure, nothing else. Information, examples and definitions are not items; where an item needs one to be understood, it refers to it as the source does. Referenced documents are listed with the question whether they were delivered. Project and process conditions (dates, deliverables, reporting) are listed for the user and not registered. Where it is unclear whether a passage is a requirement, ask the user; if they do not know, it is a query. Nothing is dropped silently: everything not registered appears in the not-registered list with its reason.

6. Queries

Collect what is unclear, contradictory, missing, not verifiable or not feasible. The toolkit never fills a gap in an input: not with an assumption, not with a typical value, not in a note. Ask which questions the user can answer from the delivery itself (an answer found in the source settles it). Each of the others becomes a query item with an about link to the inputs it concerns; read references/queries-and-acceptance.md for what is a query and for the template.

7. Self-check against the acceptance checklist

Apply .claude/docs/checklists/input-acceptance.md to the drafts. Each finding is a proposal for the review, shown with the text it rests on. A draft that differs from the source is a transcription error and is fixed. Nothing the source wrote is corrected: such a finding becomes a query or stays a proposed finding.

8. Record an answer to a query

When the user reports that the source answered: write the answer into the Answer section as it was given, set answered_by to who answered and when, and set the status to answered. Record only what the user states. closed follows when the user confirms that the items the query is about are in line with the answer; an answer that changes a requirement gets there only through a new version of the input.

Writing

  • Show a table of the drafts (source identifier, type, title, mapped attributes, links), three items in full, the not-registered list and the queries. Ask: "May I write these N items as imported inputs, and these M queries?" For a large delivery ask per chapter.
  • IDs: python tools/record.py next-id <type> per type, then count upwards. Assign all IDs before writing, and write link targets first: requirements before the elements and interfaces that fulfil them, inputs before the queries about them.
  • Layout and folders: references/item-templates.md. Status draft, the imported block complete, received and version quoted. Queries: status open.
  • Until its acceptance review is recorded, an item can be corrected against the source: a transcription error or a structural finding is fixed by editing it. From then on the write hook refuses any change of what the item says, unless imported.version changes with it (references/new-version.md). An accepted input that a baseline other than an internal one lists is replaced or retired only with an approved change request that names it: hand over to /change-request first.
  • An object registered by mistake is not deleted: set status: rejected with rejection_reason, after the user agreed.
  • If the delivery is new in inputs, show the entry and add it; change nothing else in project.yaml.

Checks before you finish

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

  • FORMAT, SCHEMA and LINK findings on items of this session: fix them, by comparing with the source again, not by guessing. The info line still to come before review on an open query is expected: it has no answer yet.
  • The counts in status must match what was announced; say so with the numbers. python tools/traceability.py list --imported --status draft names the inputs.
  • COV-05 on registered system requirements (and COV-01 on stakeholder requirements) is expected when the next process is in scope: nothing is derived from them yet. SUSPECT, UPSTREAM and LINK lines after a new version, and QUERY lines, are quoted in the hand-over, not resolved here.

Hand-over

Report, in this order:

  1. The base practice table with what was done in this session and what is open.
  2. Registered: source, version, number of items per type, ID ranges; what part of the delivery they cover.
  3. Not registered, with the reason for each group.
  4. Queries by ID, each with the inputs it is about; the user sends them to the source.
  5. Proposed findings of the checklist.
  6. For a new version: unchanged, changed, added and removed, and the findings the change produced on what depends on them.
  7. Next: /review for the listed IDs; it applies the checklist input-acceptance. Requirements come before the architecture that fulfils them. An input with an open query is reviewed too and gets the verdict rework, apart from the accepted ones (references/queries-and-acceptance.md). After acceptance: the first authoring skill of the scope, for example /sw-requirements.

Do not

  • Do not reword, correct, translate, merge or complete what was delivered.
  • Do not answer a query yourself, and do not record an answer the user has not reported, with who gave it and when.
  • Do not set a status other than draft on an input; obsolete or rejected only for one the source withdrew or one registered by mistake, after the user agreed. Do not write a review record.
  • Do not change what an accepted input says, except by registering a new version from its source, and do not work around the write hook that protects it.
  • Do not register the team's own work as imported, and do not invent a link, an ASIL or an identifier the delivery does not contain.

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.