product-docs-screenshots
БесплатноБез исполняемых скриптовНе проверенGenerate and refresh the screenshots in product-docs/ from a real, running CISO Assistant instance, and wire them into the Markdown. Use when: (1) User asks…
от intuitem★ 4 698 звёзд на GitHubОб этом скилле
Product-docs screenshots
Screenshots in product-docs/ are generated, not taken by hand. One command
rebuilds the demo database, starts the stack, and re-captures every shot. The
fixture is deterministic, so every DOM-only capture reproduces byte for byte and
a diff means the UI changed. Chart captures can drift by a few antialiased
pixels without a UI change — compare those with a small pixel threshold.
Never paste a hand-captured screenshot into product-docs/. If an image is
needed, add it to the manifest so the next person can regenerate it.
Two modes
Attach mode is the normal path for documenting a feature that was just built. It captures against the stack the developer already has running, using the data they built the feature against — no seeding, seconds rather than minutes:
DOCS_SHOTS_BASE_URL=http://localhost:5173 \
./tests/docs-screenshots/run.sh --attach -- --grep my-new-shot
It refuses to run without an explicit DOCS_SHOTS_BASE_URL and an explicit
--grep. Both guards exist because it writes directly into
product-docs/.gitbook/assets/, and a bare run would replace every committed
screenshot with images of whatever happened to be listening on that port.
Fixture mode (the default when no flag is given) rebuilds the demo database and starts its own stack. It backs the core pages that need to stay regenerable, and it is how a stale screenshot gets refreshed years later. Do not extend the fixture just to document a new feature — attach instead.
Screening a dev-database screenshot
A dev database usually holds real customer and prospect data. Before a shot
captured in attach mode goes into product-docs/, read it and check for:
- customer, prospect or partner names in any list, breadcrumb or domain column
- real people's names or email addresses (including the signed-in user, bottom left of the sidebar)
- imported spreadsheet content, entity names, or anything from a real engagement
TEST-prefixed junk from thepopulate_*commands, half-finished records
If any of it is there, do not ship the image. Either re-capture against a clean domain, or use fixture mode. Published GitBook pages are public.
The loop
Work through these in order. Do not skip step 5.
1. Find the doc page
Locate the page under product-docs/ and check SUMMARY.md — GitBook only
renders pages listed there. Read the page first and pick the section the image
belongs to; a figure at the top of a concept page is usually the wrong place.
2. Pick the mode
For a feature that was just built, use attach mode against the developer's running stack — that is where the feature's data already exists. Ask which URL and which records to shoot; do not guess a port.
Use fixture mode when the page is one of the core pages already backed by
seed_demo --docs (domains, perimeters, assets, applied controls, audits, risk
assessments), or when refreshing a stale screenshot. seed_demo --list shows
which modules the fixture covers.
The fixture is the same dataset as the product demo, assembled from per-app
builders (backend/core/demo/, <app>/demo_builders.py). Only extend it if the
user asks for a screenshot that must stay regenerable. It is not a prerequisite
for documenting a new feature. If extending a builder, follow its conventions:
- draw randomness from
ctx.rngonly, and use a fixed vocabulary - derive dates from
ctx.day(offset), never a literal ordate.today() - add the new model to the builder's
stamps()with both a scope filter (it must never rewrite timestamps outside the fixture) and an explicit natural sort key, and to itscovers
There are populate_* management commands for several modules, but they do
not seed the RNG, so their output is different on every run. Do not call
them from the screenshot path without fixing that first.
3. Add a manifest entry
In frontend/tests/docs-screenshots/manifest.ts:
{
slug: 'audit-detail', // → product-docs/.gitbook/assets/audit-detail.png
url: '/compliance-assessments',
usedBy: ['concepts/audits.md'], // so a stale shot is traceable to its pages
act: openDetail('compliance-assessments', 'AUD.2026.01'),
clip: (page) => page.getByRole('heading', { name: '…' })
.locator('xpath=ancestor::div[contains(@class,"card")][1]')
}
- Prefer
clipfor concept pages — a whole-viewport shot of a detail route is mostly metadata the prose already covers. fullPage: truefor long list pages.- For a guide that walks through steps, use
annotateto outline the controls and number them so the prose can refer to them:
annotate: (page) => [
{ at: page.getByRole('link', { name: 'Action plan' }).first(), label: '1' },
{ at: page.getByRole('button', { name: 'Add risk scenario' }).first(), label: '2' }
]
4. Run the harness
cd frontend
./tests/docs-screenshots/run.sh --reseed # everything
./t
Установить product-docs-screenshots в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл product-docs-screenshots?
Generate and refresh the screenshots in product-docs/ from a real, running CISO Assistant instance, and wire them into the Markdown. Use when: (1) User asks to illustrate, add screenshots to, or update a product-docs page (2) User ships a feature and asks to document it ("document X", "add docs for X", "update the product docs") (3) A UI change made existing screenshots stale ("refresh the screenshots", "the docs images are out of date") (4) User asks for annotated / step-by-step images for a guide page Covers: the deterministic demo fixture (seed_demo --docs), the Playwright capture harness, annotated callout shots, figure placement and caption grounding.
Как установить скилл product-docs-screenshots?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл product-docs-screenshots запускает скрипты?
Нет, скилл состоит только из инструкций (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