[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AEWQYMA289TC3WPA4MFH2E":3,"skill-same:01M7AEWQYMA289TC3WPA4MFH2E":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AEWQYMA289TC3WPA4MFH2E","linking-test-cases",null,"Link a repository's autotests to Qase test cases by meaning: propose a mapping for confirmation, write the confirmed case IDs into the test code in each Qase reporter's own syntax, and mark the linked cases Automated. Use when the user asks to link, map, match, or connect autotests or automated tests to Qase cases; to add Qase IDs, QaseId annotations, or case IDs to tests; why tests don't match their cases in Qase; or why automated results land in Qase as new cases instead of the existing ones.","qase-tms\u002Fqase-quality-supervisor","qase-tms","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F51974606?v=4","01M7AEVR78Y401F36HHKP0E061","Qase TMS","01M7AEVR87E9VMKC20EGG4K7R2",7,"MIT","https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Flinking-test-cases\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: linking-test-cases\ndescription: >-\n  Link a repository's autotests to Qase test cases by meaning: propose a mapping\n  for confirmation, write the confirmed case IDs into the test code in each Qase\n  reporter's own syntax, and mark the linked cases Automated. Use when the user\n  asks to link, map, match, or connect autotests or automated tests to Qase cases;\n  to add Qase IDs, QaseId annotations, or case IDs to tests; why tests don't match\n  their cases in Qase; or why automated results land in Qase as new cases instead\n  of the existing ones.\n---\n\n# Linking Test Cases\n\nA Qase reporter can attach an automated result to a case only when the test carries\nthat case's ID in code. This skill reads the repository's autotests and the project's\ncases, matches them **by meaning** — what the test body does against the case's\ntitle, steps, preconditions and suite, not title equality — and, once the user has\nconfirmed the mapping, writes the IDs into the tests in the syntax of the reporter the\nrepository uses.\n\nIt is the one skill in this plugin that edits code, so every write\nsits behind one rule: **nothing in the code and nothing in Qase changes until the user\nhas seen and confirmed the mapping.** Steps 1–8 only read, apart from writing the\nreview file and appending it to `.gitignore`; steps 9–11 write.\n\n## Prerequisites\n\n- A **git repository** with autotests in it.\n- A **project code**. If the user didn't give one, ask — never guess. One project per\n  run.\n- QQL access (Teams\u002FEnterprise) for the case inventory.\n- **Read the plugin's `references\u002Fqql.md` before composing any QQL query.** It sits two\n  levels up from this skill's directory (`..\u002F..\u002Freferences\u002Fqql.md`) — not in this\n  skill's own `references\u002F`, which holds only reporter syntax. Field names are not\n  uniform across entities, and a wrong one is a hard error rather than an empty\n  result. `automation` is `0` = Manual, `1` = To be automated, `2` = Automated.\n- The reporter syntax lives in this skill's `references\u002F\u003Cfile>.md`, one file per\n  ecosystem. **Syntax comes only from those files — never from reporter docs or\n  memory.** Several reporter docs show markers the reporter silently ignores.\n\n## Tools\n\n- `qase_project_context` — the suite tree. Call first.\n- `qql_search` — the case inventory, in batches.\n- `qase_get` — steps and preconditions of shortlisted candidates; existence and live\n  `automation` before any write; `updated` after a write.\n- `qase_case_upsert` — set `automation` on one case at a time (there is no bulk\n  update). Only in step 10.\n- `qase_case_bulk_create` — create cases for tests the user chose to create them for.\n  Only in step 10.\n- `Bash`, `Read`, `Grep`, `Glob`, `Edit`, `Write` — detection, the tests, the marker\n  edits, and the two files under `.qase\u002F`.\n\nRead `qase_tool_help` for a write tool before its first call. Never call a `*_delete`\ntool — the plugin's hooks block them anyway, and this skill deletes nothing in Qase\nor in code. It never installs or configures a reporter, never runs the tests, never\nedits a case's title or steps, and never commits.\n\n**Questions are plain chat.** Do not rely on a structured question tool — it does not\nexist in every client this plugin runs in. The confirmation is a chat summary plus an\neditable file.\n\n## Step 1: Project and scope\n\nGet the project code (ask if missing). Then settle the scope:\n\n1. the whole repository against the whole project;\n2. by test directory — a path or glob;\n3. by Qase suite(s);\n4. both together — e.g. `tests\u002Fcheckout` against suite *Checkout*.\n\nAlways offer this menu and wait for the answer. The only exception: the request\nalready names a scope — \"the whole repo\", a directory, a suite — then use it and say\nwhich scope you took.\n\n## Step 2: Detect the stack\n\nFind the manifests anywhere in the repository (skip `node_modules`, `vendor`,\n`.git`, build output) and map each to its reference file:\n\n| Manifest | Reference |\n|---|---|\n| `package.json` | `references\u002Fjavascript.md` |\n| `pyproject.toml`, `requirements*.txt` | `references\u002Fpython.md` |\n| `pom.xml`, `build.gradle`, `build.gradle.kts` | `references\u002Fjvm.md` |\n| `*.csproj` | `references\u002Fdotnet.md` |\n| `go.mod` | `references\u002Fgo.md` |\n| `composer.json` | `references\u002Fphp.md` |\n\n**Load only the reference files for stacks you found.** In each, every framework is a\n`### \u003CFramework>` section with bold labels: `**Detect:**` (the reporter package),\n`**Import:**`, `**Write:**` (the canonical marker), `**Multi-ID:**` (a form, or\n`not supported`), `**Also valid:**`, `**Never write:**`, `**Scope:**`, and sometimes\n`**Not verified — don't write:**`.\n\nDetermine the test frameworks from the manifests **and** the test files themselves\n(a `test_*.py` importing `pytest`, a `*.feature` file, `*_test.go`, `*.test.ts`) — a\ndirectory of tests can have no manifest of its own. A repository may hold several\nframeworks; each gets its own syntax. Check every manifest kind in the table before\ncalling a reporter missing: a `*.feature` file may be Java Cucumber (reporter in\n`pom.xml` or a Gradle file) or CucumberJS (reporter in `package.json`).\n\n**Missing reporter:** a framework whose `**Detect:**` package is absent from the\nmanifest that governs those tests is reported as *reporter missing* and gets **no**\nmarkers — not in the proposal, not in step 9, even if a review file accepts a row\nfor it. Never install the reporter or suggest a marker that would do nothing.\n\n## Step 3: Load state\n\nThe state file is `.qase\u002Flinks.json` — a cache plus the user's past decisions, not\nthe source of truth (the IDs in code are):\n\n```json\n{\"version\": 1, \"project\": \"DEMO\", \"storage\": \"committed|local\",\n \"entries\": [{\"test\": {\"file\": \"tests\u002Ftest_x.py\", \"name\": \"test_y\"},\n              \"fingerprint\": \"sha256:\u003Chex>\", \"cases\": [4],\n              \"case_updated\": {\"4\": \"\u003CISO-8601>\"},\n              \"status\": \"verified|rejected|no-case-wanted|case-declined|qase-pending\",\n              \"date\": \"YYYY-MM-DD\"}]}\n```\n\n- **Missing or unparsable** → a full run. Say so in one line and carry on; never\n  fail on it. Never overwrite an unparsable file silently — say it will be replaced\n  in step 11.\n- A `project` that differs from this run's → ignore its entries and say so.\n- **First run** (no file): ask where to keep it — `committed` (in the repo, shared\n  with the team and CI) or `local` (same path, gitignored). Ask it in the step 8\n  message rather than stopping here; nothing writes the state file before step 11.\n\n## Step 4: Inventory\n\n**Tests in scope.** For each framework, enumerate its tests: test functions and\nmethods; for BDD, scenarios; for Newman, the `pm.test` blocks in collections; for\nRobot, test cases. Record `path:line name`, the test's source block (from its first\ndecorator, annotation or tag line to its end), and any Qase marker already on it in\nany form the reference lists — `**Write:**`, `**Multi-ID:**`, `**Also valid:**`,\n`**Never write:**`.\n\n**Fingerprint** each test that has a state entry, to compare in step 5: sha256 of the\nsource block with every whitespace run collapsed to one space.\n\n```bash\nhash=\"shasum -a 256\"; command -v shasum >\u002Fdev\u002Fnull || hash=sha256sum\nsed -n \"${first},${last}p\" \"$file\" | tr -s '[:space:]' ' ' | $hash | cut -d' ' -f1\n```\n\nStored as `sha256:\u003Chex>`. If hashing is unavailable — no shell, no hash tool — still\nwrite the state, with `fingerprint: null`. A null fingerprint never matches, so step 5\nre-examines that pair, but the entry's status and the user's decision are kept.\n\n**Cases in scope.** `qase_project_context` once for the suite tree, then QQL in\nbatches — never one call per case:\n\n```\nSELECT (COUNT(*)) entity = \"case\" and project = \"DEMO\" and suiteTree = \"Checkout\"\n```\n\nCount first; then fetch full-entity rows (no `SELECT`) with `limit` 100, paging by\noffset. Take `id`, `title`, `suite`, `automation`, `updated`. `suiteTree` takes in a\nsuite's descendants; `suite = \"X\"` matches *every* suite with that title. Full-entity\nrows carry hydrated, live values; a `SELECT (…)` projection reads an index that can\nlag minutes to days — so take `automation` and `updated` from full-entity\n(hydrated) rows or `qase_get`, never from a QQL projection. If\nthe scope holds more than about 1,000 cases, propose narrowing by suite before\nreading them all.\n\n`steps` is **not** a QQL case field. Read steps and preconditions with `qase_get`\n**only for shortlisted candidates** (step 7), never for the whole inventory. Keep each\ncase you read; several tests often share candidates.\n\n## Step 5: Skip what is unchanged\n\nFor each test with a state entry:\n\n- `verified`, and its stored `fingerprint` **and** every `case_updated` timestamp\n  still match (the test's current fingerprint; each case's `updated` from the\n  full-entity (hydrated) rows or `qase_get`, never a projection) **and** the code\n  still carries exactly those IDs → skip it. Count\n  it as *unchanged since \u003Cdate>*.\n- `verified` but anything differs → re-examine; it goes through step 6 like any test\n  with an ID.\n- `rejected` → never re-propose that test–case pair. Other candidates for the test are\n  still fair.\n- `no-case-wanted` → never propose anything for that test again.\n- `case-declined` → never re-offer creating a case for it; a link to a case that\n  appears later may still be proposed.\n- `qase-pending` with case IDs → the code is linked but the Qase update was\n  deferred. Re-verify the pair, then offer the deferred update again in step 10.\n- `qase-pending` with `cases: []` → the user chose `create` but deferred Qase. Don't\n  re-propose the test as new: list it in the review file under *Tests without a case*\n  with `create` pre-filled and the reason \"creation deferred from \u003Cdate>\".\n\nA renamed or moved test misses its entry and is simply examined afresh.\n\n## Step 6: Verify existing IDs\n\nFor each ID already in code, read the case (`qase_get`, batched with the step 7 reads)\nand compare its steps with the test body. Classify:\n\n- **confirmed** — the case exists and describes what the test does;\n- **case not found** — deleted or never existed;\n- **probably the wrong case** — the meaning doesn't match; propose the right one if\n  step 7 finds it;\n- **a better case exists** — the current case fits loosely and another fits clearly.\n\nExisting IDs are **never** changed without the same confirmation as new links.\n\nCheck the code side too, against the framework's reference section:\n\n- a marker matching that framework's `**Never write:**` line is one the reporter\n  silently ignores (e.g. `@QaseId=1,2` in Java Cucumber, `qase(1, …)` in Vitest,\n  `#[QaseId]` on a Pest closure, a Jest suffix with spaces) — flag it with the fix in\n  the `**Write:**` or `**Multi-ID:**` form;\n- a marker in a form under `**Not verified — don't write:**` — flag it, and propose a\n  verified form only if the section has one;\n- a **multi-project** marker (the multi-project form in `**Also valid:**`) — report\n  it and leave it untouched; multi-project mapping is out of scope.\n\nConfirmed IDs with nothing to fix and a case already Automated need no row; count\nthem, keep the case's `updated` from this read, and record them `verified` in step 11\nso the next run skips them. A confirmed ID whose case is not Automated gets a row, so its update can be\noffered in step 10.\n\n## Step 7: Match\n\nFor each unlinked test in scope, find candidate cases by meaning:\n\n1. **Prefilter** by suite (suite title against the test's path, file, describe\u002Fclass\n   block), path, and words shared between the test name and case titles. Keep a\n   handful of candidates per test.\n2. **Read the bodies:** the test code, and the candidates' steps and preconditions\n   (`qase_get`).\n3. **Decide**, with a confidence and a one-line reason:\n   - `high` — the steps and the test body check the same behaviour, and no other\n     candidate fits comparably;\n   - `medium` — same feature and intent, but steps are missing or partial, or another\n     candidate fits nearly as well;\n   - `low` — only the title or suite overlaps; the behaviour is not confirmed.\n\nRules:\n\n- **Hand-written over reporter-created.** A case a reporter created on an earlier run\n  usually has a title equal to the test name and no steps. When both kinds match,\n  propose the hand-written one and name the other as a likely duplicate in the\n  reason. Never delete or merge cases.\n- **Many-to-many** is fine: one case from several tests (parameterized variants), and\n  several cases on one test (an e2e flow) — the latter **only** where the framework's\n  `**Multi-ID:**` is not `not supported`; otherwise propose one and say why.\n- **No marker that needs restructuring.** If the only way to carry an ID is to rewrite\n  the test — a plain Go `func TestX(t *testing.T)` without `qase.Test` — report it as\n  *reporter not wired for this test*; don't wrap it. A runtime-call marker (Pest\n  `qase()->caseId()`, Kaspresso `Qase.id()`) or TestCafe's `.meta(...)` is a marker,\n  not restructuring.\n- Never propose a form listed under `**Not verified — don't write:**`. Use the\n  verified alternative the section names, or report the test.\n- A test with no plausible case goes to *Tests without a case*. A case in scope that\n  no test covers goes to *Cases with no test*.\n\n## Step 8: Confirm — then stop\n\nWrite the full mapping to `.qase\u002Flink-review.md`, then print a short chat summary,\nthen **stop and wait for the user**. No code edit and no Qase write happens in this\nturn.\n\n### The review file\n\n```markdown\n# Qase link review — WEB\n\nFill the Decision column: `accept`, `reject`, `edit: \u003Cid>[,\u003Cid>…]`, `create`, `skip`,\nor leave it empty (undecided). Then reply `done` in chat.\n\n## New links\n\n| # | Test | Case(s) | Confidence | Reason | Decision |\n|---|---|---|---|---|---|\n| 1 | tests\u002Ftest_login.py:18 test_locked_account | 41 Login: locked account is refused | high | Logs in to a locked account and asserts the refusal message, as the steps do | accept |\n\n## Existing IDs\n\n| # | Test | Case(s) | Confidence | Reason | Decision |\n|---|---|---|---|---|---|\n| 2 | tests\u002Ftest_login.py:9 test_password_reset | 55 → 43 Login: reset link is emailed | medium | Probably the wrong case: 55 covers sign-up; the test requests a reset link | |\n\n## Tests without a case\n\n| # | Test | Case(s) | Confidence | Reason | Decision |\n|---|---|---|---|---|---|\n| 3 | tests\u002Ftest_login.py:30 test_session_expiry | — | — | No case covers session expiry; `create` to add one | |\n\n## Cases with no test\n\n| # | Test | Case(s) | Confidence | Reason | Decision |\n|---|---|---|---|---|---|\n| 4 | — | 47 Login: sign in with SSO | — | No test in scope exercises SSO | |\n\n## Qase update\n\nDecision:\n```\n\nFormat rules:\n\n- `Test` is `path:line name`. `Case(s)` is `\u003Cid> \u003Ctitle>`, several separated by `; `;\n  for an existing ID, `\u003Ccurrent> → \u003Cproposed> \u003Ctitle>`, or `\u003Ccurrent> \u003Ctitle>` when\n  only its status or marker form is at issue. Escape `|` in titles as `\\|`.\n- Row numbers are unique across the whole file, not per group.\n- `high` rows are pre-filled `accept`; every other Decision starts empty. Never\n  pre-fill `create`.\n- The `## Qase update` line `Decision:` is left empty, for `now` or `later`.\n\nWhat each decision means:\n\n| Decision | New links | Existing IDs | Tests without a case |\n|---|---|---|---|\n| `accept` | write the proposed ID(s) | apply the proposed fix | — |\n| `reject` | write nothing; record `rejected` for the pair | keep the code as is; record `rejected` for the proposed case | record `case-declined` |\n| `edit: \u003Cid>[,\u003Cid>…]` | write these IDs instead | replace the marker with these IDs | link to these IDs |\n| `create` | — | — | create a case, then link it |\n| `skip` | leave the test unlinked for good: `no-case-wanted` | keep the code as is; nothing recorded | `no-case-wanted` |\n| empty | undecided: nothing written or recorded; asked again next run | same | same |\n\n*Cases with no test* rows are information: nothing is written for them, whatever\ntheir Decision says.\n\nAdd `.qase\u002Flink-review.md` to `.gitignore` — and `.qase\u002Flinks.json` too once storage is\n`local`. Create `.gitignore` if missing; append the line only if it isn't already\nthere; never rewrite the file.\n\n### The chat summary\n\nCounts per group, then only the rows that need attention: every `medium`\u002F`low` row,\nevery existing-ID problem, missing reporters, tests that need restructuring. A\nquestion a reference file raises about a row (Newman's per-`pm.test` scope, say) goes\nin that row's Reason and in this list — never a separate stop. Then:\n\n- the path to the review file, and the two ways to answer — reply in chat\n  (`accept all except 12, 40`, `reject 7`, `13: edit 51`, `create 20, 21`) or edit the\n  file and reply `done`;\n- on a first run, the storage question: `committed` or `local`;\n- that Qase changes immediately when updated, while the code change lands only when\n  merged — so they can also answer `now` or `later` for the Qase update;\n- a plain statement that nothing has been written to code or Qase yet.\n\n### The next turn\n\n- **Chat answers** → apply them to the review file's Decision column first, so file\n  and state agree. \"Accept all\" covers *New links* and *Existing IDs* rows; *Tests\n  without a case* need an explicit `create`. Rows excepted from \"accept all\" become\n  undecided, not rejected, unless the user says reject.\n- **`done`** → re-read `.qase\u002Flink-review.md` and take its decisions as written. An\n  unrecognised decision is undecided; list it in the report.\n- **Applying an earlier review:** if `.qase\u002Flink-review.md` already exists with\n  decisions filled in and the user asks to apply it, skip steps 4–8 and go straight\n  to step 9 — after the parts of steps 1–3 that step 9 needs (project code from the\n  file title or the state file, the full stack detection of step 2, state). A file whose first line is\n  `Applied: \u003Cdate>` was already applied (step 11): never apply it again — say so and\n  offer a fresh run instead, which replaces it. If an unstamped file exists but the\n  user started a fresh run, say it holds unapplied decisions and ask whether to apply\n  it or replace it.\n\n## Step 9: Write the code\n\nWork from the decisions only. For every test, gather the IDs from its `accept` and\n`edit:` rows (a `reject` row on the same test adds nothing), then:\n\n1. **Confirm each case exists** with `qase_get`. An unknown ID is not written; report\n   it. Keep the reads — step 10 needs each case's live `automation`.\n2. **Re-check the framework**: reporter present (step 2), the marker needs no\n   restructuring, several IDs only where `**Multi-ID:**` allows. A row that fails is\n   not written; report why.\n3. **Skip** a test that already carries exactly those IDs in any `**Write:**`,\n   `**Multi-ID:**` or `**Also valid:**` form — never add a second marker.\n   **Merge** a new ID into a test that already carries a confirmed one: the new IDs\n   and the confirmed IDs go into one marker in the `**Multi-ID:**` form, replacing\n   the old marker in place — never drop a confirmed ID, never add a second marker.\n   Where `**Multi-ID:**` is `not supported`, write nothing and report it.\n4. **Choose the form.** If the repository already uses a valid form for this framework\n   (one in `**Write:**`, `**Multi-ID:**` or `**Also valid:**`), follow it; otherwise\n   use `**Write:**`, or `**Multi-ID:**` for several IDs. Never a `**Never write:**`\n   form, never a `**Not verified — don't write:**` one.\n5. **Edit minimally.** An existing-ID fix replaces the old marker in place. Add the\n   `**Import:**` line only if the file lacks it, next to the file's other imports.\n   Touch no other line: no reformatting, no reordering, no renaming, and keep the\n   file's quoting, indentation and line endings.\n\n`create` rows get their IDs in step 10 and come back here for the same edit.\n\nShow `git diff --stat` afterwards. Do not commit.\n\n## Step 10: Write Qase\n\nFollow the `## Qase update` decision (or the chat answer):\n\n- **`later`** → no Qase write at all, including case creation. Record each linked\n  entry whose case has a pending Qase write as `qase-pending`; each `create` row\n  gets a `qase-pending` entry with `cases: []`, and no IDs are written.\n- **empty** → ask, explaining that Qase changes now while the code lands on merge,\n  and wait.\n- **`now`** → continue.\n\nCollect every question first and ask them in **one** message, then **stop and wait\nfor the answers**. Write nothing that depends on an unanswered question — never flip\na Manual case, change an old case or create a case before the user has answered.\nWrites that depend on no question may go ahead once the answers are in. The\nquestions:\n\n- Cases to set Automated: those linked in step 9, plus confirmed existing IDs whose\n  case isn't Automated and whose row was accepted. Use the live `automation` read in\n  step 9: `2` → nothing; `1` → update; **`0` (Manual) → ask first**, per case — it\n  was a deliberate team choice.\n- A link removed or replaced in step 9, whose old case no other test still carries:\n  **ask** what its `automation` becomes — leave \u002F To be automated \u002F Manual.\n- `create` rows: propose a title and steps derived from the test, and the suite that\n  plainly matches the test's area; **ask for the suite when it isn't obvious**.\n\nThen:\n\n1. Create cases with `qase_case_bulk_create` (one call, `automation` = Automated),\n   and write their new IDs into code as in step 9. First drop any `create` row whose\n   test already carries an ID in code — a case created twice can never be deleted;\n   report the row instead.\n2. Set `automation` with `qase_case_upsert`, **one case per call**, only the\n   `automation` field.\n3. **Re-read every case you wrote with `qase_get`** and keep its `updated`. Your own\n   write changes `updated`, so a value taken before the write would make the next\n   run re-examine every pair just linked. Take it from this `qase_get`, never from\n   a QQL projection, which lags.\n\nA write that fails: record that entry `qase-pending`, carry on, report it.\n\n## Step 11: Report and save state\n\n**Write `.qase\u002Flinks.json`.** Keep entries for tests outside this run's scope as they\nwere. For each test touched by this run:\n\n- linked and Qase written (or nothing to write) → `verified`, `case_updated` from the\n  step 10 re-read, or from the step 9 read when Qase was not written;\n- linked, Qase deferred or failed → `qase-pending`; `create` deferred →\n  `qase-pending` with `cases: []`;\n- `reject` → `rejected` with the rejected case(s); `reject` on a test without a\n  case → `case-declined`; `skip` on a new link or a test without a case →\n  `no-case-wanted`;\n- confirmed existing IDs with nothing to fix (no row, step 6) → `verified`, with\n  `case_updated` from the step 6 read;\n- undecided rows, and `skip` on an existing ID → no new entry.\n\nA test can hold more than one entry — say `verified` for case 1 and `rejected` for\ncase 3.\n\n`fingerprint` is computed now, on the file as written — the marker is part of the\nblock. `date` is today. Keep `storage` as chosen; if it is `local`, make sure\n`.qase\u002Flinks.json` is in `.gitignore`.\n\n**Stamp the review file.** Insert `Applied: \u003CYYYY-MM-DD>` as the first line of\n`.qase\u002Flink-review.md`, so it is never applied twice — a second apply would re-run its\n`create` rows.\n\n**Then report in chat**, in this shape:\n\n```\n## Linking — \u003CPROJECT> · \u003Cscope>\n_Generated by Qase Quality Supervisor · linking-test-cases skill_\n\nStack: \u003Cframework → reporter, reference file>; reporter missing: \u003Cframeworks, or none>\n\n### Linked\n- \u003Cpath:line name> → \u003Cids> (\u003Cform used>)\n\n### Existing IDs\n- Confirmed: \u003Cn> · Fixed: \u003Clist> · Flagged, unchanged: \u003Clist>\n\n### Qase\n- Set Automated: \u003Cids> · Left as is by request: \u003Cids> · Pending (later \u002F failed): \u003Cids>\n- Created: \u003Cid title, suite> — or: not updated, by request\n\n### Not written\n- \u003Crow\u002Ftest> — \u003Cunknown case ID | reporter missing | needs restructuring | unverified syntax | multi-project marker | Multi-ID not supported>\n\n### Skipped\n- Unchanged since last run: \u003Cn> · Undecided: \u003Cn> · Rejected: \u003Cn> · No case wanted: \u003Cn>\n- Likely duplicates (reporter-created): \u003Cids> — never deleted or merged\n\nState: .qase\u002Flinks.json (\u003Ccommitted|local>) · \u003Cn> entries\nNext: review `git diff`, run the suite, commit with your change.\n\n---\n_Generated by Qase Quality Supervisor · linking-test-cases skill_\n```\n\nLeave out a section that has nothing in it, except **Not written** when something\nwasn't — that list is what the user must act on.\n\n## Honesty notes\n\n- Matching by meaning is a judgement. A confidence is an estimate, not a proof: never\n  pre-accept a `medium` or `low` row, and give the reason that would let the user\n  overrule you.\n- Say what you did not do: never claim Qase was updated when the decision was\n  `later` or a write failed, and never claim the markers work — the tests were not\n  run. The reporter only proves the link on the next run.\n- A QQL projection can lag the live case; decisions that turn on one case —\n  existence, `automation`, `updated` — come from full-entity (hydrated) rows or\n  `qase_get`, never from a QQL projection.\n- If the scope was too large to examine whole, say which part was examined. A\n  partial run presented as complete is worse than an admitted gap.\n","# Linking Test Cases\n\nA Qase reporter can attach an automated result to a case only when the test carries\nthat case's ID in code. This skill reads the repository's autotests and the project's\ncases, matches them **by meaning** — what the test body does against the case's\ntitle, steps, preconditions and suite, not title equality — and, once the user has\nconfirmed the mapping, writes the IDs into the tests in the syntax of the reporter the\nrepository uses.\n\nIt is the one skill in this plugin that edits code, so every write\nsits behind one rule: **nothing in the code and nothing in Qase changes until the user\nhas seen and confirmed the mapping.** Steps 1–8 only read, apart from writing the\nreview file and appending it to `.gitignore`; steps 9–11 write.\n\n## Prerequisites\n\n- A **git repository** with autotests in it.\n- A **project code**. If the user didn't give one, ask — never guess. One project per\n  run.\n- QQL access (Teams\u002FEnterprise) for the case inventory.\n- **Read the plugin's `references\u002Fqql.md` before composing any QQL query.** It sits two\n  levels up from this skill's directory (`..\u002F..\u002Freferences\u002Fqql.md`) — not in this\n  skill's own `references\u002F`, which holds only reporter syntax. Field names are not\n  uniform across entities, and a wrong one is a hard error rather than an empty\n  result. `automation` is `0` = Manual, `1` = To be automated, `2` = Automated.\n- The reporter syntax lives in this skill's `references\u002F\u003Cfile>.md`, one file per\n  ecosystem. **Syntax comes only from those files — never from reporter docs or\n  memory.** Several reporter docs show markers the reporter silently ignores.\n\n## Tools\n\n- `qase_project_context` — the suite tree. Call first.\n- `qql_search` — the case inventory, in batches.\n- `qase_get` — steps and preconditions of shortlisted candidates; existence and live\n  `automation` before any write; `updated` after a write.\n- `qase_case_upsert` — set `automation` on one case at a time (there is no bulk\n  update). Only in step 10.\n- `qase_case_bulk_create` — create cases for tests the user chose to create them for.\n  Only in step 10.\n- `Bash`, `Read`, `Grep`, `Glob`, `Edit`, `Write` — detection, the tests, the marker\n  edits, and the two files under `.qase\u002F`.\n\nRead `qase_tool_help` for a write tool before its first call. Never call a `*_delete`\ntool — the plugin's hooks block them anyway, and this skill deletes nothing in Qase\nor in code. It never installs or configures a reporter, never runs the tests, never\nedits a case's title or steps, and never commits.\n\n**Questions are plain chat.** Do not rely on a structured question tool — it does not\nexist in every client this plugin runs in. The confirmation is a chat summary plus an\neditable file.\n\n## Step 1: Project and scope\n\nGet the project code (ask if missing). Then settle the scope:\n\n1. the whole repository against the whole project;\n2. by test directory — a path or glob;\n3. by Qase suite(s);\n4. both together — e.g. `tests\u002Fcheckout` against suite *Checkout*.\n\nAlways offer this menu and wait for the answer. The only exception: the request\nalready names a scope — \"the whole repo\", a directory, a suite — then use it and say\nwhich scope you took.\n\n## Step 2: Detect the stack\n\nFind the manifests anywhere in the repository (skip `node_modules`, `vendor`,\n`.git`, build output) and map each to its reference file:\n\n| Manifest | Reference |\n|---|---|\n| `package.json` | `references\u002Fjavascript.md` |\n| `pyproject.toml`, `requirements*.txt` | `references\u002Fpython.md` |\n| `pom.xml`, `build.gradle`, `build.gradle.kts` | `references\u002Fjvm.md` |\n| `*.csproj` | `references\u002Fdotnet.md` |\n| `go.mod` | `references\u002Fgo.md` |\n| `composer.json` | `references\u002Fphp.md` |\n\n**Load only the reference files for stacks you found.** In each, every framework is a\n`### \u003CFramework>` section with bold labels: `**Detect:**` (the reporter package),\n`**Import:**`, `**Write:**` (the canonical marker), `**Multi-ID:**` (a form, or\n`not supported`), `**Also valid:**`, `**Never write:**`, `**Scope:**`, and sometimes\n`**Not verified — don't write:**`.\n\nDetermine the test frameworks from the manifests **and** the test files themselves\n(a `test_*.py` importing `pytest`, a `*.feature` file, `*_test.go`, `*.test.ts`) — a\ndirectory of tests can have no manifest of its own. A repository may hold several\nframeworks; each gets its own syntax. Check every manifest kind in the table before\ncalling a reporter missing: a `*.feature` file may be Java Cucumber (reporter in\n`pom.xml` or a Gradle file) or CucumberJS (reporter in `package.json`).\n\n**Missing reporter:** a framework whose `**Detect:**` package is absent from the\nmanifest that governs those tests is reported as *reporter missing* and gets **no**\nmarkers — not in the proposal, not in step 9, even if a review file accepts a row\nfor it. Never install the reporter or suggest a marker that would do nothing.\n\n## Step 3: Load state\n\nThe state file is `.qase\u002Flinks.json` — a cache plus the user's past decisions, not\nthe source of truth (the IDs in code are):\n\n```json\n{\"version\": 1, \"project\": \"DEMO\", \"storage\": \"committed|local\",\n \"entries\": [{\"test\": {\"file\": \"tests\u002Ftest_x.py\", \"name\": \"test_y\"},\n              \"fingerprint\": \"sha256:\u003Chex>\", \"cases\": [4],\n              \"case_updated\": {\"4\": \"\u003CISO-8601>\"},\n              \"status\": \"verified|rejected|no-case-wanted|case-declined|qase-pending\",\n              \"date\": \"YYYY-MM-DD\"}]}\n```\n\n- **Missing or unparsable** → a full run. Say so in one line and carry on; never\n  fail on it. Never overwrite an unparsable file silently — say it will be replaced\n  in step 11.\n- A `project` that differs from this run's → ignore its entries and say so.\n- **First run** (no file): ask where to keep it — `committed` (in the repo, shared\n  with the team and CI) or `local` (same path, gitignored). Ask it in the step 8\n  message rather than stopping here; nothing writes the state file before step 11.\n\n## Step 4: Inventory\n\n**Tests in scope.** For each framework, enumerate its tests: test functions and\nmethods; for BDD, scenarios; for Newman, the `pm.test` blocks in collections; for\nRobot, test cases. Record `path:line name`, the test's source block (from its first\ndecorator, annotation or tag line to its end), and any Qase marker already on it in\nany form the reference lists — `**Write:**`, `**Multi-ID:**`, `**Also valid:**`,\n`**Never write:**`.\n\n**Fingerprint** each test that has a state entry, to compare in step 5: sha256 of the\nsource block with every whitespace run collapsed to one space.\n\n```bash\nhash=\"shasum -a 256\"; command -v shasum >\u002Fdev\u002Fnull || hash=sha256sum\nsed -n \"${first},${last}p\" \"$file\" | tr -s '[:space:]' ' ' | $hash | cut -d' ' -f1\n```\n\nStored as `sha256:\u003Chex>`. If hashing is unavailable — no shell, no hash tool — still\nwrite the state, with `fingerprint: null`. A null fingerprint never matches, so step 5\nre-examines that pair, but the entry's status and the user's decision are kept.\n\n**Cases in scope.** `qase_project_context` once for the suite tree, then QQL in\nbatches — never one call per case:\n\n```\nSELECT (COUNT(*)) entity = \"case\" and project = \"DEMO\" and suiteTree = \"Checkout\"\n```\n\nCount first; then fetch full-entity rows (no `SELECT`) with `limit` 100, paging by\noffset. Take `id`, `title`, `suite`, `automation`, `updated`. `suiteTree` takes in a\nsuite's descendants; `suite = \"X\"` matches *every* suite with that title. Full-entity\nrows carry hydrated, live values; a `SELECT (…)` projection reads an index that can\nlag minutes to days — so take `automation` and `updated` from full-entity\n(hydrated) rows or `qase_get`, never from a QQL projection. If\nthe scope holds more than about 1,000 cases, propose narrowing by suite before\nreading them all.\n\n`steps` is **not** a QQL case field. Read steps and preconditions with `qase_get`\n**only for shortlisted candidates** (step 7), never for the whole inventory. Keep each\ncase you read; several tests often share candidates.\n\n## Step 5: Skip what is unchanged\n\nFor each test with a state entry:\n\n- `verified`, and its stored `fingerprint` **and** every `case_updated` timestamp\n  still match (the test's current fingerprint; each case's `updated` from the\n  full-entity (hydrated) rows or `qase_get`, never a projection) **and** the code\n  still carries exactly those IDs → skip it. Count\n  it as *unchanged since \u003Cdate>*.\n- `verified` but anything differs → re-examine; it goes through step 6 like any test\n  with an ID.\n- `rejected` → never re-propose that test–case pair. Other candidates for the test are\n  still fair.\n- `no-case-wanted` → never propose anything for that test again.\n- `case-declined` → never re-offer creating a case for it; a link to a case that\n  appears later may still be proposed.\n- `qase-pending` with case IDs → the code is linked but the Qase update was\n  deferred. Re-verify the pair, then offer the deferred update again in step 10.\n- `qase-pending` with `cases: []` → the user chose `create` but deferred Qase. Don't\n  re-propose the test as new: list it in the review file under *Tests without a case*\n  with `create` pre-filled and the reason \"creation deferred from \u003Cdate>\".\n\nA renamed or moved test misses its entry and is simply examined afresh.\n\n## Step 6: Verify existing IDs\n\nFor each ID already in code, read the case (`qase_get`, batched with the step 7 reads)\nand compare its steps with the test body. Classify:\n\n- **confirmed** — the case exists and describes what the test does;\n- **case not found** — deleted or never existed;\n- **probably the wrong case** — the meaning doesn't match; propose the right one if\n  step 7 finds it;\n- **a better case exists** — the current case fits loosely and another fits clearly.\n\nExisting IDs are **never** changed without the same confirmation as new links.\n\nCheck the code side too, against the framework's reference section:\n\n- a marker matching that framework's `**Never write:**` line is one the reporter\n  silently ignores (e.g. `@QaseId=1,2` in Java Cucumber, `qase(1, …)` in Vitest,\n  `#[QaseId]` on a Pest closure, a Jest suffix with spaces) — flag it with the fix in\n  the `**Write:**` or `**Multi-ID:**` form;\n- a marker in a form under `**Not verified — don't write:**` — flag it, and propose a\n  verified form only if the section has one;\n- a **multi-project** marker (the multi-project form in `**Also valid:**`) — report\n  it and leave it untouched; multi-project mapping is out of scope.\n\nConfirmed IDs with nothing to fix and a case already Automated need no row; count\nthem, keep the case's `updated` from this read, and record them `verified` in step 11\nso the next run skips them. A confirmed ID whose case is not Automated gets a row, so its update can be\noffered in step 10.\n\n## Step 7: Match\n\nFor each unlinked test in scope, find candidate cases by meaning:\n\n1. **Prefilter** by suite (suite title against the test's path, file, describe\u002Fclass\n   block), path, and words shared between the test name and case titles. Keep a\n   handful of candidates per test.\n2. **Read the bodies:** the test code, and the candidates' steps and preconditions\n   (`qase_get`).\n3. **Decide**, with a confidence and a one-line reason:\n   - `high` — the steps and the test body check the same behaviour, and no other\n     candidate fits comparably;\n   - `medium` — same feature and intent, but steps are missing or partial, or another\n     candidate fits nearly as well;\n   - `low` — only the title or suite overlaps; the behaviour is not confirmed.\n\nRules:\n\n- **Hand-written over reporter-created.** A case a reporter created on an earlier run\n  usually has a title equal to the test name and no steps. When both kinds match,\n  propose the hand-written one and name the other as a likely duplicate in the\n  reason. Never delete or merge cases.\n- **Many-to-many** is fine: one case from several tests (parameterized variants), and\n  several cases on one test (an e2e flow) — the latter **only** where the framework's\n  `**Multi-ID:**` is not `not supported`; otherwise propose one and say why.\n- **No marker that needs restructuring.** If the only way to carry an ID is to rewrite\n  the test — a plain Go `func TestX(t *testing.T)` without `qase.Test` — report it as\n  *reporter not wired for this test*; don't wrap it. A runtime-call marker (Pest\n  `qase()->caseId()`, Kaspresso `Qase.id()`) or TestCafe's `.meta(...)` is a marker,\n  not restructuring.\n- Never propose a form listed under `**Not verified — don't write:**`. Use the\n  verified alternative the section names, or report the test.\n- A test with no plausible case goes to *Tests without a case*. A case in scope that\n  no test covers goes to *Cases with no test*.\n\n## Step 8: Confirm — then stop\n\nWrite the full mapping to `.qase\u002Flink-review.md`, then print a short chat summary,\nthen **stop and wait for the user**. No code edit and no Qase write happens in this\nturn.\n\n### The review file\n\n```markdown\n# Qase link review — WEB\n\nFill the Decision column: `accept`, `reject`, `edit: \u003Cid>[,\u003Cid>…]`, `create`, `skip`,\nor leave it empty (undecided). Then reply `done` in chat.\n\n## New links\n\n| # | Test | Case(s) | Confidence | Reason | Decision |\n|---|---|---|---|---|---|\n| 1 | tests\u002Ftest_login.py:18 test_locked_account | 41 Login: locked account is refused | high | Logs in to a locked account and asserts the refusal message, as the steps do | accept |\n\n## Existing IDs\n\n| # | Test | Case(s) | Confidence | Reason | Decision |\n|---|---|---|---|---|---|\n| 2 | tests\u002Ftest_login.py:9 test_password_reset | 55 → 43 Login: reset link is emailed | medium | Probably the wrong case: 55 covers sign-up; the test requests a reset link | |\n\n## Tests without a case\n\n| # | Test | Case(s) | Confidence | Reason | Decision |\n|---|---|---|---|---|---|\n| 3 | tests\u002Ftest_login.py:30 test_session_expiry | — | — | No case covers session expiry; `create` to add one | |\n\n## Cases with no test\n\n| # | Test | Case(s) | Confidence | Reason | Decision |\n|---|---|---|---|---|---|\n| 4 | — | 47 Login: sign in with SSO | — | No test in scope exercises SSO | |\n\n## Qase update\n\nDecision:\n```\n\nFormat rules:\n\n- `Test` is `path:line name`. `Case(s)` is `\u003Cid> \u003Ctitle>`, several separated by `; `;\n  for an existing ID, `\u003Ccurrent> → \u003Cproposed> \u003Ctitle>`, or `\u003Ccurrent> \u003Ctitle>` when\n  only its status or marker form is at issue. Escape `|` in titles as `\\|`.\n- Row numbers are unique across the whole file, not per group.\n- `high` rows are pre-filled `accept`; every other Decision starts empty. Never\n  pre-fill `create`.\n- The `## Qase update` line `Decision:` is left empty, for `now` or `later`.\n\nWhat each decision means:\n\n| Decision | New links | Existing IDs | Tests without a case |\n|---|---|---|---|\n| `accept` | write the proposed ID(s) | apply the proposed fix | — |\n| `reject` | write nothing; record `rejected` for the pair | keep the code as is; record `rejected` for the proposed case | record `case-declined` |\n| `edit: \u003Cid>[,\u003Cid>…]` | write these IDs instead | replace the marker with these IDs | link to these IDs |\n| `create` | — | — | create a case, then link it |\n| `skip` | leave the test unlinked for good: `no-case-wanted` | keep the code as is; nothing recorded | `no-case-wanted` |\n| empty | undecided: nothing written or recorded; asked again next run | same | same |\n\n*Cases with no test* rows are information: nothing is written for them, whatever\ntheir Decision says.\n\nAdd `.qase\u002Flink-review.md` to `.gitignore` — and `.qase\u002Flinks.json` too once storage is\n`local`. Create `.gitignore` if missing; append the line only if it isn't already\nthere; never rewrite the file.\n\n### The chat summary\n\nCounts per group, then only the rows that need attention: every `medium`\u002F`low` row,\nevery existing-ID problem, missing reporters, tests that need restructuring. A\nquestion a reference file raises about a row (Newman's per-`pm.test` scope, say) goes\nin that row's Reason and in this list — never a separate stop. Then:\n\n- the path to the review file, and the two ways to answer — reply in chat\n  (`accept all except 12, 40`, `reject 7`, `13: edit 51`, `create 20, 21`) or edit the\n  file and reply `done`;\n- on a first run, the storage question: `committed` or `local`;\n- that Qase changes immediately when updated, while the code change lands only when\n  merged — so they can also answer `now` or `later` for the Qase update;\n- a plain statement that nothing has been written to code or Qase yet.\n\n### The next turn\n\n- **Chat answers** → apply them to the review file's Decision column first, so file\n  and state agree. \"Accept all\" covers *New links* and *Existing IDs* rows; *Tests\n  without a case* need an explicit `create`. Rows excepted from \"accept all\" become\n  undecided, not rejected, unless the user says reject.\n- **`done`** → re-read `.qase\u002Flink-review.md` and take its decisions as written. An\n  unrecognised decision is undecided; list it in the report.\n- **Applying an earlier review:** if `.qase\u002Flink-review.md` already exists with\n  decisions filled in and the user asks to apply it, skip steps 4–8 and go straight\n  to step 9 — after the parts of steps 1–3 that step 9 needs (project code from the\n  file title or the state file, the full stack detection of step 2, state). A file whose first line is\n  `Applied: \u003Cdate>` was already applied (step 11): never apply it again — say so and\n  offer a fresh run instead, which replaces it. If an unstamped file exists but the\n  user started a fresh run, say it holds unapplied decisions and ask whether to apply\n  it or replace it.\n\n## Step 9: Write the code\n\nWork from the decisions only. For every test, gather the IDs from its `accept` and\n`edit:` rows (a `reject` row on the same test adds nothing), then:\n\n1. **Confirm each case exists** with `qase_get`. An unknown ID is not written; report\n   it. Keep the reads — step 10 needs each case's live `automation`.\n2. **Re-check the framework**: reporter present (step 2), the marker needs no\n   restructuring, several IDs only where `**Multi-ID:**` allows. A row that fails is\n   not written; report why.\n3. **Skip** a test that already carries exactly those IDs in any `**Write:**`,\n   `**Multi-ID:**` or `**Also valid:**` form — never add a second marker.\n   **Merge** a new ID into a test that already carries a confirmed one: the new IDs\n   and the confirmed IDs go into one marker in the `**Multi-ID:**` form, replacing\n   the old marker in place — never drop a confirmed ID, never add a second marker.\n   Where `**Multi-ID:**` is `not supported`, write nothing and report it.\n4. **Choose the form.** If the repository already uses a valid form for this framework\n   (one in `**Write:**`, `**Multi-ID:**` or `**Also valid:**`), follow it; otherwise\n   use `**Write:**`, or `**Multi-ID:**` for several IDs. Never a `**Never write:**`\n   form, never a `**Not verified — don't write:**` one.\n5. **Edit minimally.** An existing-ID fix replaces the old marker in place. Add the\n   `**Import:**` line only if the file lacks it, next to the file's other imports.\n   Touch no other line: no reformatting, no reordering, no renaming, and keep the\n   file's quoting, indentation and line endings.\n\n`create` rows get their IDs in step 10 and come back here for the same edit.\n\nShow `git diff --stat` afterwards. Do not commit.\n\n## Step 10: Write Qase\n\nFollow the `## Qase update` decision (or the chat answer):\n\n- **`later`** → no Qase write at all, including case creation. Record each linked\n  entry whose case has a pending Qase write as `qase-pending`; each `create` row\n  gets a `qase-pending` entry with `cases: []`, and no IDs are written.\n- **empty** → ask, explaining that Qase changes now while the code lands on merge,\n  and wait.\n- **`now`** → continue.\n\nCollect every question first and ask them in **one** message, then **stop and wait\nfor the answers**. Write nothing that depends on an unanswered question — never flip\na Manual case, change an old case or create a case before the user has answered.\nWrites that depend on no question may go ahead once the answers are in. The\nquestions:\n\n- Cases to set Automated: those linked in step 9, plus confirmed existing IDs whose\n  case isn't Automated and whose row was accepted. Use the live `automation` read in\n  step 9: `2` → nothing; `1` → update; **`0` (Manual) → ask first**, per case — it\n  was a deliberate team choice.\n- A link removed or replaced in step 9, whose old case no other test still carries:\n  **ask** what its `automation` becomes — leave \u002F To be automated \u002F Manual.\n- `create` rows: propose a title and steps derived from the test, and the suite that\n  plainly matches the test's area; **ask for the suite when it isn't obvious**.\n\nThen:\n\n1. Create cases with `qase_case_bulk_create` (one call, `automation` = Automated),\n   and write their new IDs into code as in step 9. First drop any `create` row whose\n   test already carries an ID in code — a case created twice can never be deleted;\n   report the row instead.\n2. Set `automation` with `qase_case_upsert`, **one case per call**, only the\n   `automation` field.\n3. **Re-read every case you wrote with `qase_get`** and keep its `updated`. Your own\n   write changes `updated`, so a value taken before the write would make the next\n   run re-examine every pair just linked. Take it from this `qase_get`, never from\n   a QQL projection, which lags.\n\nA write that fails: record that entry `qase-pending`, carry on, report it.\n\n## Step 11: Report and save state\n\n**Write `.qase\u002Flinks.json`.** Keep entries for tests outside this run's scope as they\nwere. For each test touched by this run:\n\n- linked and Qase written (or nothing to write) → `verified`, `case_updated` from the\n  step 10 re-read, or from the step 9 read when Qase was not written;\n- linked, Qase deferred or failed → `qase-pending`; `create` deferred →\n  `qase-pending` with `cases: []`;\n- `reject` → `rejected` with the rejected case(s); `reject` on a test without a\n  case → `case-declined`; `skip` on a new link or a test without a case →\n  `no-case-wanted`;\n- confirmed existing IDs with nothing to fix (no row, step 6) → `verified`, with\n  `case_updated` from the step 6 read;\n- undecided rows, and `skip` on an existing ID → no new entry.\n\nA test can hold more than one entry — say `verified` for case 1 and `rejected` for\ncase 3.\n\n`fingerprint` is computed now, on the file as written — the marker is part of the\nblock. `date` is today. Keep `storage` as chosen; if it is `local`, make sure\n`.qase\u002Flinks.json` is in `.gitignore`.\n\n**Stamp the review file.** Insert `Applied: \u003CYYYY-MM-DD>` as the first line of\n`.qase\u002Flink-review.md`, so it is never applied twice — a second apply would re-run its\n`create` rows.\n\n**Then report in chat**, in this shape:\n\n```\n## Linking — \u003CPROJECT> · \u003Cscope>\n_Generated by Qase Quality Supervisor · linking-test-cases skill_\n\nStack: \u003Cframework → reporter, reference file>; reporter missing: \u003Cframeworks, or none>\n\n### Linked\n- \u003Cpath:line name> → \u003Cids> (\u003Cform used>)\n\n### Existing IDs\n- Confirmed: \u003Cn> · Fixed: \u003Clist> · Flagged, unchanged: \u003Clist>\n\n### Qase\n- Set Automated: \u003Cids> · Left as is by request: \u003Cids> · Pending (later \u002F failed): \u003Cids>\n- Created: \u003Cid title, suite> — or: not updated, by request\n\n### Not written\n- \u003Crow\u002Ftest> — \u003Cunknown case ID | reporter missing | needs restructuring | unverified syntax | multi-project marker | Multi-ID not supported>\n\n### Skipped\n- Unchanged since last run: \u003Cn> · Undecided: \u003Cn> · Rejected: \u003Cn> · No case wanted: \u003Cn>\n- Likely duplicates (reporter-created): \u003Cids> — never deleted or merged\n\nState: .qase\u002Flinks.json (\u003Ccommitted|local>) · \u003Cn> entries\nNext: review `git diff`, run the suite, commit with your change.\n\n---\n_Generated by Qase Quality Supervisor · linking-test-cases skill_\n```\n\nLeave out a section that has nothing in it, except **Not written** when something\nwasn't — that list is what the user must act on.\n\n## Honesty notes\n\n- Matching by meaning is a judgement. A confidence is an estimate, not a proof: never\n  pre-accept a `medium` or `low` row, and give the reason that would let the user\n  overrule you.\n- Say what you did not do: never claim Qase was updated when the decision was\n  `later` or a write failed, and never claim the markers work — the tests were not\n  run. The reporter only proves the link on the next run.\n- A QQL projection can lag the live case; decisions that turn on one case —\n  existence, `automation`, `updated` — come from full-entity (hydrated) rows or\n  `qase_get`, never from a QQL projection.\n- If the scope was too large to examine whole, say which part was examined. A\n  partial run presented as complete is worse than an admitted gap.\n",{"name":5,"description":7},"main","9e94680fc2f47235ceb1d07b2b74e59e18ffe84f","skills\u002Flinking-test-cases",0,"https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor","https:\u002F\u002Fwww.qase.io\u002F","https:\u002F\u002Fgithub.com\u002Fqase-tms","https:\u002F\u002Fqase.io","Test case management software for Dev and QA teams","2026-11-04 21:08:43",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add qase-tms\u002Fqase-quality-supervisor --skill linking-test-cases",{"tool":40,"command":41},"bunx","bunx skills add qase-tms\u002Fqase-quality-supervisor --skill linking-test-cases",{"tool":43,"command":44},"pnpm","pnpm dlx skills add qase-tms\u002Fqase-quality-supervisor --skill linking-test-cases","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Flinking-test-cases\u002FSKILL.md",true,[48,54,58,62,66,70],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fdotnet.md","REFERENCE","参考文档",1944,"https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Flinking-test-cases\u002Freferences\u002Fdotnet.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fgo.md",709,"https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Flinking-test-cases\u002Freferences\u002Fgo.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fjavascript.md",5351,"https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Flinking-test-cases\u002Freferences\u002Fjavascript.md",{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fjvm.md",2431,"https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Flinking-test-cases\u002Freferences\u002Fjvm.md",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fphp.md",1260,"https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Flinking-test-cases\u002Freferences\u002Fphp.md",{"path":71,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fpython.md",2051,"https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Flinking-test-cases\u002Freferences\u002Fpython.md",[75,82,89,96,103,110],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7AEX5PAS45ET0H54372NVR4","triaging-test-failures","Triage the failures in a Qase test run: cluster them by error signature, separate real product bugs from automation, environment, and flaky noise, and file defects. Use when the user asks to triage a run; why a run, a build, or the tests in it failed; why last night's or the latest run failed or is red; what broke; to investigate, group, cluster, or classify failures; which failures are real bugs versus noise; or to file defects for a failed run.","https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-test-failures\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7AEWXTA7SJSNX967GDQJVS0","reporting-quality-pulse","Build a visual \"Quality Pulse\" report card for a Qase project over any period the user chooses — daily, weekly, biweekly, monthly, sprint, or a custom date range. A styled HTML card summarizing test execution, pass rate, defect backlog, case activity, and active users for that window. Use this whenever the user asks for a quality pulse, QA pulse, quality\u002Ftest report card, test health summary, sprint QA snapshot, release health check, or any \"how is testing going\" overview for a Qase project over some period, even if they don't say the word \"pulse\".","https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Freporting-quality-pulse\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7AEWF89Z50R931C173AV7NM","assessing-release-readiness","Produce an evidence-backed go \u002F no-go assessment for a Qase release scope — a milestone, a test plan, or a set of runs. Use when the user asks whether they are ready to ship, release, or cut a version; for a go\u002Fno-go, a release sign-off, or a quality gate; what is blocking the release or holding it up; whether a milestone or sprint is done; how a release is tracking; or whether it is safe to deploy.","https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Fassessing-release-readiness\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7AEW8R98N5WHQWJ7B1P5N5D","analyzing-test-flakiness","Find genuinely flaky tests in a Qase project — cases that both pass and fail — and separate them from tests that are simply broken. Use when the user asks which tests are flaky, unreliable, unstable, intermittent, or non-deterministic; about test stability, flakiness, or the flake rate; which tests pass sometimes and fail other times, or fail randomly; which tests to quarantine, mute, or flag as flaky; or whether a specific test is flaky or a real regression.","https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-test-flakiness\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7AEW0QN6R2TWMRK1Z9V4CBF","analyzing-test-coverage","Find where a Qase project's test coverage is thin. Use when the user asks about test coverage or coverage gaps; what isn't tested, untested areas, or what is missing tests; which cases are still manual, not automated, or yet to be automated; which cases have never been run or executed; which suites are empty, thin, or hold no cases; how much of the project is automated; which cases are stale or outdated; or wants test cases drafted to close a gap.","https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-test-coverage\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7AEVTB2F7N8KK312HBGG90E","analyzing-change-impact","Analyze what a feature branch changes and produce a QA-facing impact analysis plus a regression\u002Fnew checklist, grounded in the project's existing Qase cases. Use when the user asks for an impact analysis, change impact, risk analysis, or blast radius of a branch or PR; what QA should test for these changes; a QA checklist or test plan for a branch; what could break; or which existing tests to re-run before merging. Reads the repository diff and Qase; renders an HTML report.","https:\u002F\u002Fgithub.com\u002Fqase-tms\u002Fqase-quality-supervisor\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-change-impact\u002FSKILL.md",[],[]]