[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EG0HCENEX6DD3FTVCJK0WQ":3,"skill-same:01M7EG0HCENEX6DD3FTVCJK0WQ":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":13,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":43},"01M7EG0HCENEX6DD3FTVCJK0WQ","modernize",null,"Bring a stale PR up to date: judge whether its idea still belongs, then rebase it, rework it or recommend closing it.","kaminski-dev\u002Fdk-agent-kit","kaminski-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39885406?v=4","01M7EFZ8VTE8FQS6R0G2Y6RB55","01M7EFZ8WESD6VKM8G7BQYAYWX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fmodernize\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: modernize\ndescription: \"Bring a stale PR up to date: judge whether its idea still belongs, then rebase it, rework it or recommend closing it.\"\nargument-hint: \"PR number\"\ndisable-model-invocation: true\n---\n\n\u003C!-- Adapted from t3dotgg\u002Ftstack@1085050 skills\u002Fmodernize, MIT (© 2026 Theo Browne). Changed for dk-agent-kit: user-invoked; the base from docs\u002Fagents\u002Fworkflow.md, the worktree from dk:issue-flow step 2, detached at the observed head, an old worktree reused only when clean and its checkout keeping ignored files; an open PR only, its number digits only; the branch name and the base limited to letters, digits, ., _, - and \u002F and checked with git check-ref-format before any shell use, then quoted; the push is --force-with-lease=\"refs\u002Fheads\u002F\u003Cbranch>:\u003Cobserved sha>\" to \"HEAD:refs\u002Fheads\u002F\u003Cbranch>\", from the worktree's literal path so the gate runs; a base mismatch stops before any change to the branch; a fork PR assessed read-only from refs\u002Fpull\u002F\u003CPR>\u002Fhead, stopping before the rebase; checks from AGENTS.md; comments open with dk:issue-flow step 6's attribution note; Codex agents\u002Fopenai.yaml not taken. -->\n\n# Modernize\n\nModernize the idea, not just the branch. A clean rebase does not prove the PR still belongs in the product.\n\nThe grant covers rebasing the PR's commits and updating its branch. Merging, closing, retargeting the base and widening the scope stay the maintainer's. A PR comment is posted only when the user asked for one, and opens with the attribution note from `dk:issue-flow` step 6's **Comments.** paragraph.\n\n## 1. Record the PR\n\n`\u003CPR>` is the PR's number, digits only; anything else, stop and ask for the number.\n\n```sh\ngh pr view \u003CPR> --json url,state,title,body,author,baseRefName,headRefName,headRefOid,isCrossRepository,reviewDecision,statusCheckRollup,closingIssuesReferences,commits\ngh pr diff \u003CPR>\n```\n\nA PR whose `state` is not `OPEN` stops here: report the state and change nothing. Read its linked issues, its comments and review threads too. The base is the one `docs\u002Fagents\u002Fworkflow.md` names (`pre-main` unless it names another); a PR whose `baseRefName` differs stops here, before any change to its branch: report it, never retarget it, and go on only on the user's word, with the PR's actual base as `\u003Cbase>`. A PR whose `isCrossRepository` is true lives in a fork, so its branch is not this skill's to push: assess it read-only, report, and stop before step 4 whatever the disposition.\n\nThen `git fetch -q origin`. For a PR you can push, `\u003Cbranch>` is `headRefName`, and it reaches the shell only when it holds only letters, digits, `.`, `_`, `-` and `\u002F` (Git also accepts `$`, backticks and `\"`, which double quotes still expand) and `git check-ref-format --branch \"\u003Cbranch>\"` exits 0; when either check fails, stop and report the name. `\u003Cbase>` passes the same two checks before its first shell use. Quote both in every command, and check `git ls-remote origin \"refs\u002Fheads\u002F\u003Cbranch>\"` prints `headRefOid`; for a fork PR, fetch its head with `git fetch -q origin pull\u002F\u003CPR>\u002Fhead` and check `git rev-parse FETCH_HEAD` prints it. That SHA is the **observed sha**, the lease the push is held to. Record the merge base: `git merge-base \"origin\u002F\u003Cbase>\" \u003Cobserved sha>`.\n\nDone when you can state, in one sentence, the smallest coherent goal the PR was trying to reach, before judging how it reached it.\n\n## 2. Check what changed around it\n\nRead the base's commits since the merge base (`git log --stat \"\u003Cmerge-base>..origin\u002F\u003Cbase>\"`), first those touching the PR's files, then the rest for moved boundaries. Search merged and open PRs (`gh pr list --state all --search \"\u003Cterm>\"`, with each `\u003Cterm>` a word or path holding none of `\"`, `$`, `\\` or a backtick) where titles, paths or behaviour suggest a replacement or a competing implementation.\n\nA **conceptual conflict** is one Git cannot see. Look for each:\n\n- the same user-facing problem already solved;\n- APIs, types, schemas, dependencies or module boundaries changed;\n- both sides now owning the same behaviour or invariant;\n- the code being changed deleted, moved or deliberately simplified;\n- landing the PR restoring an old behaviour, or making two ways to do one thing;\n- the original benefit no longer worth its maintenance cost.\n\nDone when each bullet has a finding or a \"none found\" backed by the commit or PR you checked. A PR with no textual conflicts is still unjudged until then.\n\n## 3. Choose one disposition\n\n- **MODERNIZE**: the goal is still useful and the implementation is still the right shape. Go to step 4.\n- **REWORK**: the goal is still useful, but a mechanical rebase would keep the wrong implementation. Describe the smallest credible rewrite and stop before pushing, unless the user also asked for the rework.\n- **CLOSE**: the PR is superseded, obsolete, pointed the wrong way, or no longer worth its cost. Cite the evidence and stop. Closing is the maintainer's call.\n\nBe willing to recommend CLOSE. Age alone is not evidence, and sunk effort is no reason to keep a PR alive.\n\n## 4. Rebase without losing intent\n\nFor MODERNIZE only:\n\n1. Make the worktree as `dk:issue-flow` step 2 does, with `\u003CN>` the PR's issue (the PR number when it links none), detached at the observed sha so no local branch is touched: `git worktree add --detach ~\u002Fworkspace\u002F\u003Cprefix>-\u003CN> \u003Cobserved sha>`. When the PR's old worktree is still at that path, its uncommitted work is the user's: reuse it detached only when `git -C \u003Cpath> status --porcelain` prints nothing and `git -C \u003Cpath> checkout --detach --no-overwrite-ignore \u003Cobserved sha>` succeeds (a clean status still hides ignored files, which a plain checkout replaces with the PR's tracked copy), and otherwise add `~\u002Fworkspace\u002F\u003Cprefix>-\u003CN>-modernize` beside it. Run the fresh-worktree setup from `workflow.md`. Items 2 to 5 run inside that worktree: `cd \u003Cthat path>` first, or `git -C \u003Cthat path>`.\n2. `git rebase \"origin\u002F\u003Cbase>\"`.\n3. Resolve each conflict by the PR's intent and the base's newer invariants. A conflict that exposes a product or architecture disagreement sends you back to step 3, not to a guess.\n4. Compare the commit series before and after: `git range-diff \u003Cmerge-base>..\u003Cobserved sha> \"origin\u002F\u003Cbase>..HEAD\"`, then read the final diff (`git diff \"origin\u002F\u003Cbase>...HEAD\"`). Done when no intended behaviour has dropped out and no behaviour the base already landed comes back.\n5. Run the checks `AGENTS.md` lists for the touched area. Tell a real failure from one the base already has (run it on `origin\u002F\u003Cbase>`) or an infrastructure failure.\n6. Push from the path item 1 chose, `~\u002Fworkspace\u002F\u003Cprefix>-\u003CN>` or `~\u002Fworkspace\u002F\u003Cprefix>-\u003CN>-modernize`, written literally so the gate runs on the tree you checked (`dk:issue-flow` step 6):\n\n   ```sh\n   cd \u003Cthat path> && git push --force-with-lease=\"refs\u002Fheads\u002F\u003Cbranch>:\u003Cobserved sha>\" origin \"HEAD:refs\u002Fheads\u002F\u003Cbranch>\"\n   ```\n\n   A refused lease means someone pushed since step 1: fetch, go back to step 1, and judge the new head before any second push.\n\n## Report\n\nLead with MODERNIZE, REWORK or CLOSE and the reason. Then:\n\n- the base's meaningful changes since the merge base;\n- each conceptual conflict, or that none was found and what was checked;\n- the rebase and push result, with the range-diff's verdict, when performed;\n- the checks run, each with its result;\n- the decision or work left, with the PR's link.\n\nKeep observed facts apart from judgment, and name what you could not verify.\n","\u003C!-- Adapted from t3dotgg\u002Ftstack@1085050 skills\u002Fmodernize, MIT (© 2026 Theo Browne). Changed for dk-agent-kit: user-invoked; the base from docs\u002Fagents\u002Fworkflow.md, the worktree from dk:issue-flow step 2, detached at the observed head, an old worktree reused only when clean and its checkout keeping ignored files; an open PR only, its number digits only; the branch name and the base limited to letters, digits, ., _, - and \u002F and checked with git check-ref-format before any shell use, then quoted; the push is --force-with-lease=\"refs\u002Fheads\u002F\u003Cbranch>:\u003Cobserved sha>\" to \"HEAD:refs\u002Fheads\u002F\u003Cbranch>\", from the worktree's literal path so the gate runs; a base mismatch stops before any change to the branch; a fork PR assessed read-only from refs\u002Fpull\u002F\u003CPR>\u002Fhead, stopping before the rebase; checks from AGENTS.md; comments open with dk:issue-flow step 6's attribution note; Codex agents\u002Fopenai.yaml not taken. -->\n\n# Modernize\n\nModernize the idea, not just the branch. A clean rebase does not prove the PR still belongs in the product.\n\nThe grant covers rebasing the PR's commits and updating its branch. Merging, closing, retargeting the base and widening the scope stay the maintainer's. A PR comment is posted only when the user asked for one, and opens with the attribution note from `dk:issue-flow` step 6's **Comments.** paragraph.\n\n## 1. Record the PR\n\n`\u003CPR>` is the PR's number, digits only; anything else, stop and ask for the number.\n\n```sh\ngh pr view \u003CPR> --json url,state,title,body,author,baseRefName,headRefName,headRefOid,isCrossRepository,reviewDecision,statusCheckRollup,closingIssuesReferences,commits\ngh pr diff \u003CPR>\n```\n\nA PR whose `state` is not `OPEN` stops here: report the state and change nothing. Read its linked issues, its comments and review threads too. The base is the one `docs\u002Fagents\u002Fworkflow.md` names (`pre-main` unless it names another); a PR whose `baseRefName` differs stops here, before any change to its branch: report it, never retarget it, and go on only on the user's word, with the PR's actual base as `\u003Cbase>`. A PR whose `isCrossRepository` is true lives in a fork, so its branch is not this skill's to push: assess it read-only, report, and stop before step 4 whatever the disposition.\n\nThen `git fetch -q origin`. For a PR you can push, `\u003Cbranch>` is `headRefName`, and it reaches the shell only when it holds only letters, digits, `.`, `_`, `-` and `\u002F` (Git also accepts `$`, backticks and `\"`, which double quotes still expand) and `git check-ref-format --branch \"\u003Cbranch>\"` exits 0; when either check fails, stop and report the name. `\u003Cbase>` passes the same two checks before its first shell use. Quote both in every command, and check `git ls-remote origin \"refs\u002Fheads\u002F\u003Cbranch>\"` prints `headRefOid`; for a fork PR, fetch its head with `git fetch -q origin pull\u002F\u003CPR>\u002Fhead` and check `git rev-parse FETCH_HEAD` prints it. That SHA is the **observed sha**, the lease the push is held to. Record the merge base: `git merge-base \"origin\u002F\u003Cbase>\" \u003Cobserved sha>`.\n\nDone when you can state, in one sentence, the smallest coherent goal the PR was trying to reach, before judging how it reached it.\n\n## 2. Check what changed around it\n\nRead the base's commits since the merge base (`git log --stat \"\u003Cmerge-base>..origin\u002F\u003Cbase>\"`), first those touching the PR's files, then the rest for moved boundaries. Search merged and open PRs (`gh pr list --state all --search \"\u003Cterm>\"`, with each `\u003Cterm>` a word or path holding none of `\"`, `$`, `\\` or a backtick) where titles, paths or behaviour suggest a replacement or a competing implementation.\n\nA **conceptual conflict** is one Git cannot see. Look for each:\n\n- the same user-facing problem already solved;\n- APIs, types, schemas, dependencies or module boundaries changed;\n- both sides now owning the same behaviour or invariant;\n- the code being changed deleted, moved or deliberately simplified;\n- landing the PR restoring an old behaviour, or making two ways to do one thing;\n- the original benefit no longer worth its maintenance cost.\n\nDone when each bullet has a finding or a \"none found\" backed by the commit or PR you checked. A PR with no textual conflicts is still unjudged until then.\n\n## 3. Choose one disposition\n\n- **MODERNIZE**: the goal is still useful and the implementation is still the right shape. Go to step 4.\n- **REWORK**: the goal is still useful, but a mechanical rebase would keep the wrong implementation. Describe the smallest credible rewrite and stop before pushing, unless the user also asked for the rework.\n- **CLOSE**: the PR is superseded, obsolete, pointed the wrong way, or no longer worth its cost. Cite the evidence and stop. Closing is the maintainer's call.\n\nBe willing to recommend CLOSE. Age alone is not evidence, and sunk effort is no reason to keep a PR alive.\n\n## 4. Rebase without losing intent\n\nFor MODERNIZE only:\n\n1. Make the worktree as `dk:issue-flow` step 2 does, with `\u003CN>` the PR's issue (the PR number when it links none), detached at the observed sha so no local branch is touched: `git worktree add --detach ~\u002Fworkspace\u002F\u003Cprefix>-\u003CN> \u003Cobserved sha>`. When the PR's old worktree is still at that path, its uncommitted work is the user's: reuse it detached only when `git -C \u003Cpath> status --porcelain` prints nothing and `git -C \u003Cpath> checkout --detach --no-overwrite-ignore \u003Cobserved sha>` succeeds (a clean status still hides ignored files, which a plain checkout replaces with the PR's tracked copy), and otherwise add `~\u002Fworkspace\u002F\u003Cprefix>-\u003CN>-modernize` beside it. Run the fresh-worktree setup from `workflow.md`. Items 2 to 5 run inside that worktree: `cd \u003Cthat path>` first, or `git -C \u003Cthat path>`.\n2. `git rebase \"origin\u002F\u003Cbase>\"`.\n3. Resolve each conflict by the PR's intent and the base's newer invariants. A conflict that exposes a product or architecture disagreement sends you back to step 3, not to a guess.\n4. Compare the commit series before and after: `git range-diff \u003Cmerge-base>..\u003Cobserved sha> \"origin\u002F\u003Cbase>..HEAD\"`, then read the final diff (`git diff \"origin\u002F\u003Cbase>...HEAD\"`). Done when no intended behaviour has dropped out and no behaviour the base already landed comes back.\n5. Run the checks `AGENTS.md` lists for the touched area. Tell a real failure from one the base already has (run it on `origin\u002F\u003Cbase>`) or an infrastructure failure.\n6. Push from the path item 1 chose, `~\u002Fworkspace\u002F\u003Cprefix>-\u003CN>` or `~\u002Fworkspace\u002F\u003Cprefix>-\u003CN>-modernize`, written literally so the gate runs on the tree you checked (`dk:issue-flow` step 6):\n\n   ```sh\n   cd \u003Cthat path> && git push --force-with-lease=\"refs\u002Fheads\u002F\u003Cbranch>:\u003Cobserved sha>\" origin \"HEAD:refs\u002Fheads\u002F\u003Cbranch>\"\n   ```\n\n   A refused lease means someone pushed since step 1: fetch, go back to step 1, and judge the new head before any second push.\n\n## Report\n\nLead with MODERNIZE, REWORK or CLOSE and the reason. Then:\n\n- the base's meaningful changes since the merge base;\n- each conceptual conflict, or that none was found and what was checked;\n- the rebase and push result, with the range-diff's verdict, when performed;\n- the checks run, each with its result;\n- the decision or work left, with the PR's link.\n\nKeep observed facts apart from judgment, and name what you could not verify.\n",{"name":5,"description":7,"argument-hint":23,"disable-model-invocation":24},"PR number",true,"main","53eb522da63c98ceb28f1af6a9d88cb3711b2097","plugins\u002Fdk\u002Fskills\u002Fmodernize","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit","https:\u002F\u002Fgithub.com\u002Fkaminski-dev","2026-11-05 04:08:01",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":24},[33,36,39],{"tool":34,"command":35},"npx","npx skills add kaminski-dev\u002Fdk-agent-kit --skill modernize",{"tool":37,"command":38},"bunx","bunx skills add kaminski-dev\u002Fdk-agent-kit --skill modernize",{"tool":40,"command":41},"pnpm","pnpm dlx skills add kaminski-dev\u002Fdk-agent-kit --skill modernize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fmodernize\u002FSKILL.md",[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":18},"01M7EG1RARBVATTAE5WVX76WS5","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7EG1MXJHKQPYRD5ZR3HH4F8","verify","Prove a change works by driving it in a stack you started, against a control run of the pre-fix state. Use before calling any change verified, or when asked to verify or prove a fix.","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7EG1H4K07BAM3WZ5CCSWVA0","verify-doc-check","Monthly check that this repo's docs\u002Fagents\u002Fverify.md still starts the stack: read every claim against the source, run the recipe in a fresh worktree, fix or file each drifted step.","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fverify-doc-check\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7EG1EWNF1SSMAJZDD5F6BWZ","triage","Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EG1AQAXT5E40W5YRZDHBH6","to-tickets","Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fto-tickets\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7EG18P4M7YT88WHJA7M5N6F","to-spec","Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fto-spec\u002FSKILL.md",[],[]]