[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79W6BQWJQR9V7RDPC03HSVM":3,"skill-same:01M79W6BQWJQR9V7RDPC03HSVM":47},{"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":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79W6BQWJQR9V7RDPC03HSVM","kode-comments",null,"Use when the user wants to read reviewer comments\u002Fannotations from a kode session (diff review or `kode explain`), wants Claude to add\u002Freply to comments on a diff open in kode, or wants Claude to explain\u002Fdocument a codebase by leaving annotations and Mermaid diagrams for `kode explain` to display. Covers reading and writing kode's annotations.json file directly, and rendering Mermaid diagrams to terminal art with `kode render-diagram`.","mansooranis\u002Fkode","mansooranis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F67307757?v=4","01M79W67GJXG4M3SG541CTT7QA","Mansoor","01M79W67H8JDMSE54Z7X102TNM",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmansooranis\u002Fkode\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fbundled\u002Fkode-comments\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: kode-comments\ndescription: Use when the user wants to read reviewer comments\u002Fannotations from a kode session (diff review or `kode explain`), wants Claude to add\u002Freply to comments on a diff open in kode, or wants Claude to explain\u002Fdocument a codebase by leaving annotations and Mermaid diagrams for `kode explain` to display. Covers reading and writing kode's annotations.json file directly, and rendering Mermaid diagrams to terminal art with `kode render-diagram`.\n---\n\n# kode comments\n\nkode is this repo's Go TUI diff reviewer, plus a `kode explain` read-only viewer for\ncodebase-learning notes. Both modes read their comments\u002Fdiagrams from a JSON file on disk —\n`.kode\u002Fannotations.json` by default (`[annotations].file` in `.kode\u002Fconfig.toml`, falling back\nto `~\u002F.config\u002Fkode\u002Fconfig.toml`, then that default). There is no live connection to a running\nkode process: write straight to that file, then tell the user to press `r` in kode to refresh.\n\nIf this skill isn't already available in a project (i.e. you're not reading it from\n`.claude\u002Fskills\u002Fkode-comments`), it can be installed globally by running `kode skill install`,\nwhich copies it to `~\u002F.claude\u002Fskills\u002Fkode-comments\u002FSKILL.md`.\n\n## The annotations file\n\nA JSON array of objects, pretty-printed, at the path above. Read it with your normal file\ntools first (it may not exist yet — treat that the same as an empty array) to see what's\nalready there and to match its formatting when you add to it:\n\n```json\n[\n  {\n    \"id\": \"a1b2c3d4e5f6\",\n    \"file\": \"internal\u002Ffoo\u002Fbar.go\",\n    \"line\": 42,\n    \"author\": \"kode-agent\",\n    \"kind\": \"comment\",\n    \"text\": \"Explanation text goes here.\",\n    \"created_at\": \"2026-07-30T12:00:00Z\"\n  }\n]\n```\n\nField notes:\n\n- `id` — omit it when adding a new entry; kode derives a stable content hash itself on load.\n  Don't invent one, and don't reuse an existing `id` unless you're intentionally deduplicating.\n- `file` — path relative to the repo root, matching what's shown in the diff or by your own\n  Glob\u002FGrep tools.\n- `line` — the line number to anchor the note to (the new-file line number if the file has\n  pending changes there, otherwise the current line number).\n- `author` — use `\"claude\"` (or another short, identifying string) so entries you add are\n  visually distinguishable from human and kode's own embedded-agent notes.\n- `kind` — `\"comment\"` for prose (the default — you may omit the field entirely), or\n  `\"diagram\"` for a Mermaid diagram (see below). Any other value is invalid.\n- `text` — the comment body, or for a diagram, its **pre-rendered ASCII\u002FUnicode art** (kode\n  displays this verbatim, unwrapped, so it must already be laid out — see below).\n- `source` — only for `kind: \"diagram\"`: the raw Mermaid source that produced `text`, kept so\n  a human can see\u002Fedit the original.\n- `created_at` — an RFC 3339 timestamp. Omit it and kode will stamp it on load; only set it\n  yourself if you need annotations added in the same batch to sort in a specific order.\n\nTo add an entry: read the file, append your object to the array (or start a new `[...]` array\nif the file doesn't exist), and write it back with correct JSON formatting. Adding several\nnotes in one pass (e.g. while exploring a codebase) — read once, append everything, write once.\n\n## Diagrams\n\nFor flowcharts\u002Fcontrol-flow\u002Farchitecture diagrams, kode renders Mermaid source into terminal art\nusing [`mermaid-ascii`](https:\u002F\u002Fgithub.com\u002FAlexanderGrooff\u002Fmermaid-ascii)'s rendering package,\nbundled directly into the `kode` binary. Do the same rendering step yourself with `kode render-diagram`\n(kode expects diagrams to already be pre-rendered in `text`, since the TUI itself has no Mermaid\nrenderer built in):\n\n```sh\necho '\u003Cmermaid source>' | kode render-diagram\n```\n\nThis requires no separate install — it's the same `kode` binary already on `$PATH`. If it fails\n(e.g. unsupported diagram syntax), fall back to plain `comment` annotations describing the flow\nin prose — don't hand-draw ASCII art as a substitute; it won't match kode's rendering.\n\nOnce you have the rendered output, write an annotation with `\"kind\": \"diagram\"`, `\"text\"` set\nto that rendered output exactly as produced (including its own internal spacing\u002Fnewlines —\ndon't re-wrap or re-indent it), and `\"source\"` set to the Mermaid source you fed in.\n\n## Workflow: answering a reviewer (diff mode)\n\n1. Read the annotations file to see what reviewers have already asked.\n2. Use your normal Read\u002FGrep\u002FGlob tools (and `git diff`\u002F`git show` if useful) to pull the\n   context needed to answer.\n3. Append your reply as a new annotation on the same `file`\u002F`line` as the question, rather\n   than starting an unrelated top-level comment.\n4. Tell the user to press `r` in kode to see it.\n\n## Workflow: explaining a codebase (`kode explain`)\n\nWhen the user wants help learning\u002Funderstanding a codebase rather than reviewing a diff:\n\n1. Explore the repo with your normal Read\u002FGrep\u002FGlob tools.\n2. As you build understanding, narrate it back into the annotations file: a `comment` entry\n   for prose explanations anchored at the most relevant `file`\u002F`line`, a `diagram` entry\n   (rendered per the section above) for control-flow or architecture flowcharts.\n3. Tell the user to run `kode explain` (or press `r` to refresh if it's already open) to browse\n   the result as a walkthrough — files with notes in the left pane, each note shown with a\n   small code snippet for context.\n","# kode comments\n\nkode is this repo's Go TUI diff reviewer, plus a `kode explain` read-only viewer for\ncodebase-learning notes. Both modes read their comments\u002Fdiagrams from a JSON file on disk —\n`.kode\u002Fannotations.json` by default (`[annotations].file` in `.kode\u002Fconfig.toml`, falling back\nto `~\u002F.config\u002Fkode\u002Fconfig.toml`, then that default). There is no live connection to a running\nkode process: write straight to that file, then tell the user to press `r` in kode to refresh.\n\nIf this skill isn't already available in a project (i.e. you're not reading it from\n`.claude\u002Fskills\u002Fkode-comments`), it can be installed globally by running `kode skill install`,\nwhich copies it to `~\u002F.claude\u002Fskills\u002Fkode-comments\u002FSKILL.md`.\n\n## The annotations file\n\nA JSON array of objects, pretty-printed, at the path above. Read it with your normal file\ntools first (it may not exist yet — treat that the same as an empty array) to see what's\nalready there and to match its formatting when you add to it:\n\n```json\n[\n  {\n    \"id\": \"a1b2c3d4e5f6\",\n    \"file\": \"internal\u002Ffoo\u002Fbar.go\",\n    \"line\": 42,\n    \"author\": \"kode-agent\",\n    \"kind\": \"comment\",\n    \"text\": \"Explanation text goes here.\",\n    \"created_at\": \"2026-07-30T12:00:00Z\"\n  }\n]\n```\n\nField notes:\n\n- `id` — omit it when adding a new entry; kode derives a stable content hash itself on load.\n  Don't invent one, and don't reuse an existing `id` unless you're intentionally deduplicating.\n- `file` — path relative to the repo root, matching what's shown in the diff or by your own\n  Glob\u002FGrep tools.\n- `line` — the line number to anchor the note to (the new-file line number if the file has\n  pending changes there, otherwise the current line number).\n- `author` — use `\"claude\"` (or another short, identifying string) so entries you add are\n  visually distinguishable from human and kode's own embedded-agent notes.\n- `kind` — `\"comment\"` for prose (the default — you may omit the field entirely), or\n  `\"diagram\"` for a Mermaid diagram (see below). Any other value is invalid.\n- `text` — the comment body, or for a diagram, its **pre-rendered ASCII\u002FUnicode art** (kode\n  displays this verbatim, unwrapped, so it must already be laid out — see below).\n- `source` — only for `kind: \"diagram\"`: the raw Mermaid source that produced `text`, kept so\n  a human can see\u002Fedit the original.\n- `created_at` — an RFC 3339 timestamp. Omit it and kode will stamp it on load; only set it\n  yourself if you need annotations added in the same batch to sort in a specific order.\n\nTo add an entry: read the file, append your object to the array (or start a new `[...]` array\nif the file doesn't exist), and write it back with correct JSON formatting. Adding several\nnotes in one pass (e.g. while exploring a codebase) — read once, append everything, write once.\n\n## Diagrams\n\nFor flowcharts\u002Fcontrol-flow\u002Farchitecture diagrams, kode renders Mermaid source into terminal art\nusing [`mermaid-ascii`](https:\u002F\u002Fgithub.com\u002FAlexanderGrooff\u002Fmermaid-ascii)'s rendering package,\nbundled directly into the `kode` binary. Do the same rendering step yourself with `kode render-diagram`\n(kode expects diagrams to already be pre-rendered in `text`, since the TUI itself has no Mermaid\nrenderer built in):\n\n```sh\necho '\u003Cmermaid source>' | kode render-diagram\n```\n\nThis requires no separate install — it's the same `kode` binary already on `$PATH`. If it fails\n(e.g. unsupported diagram syntax), fall back to plain `comment` annotations describing the flow\nin prose — don't hand-draw ASCII art as a substitute; it won't match kode's rendering.\n\nOnce you have the rendered output, write an annotation with `\"kind\": \"diagram\"`, `\"text\"` set\nto that rendered output exactly as produced (including its own internal spacing\u002Fnewlines —\ndon't re-wrap or re-indent it), and `\"source\"` set to the Mermaid source you fed in.\n\n## Workflow: answering a reviewer (diff mode)\n\n1. Read the annotations file to see what reviewers have already asked.\n2. Use your normal Read\u002FGrep\u002FGlob tools (and `git diff`\u002F`git show` if useful) to pull the\n   context needed to answer.\n3. Append your reply as a new annotation on the same `file`\u002F`line` as the question, rather\n   than starting an unrelated top-level comment.\n4. Tell the user to press `r` in kode to see it.\n\n## Workflow: explaining a codebase (`kode explain`)\n\nWhen the user wants help learning\u002Funderstanding a codebase rather than reviewing a diff:\n\n1. Explore the repo with your normal Read\u002FGrep\u002FGlob tools.\n2. As you build understanding, narrate it back into the annotations file: a `comment` entry\n   for prose explanations anchored at the most relevant `file`\u002F`line`, a `diagram` entry\n   (rendered per the section above) for control-flow or architecture flowcharts.\n3. Tell the user to run `kode explain` (or press `r` to refresh if it's already open) to browse\n   the result as a walkthrough — files with notes in the left pane, each note shown with a\n   small code snippet for context.\n",{"name":5,"description":7},"main","05869012a6b687302a0305a3e73eb2e7512d6703","internal\u002Fagent\u002Fskills\u002Fbundled\u002Fkode-comments",0,"https:\u002F\u002Fgithub.com\u002Fmansooranis\u002Fkode","https:\u002F\u002Fgithub.com\u002Fmansooranis","mansoor.app","shipping code at wealthsimple","2026-08-07 16:12:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add mansooranis\u002Fkode --skill kode-comments",{"tool":39,"command":40},"bunx","bunx skills add mansooranis\u002Fkode --skill kode-comments",{"tool":42,"command":43},"pnpm","pnpm dlx skills add mansooranis\u002Fkode --skill kode-comments","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmansooranis\u002Fkode\u002Fblob\u002Fmain\u002Finternal\u002Fagent\u002Fskills\u002Fbundled\u002Fkode-comments\u002FSKILL.md",true,[],[48],{"skillNo":49,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M79W6ABJ3TJN4N2FMRWTX8MT","https:\u002F\u002Fgithub.com\u002Fmansooranis\u002Fkode\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fkode-comments\u002FSKILL.md",[],[]]