Agent Skills
› YSLAB-ai/scenario-lab
› scenario-lab
scenario-lab
GitHub指导在Claude Code中通过CLI高效使用Scenario Lab。强调利用run-adapter-action驱动工作流,避免加载大文件至上下文。遵循turn反馈确定下一步,规范证据摄入与报告生成流程,支持结构化输入及手动恢复命令。
触发场景
需要运行Scenario Lab工作流
处理场景实验室的证据数据
生成或审查场景报告
安装
npx skills add YSLAB-ai/scenario-lab --skill scenario-lab -g -y
SKILL.md
Frontmatter
{
"name": "scenario-lab",
"description": "Use the local Scenario Lab CLI from Claude Code without loading full run artifacts into active context."
}
- From the checked-out Scenario Lab repo/workspace, create or activate a Python 3.12+ virtualenv and install the shared core package with
pip install -e 'packages/core[dev]'. - Use the query-style commands to drive the workflow instead of loading full run artifacts into active context.
- Prefer direct structured input over temporary JSON files for the normal adapter path.
- The underlying raw commands still exist, including
scenario-lab start-run,scenario-lab save-intake-draft, andscenario-lab draft-conversation-turn, but the packaged runtime is the normal path. - Bootstrap a workflow slice with
scenario-lab run-adapter-action --root <root> --run-id <run> --revision-id r1 --action start-run --domain-pack <slug>. - after each workflow mutation, keep using
scenario-lab run-adapter-action --root <root> [--candidate-path <dir>] --run-id <run> --revision-id <rev> --action <action-name> ...and treat the returnedturnas the user-facing next step. The default evidence corpus is<root>/corpus.db; only pass--corpus-db <db>when intentionally using a separate evidence database. - Use
turn.recommended_runtime_actionas the default next runtime action andturn.actionsas the ordered set of allowed next steps. This keeps the conversation loop deterministic without manually sequencing raw workflow commands. - Do not manually sequence
scenario-lab draft-intake-guidance,scenario-lab draft-retrieval-plan, orscenario-lab draft-ingestion-planin the normal path. Consume those payloads only through the packaged runtimeturn.context. - When the evidence-stage runtime context includes
ingestion_recommendations, prefer--action batch-ingest-recommendedbefore--action draft-evidence-packet. If no corpus exists yet, first save gathered evidence files under<root>/evidence-candidates/and pass that directory as--candidate-path. Then trim the packet in place with--action curate-evidence-draft. - After approval, keep using the packaged runtime to reach simulation, report review, and
begin-revision-update. Preferscenario-lab summarize-revision/scenario-lab summarize-runbefore opening full report files. - Raw commands such as
scenario-lab draft-evidence-packet,scenario-lab curate-evidence-draft,scenario-lab draft-approval-packet,scenario-lab approve-revision,scenario-lab begin-revision-update,scenario-lab simulate,scenario-lab summarize-run,scenario-lab summarize-revision,scenario-lab save-evidence-draft, andscenario-lab generate-reportremain available for inspection or manual recovery outside the packaged runtime path.save-evidence-draftnow also accepts repeated--item-jsonpayloads for direct structured evidence replacement when a file handoff is unnecessary.
版本历史
- c58b26e 当前 2026-07-24 11:44


