[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FDBVXYSHCB2E52HKS2TH2E":3,"skill-same:01M7FDBVXYSHCB2E52HKS2TH2E":59},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":44},"01M7FDBVXYSHCB2E52HKS2TH2E","decision-audit",null,"Read-only audit of decision records for a PR, local changes, or the whole repository. Report routing, status, scope, anchor, supersession, and overdue-review findings with command evidence.","l246804\u002Fdsh-pstack","l246804","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F53589602?v=4","01M7FD2TFY24A2KKK55FSQWJ47","leihaohao","01M7FD2TGRS2ZCQ68BRY93D89D",23,"MIT","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fdecision-audit\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: decision-audit\ndescription: Read-only audit of decision records for a PR, local changes, or the whole repository. Report routing, status, scope, anchor, supersession, and overdue-review findings with command evidence.\ndisable-model-invocation: true\n---\n\n# Audit decision records\n\nProduce a read-only report of records needing human attention, without judging whether code still honors a decision. Cite each finding with its command and observed output; leave every edit to `decision-write`.\n\n## 1. Resolve the inputs\n\nAccept `mode` (`pr`, `local`, or `full`; default `pr`), optional `base`, and optional `scope` paths replacing the computed change set.\n\nFor `pr`, resolve the PR base. For `local` or `full`, try `origin\u002Fmain`. When absent, try `origin\u002Fmaster`, `main`, `master`, the newest tag, then `HEAD~20`. Report the selected ref. An unresolved base blocks base-relative change sets and commit-anchor checks; continue the other checks and list every attempted ref under `Unverified`.\n\nResolve `\u003Cdir>` in this order:\n\n1. Use a caller-supplied record or directory path.\n2. Otherwise, resolve the decision pointer in root `AGENTS.md` under `## Project docs` when it points to an existing `\u003Cdir>\u002FAGENTS.md`.\n3. Otherwise, inspect `docs\u002Fdecisions\u002F`, `docs\u002Fadr\u002F`, and `doc\u002Fadr\u002F`.\n\nReport the selected path. If several candidates remain, ask which is current and wait. If none exists or it contains no records, report that normal result and stop.\n\n## 2. Collect the evidence\n\nWhen `scope` is absent, compute the change set:\n\n```bash\n# pr\ngit diff --name-only \"$(git merge-base HEAD \u003Cbase>)\"..HEAD\n\n# local: base-relative commits plus the working tree and index\ngit diff --name-only \"$(git merge-base HEAD \u003Cbase>)\"..HEAD\ngit status --porcelain=v1 --untracked-files=all\n```\n\nDecode `git status` paths, including the destination of a rename. For `full`, use all tracked files. Exclude lock files, generated files, snapshots, and pure assets from the computed set; record these exclusions and the final set. An explicit `scope` replaces the computed set but does not change base-dependent anchor checks.\n\nRead `\u003Cdir>\u002FAGENTS.md` and `\u003Cdir>\u002FREADME.md` when present; these are conventions, not records. Apply their conventions to every other `*.md`. Parse each header through its first `## ` heading. List records missing any of `Status`, `Date`, `Scope`, `Implemented-by`, or `Review` separately as `Legacy`; they receive no further checks until the required fields are restored. `Superseded-by` is optional for current records; check it only under E.\n\nApply every applicable check to every current record; a record may have multiple findings. Use [Match Scope paths](..\u002Fdecision-write\u002Freferences\u002Fscope.md) for every glob\u002Fpath check and retain the matches as evidence.\n\n## 3. Run the checks\n\nApply A, B, B′, and D only to non-`superseded` records; apply C and E as specified below.\n\n**A — Route.** For each record whose `Scope` matches the change set, report its title, path, matched paths, and change-set evidence in one line.\n\n**B — Status pair.** Use the anchor results below and report each matching row:\n\n| Status | Anchor result | Finding |\n|---|---|---|\n| `proposed` | verified | Should be `accepted` |\n| `accepted` | `-` or missing | Landing lacks verified evidence |\n\nFor `proposed`, `-` is pending. For either `proposed` or `accepted`, a pending anchor is not a finding; report the record as pending. An unverified anchor belongs in `Unverified`, outside B and C.\n\n**B′ — Dead scope.** For each `accepted` record with no `Scope` glob matching an existing file, report its path and glob-check evidence. Ask whether the decision is obsolete or its scope is wrong.\n\n**C — Broken anchor.** For each non-`superseded` `Implemented-by` value, classify it with evidence:\n\n| Value | Verification | Result |\n|---|---|---|\n| `-` or missing | None | Pending |\n| `PR #N` | `gh pr view N --json state,files` | `MERGED`: continue below; `OPEN`: pending; `CLOSED`: C; otherwise: unverified |\n| `commit:SHA` | `git merge-base --is-ancestor SHA \u003Cbase>` | Exit 0: continue below; exit 1: C; otherwise: unverified |\n| Any value | Command unavailable, authentication fails, or object cannot be read | Unverified |\n\nFor a landed PR or ancestral commit, list its paths with `gh pr view N --json files --jq '.files[].path'` or `git show --pretty=format: --name-only SHA`. `Verified` requires a path matching `Scope` and at least one path outside `\u003Cdir>`; otherwise report C with the path evidence.\n\nBefore reporting a commit as lost, read [Recover a rewritten commit](references\u002Frecover-commit.md) and attempt patch-identity recovery while its object remains available.\n\n**D — Overdue review.** In `full` mode only, report each record whose `Review` date is before the current date. Collect matching changes since the decision date:\n\n```bash\ndate +%F\ngit log --since=\u003CDate> --format=%H \u003Cbase> --\n```\n\nList each commit's paths and filter them with the shared matcher before counting it; the record's `Scope` value is matcher input, not a Git pathspec. Include the matched-commit count and latest subject when present. An overdue date is the finding even when there are no matching changes; suggest human review and a new `Review` date.\n\n**E — Superseded record.** For each current `superseded` record, report when `Superseded-by` is missing, does not resolve to a record in `\u003Cdir>`, or carries no ` — \u003Creason>` text. Suggest adding the replacing record path and a one-line reason.\n\n## 4. Report and trim\n\nAccount for every current record as pending, clean, unverified, or carrying one or more findings. Order findings `C`, `B`, `B′`, `E`, `D`, `A`; within each class, put more matched files first.\n\n- `pr`: at most 15 findings, followed by the omitted count.\n- `local`: at most 8 findings, including at most 3 class-A findings.\n- `full`: no trimming; report every class count, including zeroes.\n\nUse this structure for findings; include `Evidence` for every class:\n\n```text\n[C] Decision title\n  Record: docs\u002Fdecisions\u002F2026-08-14-use-postgres.md\n  Basis: commit:3f9a1c2 is not in history\n  Evidence: git merge-base --is-ancestor 3f9a1c2 origin\u002Fmain -> exit 1\n  Suggest: replace the anchor with commit:8ff9f762 (matching patch-id d064e03f4e53)\n```\n\nList `Legacy` and `Unverified` separately from findings. An unavailable or unauthenticated `gh` leaves PR anchors unverified while the other checks continue. Say when no current record carries a finding. Route all edits to `decision-write`; suggest `\u002Fsetup-project-docs` only when the decision directory or its root pointer is missing.\n","# Audit decision records\n\nProduce a read-only report of records needing human attention, without judging whether code still honors a decision. Cite each finding with its command and observed output; leave every edit to `decision-write`.\n\n## 1. Resolve the inputs\n\nAccept `mode` (`pr`, `local`, or `full`; default `pr`), optional `base`, and optional `scope` paths replacing the computed change set.\n\nFor `pr`, resolve the PR base. For `local` or `full`, try `origin\u002Fmain`. When absent, try `origin\u002Fmaster`, `main`, `master`, the newest tag, then `HEAD~20`. Report the selected ref. An unresolved base blocks base-relative change sets and commit-anchor checks; continue the other checks and list every attempted ref under `Unverified`.\n\nResolve `\u003Cdir>` in this order:\n\n1. Use a caller-supplied record or directory path.\n2. Otherwise, resolve the decision pointer in root `AGENTS.md` under `## Project docs` when it points to an existing `\u003Cdir>\u002FAGENTS.md`.\n3. Otherwise, inspect `docs\u002Fdecisions\u002F`, `docs\u002Fadr\u002F`, and `doc\u002Fadr\u002F`.\n\nReport the selected path. If several candidates remain, ask which is current and wait. If none exists or it contains no records, report that normal result and stop.\n\n## 2. Collect the evidence\n\nWhen `scope` is absent, compute the change set:\n\n```bash\n# pr\ngit diff --name-only \"$(git merge-base HEAD \u003Cbase>)\"..HEAD\n\n# local: base-relative commits plus the working tree and index\ngit diff --name-only \"$(git merge-base HEAD \u003Cbase>)\"..HEAD\ngit status --porcelain=v1 --untracked-files=all\n```\n\nDecode `git status` paths, including the destination of a rename. For `full`, use all tracked files. Exclude lock files, generated files, snapshots, and pure assets from the computed set; record these exclusions and the final set. An explicit `scope` replaces the computed set but does not change base-dependent anchor checks.\n\nRead `\u003Cdir>\u002FAGENTS.md` and `\u003Cdir>\u002FREADME.md` when present; these are conventions, not records. Apply their conventions to every other `*.md`. Parse each header through its first `## ` heading. List records missing any of `Status`, `Date`, `Scope`, `Implemented-by`, or `Review` separately as `Legacy`; they receive no further checks until the required fields are restored. `Superseded-by` is optional for current records; check it only under E.\n\nApply every applicable check to every current record; a record may have multiple findings. Use [Match Scope paths](..\u002Fdecision-write\u002Freferences\u002Fscope.md) for every glob\u002Fpath check and retain the matches as evidence.\n\n## 3. Run the checks\n\nApply A, B, B′, and D only to non-`superseded` records; apply C and E as specified below.\n\n**A — Route.** For each record whose `Scope` matches the change set, report its title, path, matched paths, and change-set evidence in one line.\n\n**B — Status pair.** Use the anchor results below and report each matching row:\n\n| Status | Anchor result | Finding |\n|---|---|---|\n| `proposed` | verified | Should be `accepted` |\n| `accepted` | `-` or missing | Landing lacks verified evidence |\n\nFor `proposed`, `-` is pending. For either `proposed` or `accepted`, a pending anchor is not a finding; report the record as pending. An unverified anchor belongs in `Unverified`, outside B and C.\n\n**B′ — Dead scope.** For each `accepted` record with no `Scope` glob matching an existing file, report its path and glob-check evidence. Ask whether the decision is obsolete or its scope is wrong.\n\n**C — Broken anchor.** For each non-`superseded` `Implemented-by` value, classify it with evidence:\n\n| Value | Verification | Result |\n|---|---|---|\n| `-` or missing | None | Pending |\n| `PR #N` | `gh pr view N --json state,files` | `MERGED`: continue below; `OPEN`: pending; `CLOSED`: C; otherwise: unverified |\n| `commit:SHA` | `git merge-base --is-ancestor SHA \u003Cbase>` | Exit 0: continue below; exit 1: C; otherwise: unverified |\n| Any value | Command unavailable, authentication fails, or object cannot be read | Unverified |\n\nFor a landed PR or ancestral commit, list its paths with `gh pr view N --json files --jq '.files[].path'` or `git show --pretty=format: --name-only SHA`. `Verified` requires a path matching `Scope` and at least one path outside `\u003Cdir>`; otherwise report C with the path evidence.\n\nBefore reporting a commit as lost, read [Recover a rewritten commit](references\u002Frecover-commit.md) and attempt patch-identity recovery while its object remains available.\n\n**D — Overdue review.** In `full` mode only, report each record whose `Review` date is before the current date. Collect matching changes since the decision date:\n\n```bash\ndate +%F\ngit log --since=\u003CDate> --format=%H \u003Cbase> --\n```\n\nList each commit's paths and filter them with the shared matcher before counting it; the record's `Scope` value is matcher input, not a Git pathspec. Include the matched-commit count and latest subject when present. An overdue date is the finding even when there are no matching changes; suggest human review and a new `Review` date.\n\n**E — Superseded record.** For each current `superseded` record, report when `Superseded-by` is missing, does not resolve to a record in `\u003Cdir>`, or carries no ` — \u003Creason>` text. Suggest adding the replacing record path and a one-line reason.\n\n## 4. Report and trim\n\nAccount for every current record as pending, clean, unverified, or carrying one or more findings. Order findings `C`, `B`, `B′`, `E`, `D`, `A`; within each class, put more matched files first.\n\n- `pr`: at most 15 findings, followed by the omitted count.\n- `local`: at most 8 findings, including at most 3 class-A findings.\n- `full`: no trimming; report every class count, including zeroes.\n\nUse this structure for findings; include `Evidence` for every class:\n\n```text\n[C] Decision title\n  Record: docs\u002Fdecisions\u002F2026-08-14-use-postgres.md\n  Basis: commit:3f9a1c2 is not in history\n  Evidence: git merge-base --is-ancestor 3f9a1c2 origin\u002Fmain -> exit 1\n  Suggest: replace the anchor with commit:8ff9f762 (matching patch-id d064e03f4e53)\n```\n\nList `Legacy` and `Unverified` separately from findings. An unavailable or unauthenticated `gh` leaves PR anchors unverified while the other checks continue. Say when no current record carries a finding. Route all edits to `decision-write`; suggest `\u002Fsetup-project-docs` only when the decision directory or its root pointer is missing.\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","df33da1bb4942fbd2761c305edb3785093ec1055","skills\u002Fauthored\u002Fdecision-audit",4,"https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack","https:\u002F\u002Fgithub.com\u002Fl246804","2026-11-15 16:09:02",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":24},[34,37,40],{"tool":35,"command":36},"npx","npx skills add l246804\u002Fdsh-pstack --skill decision-audit",{"tool":38,"command":39},"bunx","bunx skills add l246804\u002Fdsh-pstack --skill decision-audit",{"tool":41,"command":42},"pnpm","pnpm dlx skills add l246804\u002Fdsh-pstack --skill decision-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fdecision-audit\u002FSKILL.md",[45,51,55],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Frecover-commit.md","REFERENCE","参考文档",739,"https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fdecision-audit\u002Freferences\u002Frecover-commit.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Frecover-commit.zh.md",694,"https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fdecision-audit\u002Freferences\u002Frecover-commit.zh.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"SKILL.zh.md",6322,"https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fdecision-audit\u002FSKILL.zh.md",[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7FDC7PA7ACJ95HW5T1N9ZJ3","setup-project-docs","Bootstrap architecture, glossary, decision-record conventions, and root agent-doc pointers; rerun to fill approved gaps.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fsetup-project-docs\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7FDC35BXG4PW3HG16BXF5FG","docs-drift","Audit living project documentation for drift and redundancy; repair approved findings.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fdocs-drift\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7FDBZ7PP5T1V4Q1MEP95BGM","decision-write","Write, update, land, or supersede decision records. Use for resolved alternatives, missing rationale, reversed decisions, or record-file changes. Land finds and verifies the implementation; Review-only updates keep the current status.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002Fauthored\u002Fdecision-write\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7FDBSF0V6HTFHD5PHDC6BAM","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002F.agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7FDBQPY2F8PSNJKTGZ6AYD6","retro","Conduct a retrospective on a coding session.","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002F.agents\u002Fskills\u002Fretro\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7FDBP1DCHVEAWS0MVB1KP49","deslop","Remove AI-generated code slop and clean up code style","https:\u002F\u002Fgithub.com\u002Fl246804\u002Fdsh-pstack\u002Fblob\u002Fmain\u002Fskills\u002F.agents\u002Fskills\u002Fdeslop\u002FSKILL.md",[],[]]