living-documentation-publisher
БесплатноБез исполняемых скриптовНе проверенUse when BDD scenarios pass in CI and stakeholders need an always-current, readable report of which acceptance criteria pass. Turns Cucumber JSON into HTML…
от testland★ 18 звёзд на GitHubОб этом скилле
living-documentation-publisher
Overview
Per the Serenity BDD book ([serenity-bdd/the-serenity-book, living-documentation.adoc][ld]):
"Living documentation is generated by the automated test suite, and is therefore by definition it is always up-to-date."
The same source distinguishes living documentation from plain test reports: living documentation is authored before development starts, targets the whole team (BAs, product owners, stakeholders), and reads as a business-functionality narrative, not a pass/fail table.
This skill covers the full workflow: produce Cucumber JSON from a passing suite, feed it into a report renderer, apply tag-based section routing, and publish the HTML artefact to a Pages endpoint so stakeholders get a URL, not a zip file.
Two primary renderers are covered:
- multiple-cucumber-html-reporter (Node, any Cucumber-JS project) - see references/node-reporter.md.
- Serenity BDD aggregate report (JVM, Maven/Gradle projects using
CucumberWithSerenity) - see references/serenity-reporter.md.
When to use
- The team already has Cucumber scenarios (see
cucumber-testing) and stakeholders need to read acceptance-criteria status without opening a test runner. - The living-documentation page must track only passing scenarios (not every scenario authored, including pending or skipped ones).
- CI should gate report publication so stakeholders never see a stale or red-run document.
If only engineers read the results, the JUnit XML feed to
junit-xml-analysis (in the qa-test-reporting plugin)
is sufficient.
How to use
- Produce Cucumber JSON from a passing suite - add a
json:formatter (Cucumber-JS) or letCucumberWithSerenitycapture results (JVM). Step 1. - Exclude
@wip/@pendingscenarios so the document shows only accepted behaviour. Step 4. - Render the JSON to HTML - Node path via references/node-reporter.md, JVM path via references/serenity-reporter.md. Steps 2-3.
- Tag scenarios by capability and sprint so stakeholders can navigate report sections. Step 4.
- Gate publication on a green exit code so no red or stale run ships. Step 5.
- Publish the HTML to GitHub/GitLab Pages in CI so stakeholders get a URL. Step 6, via references/ci-publish.md.
Worked example
A Cucumber-JS "Checkout Service" suite has 24 scenarios tagged by capability
(@billing, @cart) and sprint (@sprint-12); 2 are still @wip.
- CI runs
npx cucumber-js features/ --tags "not @wip" --format json:reports/cucumber.json, producing JSON for the 22 passing scenarios. node scripts/generate-report.jsrenders./docs/living-documentation/under the report name "Checkout Service - Living Documentation".- Because
set -eprecedes the generate step, a red run aborts before publishing. peaceiris/actions-gh-pages@v4pushes the folder to GitHub Pages.- Result: the product owner opens the Pages URL and sees 22 green acceptance
criteria grouped under Billing and Cart, with the two
@wipscenarios absent - an always-current, business-readable status page.
Step 1 - Produce Cucumber JSON output
The report renderers both consume Cucumber JSON. Configure the JSON formatter before wiring the renderer.
Cucumber-JS (in package.json):
{
"scripts": {
"test": "cucumber-js features/ --format json:reports/cucumber.json"
}
}
For parallel shards, use a timestamped JSON filename to avoid overwrite - see references/node-reporter.md.
Cucumber-JVM with Serenity (in serenity.properties):
The CucumberWithSerenity runner captures results automatically; no explicit
JSON formatter is needed. Serenity writes its own JSON artefacts to
target/site/serenity/ as part of mvn verify
([serenity-bdd/the-serenity-book, maven.adoc][mv]).
Step 2 - Generate the HTML report (Node path)
For any Cucumber-JS project, render the JSON with multiple-cucumber-html-reporter:
install it, add a scripts/generate-report.js that points jsonDir at
./reports/ and reportPath at ./docs/living-documentation/, then run
npm test && node scripts/generate-report.js. Full install, script, and options
table: references/node-reporter.md.
Step 3 - Generate the HTML report (JVM / Serenity path)
For Maven/Gradle projects running CucumberWithSerenity, bind the
serenity-maven-plugin aggregate goal to post-integration-test and run
mvn verify. The Requirements tab renders living documentation from the
feature-directory hierarchy. Full plugin config, hierarchy labels, and
readme.md enrichment: references/serenity-reporter.md.
Step 4 - Tag scenarios for report sections
Use Gherkin tags to categorise scenarios in both renderers.
In the feature
Установить living-documentation-publisher в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл living-documentation-publisher?
Use when BDD scenarios pass in CI and stakeholders need an always-current, readable report of which acceptance criteria pass. Turns Cucumber JSON into HTML living documentation (multiple-cucumber-html-reporter or Serenity BDD) and publishes it to GitHub or GitLab Pages.
Как установить скилл living-documentation-publisher?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл living-documentation-publisher запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic