[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F53AADC5Z05C8B8E12E5BP":3,"skill-same:01M7F53AADC5Z05C8B8E12E5BP":46},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":45},"01M7F53AADC5Z05C8B8E12E5BP","pr",null,"Write a pull request for the current branch: a title, a summary of what changed and why, how to test it, and the criteria of the item when there is one. Then ask the owner to open it now or to keep only the text. Use when the owner says pr, pull request, open a PR or send it for review.","lamtran8401\u002Fnook","lamtran8401","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F91517229?v=4","01M7F5172CY814PXRBJG6TWAAC","Trần Vũ Lam","01M7F5173D7DJEW5XS3V04KC1V",0,"MIT","https:\u002F\u002Fgithub.com\u002Flamtran8401\u002Fnook\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: pr\ndescription: \"Write a pull request for the current branch: a title, a summary of what changed and why, how to test it, and the criteria of the item when there is one. Then ask the owner to open it now or to keep only the text. Use when the owner says pr, pull request, open a PR or send it for review.\"\nargument-hint: \"[item id]\"\ndisable-model-invocation: true\nallowed-tools: Bash(git status *), Bash(git log *), Bash(git diff *), Bash(git branch *), Bash(git rev-parse *), Bash(gh pr view *), Bash(gh pr list *), Bash(gh pr checks *), Bash(gh repo view *), Bash(gh auth status*), Bash(nook *), Read\n---\n\nGoal: a pull request that a reviewer understands in two minutes, from the right branch to the right base. The owner picks who opens it.\n\n## Order\n1. Check the branch: `git branch --show-current`. A protected branch (`main`, `master`, `develop`) stops here: say to make a branch first.\n   `git status --short` with changes that are not committed stops here too: say what is left, and commit only when the owner asks.\n2. Find the base: the protected branch that the branch came from, or `gh repo view --json defaultBranchRef`.\n3. Read the change: `git log --oneline \u003Cbase>..HEAD` and `git diff --stat \u003Cbase>...HEAD`. With an item id, read `nook item brief \u003Cid>`, `nook item ac list \u003Cid>` and the walkthrough when it exists.\n   When the brief names a `pr:` link, the PR exists: the new commits are fixes for the comments of the team. Ask the owner with AskUserQuestion to push them, then push, and stop.\n4. Write the title, 70 characters or fewer, in the words of the change. Write the body:\n   - Summary: what changed and why, in two or three lines.\n   - Changes: one line for each part, in plain words.\n   - How to test: the commands or the steps.\n   - Criteria (with an item): each met criterion with its evidence.\n5. Show the title and the body in one fenced block, ready to copy.\n6. Ask the owner with AskUserQuestion: \"Open the PR from `\u003Cbranch>` to `\u003Cbase>` now? Type draft for a draft PR.\"\n   - \"Open the PR (Recommended)\": push the branch and open the PR for review.\n   - \"Only the text\": the owner opens the PR from the block of step 5. Report, and stop. When the owner gives the link, run `nook item pr \u003Cid> \u003Clink>`.\n   When a check fails, the first option is \"Open as a draft (Recommended)\".\n   When the remote is not on GitHub, ask nothing: `gh` cannot open it. The owner opens it from the block, and gives you the link for `nook item pr`.\n7. Check the account: `gh auth status`. When the remote belongs to another account than the one logged in, stop and ask the owner.\n8. Push the branch: `git push -u origin \u003Cbranch>`. The settings ask the owner first; a refusal stops here, and the text stays in the chat.\n9. Open the pull request: `gh pr create --base \u003Cbase> --title \"\u003Ctitle>\" --body \"\u003Cbody>\"`, with `--draft` for a draft. The settings ask the owner first.\n10. With an item, record the link: `nook item pr \u003Cid> \u003Clink>`. Report the link and what is left, such as a check that failed.\n\n## Gotchas\n- The answer \"Open the PR\" is the request to push. With no answer, push nothing.\n- Never force a push and never push a protected branch.\n- The body holds no secret, no token and no inner link that the reviewer cannot open.\n- A failing check is not hidden: open the pull request as a draft and name the check.\n- With no item, the summary comes from the commits and the diff only. Do not invent criteria.\n","Goal: a pull request that a reviewer understands in two minutes, from the right branch to the right base. The owner picks who opens it.\n\n## Order\n1. Check the branch: `git branch --show-current`. A protected branch (`main`, `master`, `develop`) stops here: say to make a branch first.\n   `git status --short` with changes that are not committed stops here too: say what is left, and commit only when the owner asks.\n2. Find the base: the protected branch that the branch came from, or `gh repo view --json defaultBranchRef`.\n3. Read the change: `git log --oneline \u003Cbase>..HEAD` and `git diff --stat \u003Cbase>...HEAD`. With an item id, read `nook item brief \u003Cid>`, `nook item ac list \u003Cid>` and the walkthrough when it exists.\n   When the brief names a `pr:` link, the PR exists: the new commits are fixes for the comments of the team. Ask the owner with AskUserQuestion to push them, then push, and stop.\n4. Write the title, 70 characters or fewer, in the words of the change. Write the body:\n   - Summary: what changed and why, in two or three lines.\n   - Changes: one line for each part, in plain words.\n   - How to test: the commands or the steps.\n   - Criteria (with an item): each met criterion with its evidence.\n5. Show the title and the body in one fenced block, ready to copy.\n6. Ask the owner with AskUserQuestion: \"Open the PR from `\u003Cbranch>` to `\u003Cbase>` now? Type draft for a draft PR.\"\n   - \"Open the PR (Recommended)\": push the branch and open the PR for review.\n   - \"Only the text\": the owner opens the PR from the block of step 5. Report, and stop. When the owner gives the link, run `nook item pr \u003Cid> \u003Clink>`.\n   When a check fails, the first option is \"Open as a draft (Recommended)\".\n   When the remote is not on GitHub, ask nothing: `gh` cannot open it. The owner opens it from the block, and gives you the link for `nook item pr`.\n7. Check the account: `gh auth status`. When the remote belongs to another account than the one logged in, stop and ask the owner.\n8. Push the branch: `git push -u origin \u003Cbranch>`. The settings ask the owner first; a refusal stops here, and the text stays in the chat.\n9. Open the pull request: `gh pr create --base \u003Cbase> --title \"\u003Ctitle>\" --body \"\u003Cbody>\"`, with `--draft` for a draft. The settings ask the owner first.\n10. With an item, record the link: `nook item pr \u003Cid> \u003Clink>`. Report the link and what is left, such as a check that failed.\n\n## Gotchas\n- The answer \"Open the PR\" is the request to push. With no answer, push nothing.\n- Never force a push and never push a protected branch.\n- The body holds no secret, no token and no inner link that the reviewer cannot open.\n- A failing check is not hidden: open the pull request as a draft and name the check.\n- With no item, the summary comes from the commits and the diff only. Do not invent criteria.\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25,"disable-model-invocation":26},"Bash(git status *), Bash(git log *), Bash(git diff *), Bash(git branch *), Bash(git rev-parse *), Bash(gh pr view *), Bash(gh pr list *), Bash(gh pr checks *), Bash(gh repo view *), Bash(gh auth status*), Bash(nook *), Read","[item id]",true,"main","0b3b58696520a442b4b4f87c1c5a5ac760c03120","plugin\u002Fskills\u002Fpr","https:\u002F\u002Fgithub.com\u002Flamtran8401\u002Fnook","https:\u002F\u002Fgithub.com\u002Flamtran8401","2026-10-27 20:01:54",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":26},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lamtran8401\u002Fnook --skill pr",{"tool":39,"command":40},"bunx","bunx skills add lamtran8401\u002Fnook --skill pr",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lamtran8401\u002Fnook --skill pr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flamtran8401\u002Fnook\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fpr\u002FSKILL.md",[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7F55NA9ZJEBZ27S3PN5ZN0J","yolo","Run an item alone from its state to the owner's accept: the lead runs the phases, records each guess, passes the plan gate with proceed, and stops at a stop rule. Use when the owner types \u002Fyolo with an id, a prompt, or nothing.","https:\u002F\u002Fgithub.com\u002Flamtran8401\u002Fnook\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fyolo\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7F55GE7WPQCSP3K44BEY0TE","write-walkthrough","Write walkthrough.md, the explanation of finished work: what works now in plain words, the changed files, where to start reading, the key code, the met criteria, how to try it, the risks. It is the source of the Walkthrough tab of the web app. Use after \u002Fqa, or for a question about the code.","https:\u002F\u002Fgithub.com\u002Flamtran8401\u002Fnook\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fwrite-walkthrough\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7F55A7M9W0D5340Y4A8YFB7","wiki-tidy","Find what is wrong in the wiki: broken links, pages with no index line, lines too near the code, stale epic pages, topics with no source, two pages on one topic, adjectives with no example. Fix the mechanical part after one yes; list the rest. Use when the owner says tidy the wiki, or after many pages changed.","https:\u002F\u002Fgithub.com\u002Flamtran8401\u002Fnook\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fwiki-tidy\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7F555A8JJHX4Q61Q06B6DBS","wiki-merge","Merge related wiki pages into one complete page: the pages of the features of one process or epic become one page with the flow from end to end. The old pages move to the archive after the owner's yes, and their links point at the new page. Use when the owner says merge these pages, or when wiki-tidy finds pages on one topic.","https:\u002F\u002Fgithub.com\u002Flamtran8401\u002Fnook\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fwiki-merge\u002FSKILL.md",[],[],{"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},"01M7F551S3NHQ0JVT0KGM36WPQ","wiki-ask","Answer a question from the wiki: the index first, then only the pages whose line matches, an answer in a few lines with a link to each page. Use when the owner asks what the wiki says, or asks why or how about a known topic. Not to add a page: wiki-add.","https:\u002F\u002Fgithub.com\u002Flamtran8401\u002Fnook\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fwiki-ask\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},"01M7F54XC5YQK6KVXJVPZ6NDM4","wiki-add","Keep the lesson of a source in the wiki: a page in the shelf business\u002F or tech\u002F with its main points, a real example for each, the gotchas and the link of the source; written after the owner's yes. Use when the owner says add this to the wiki, keep this, or gives a PRD, a ticket, notes or an article to keep.","https:\u002F\u002Fgithub.com\u002Flamtran8401\u002Fnook\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fwiki-add\u002FSKILL.md",[],[]]