[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E3XW9JCJ7VJ31S640N291T":3,"skill-same:01M6E3XW9JCJ7VJ31S640N291T":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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M6E3XW9JCJ7VJ31S640N291T","adr",null,"Scan commits and diffs for decisions, record them as immutable ADRs in docs\u002Fdecisions\u002F.","Charlieverse-ai\u002Fcharlieverse","Charlieverse-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F225413346?v=4","01M6E3XSWPM28FCWF05XPXBH4Y","Charlieverse","01M6E3XT0W90F4R60YJX5FQPM3",6,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FCharlieverse-ai\u002Fcharlieverse\u002Fblob\u002Fmain\u002F.charlie\u002Ftricks\u002Fadr\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30],"docs","diffs","commit","immutable","commits","history","decisions","default","scan","record","full","as","2026-11-10 10:12:30",false,"---\nname: adr\ndescription: Scan commits and diffs for decisions, record them as immutable ADRs in docs\u002Fdecisions\u002F. \nargument-hint: '[commit range (default: last commit) | \"all\" to scan full history]'\n---\n\nDecision Record extractor. Analyzes code diffs and identifies significant technical decisions that should be recorded for future reference. Writes immutable ADR files to `docs\u002Fdecisions\u002F`.\n\nWhen evaluating the changes ask yourself, would someone benefit from knowing WHY something was done.\n\n## Steps\n\n### 1. Determine scope\n\nIf `$ARGUMENTS` is \"all\":\n```bash\ngit log --oneline --all\n```\nScan the full commit history.\n\nIf `$ARGUMENTS` is a commit range (e.g., `HEAD~5..HEAD`):\n```bash\ngit log --oneline $ARGUMENTS\ngit diff $ARGUMENTS\n```\n\nIf `$ARGUMENTS` is empty (default — all unpushed changes):\n```bash\n# Check for unpushed commits first\ngit log origin\u002Fmain..HEAD --oneline 2>\u002Fdev\u002Fnull\n# Also check for uncommitted changes\ngit diff --stat\n```\nIf there are unpushed commits, use `git diff origin\u002Fmain..HEAD` to see the full diff.\nIf there are only uncommitted changes (no commits ahead), use `git diff` for unstaged and `git diff --cached` for staged.\nIf neither exists, fall back to the last commit: `git diff HEAD~1..HEAD`.\n\n### 2. Read existing decisions\n\n```bash\nls docs\u002Fdecisions\u002F 2>\u002Fdev\u002Fnull\n```\n\nRead any existing ADRs to understand what's already recorded. This prevents duplicates and enables amendment detection.\n\n### 3. Analyze the diff\n\nFor each commit in the range, read the full diff and apply the relevance filter (create vs skip criteria above).\n\nFor each decision found:\n- Identify WHAT was decided\n- Identify WHY (from commit messages, code comments, or infer from the change pattern)\n- Identify what ALTERNATIVES were considered or rejected (if visible in the diff)\n- Identify what it SUPERSEDES (check existing ADRs)\n\n### 4. Amendment detection\n\nBefore creating a new decision, check if an existing ADR covers the same area. If a new decision modifies or supersedes an existing one:\n\n1. Do NOT modify the original file (decisions are immutable)\n2. Create a new ADR file with `amends: \"YYYY-MM-DD-original-title.md\"` in the frontmatter\n3. Reference the original in the Context section: \"This amends [YYYY-MM-DD - Original Title](..\u002Fcategory\u002FYYYY-MM-DD-original-title.md)\"\n\n### 5. Write ADR files\n\nCreate `docs\u002Fdecisions\u002F` if it doesn't exist:\n```bash\nmkdir -p docs\u002Fdecisions\n```\n\nFor each decision, write a file named `YYYY-MM-DD-kebab-case-topic.md` using today's date:\n\n```markdown\n---\ntitle: [Decision Title]\ndate: YYYY-MM-DD\nstatus: accepted\namends: (optional, filename of superseded ADR)\ntags: [relevant, tags]\n---\n\n# [Decision Title]\n\n## Context\n\nWhat situation or problem led to this decision? What constraints existed?\n\n## Decision\n\nWhat was decided. Be specific about the choice made.\n\n## Alternatives Considered\n\nWhat other approaches were evaluated and why they were rejected.\n\n## Consequences\n\nWhat follows from this decision — both positive and negative. What does future code need to respect?\n```\n\n### 6. Commit\n\n```bash\ngit add docs\u002Fdecisions\u002F\ncharlie-commit -m \"Record architectural decisions from recent changes\"\n```\n\n### 7. Report\n\nFor each decision created, output:\n```\nADR: docs\u002Fdecisions\u002FYYYY-MM-DD-topic.md\n  Decision: [one-line summary]\n  Why: [one-line rationale]\n```\n\nIf no decisions were found: \"No architectural decisions detected in this changeset.\"\n\n## Rules\n\n- Decisions are immutable — never edit an existing ADR file, create amendments instead\n- Always use `charlie-commit` (never `git commit`)\n- Never include co-authored-by or AI references\n- Use today's date for the filename, not the commit date\n- Signal over noise — fewer high-quality ADRs beat a pile of trivial ones\n- The WHY matters more than the WHAT — the code shows what changed, the ADR explains why\n","Decision Record extractor. Analyzes code diffs and identifies significant technical decisions that should be recorded for future reference. Writes immutable ADR files to `docs\u002Fdecisions\u002F`.\n\nWhen evaluating the changes ask yourself, would someone benefit from knowing WHY something was done.\n\n## Steps\n\n### 1. Determine scope\n\nIf `$ARGUMENTS` is \"all\":\n```bash\ngit log --oneline --all\n```\nScan the full commit history.\n\nIf `$ARGUMENTS` is a commit range (e.g., `HEAD~5..HEAD`):\n```bash\ngit log --oneline $ARGUMENTS\ngit diff $ARGUMENTS\n```\n\nIf `$ARGUMENTS` is empty (default — all unpushed changes):\n```bash\n# Check for unpushed commits first\ngit log origin\u002Fmain..HEAD --oneline 2>\u002Fdev\u002Fnull\n# Also check for uncommitted changes\ngit diff --stat\n```\nIf there are unpushed commits, use `git diff origin\u002Fmain..HEAD` to see the full diff.\nIf there are only uncommitted changes (no commits ahead), use `git diff` for unstaged and `git diff --cached` for staged.\nIf neither exists, fall back to the last commit: `git diff HEAD~1..HEAD`.\n\n### 2. Read existing decisions\n\n```bash\nls docs\u002Fdecisions\u002F 2>\u002Fdev\u002Fnull\n```\n\nRead any existing ADRs to understand what's already recorded. This prevents duplicates and enables amendment detection.\n\n### 3. Analyze the diff\n\nFor each commit in the range, read the full diff and apply the relevance filter (create vs skip criteria above).\n\nFor each decision found:\n- Identify WHAT was decided\n- Identify WHY (from commit messages, code comments, or infer from the change pattern)\n- Identify what ALTERNATIVES were considered or rejected (if visible in the diff)\n- Identify what it SUPERSEDES (check existing ADRs)\n\n### 4. Amendment detection\n\nBefore creating a new decision, check if an existing ADR covers the same area. If a new decision modifies or supersedes an existing one:\n\n1. Do NOT modify the original file (decisions are immutable)\n2. Create a new ADR file with `amends: \"YYYY-MM-DD-original-title.md\"` in the frontmatter\n3. Reference the original in the Context section: \"This amends [YYYY-MM-DD - Original Title](..\u002Fcategory\u002FYYYY-MM-DD-original-title.md)\"\n\n### 5. Write ADR files\n\nCreate `docs\u002Fdecisions\u002F` if it doesn't exist:\n```bash\nmkdir -p docs\u002Fdecisions\n```\n\nFor each decision, write a file named `YYYY-MM-DD-kebab-case-topic.md` using today's date:\n\n```markdown\n---\ntitle: [Decision Title]\ndate: YYYY-MM-DD\nstatus: accepted\namends: (optional, filename of superseded ADR)\ntags: [relevant, tags]\n---\n\n# [Decision Title]\n\n## Context\n\nWhat situation or problem led to this decision? What constraints existed?\n\n## Decision\n\nWhat was decided. Be specific about the choice made.\n\n## Alternatives Considered\n\nWhat other approaches were evaluated and why they were rejected.\n\n## Consequences\n\nWhat follows from this decision — both positive and negative. What does future code need to respect?\n```\n\n### 6. Commit\n\n```bash\ngit add docs\u002Fdecisions\u002F\ncharlie-commit -m \"Record architectural decisions from recent changes\"\n```\n\n### 7. Report\n\nFor each decision created, output:\n```\nADR: docs\u002Fdecisions\u002FYYYY-MM-DD-topic.md\n  Decision: [one-line summary]\n  Why: [one-line rationale]\n```\n\nIf no decisions were found: \"No architectural decisions detected in this changeset.\"\n\n## Rules\n\n- Decisions are immutable — never edit an existing ADR file, create amendments instead\n- Always use `charlie-commit` (never `git commit`)\n- Never include co-authored-by or AI references\n- Use today's date for the filename, not the commit date\n- Signal over noise — fewer high-quality ADRs beat a pile of trivial ones\n- The WHY matters more than the WHAT — the code shows what changed, the ADR explains why\n",{"name":5,"description":7,"argument-hint":36},"[commit range (default: last commit) | \"all\" to scan full history]","main","aef1d36cff72a8957a1c6fc90ff90230ad16c7e9",".charlie\u002Ftricks\u002Fadr",2,"https:\u002F\u002Fgithub.com\u002FCharlieverse-ai\u002Fcharlieverse","https:\u002F\u002Fgithub.com\u002FCharlieverse-ai","https:\u002F\u002Fcharlieverse.ai","2026-04-27 22:48:21",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add Charlieverse-ai\u002Fcharlieverse --skill adr",{"tool":51,"command":52},"bunx","bunx skills add Charlieverse-ai\u002Fcharlieverse --skill adr",{"tool":54,"command":55},"pnpm","pnpm dlx skills add Charlieverse-ai\u002Fcharlieverse --skill adr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCharlieverse-ai\u002Fcharlieverse\u002Fblob\u002Fmain\u002F.charlie\u002Ftricks\u002Fadr\u002FSKILL.md",true,[],[60,79,109,115,121,135],{"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":31},"01M6E3Z6MGDDBZ5TFTTA9T1EGK","trick","Run Charlie tricks by name or path. Use when the user says \"\u002Ftrick\", wants to run a trick, list available tricks, or execute a skill file. Also trigger when the user mentions running a specific trick by name (e.g., \"run the session-save trick\", \"run ship\", \"do the commit trick\").","https:\u002F\u002Fgithub.com\u002FCharlieverse-ai\u002Fcharlieverse\u002Fblob\u002Fmain\u002Fprompts\u002Fskills\u002Ftrick\u002FSKILL.md",[],[62,67,68,69,70,71,72,73,74,75,76,77,78,21],"ship","name","trigger","do","use","session","execute","user","list","save","file","run",{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":93,"publishedAt":31},"01M6E3Z3FVY2KMZZGK231SG8ZH","research","Research a topic and save findings to Charlieverse knowledge. Use whenever the user wants to research something, look up documentation, investigate a library or tool, explore a concept, or asks \"what do you know about X\". Also trigger when the user says \"\u002Fresearch\", wants to build up knowledge about a subject, or asks you to \"look into\" something — even if they don't use the word \"research\" explicitly.","https:\u002F\u002Fgithub.com\u002FCharlieverse-ai\u002Fcharlieverse\u002Fblob\u002Fmain\u002Fprompts\u002Fskills\u002Fresearch\u002FSKILL.md",[85,90],{"categoryNo":86,"categoryName":87,"taxonomyType":88,"taxonomyTypeDesc":89},"01JBSEEDCAT000000000000021","资料检索与研究","SCENARIO","使用场景",{"categoryNo":91,"categoryName":92,"taxonomyType":88,"taxonomyTypeDesc":89},"01JBSEEDCAT000000000000023","Skill与智能体开发",[81,94,95,96,97,98,99,100,101,102,103,104,74,105,69,70,106,107,108,71],"documentation","researcher","Word","tool","knowledge","explore","investigate","Tools","library","search","update","MCP","build","look","up",{"skillNo":110,"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":111,"categories":112,"keywords":114,"publishedAt":31},"01M6E3Z0D8356WESTCT9JMKXR2","https:\u002F\u002Fgithub.com\u002FCharlieverse-ai\u002Fcharlieverse\u002Fblob\u002Fmain\u002Fintegrations\u002Fcopilot\u002Fplugin\u002Fskills\u002Ftrick\u002FSKILL.md",[113],{"categoryNo":91,"categoryName":92,"taxonomyType":88,"taxonomyTypeDesc":89},[62,68,69,70,71,72,73,74,75,76,67,101,77,78,21],{"skillNo":116,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":120,"publishedAt":31},"01M6E3YXEZ14EXF0SXZST1NKGY","https:\u002F\u002Fgithub.com\u002FCharlieverse-ai\u002Fcharlieverse\u002Fblob\u002Fmain\u002Fintegrations\u002Fcopilot\u002Fplugin\u002Fskills\u002Fresearch\u002FSKILL.md",[119],{"categoryNo":86,"categoryName":87,"taxonomyType":88,"taxonomyTypeDesc":89},[81,94,108,69,70,106,107,71,74,96,97,98,99,100,76,102],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":31},"01M6E3YTP8N2RJXJD8BG0S5JT0","copilot","Run a task through GitHub Copilot CLI. Use when the user says \"\u002Fcopilot\", wants to delegate work to Copilot, or mentions running something through Copilot. Also trigger when the user wants to use Copilot for a task.","https:\u002F\u002Fgithub.com\u002FCharlieverse-ai\u002Fcharlieverse\u002Fblob\u002Fmain\u002Fintegrations\u002Fcopilot\u002Fplugin\u002Fskills\u002Fcopilot\u002FSKILL.md",[],[123,69,128,71,74,129,130,101,131,78,132,133,134],"task","delegate","work","copilot cli","github copilot","github","cli",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":31},"01M6E3YRC6T2NYJAENBYGJYYX8","codex","Run a task through OpenAI Codex CLI. Use when the user says \"\u002Fcodex\", wants to delegate work to Codex, or mentions running something through Codex. Also trigger when the user wants to use an OpenAI model for a task.","https:\u002F\u002Fgithub.com\u002FCharlieverse-ai\u002Fcharlieverse\u002Fblob\u002Fmain\u002Fintegrations\u002Fcopilot\u002Fplugin\u002Fskills\u002Fcodex\u002FSKILL.md",[],[137,142,78,134,101,143,69,144,128,71,74,129,130,145],"codex cli","openai","openai codex","model"]