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 ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Documents?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lieubk-documents)
---
name: documents
description: "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."
argument-hint: "[document kind, 'list', or nothing to see what can be generated]"
allowed-tools: Read, Glob, Grep, AskUserQuestion, Bash(python tools/document.py *), Bash(python tools/traceability.py *), Bash(git status *), Bash(git log *), Bash(git tag *)
---
# 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.
| Group | Kinds (`python tools/document.py list`) |
|---|---|
| Inputs | `input-acceptance-report` |
| System level | `system-requirements-specification`, `system-architecture-description`, `system-integration-test-specification`, `system-integration-test-report`, `system-qualification-test-specification`, `system-qualification-test-report` |
| Software level | `software-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 V | `traceability-report`, `review-report` |
| Support | `configuration-management-plan`, `release-note`, `quality-assurance-report`, `problem-status-report`, `change-request-report` |
| Management | `project-plan`, `project-status-report`, `risk-management-report`, `supplier-monitoring-report`, `self-assessment-report` |
| Cybersecurity | `cybersecurity-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.