Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

expert-production

БесплатноЗапускает вложенные скриптыНе проверен

ALWAYS use when the code, data and workpapers behind an expert report have to leave the machine as an expert-report production or a court production — 'build…

edwinhuот edwinhu★ 28 звёзд на GitHub

Об этом скилле

Expert production — a production package, run through work with a computed gate

What this skill carries — grep references/ for any subject the names below miss: !d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"

The lifecycle is work. Read it and follow it. This file is a delta: the CLARIFY axes, the production SPEC, the task rows, the lens, the one mechanical entry point, the refs and the authority text. It ships no workflow.js.

The package is judged by one command, never by the agents that built it. package-check.sh rebuilds the 7z from the stage, extracts it fresh and runs four legs over the extraction — archive, code, leak, rerun — on the production SPEC at the sha256 the approved plan records. Its exit code is the whole mechanical verdict; the lens judges only what no exit code decides. Every SPEC key, the MANIFEST.csv format and the runbook command block: references/production-spec.md.

Layout

Work in production/ in the analysis repo, gitignored:

path holds ships
production/<name>/ the stage: code/ (the closure and its pinned environment), data/, figures/, the workbook, the runbook PDF, README.md, MANIFEST.csv as the archive's one top folder
production/<name>.7z the archive, beside the stage, never inside it yes
production/<name>-runbook/ the runbook Markdown and its screenshots never
production/<name>.spec.json the production SPEC, the gate's input never

Production rules

Scope is the computed closure. Walk the import graph from the SPEC's entry_scripts and ship that closure, the processed data it reads, the figures the deliverable uses, the workbook and the runbook PDF; nothing else is owed. Delete superseded exhibits, alternate versions and the code that builds them. Shrink a config shared with another study to the constants the shipped code reads. Never explain an omission: the explanation names the thing.

Final work product only. Ship nothing that records how the result was reached: no drafts, prompt iterations, agent reports, working notes, batch or job ids, or names of RAs and staff. The replay set — the decisions file, the manifest/ dir and the replay command (references/replay.md) — is internal: ds runs it as its R1 check, and it never ships. Strip every comment and docstring from the packaged code with strip_code.py, never a regex; never touch the repo's own code.

Processed data, never raw. Ship the processed tables the packaged code loads (CSV or parquet). Raw sources — filings, downloaded corpora, vendor extracts — stay out; the runbook says how to retrieve them. Never ship one table in two formats.

7z, never zip. Zip stores mtime at two-second resolution with no timezone. Build with bsdtar --format 7zip, one top folder named for the production.

Stage with cp -p; MANIFEST.csv is the last write. Only stripped or rewritten files carry a staging mtime. Run manifest.py after the last change to the stage; the archive leg checks every row against a fresh extraction, never against the stage.

Never run, lint or test inside the stage. A __pycache__, .ruff_cache or .pytest_cache there fails the archive leg; copy the stage elsewhere to try it.

Scrub every metadata field but the two dates, inside the build. Keep the creation and modification dates; strip author, title, generator and OS strings, PDF Info and XMP, OOXML docProps and PNG text chunks. Scrub after the last generation step and before the manifest: scrub_metadata.py for the workbook and PNGs; build-runbook.sh scrubs its own PDF. Fix a generator that stamps a fixed creation date (python-docx does) in the build, never in the scrub.

Timestamps are not proof. File mtimes, the manifest column, dcterms:created and the PDF CreationDate are the producing party's own assertion: never call them proof of when work was done, to the client or in a declaration. Anchor time with a party that has no stake — a hash stated in a filed document; a DKIM-signed email, for what actually arrived; an RFC 3161 token over the archive's sha256 from a public TSA (openssl ts -query, the .tsr kept beside the archive), sent only with the user's approval and never with the file. Git commit dates are not an anchor.

Redact by destroying pixels. Crop, or paint the raster with a solid

Полный SKILL.md на GitHub

Установить expert-production в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/runbook.typassets/term.typpackage.jsonpresets.jsonreferences/production-spec.mdreferences/replay.mdscripts/build-runbook.shscripts/manifest.pyscripts/manifest_test.pyscripts/package-check.shscripts/package_check.pyscripts/scrub_metadata.pyscripts/scrub_metadata_test.pyscripts/strip_code.pyscripts/strip_code_test.pyscripts/wrap_commands.pyscripts/wrap_commands_test.py

FAQ

Что делает скилл expert-production?

ALWAYS use when the code, data and workpapers behind an expert report have to leave the machine as an expert-report production or a court production — 'build the expert production', 'court production', 'data production', 'production package', '7z the production', 'package this for counsel', 'production archive for the opposing expert', 'send the workpapers', 'they want the code and data behind the report', 'put together what the document request asks for', 'make the workbook for counsel', 'write the runbook for the production', 'they need to be able to rerun it'. Use proactively whenever an expert report or a document request implies handing over the underlying work, even when the user only says 'zip it up'. NEGATIVE ROUTING: building the analysis itself is `ds`; a Word deliverable is `expert-report-docx` or `docx-typst`; a single spreadsheet with no archive around it is plain `xlsx`.

Как установить скилл expert-production?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл expert-production запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить expert-production с