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

documents

Skill4 starsChanged 15 days agoMITView on GitHub

Generate the documents a customer, an assessor or a reviewer expects - specifications, architecture and design descriptions (SAD, SDD), test specifications and reports, traceability, review, release, quality, problem, change, project, risk and supplier reports, TARA report and worksheet, cybersecurity plan and case - as HTML, PDF, Word or Excel, from the items of the project, in a neutral style or in the customer's Word template, for the working state or for a baseline. Use before a delivery or a milestone, when a review is held with people who do not read the item files, or when someone asks for a document of the project.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use research.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • NVIDIASkill

    research

    Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run python tools/traceability.py check and python tools/document.py list.

    line 43
  2. Distinctive:

    Ask which document, who reads it, and in which state:

    line 49
  3. Distinctive:

    Ask for the format: HTML (one file, opens anywhere.

    line 55
  4. Distinctive:

    Ask whether the customer gave a Word template (.docx or .dotx) or an Excel workbook to fill.

    line 61
  5. Very specific:

    Run python tools/document.py build <kind> --format html|pdf|docx|xlsx [--baseline BL-ID] [--template <file.docx|file.dotx|map.yaml>] …

    line 71
  6. Distinctive:

    Do not edit a generated document to correct its content.

    line 100
  7. Distinctive:

    Do not hand over a document generated from uncommitted changes or with items that are not approved as if it were released.

    line 101
  8. Distinctive:

    Do not put a customer's template, logo or document numbers into the toolkit itself.

    line 103

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “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

Documents from the items

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 the items of the project into the documents that people outside the repository read. The items stay the source: a document is generated, never edited, and generated again after the items change. Each document says where it comes from - commit, changes not committed, baseline, the items with their states and content hashes - and is marked DRAFT when it shows items that are not approved or comes from uncommitted changes.

GroupKinds (python tools/document.py list)
Inputsinput-acceptance-report
System levelsystem-requirements-specification, system-architecture-description, system-integration-test-specification, system-integration-test-report, system-qualification-test-specification, system-qualification-test-report
Software levelsoftware-requirements-specification, software-architecture-description (SAD), software-detailed-design (SDD), unit-test-specification, unit-verification-report, software-integration-test-specification, software-integration-test-report, software-qualification-test-specification, software-qualification-test-report
Across the Vtraceability-report, review-report
Supportconfiguration-management-plan, release-note, quality-assurance-report, problem-status-report, change-request-report
Managementproject-plan, project-status-report, risk-management-report, supplier-monitoring-report, self-assessment-report
Cybersecuritycybersecurity-plan, tara-report, tara-worksheet, cybersecurity-concept, vulnerability-report, cybersecurity-case-report

Formats: HTML (one file), PDF (printed from the HTML, or converted from the Word document when a template applies), Word (neutral or the customer's template) and Excel (a sheet per chapter; the usual form of test specifications with results, and of TARA worksheets). A test report lists every test case with its steps, expected result and the verdict of the latest run that has it; a TARA worksheet has one row per attack path, from asset and damage to risk, treatment, goal, requirements, allocation and verification. Every document carries a revision history built from the baselines and reviews of its items. A kind that a project needs and the list lacks is added to schema/documents.yaml.

python tools/document.py list shows the kinds of schema/documents.yaml and how many items of each type the project has.

Before you start

  1. No project.yaml: stop. "This project has no scope yet. Run /aspice-start first."
  2. Run python tools/traceability.py check and python tools/document.py list. Errors of the check concern the content of a document: say which before generating it.

Steps

1. What, for whom, in which state

  • Ask which document, who reads it, and in which state:
    • for a delivery or a milestone: a baseline. The document shows only the items of the baseline and is refused when one of them changed since; the working tree has to be at the baseline's tag (git tag, git log). Checking out the tag is the user's step.
    • for a review or a discussion: the working state, approved items only, or with --include-drafts the items in work too, marked DRAFT.
  • Ask for the format: HTML (one file, opens anywhere; Mermaid diagrams are drawn when the reader is online, otherwise their source shows), PDF for a delivery that must not change in the reader's hands, Word, or Excel for tabular documents such as test specifications and reports or the TARA worksheet.

2. Template

  • Ask whether the customer gave a Word template (.docx or .dotx) or an Excel workbook to fill. If not, say that a neutral style is used and suggest asking the customer for theirs: cover page, headers and footers, styles; for Excel, the sheet and columns they expect. Read references/templates.md for what a template needs; an Excel workbook is filled through a map file, which is shown to the user before it is used.
  • A template the customer gave is kept in the project, for example under templates/, and named with --template; /aspice-start records it as documents.template in project.yaml so that every document uses it.

3. Generate

  • Run python tools/document.py build <kind> --format html|pdf|docx|xlsx [--baseline BL-ID] [--template <file.docx|file.dotx|map.yaml>] [--include-drafts] [--as-of <date>]. The file goes to build/documents/ unless --out names another place. Quote the line the tool prints, with its DRAFT reasons.
  • DOCX needs the package python-docx. If the tool says it is missing, report that the Word version is NOT ASSESSED and offer the HTML version.
  • PDF needs Edge, Chrome or Chromium for the HTML route, and LibreOffice or Word for the route through a template (--pdf-from docx). When the tool says NOT ASSESSED, quote its reason and offer the HTML or Word version; do not convert by hand.

4. Hand over

  • Name the file, the commit or baseline and the number of items. A document for a delivery travels with the baseline: /baseline records its communication, naming the baseline the document was generated from.
  • Comments of readers on a document come back as review findings, queries or change requests on the items, never as edits of the document.

Checks before you finish

  • The tool printed wrote ... for every document asked for; quote each line.
  • A document marked DRAFT is not handed over as released. Say why it is a draft.

Hand-over

  1. The documents written: kind, format, file, commit or baseline, items, DRAFT or not.
  2. Findings of the check that concern their content.
  3. Next: /review for items that kept a document a draft; /baseline for a delivery.

Do not

  • Do not edit a generated document to correct its content; correct the items.
  • Do not hand over a document generated from uncommitted changes or with items that are not approved as if it were released.
  • Do not put a customer's template, logo or document numbers into the toolkit itself; they belong to the project that received them.

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.