[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C2FCE0YAJ2QQ5ATTZBZTNA":3,"skill-same:01M6C2FCE0YAJ2QQ5ATTZBZTNA":140},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":25,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M6C2FCE0YAJ2QQ5ATTZBZTNA","test-realistic",null,"Project-agnostic realistic-user-testing skill. Converts any target (freeform text prompt, PR","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX","01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[26,27,28,29,30,31,32,33,34,35],"test","test realistic","testing","pr","text","testing skill","prompt","user","project","freeform","2026-11-10 10:12:30",false,"---\nname: test-realistic\ndescription: Project-agnostic realistic-user-testing skill. Converts any target (freeform text prompt, PR # or branch diff, commit SHA, or a project's own doc-target class) into a model-authored player scenario, dispatches a REAL multi-persona browser+LLM player swarm (via a per-project dispatch command), and verifies captured turns against a real anti-false-green coverage judgment. Requires a per-project .test-realistic.toml config contract -- this skill itself contains zero project names, ports, or paths. Use for \u002Ftest-realistic, realistic end-to-end user testing, or building a coverage-judge-backed real-browser test harness for a new project.\n---\n\n# \u002Ftest-realistic (generalized)\n\nEnd-to-end, real-infrastructure user testing: real local server, real\nbrowser, real LLM calls at every judgment point. There is no mock mode and\nno template fallback anywhere in this pipeline -- that is the entire point.\nIf any model call in this pipeline fails, the run fails loud (non-zero exit),\nit never silently substitutes a keyword heuristic or a canned verdict.\n\n**Provenance**: this generalizes the pipeline design of an existing\nproduction `\u002Ftest-realistic` harness -- see `PROVENANCE.md` for the source\nlineage. Nothing project-specific from that source was carried over; every\nvalue a project needs is supplied by its own `.test-realistic.toml`.\n\n## Before you can use this skill: write a project config\n\nEvery project MUST have a `.test-realistic.toml` at its repo root (or any\nancestor of the directory you invoke from -- `config.find_config_path` walks\nup, like git). There is no built-in default project. See\n`examples\u002Ftest-realistic.example.toml` for a fully-annotated EXAMPLE\n(clearly labelled, not read by any code path).\n\nRequired fields (fails loud with `ConfigError` if any is missing):\n\n| Field | Meaning |\n|---|---|\n| `project_name` | Label used in verdict artifacts |\n| `repo_root` | Absolute or config-relative path to the project's repo root (used for `gh`\u002F`git` context fetching and relative-izing artifact paths) |\n| `base_url` | The URL surface under test (e.g. your local dev server) |\n| `feature_surface_vocabulary` | This project's own equivalent of a \"renderer field allowlist\" -- the list of `rendered.*`\u002F`parsed.*` (or your own naming) field paths the model may cite as `relevant_surfaces` when classifying a target. Grounded in your app's REAL turn-capture shape, never invented. |\n| `dispatch_command` | Argv template (list of strings) for YOUR project's real player-swarm dispatcher. Supports `{pool}` `{scenario}` `{output_root}` `{mode}` `{base_url}` `{turns}` `{backend_url}` `{repo_root}` placeholders. |\n\nOptional fields (see `scripts\u002Fconfig.py` for full validation and defaults):\n`backend_url`, `personas` (defaults to 5 generic QA archetypes), `actor_fixtures`\n(your project's equivalent of selectable player characters, if any; when\nconfigured, existing 1:1 pairing uses the shortest configured sequence because\nthis generalized contract does not synthesize unmatched actors or personas),\n`capture_glob` (default `agent-*\u002Fcapture.jsonl`), `output_root_default`,\n`doc_target_patterns` + `doc_dispatch_command` (if your project has its own\ndocs-to-invariants-style generator for a documentation-driven target class),\n`turns_default` (default 15), `agy_model`, `agy_timeout_seconds`,\n`runner_excuse_predicate` (a `module:function` hook to excuse a non-zero\ndispatch exit under conditions YOUR project defines -- see\n`scripts\u002Ftarget_scoped_run.py`'s module docstring).\n\n### The one contract your dispatch_command MUST satisfy\n\nYour dispatcher is responsible for ALL of the app-specific plumbing: booting\nor connecting to your real local server, driving a REAL browser (Playwright,\nAside, or your own) or a project-configured REAL native app client, making\nREAL LLM calls to decide what a player-persona\ndoes at each turn, and writing one capture file per agent under\n`--output-root` matching `config.capture_glob` (default\n`agent-*\u002Fcapture.jsonl`), one JSON turn-record per line, each line a JSON\nobject (no required key names -- `feature_coverage_judge.py` accepts any\ndict shape). This skill never inspects HOW you did that -- only that\ncaptures exist afterward and each matched capture contains at least one\nnon-empty JSON object. No mocks anywhere in this chain: a capture file\nproduced without a real browser or native client and a real model call is not evidence, it's\ntheater, and the coverage judge downstream will have nothing real to grade.\nNative adapters must label Simulator versus physical-device evidence and\nseparately record runtime\u002Fbuild evidence from driver-source evidence. Browser\nemulation must not be presented as native, and offline or synthetic state is\nnot primary evidence. This shared skill does not implement native clients.\n\n### Onboarding a new project: verify your adapter first\n\nBefore your first real scenario run, sanity-check that `dispatch_command`\nactually satisfies the contract above:\n```bash\npython3 \"${CLAUDE_HOME:-$HOME\u002F.claude}\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Fverify_adapter.py\" --config \u003Cpath\u002Fto\u002F.test-realistic.toml>\n```\nThis dispatches your configured command against a trivial fixture pool\u002Fscenario\nand checks: the dispatch exits zero, at least one file matches\n`capture_glob`, every non-blank line parses as a JSON object, and every\nmatched capture contains at least one non-empty object. The configured command\nmay hit the project's real services, browser, and model; this check itself never calls\n`feature_coverage_judge`. It catches a broken adapter (non-zero dispatch,\nwrong output path, empty captures, malformed JSON) before spending a real\ncoverage-judge model call diagnosing the same problem indirectly.\n\n## Who does what (model vs. code) -- unchanged from the source design\n\n| Step | Owner | Why |\n|---|---|---|\n| Doc-path target detection (only if `config.doc_target_patterns` is set) | **CODE** (mechanical regex match) | Pure structural shape check, never judgment. Absent config, always returns \"not a doc target\" and every input flows through the model-delegated path below. |\n| Target-type disambiguation among PR # \u002F commit SHA \u002F freeform prompt | **MODEL** (call #1, `classify_and_summarize`) | Genuinely ambiguous judgment -- a bare number could be a PR # or an unrelated mention. |\n| Fetching raw context (`gh pr view`, `git show --stat`) | **CODE** | Shape\u002Fexistence checks select WHICH fetcher to try -- mechanics, not meaning classification. Works against any `gh`\u002F`git`-hosted repo, unchanged. |\n| Scenario step authoring (3-5 `user_action`\u002F`expected_render` beats) | **MODEL** (call #2, `author_scenario_steps`) | Must be grounded in the raw diff\u002Fprompt text just fetched. |\n| `feature_summary` derivation | **MODEL**, returned by the classification+summary call, NEVER supplied via `--from-json` | Must be independent of any later self-grading -- the coverage judge compares captured turns against this exact string. |\n| Predicate reuse-vs-author decision | **MODEL**, recorded on the generated scenario's `PREDICATE_DECISION` | Correctness signal; non-blocking in v1 (matches source design). |\n| Schema\u002Fstructural validation of authored JSON | **CODE** | Pure shape conformance. |\n| `relevant_surfaces` membership check | **CODE**, against `config.feature_surface_vocabulary` | Set-membership, enforced both in the JSON-schema `enum` and an explicit check. |\n| File emission (scenario `.py`, `pool.yaml`) | **CODE** | Deterministic templating, zero judgment. |\n| Swarm dispatch | **YOUR PROJECT'S dispatch_command** | Real infra you own -- this skill never vendors or reimplements it. |\n| Coverage judgment (did the swarm capture actually touch the feature) | **MODEL** (`feature_coverage_judge.judge_feature_exercised`) | The load-bearing anti-false-green gate -- \"was this feature exercised\" is exactly the judgment class ZFC reserves for models, never a keyword\u002Ftoken heuristic. |\n\n## Workflow\n\n### Step 1: Unit-test gate (always run first, zero model calls, zero network)\n```bash\npython3 -m pytest \"${CLAUDE_HOME:-$HOME\u002F.claude}\u002Fskills\u002Ftest-realistic\u002Ftests\" -q\n```\nThe model seam (`llm_callable`) is stubbed in every unit test. This proves\nthe harness's own mechanics (batching, retry, validation, verdict\naggregation) without spending a real model call.\n\n### Step 2: Generate (model-delegated, two real model calls; one with --from-json)\n```bash\npython3 \"${CLAUDE_HOME:-$HOME\u002F.claude}\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Fscenario_generator.py\" \"\u003CTARGET>\" --output-dir \u003Cpath> [--config \u003Cpath\u002Fto\u002F.test-realistic.toml>]\n```\n`\u003CTARGET>` is a freeform prompt, a PR number, a commit SHA, or (if your\nproject configured `doc_target_patterns`) a doc-target id. On malformed\nmodel output: exactly one bounded retry, then a hard non-zero exit -- no\ntemplate fallback of any kind.\n\nOutput: `\u003Coutput-dir>\u002Fgenerated_\u003Cslug>.py` (carries `FEATURE_SUMMARY`,\n`RELEVANT_SURFACES`, `PREDICATE_DECISION`) and\n`\u003Coutput-dir>\u002Fgenerated_pool_\u003Cslug>.yaml`.\n\n#### `--from-json` short-circuit (session-authored scenario, NOT session-authored feature_summary)\nAn in-session agent that already has full target context may author the\nclassification+steps JSON itself and hand it off:\n```bash\npython3 scenario_generator.py \"\u003CTARGET>\" --from-json \u003Cpayload.json> --output-dir \u003Cpath>\n```\nThis performs zero subprocess calls for step authoring, but STILL makes one\nfresh model call to derive `feature_summary` -- any `feature_summary` key in\nthe payload is discarded. Normal generation makes two calls total\n(classification+summary, then steps); `--from-json` makes one\n(classification+summary). This anti-self-grading exemption exists so the\ndownstream coverage judge is never compared against the same session's own\nparaphrase of what it did.\n\n### Step 3: Dispatch + Judge + Report (one command)\n```bash\npython3 target_scoped_run.py \\\n  --pool \u003Coutput-dir>\u002Fgenerated_pool_\u003Cslug>.yaml \\\n  --scenario \u003Coutput-dir>\u002Fgenerated_\u003Cslug>.py \\\n  --mode headless \\\n  --output-root \u003Cfresh-empty-dir> \\\n  [--config \u003Cpath\u002Fto\u002F.test-realistic.toml>]\n```\nRefuses to run over a reused `--output-root` that already has captures or a\nprior verdict in it (never grades a stale run's leftovers). Dispatches\n`config.dispatch_command`, collects every `config.capture_glob` match,\nrejects a missing or empty-only actor capture before judging,\njudges coverage with a real model call\n(`feature_coverage_judge.judge_feature_exercised` -- batches turns by prompt\nsize, labels every turn with its true GLOBAL capture index so a model can\nnever accidentally echo a batch-local position, and treats any\n`exercised: True` claim with empty evidence as malformed, not a pass), then\nwrites `\u003Coutput-root>\u002Ftarget_scoped_verdict.json`.\n\n`CoverageJudgeUnavailableError` is a hard failure after one bounded retry --\nnever caught to fabricate a verdict. Exit code is 0 only when the dispatch\nsubprocess also exited 0 (or was explicitly excused via\n`--allow-dispatch-excuse` + a configured `runner_excuse_predicate`) AND\n`target_pass` is true.\n\n## Anti-false-green rules (non-negotiable, carried over verbatim from the source design)\n\n1. Target classification and scenario-step authoring are ALWAYS real model\n   calls (unless scenario steps are explicitly supplied in-session via `--from-json`) -- never `if \"pr\" in target.lower()`-style keyword routing.\n2. `feature_summary` is derived independently at generation time and is\n   NEVER supplied by the same session that will later grade the run.\n3. The coverage judge's `exercised: True` requires non-empty\n   `evidence_turn_indices` -- a claim without evidence is treated as\n   malformed output (retried, then a hard failure), never a pass.\n4. Every captured turn is judged (batched to fit prompt budgets), never\n   silently windowed to a fixed prefix.\n5. `CoverageJudgeUnavailableError` and `ScenarioGenerationError` are hard,\n   non-zero-exit failures. No caller in this skill may catch either to\n   fabricate a verdict or fall back to a keyword\u002Ftoken heuristic.\n6. Valid captures require a real browser or configured native client, plus a\n   real model call. Offline or synthetic captures are not evidence for this\n   pipeline; there is no mock mode.\n7. `target_pass` proves the feature was exercised, not that it behaved\n   correctly. A forbidden-state requirement (e.g. no request while consent is\n   off) needs an explicit predicate or an independent check of the raw request\n   ledger; an empty `predicates` list cannot back it, and an observed violation\n   is a FAIL (`evidence-review` check 9). After a hard judge failure, a\n   separately launched re-judge of the same captures does not make the run pass.\n\n## Directory layout\n\n```\n${CLAUDE_HOME:-$HOME\u002F.claude}\u002Fskills\u002Ftest-realistic\u002F\n  SKILL.md                    # this file\n  PROVENANCE.md               # source lineage (EXAMPLE\u002Fhistorical block)\n  scripts\u002F\n    config.py                 # .test-realistic.toml loader\u002Fvalidator\n    agy_adapter.py             # default real model-call adapter (agy CLI)\n    feature_coverage_judge.py  # the anti-false-green gate\n    aggregate.py                # target-scoped verdict aggregation\n    scenario_generator.py      # model-delegated scenario generation\n    target_scoped_run.py       # dispatch + judge + report orchestrator\n    verify_adapter.py          # onboarding conformance self-test (no coverage-judge call)\n  tests\u002F                       # fast, stubbed-model unit tests (pytest)\n  examples\u002F\n    test-realistic.example.toml  # fully-annotated EXAMPLE config\n```\n\n## Extending for your project\n\n- No existing doc-to-invariants generator? Leave `doc_target_patterns`\n  unset -- every target flows through the model-delegated path.\n- Want style-grounded step authoring? Add\n  `pattern_scenario_files = [\"path\u002Fto\u002Fexample1.py\", ...]` (repo-root\n  relative) to your TOML; absent that, steps are authored from context alone.\n- Want a project-specific excuse for a flaky-but-not-feature-related\n  dispatch failure? Implement `def my_excuse(returncode, output_root) ->\n  tuple[bool, str]` somewhere importable, set\n  `runner_excuse_predicate = \"my_module:my_excuse\"`, and pass\n  `--allow-dispatch-excuse` explicitly per run (never on by default).\n- Want a different default LLM adapter (not `agy`)? Pass your own\n  `llm_callable` (a `(prompt, json_schema) -> dict` callable) into\n  `scenario_generator.resolve_target_info` \u002F `target_scoped_run.main`\n  instead of relying on `agy_adapter.make_llm_callable`.\n","# \u002Ftest-realistic (generalized)\n\nEnd-to-end, real-infrastructure user testing: real local server, real\nbrowser, real LLM calls at every judgment point. There is no mock mode and\nno template fallback anywhere in this pipeline -- that is the entire point.\nIf any model call in this pipeline fails, the run fails loud (non-zero exit),\nit never silently substitutes a keyword heuristic or a canned verdict.\n\n**Provenance**: this generalizes the pipeline design of an existing\nproduction `\u002Ftest-realistic` harness -- see `PROVENANCE.md` for the source\nlineage. Nothing project-specific from that source was carried over; every\nvalue a project needs is supplied by its own `.test-realistic.toml`.\n\n## Before you can use this skill: write a project config\n\nEvery project MUST have a `.test-realistic.toml` at its repo root (or any\nancestor of the directory you invoke from -- `config.find_config_path` walks\nup, like git). There is no built-in default project. See\n`examples\u002Ftest-realistic.example.toml` for a fully-annotated EXAMPLE\n(clearly labelled, not read by any code path).\n\nRequired fields (fails loud with `ConfigError` if any is missing):\n\n| Field | Meaning |\n|---|---|\n| `project_name` | Label used in verdict artifacts |\n| `repo_root` | Absolute or config-relative path to the project's repo root (used for `gh`\u002F`git` context fetching and relative-izing artifact paths) |\n| `base_url` | The URL surface under test (e.g. your local dev server) |\n| `feature_surface_vocabulary` | This project's own equivalent of a \"renderer field allowlist\" -- the list of `rendered.*`\u002F`parsed.*` (or your own naming) field paths the model may cite as `relevant_surfaces` when classifying a target. Grounded in your app's REAL turn-capture shape, never invented. |\n| `dispatch_command` | Argv template (list of strings) for YOUR project's real player-swarm dispatcher. Supports `{pool}` `{scenario}` `{output_root}` `{mode}` `{base_url}` `{turns}` `{backend_url}` `{repo_root}` placeholders. |\n\nOptional fields (see `scripts\u002Fconfig.py` for full validation and defaults):\n`backend_url`, `personas` (defaults to 5 generic QA archetypes), `actor_fixtures`\n(your project's equivalent of selectable player characters, if any; when\nconfigured, existing 1:1 pairing uses the shortest configured sequence because\nthis generalized contract does not synthesize unmatched actors or personas),\n`capture_glob` (default `agent-*\u002Fcapture.jsonl`), `output_root_default`,\n`doc_target_patterns` + `doc_dispatch_command` (if your project has its own\ndocs-to-invariants-style generator for a documentation-driven target class),\n`turns_default` (default 15), `agy_model`, `agy_timeout_seconds`,\n`runner_excuse_predicate` (a `module:function` hook to excuse a non-zero\ndispatch exit under conditions YOUR project defines -- see\n`scripts\u002Ftarget_scoped_run.py`'s module docstring).\n\n### The one contract your dispatch_command MUST satisfy\n\nYour dispatcher is responsible for ALL of the app-specific plumbing: booting\nor connecting to your real local server, driving a REAL browser (Playwright,\nAside, or your own) or a project-configured REAL native app client, making\nREAL LLM calls to decide what a player-persona\ndoes at each turn, and writing one capture file per agent under\n`--output-root` matching `config.capture_glob` (default\n`agent-*\u002Fcapture.jsonl`), one JSON turn-record per line, each line a JSON\nobject (no required key names -- `feature_coverage_judge.py` accepts any\ndict shape). This skill never inspects HOW you did that -- only that\ncaptures exist afterward and each matched capture contains at least one\nnon-empty JSON object. No mocks anywhere in this chain: a capture file\nproduced without a real browser or native client and a real model call is not evidence, it's\ntheater, and the coverage judge downstream will have nothing real to grade.\nNative adapters must label Simulator versus physical-device evidence and\nseparately record runtime\u002Fbuild evidence from driver-source evidence. Browser\nemulation must not be presented as native, and offline or synthetic state is\nnot primary evidence. This shared skill does not implement native clients.\n\n### Onboarding a new project: verify your adapter first\n\nBefore your first real scenario run, sanity-check that `dispatch_command`\nactually satisfies the contract above:\n```bash\npython3 \"${CLAUDE_HOME:-$HOME\u002F.claude}\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Fverify_adapter.py\" --config \u003Cpath\u002Fto\u002F.test-realistic.toml>\n```\nThis dispatches your configured command against a trivial fixture pool\u002Fscenario\nand checks: the dispatch exits zero, at least one file matches\n`capture_glob`, every non-blank line parses as a JSON object, and every\nmatched capture contains at least one non-empty object. The configured command\nmay hit the project's real services, browser, and model; this check itself never calls\n`feature_coverage_judge`. It catches a broken adapter (non-zero dispatch,\nwrong output path, empty captures, malformed JSON) before spending a real\ncoverage-judge model call diagnosing the same problem indirectly.\n\n## Who does what (model vs. code) -- unchanged from the source design\n\n| Step | Owner | Why |\n|---|---|---|\n| Doc-path target detection (only if `config.doc_target_patterns` is set) | **CODE** (mechanical regex match) | Pure structural shape check, never judgment. Absent config, always returns \"not a doc target\" and every input flows through the model-delegated path below. |\n| Target-type disambiguation among PR # \u002F commit SHA \u002F freeform prompt | **MODEL** (call #1, `classify_and_summarize`) | Genuinely ambiguous judgment -- a bare number could be a PR # or an unrelated mention. |\n| Fetching raw context (`gh pr view`, `git show --stat`) | **CODE** | Shape\u002Fexistence checks select WHICH fetcher to try -- mechanics, not meaning classification. Works against any `gh`\u002F`git`-hosted repo, unchanged. |\n| Scenario step authoring (3-5 `user_action`\u002F`expected_render` beats) | **MODEL** (call #2, `author_scenario_steps`) | Must be grounded in the raw diff\u002Fprompt text just fetched. |\n| `feature_summary` derivation | **MODEL**, returned by the classification+summary call, NEVER supplied via `--from-json` | Must be independent of any later self-grading -- the coverage judge compares captured turns against this exact string. |\n| Predicate reuse-vs-author decision | **MODEL**, recorded on the generated scenario's `PREDICATE_DECISION` | Correctness signal; non-blocking in v1 (matches source design). |\n| Schema\u002Fstructural validation of authored JSON | **CODE** | Pure shape conformance. |\n| `relevant_surfaces` membership check | **CODE**, against `config.feature_surface_vocabulary` | Set-membership, enforced both in the JSON-schema `enum` and an explicit check. |\n| File emission (scenario `.py`, `pool.yaml`) | **CODE** | Deterministic templating, zero judgment. |\n| Swarm dispatch | **YOUR PROJECT'S dispatch_command** | Real infra you own -- this skill never vendors or reimplements it. |\n| Coverage judgment (did the swarm capture actually touch the feature) | **MODEL** (`feature_coverage_judge.judge_feature_exercised`) | The load-bearing anti-false-green gate -- \"was this feature exercised\" is exactly the judgment class ZFC reserves for models, never a keyword\u002Ftoken heuristic. |\n\n## Workflow\n\n### Step 1: Unit-test gate (always run first, zero model calls, zero network)\n```bash\npython3 -m pytest \"${CLAUDE_HOME:-$HOME\u002F.claude}\u002Fskills\u002Ftest-realistic\u002Ftests\" -q\n```\nThe model seam (`llm_callable`) is stubbed in every unit test. This proves\nthe harness's own mechanics (batching, retry, validation, verdict\naggregation) without spending a real model call.\n\n### Step 2: Generate (model-delegated, two real model calls; one with --from-json)\n```bash\npython3 \"${CLAUDE_HOME:-$HOME\u002F.claude}\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Fscenario_generator.py\" \"\u003CTARGET>\" --output-dir \u003Cpath> [--config \u003Cpath\u002Fto\u002F.test-realistic.toml>]\n```\n`\u003CTARGET>` is a freeform prompt, a PR number, a commit SHA, or (if your\nproject configured `doc_target_patterns`) a doc-target id. On malformed\nmodel output: exactly one bounded retry, then a hard non-zero exit -- no\ntemplate fallback of any kind.\n\nOutput: `\u003Coutput-dir>\u002Fgenerated_\u003Cslug>.py` (carries `FEATURE_SUMMARY`,\n`RELEVANT_SURFACES`, `PREDICATE_DECISION`) and\n`\u003Coutput-dir>\u002Fgenerated_pool_\u003Cslug>.yaml`.\n\n#### `--from-json` short-circuit (session-authored scenario, NOT session-authored feature_summary)\nAn in-session agent that already has full target context may author the\nclassification+steps JSON itself and hand it off:\n```bash\npython3 scenario_generator.py \"\u003CTARGET>\" --from-json \u003Cpayload.json> --output-dir \u003Cpath>\n```\nThis performs zero subprocess calls for step authoring, but STILL makes one\nfresh model call to derive `feature_summary` -- any `feature_summary` key in\nthe payload is discarded. Normal generation makes two calls total\n(classification+summary, then steps); `--from-json` makes one\n(classification+summary). This anti-self-grading exemption exists so the\ndownstream coverage judge is never compared against the same session's own\nparaphrase of what it did.\n\n### Step 3: Dispatch + Judge + Report (one command)\n```bash\npython3 target_scoped_run.py \\\n  --pool \u003Coutput-dir>\u002Fgenerated_pool_\u003Cslug>.yaml \\\n  --scenario \u003Coutput-dir>\u002Fgenerated_\u003Cslug>.py \\\n  --mode headless \\\n  --output-root \u003Cfresh-empty-dir> \\\n  [--config \u003Cpath\u002Fto\u002F.test-realistic.toml>]\n```\nRefuses to run over a reused `--output-root` that already has captures or a\nprior verdict in it (never grades a stale run's leftovers). Dispatches\n`config.dispatch_command`, collects every `config.capture_glob` match,\nrejects a missing or empty-only actor capture before judging,\njudges coverage with a real model call\n(`feature_coverage_judge.judge_feature_exercised` -- batches turns by prompt\nsize, labels every turn with its true GLOBAL capture index so a model can\nnever accidentally echo a batch-local position, and treats any\n`exercised: True` claim with empty evidence as malformed, not a pass), then\nwrites `\u003Coutput-root>\u002Ftarget_scoped_verdict.json`.\n\n`CoverageJudgeUnavailableError` is a hard failure after one bounded retry --\nnever caught to fabricate a verdict. Exit code is 0 only when the dispatch\nsubprocess also exited 0 (or was explicitly excused via\n`--allow-dispatch-excuse` + a configured `runner_excuse_predicate`) AND\n`target_pass` is true.\n\n## Anti-false-green rules (non-negotiable, carried over verbatim from the source design)\n\n1. Target classification and scenario-step authoring are ALWAYS real model\n   calls (unless scenario steps are explicitly supplied in-session via `--from-json`) -- never `if \"pr\" in target.lower()`-style keyword routing.\n2. `feature_summary` is derived independently at generation time and is\n   NEVER supplied by the same session that will later grade the run.\n3. The coverage judge's `exercised: True` requires non-empty\n   `evidence_turn_indices` -- a claim without evidence is treated as\n   malformed output (retried, then a hard failure), never a pass.\n4. Every captured turn is judged (batched to fit prompt budgets), never\n   silently windowed to a fixed prefix.\n5. `CoverageJudgeUnavailableError` and `ScenarioGenerationError` are hard,\n   non-zero-exit failures. No caller in this skill may catch either to\n   fabricate a verdict or fall back to a keyword\u002Ftoken heuristic.\n6. Valid captures require a real browser or configured native client, plus a\n   real model call. Offline or synthetic captures are not evidence for this\n   pipeline; there is no mock mode.\n7. `target_pass` proves the feature was exercised, not that it behaved\n   correctly. A forbidden-state requirement (e.g. no request while consent is\n   off) needs an explicit predicate or an independent check of the raw request\n   ledger; an empty `predicates` list cannot back it, and an observed violation\n   is a FAIL (`evidence-review` check 9). After a hard judge failure, a\n   separately launched re-judge of the same captures does not make the run pass.\n\n## Directory layout\n\n```\n${CLAUDE_HOME:-$HOME\u002F.claude}\u002Fskills\u002Ftest-realistic\u002F\n  SKILL.md                    # this file\n  PROVENANCE.md               # source lineage (EXAMPLE\u002Fhistorical block)\n  scripts\u002F\n    config.py                 # .test-realistic.toml loader\u002Fvalidator\n    agy_adapter.py             # default real model-call adapter (agy CLI)\n    feature_coverage_judge.py  # the anti-false-green gate\n    aggregate.py                # target-scoped verdict aggregation\n    scenario_generator.py      # model-delegated scenario generation\n    target_scoped_run.py       # dispatch + judge + report orchestrator\n    verify_adapter.py          # onboarding conformance self-test (no coverage-judge call)\n  tests\u002F                       # fast, stubbed-model unit tests (pytest)\n  examples\u002F\n    test-realistic.example.toml  # fully-annotated EXAMPLE config\n```\n\n## Extending for your project\n\n- No existing doc-to-invariants generator? Leave `doc_target_patterns`\n  unset -- every target flows through the model-delegated path.\n- Want style-grounded step authoring? Add\n  `pattern_scenario_files = [\"path\u002Fto\u002Fexample1.py\", ...]` (repo-root\n  relative) to your TOML; absent that, steps are authored from context alone.\n- Want a project-specific excuse for a flaky-but-not-feature-related\n  dispatch failure? Implement `def my_excuse(returncode, output_root) ->\n  tuple[bool, str]` somewhere importable, set\n  `runner_excuse_predicate = \"my_module:my_excuse\"`, and pass\n  `--allow-dispatch-excuse` explicitly per run (never on by default).\n- Want a different default LLM adapter (not `agy`)? Pass your own\n  `llm_callable` (a `(prompt, json_schema) -> dict` callable) into\n  `scenario_generator.resolve_target_info` \u002F `target_scoped_run.main`\n  instead of relying on `agy_adapter.make_llm_callable`.\n",{"name":5,"description":7},"main","8144f00ebafc4306264c63239e4b9fa42e48a90e",".claude\u002Fskills\u002Ftest-realistic",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill test-realistic",{"tool":54,"command":55},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill test-realistic",{"tool":57,"command":58},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill test-realistic","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002FSKILL.md",true,[62,68,74,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"examples\u002Ftest-realistic.example.toml","OTHER","其他",3792,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Fexamples\u002Ftest-realistic.example.toml",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"PROVENANCE.md","REFERENCE","参考文档",3107,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002FPROVENANCE.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002F__init__.py","SCRIPT","脚本",1,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Fscripts\u002F__init__.py",{"path":81,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Faggregate.py",8650,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Faggregate.py",{"path":85,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fagy_adapter.py",6063,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Fagy_adapter.py",{"path":89,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":90,"sourceHtmlUrl":91},"scripts\u002Fconfig.py",9831,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Fconfig.py",{"path":93,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":94,"sourceHtmlUrl":95},"scripts\u002Ffeature_coverage_judge.py",13686,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Ffeature_coverage_judge.py",{"path":97,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":98,"sourceHtmlUrl":99},"scripts\u002Fscenario_generator.py",30760,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Fscenario_generator.py",{"path":101,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Ftarget_scoped_run.py",16750,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Ftarget_scoped_run.py",{"path":105,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fverify_adapter.py",7030,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Fscripts\u002Fverify_adapter.py",{"path":109,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":110,"sourceHtmlUrl":111},"tests\u002Fconftest.py",428,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Ftests\u002Fconftest.py",{"path":113,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":114,"sourceHtmlUrl":115},"tests\u002Ftest_aggregate.py",3381,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Ftests\u002Ftest_aggregate.py",{"path":117,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":118,"sourceHtmlUrl":119},"tests\u002Ftest_agy_adapter.py",3255,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Ftests\u002Ftest_agy_adapter.py",{"path":121,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":122,"sourceHtmlUrl":123},"tests\u002Ftest_config.py",5841,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Ftests\u002Ftest_config.py",{"path":125,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":126,"sourceHtmlUrl":127},"tests\u002Ftest_feature_coverage_judge.py",9283,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Ftests\u002Ftest_feature_coverage_judge.py",{"path":129,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":130,"sourceHtmlUrl":131},"tests\u002Ftest_scenario_generator.py",19097,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Ftests\u002Ftest_scenario_generator.py",{"path":133,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":134,"sourceHtmlUrl":135},"tests\u002Ftest_target_scoped_run.py",15194,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Ftests\u002Ftest_target_scoped_run.py",{"path":137,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":138,"sourceHtmlUrl":139},"tests\u002Ftest_verify_adapter.py",7134,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftest-realistic\u002Ftests\u002Ftest_verify_adapter.py",[141,149,156,163,171,180],{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":148},"01M7DRVZXXMGY4G81K5GVF4V20","disk-reclaim-playbook","Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdisk-reclaim-playbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":148},"01M7B63PNTT2TY78RFKHD8SP3X","claudea-bench","Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclaudea-bench\u002FSKILL.md",[],[],{"skillNo":157,"name":29,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":162},"01M7622KQJ32AV4K5BXEMVSSEB","Alias for the canonical pr-lifecycle PR workflow skill (\u002Fpr-workflow, \u002Fprw).","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":170},"01M7432W92AKC4D1TKJ00VCMMT","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwhisper\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":175,"licenseFileUrl":176,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":170},"01M7432T6BN1A9SHB8RBQR5EMP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":170},"01M7432NDC7S6C6MX7M6RW8CTT","pr-report","This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, \u002Fpr-report, or wants per-PR summary with delta files\u002Flines. Generates a structured report for one or more open PRs covering purpose, files changed, +\u002F− line counts, \u002Fcode-standards + \u002Fthermo review findings, \u002Fponytail simplification opportunities, file-overlap combination candidates, and \u002Fgreen status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fpr-report\u002FSKILL.md",[],[]]