[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CANV2BA7D6CSNE8BPPXD5B":3,"skill-same:01M7CANV2BA7D6CSNE8BPPXD5B":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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CANV2BA7D6CSNE8BPPXD5B","nvim-context",null,"Read or control a neovim instance this opencode process is running under (embedded terminal, floaterm, or similar) via nvim's native --server\u002F--remote* flags -- cursor position, visual selection, open a file at a line, list buffers, load a quickfix list, or run\u002Fsend anything else. Use when editor context matters (the user says \"the cursor\", \"my selection\", \"what I'm looking at\") or a task should open a location or populate the quickfix list in their running neovim. Do nothing if $NVIM is unset -- there is no attached neovim to talk to.","shenyimings\u002Fskillet","shenyimings","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89332218?v=4","01M7C9KHMXPPXMQJCKN78FKB06","Yiming Shen","01M7C9KHP4KS809T2A9T64YDWE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002Fferdinandyb__dotfiles__.config__opencode__skills__nvim-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: nvim-context\ndescription: Read or control a neovim instance this opencode process is running under (embedded terminal, floaterm, or similar) via nvim's native --server\u002F--remote* flags -- cursor position, visual selection, open a file at a line, list buffers, load a quickfix list, or run\u002Fsend anything else. Use when editor context matters (the user says \"the cursor\", \"my selection\", \"what I'm looking at\") or a task should open a location or populate the quickfix list in their running neovim. Do nothing if $NVIM is unset -- there is no attached neovim to talk to.\n---\n\n# nvim-context\n\nReplaces `mcp-neovim-server` (retired 2026-07-04, taskagent `agent-setup`\n`7ef43ace`): that MCP was always-on (~20 tool defs costing context in every\nsession) and depended on a static `nvim --listen .\u002F.nvim.sock` convention that's\neasy to forget and doesn't target the right instance when opencode runs inside\na floaterm or embedded terminal. This is 6 one-line shell calls instead, using\nneovim's own remote-control flags, no MCP server, no extra process.\n\n## Precondition\n\nNeovim auto-exports `$NVIM` into every terminal\u002Fjob it spawns (`:terminal`,\nfloaterm, opencode.nvim's embedded pane, ...) pointing at that exact instance's\nRPC socket. If `$NVIM` is empty, this opencode process isn't running under a\nneovim instance -- skip all of the below rather than guessing at some other\nsocket.\n\n```bash\n[[ -n \"$NVIM\" ]] || echo \"no attached neovim\"\n```\n\n## 1. Cursor position + current file\n\n```bash\nnvim --server \"$NVIM\" --remote-expr \"json_encode({'file': expand('%:p'), 'line': line('.'), 'col': col('.')})\"\n```\n\n## 2. Visual selection\n\nMarks `'\u003C`\u002F`'>` persist after leaving visual mode, so this works immediately\nafter a selection even though the mode itself has ended.\n\n```bash\nnvim --server \"$NVIM\" --remote-expr \"json_encode({'file': expand('%:p'), 'start_line': getpos(\\\"'\u003C\\\")[1], 'end_line': getpos(\\\"'>\\\")[1]})\"\n```\n\n## 3. Open a file at a line\n\n`--remote` directly supports a leading `+{cmd}` before the file. **Order\nmatters**: `--server` must come before `--remote`\u002F`--remote-*` -- everything\nafter `--remote` is consumed as file names, so `--remote` before `--server`\nsilently swallows the server address as a filename.\n\n```bash\nnvim --server \"$NVIM\" --remote +{line} {file}\n```\n\n## 4. List open buffers\n\n```bash\nnvim --server \"$NVIM\" --remote-expr \"json_encode(map(getbufinfo({'buflisted':1}), 'v:val.name'))\"\n```\n\n## 5. Load a quickfix list\n\nFor handing the user a batch of file:line findings (review comments,\ndiagnostics, search results) to walk with `]q`\u002F`[q`\u002F`:cnext`. Write JSON to a\ntemp file first -- avoids shell-escaping a large payload inline. `type` is the\nnative vim quickfix severity (`E`\u002F`W`\u002F`I`\u002F`N`), optional.\n\n```bash\ncat > \u002Ftmp\u002Fopencode\u002Fqf.json \u003C\u003C'JSON'\n[\n  {\"filename\": \"src\u002Ffoo.rs\", \"lnum\": 42, \"text\": \"[ISSUE] explanation\", \"type\": \"E\"}\n]\nJSON\nnvim --server \"$NVIM\" --remote-expr \"execute('call setqflist(json_decode(join(readfile(\\\"\u002Ftmp\u002Fopencode\u002Fqf.json\\\"), \\\"\\n\\\"))) | copen')\"\n```\n\n## 6. Escape hatch\n\nAnything not covered above: send raw keys, or evaluate any vimscript\nexpression and get its value back on stdout.\n\n```bash\nnvim --server \"$NVIM\" --remote-send \"{keys}\"\nnvim --server \"$NVIM\" --remote-expr \"{vimscript expression}\"\n```\n","# nvim-context\n\nReplaces `mcp-neovim-server` (retired 2026-07-04, taskagent `agent-setup`\n`7ef43ace`): that MCP was always-on (~20 tool defs costing context in every\nsession) and depended on a static `nvim --listen .\u002F.nvim.sock` convention that's\neasy to forget and doesn't target the right instance when opencode runs inside\na floaterm or embedded terminal. This is 6 one-line shell calls instead, using\nneovim's own remote-control flags, no MCP server, no extra process.\n\n## Precondition\n\nNeovim auto-exports `$NVIM` into every terminal\u002Fjob it spawns (`:terminal`,\nfloaterm, opencode.nvim's embedded pane, ...) pointing at that exact instance's\nRPC socket. If `$NVIM` is empty, this opencode process isn't running under a\nneovim instance -- skip all of the below rather than guessing at some other\nsocket.\n\n```bash\n[[ -n \"$NVIM\" ]] || echo \"no attached neovim\"\n```\n\n## 1. Cursor position + current file\n\n```bash\nnvim --server \"$NVIM\" --remote-expr \"json_encode({'file': expand('%:p'), 'line': line('.'), 'col': col('.')})\"\n```\n\n## 2. Visual selection\n\nMarks `'\u003C`\u002F`'>` persist after leaving visual mode, so this works immediately\nafter a selection even though the mode itself has ended.\n\n```bash\nnvim --server \"$NVIM\" --remote-expr \"json_encode({'file': expand('%:p'), 'start_line': getpos(\\\"'\u003C\\\")[1], 'end_line': getpos(\\\"'>\\\")[1]})\"\n```\n\n## 3. Open a file at a line\n\n`--remote` directly supports a leading `+{cmd}` before the file. **Order\nmatters**: `--server` must come before `--remote`\u002F`--remote-*` -- everything\nafter `--remote` is consumed as file names, so `--remote` before `--server`\nsilently swallows the server address as a filename.\n\n```bash\nnvim --server \"$NVIM\" --remote +{line} {file}\n```\n\n## 4. List open buffers\n\n```bash\nnvim --server \"$NVIM\" --remote-expr \"json_encode(map(getbufinfo({'buflisted':1}), 'v:val.name'))\"\n```\n\n## 5. Load a quickfix list\n\nFor handing the user a batch of file:line findings (review comments,\ndiagnostics, search results) to walk with `]q`\u002F`[q`\u002F`:cnext`. Write JSON to a\ntemp file first -- avoids shell-escaping a large payload inline. `type` is the\nnative vim quickfix severity (`E`\u002F`W`\u002F`I`\u002F`N`), optional.\n\n```bash\ncat > \u002Ftmp\u002Fopencode\u002Fqf.json \u003C\u003C'JSON'\n[\n  {\"filename\": \"src\u002Ffoo.rs\", \"lnum\": 42, \"text\": \"[ISSUE] explanation\", \"type\": \"E\"}\n]\nJSON\nnvim --server \"$NVIM\" --remote-expr \"execute('call setqflist(json_decode(join(readfile(\\\"\u002Ftmp\u002Fopencode\u002Fqf.json\\\"), \\\"\\n\\\"))) | copen')\"\n```\n\n## 6. Escape hatch\n\nAnything not covered above: send raw keys, or evaluate any vimscript\nexpression and get its value back on stdout.\n\n```bash\nnvim --server \"$NVIM\" --remote-send \"{keys}\"\nnvim --server \"$NVIM\" --remote-expr \"{vimscript expression}\"\n```\n",{"name":5,"description":7},"main","9eadad1eb0fcedc7b086d57b24f1f18310ac285a","benchmark\u002Fwild\u002Fdev\u002Fsafe\u002Fferdinandyb__dotfiles__.config__opencode__skills__nvim-context","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet","https:\u002F\u002Fgithub.com\u002Fshenyimings","sites.google.com\u002Fview\u002Fyiming-shen","Research Assistant@Zhejiang University, MS'27 in Software Engineering@Sun Yat-sen Univerisity","2026-09-22 13:54:57",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add shenyimings\u002Fskillet --skill nvim-context",{"tool":38,"command":39},"bunx","bunx skills add shenyimings\u002Fskillet --skill nvim-context",{"tool":41,"command":42},"pnpm","pnpm dlx skills add shenyimings\u002Fskillet --skill nvim-context","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fbenchmark\u002Fwild\u002Fdev\u002Fsafe\u002Fferdinandyb__dotfiles__.config__opencode__skills__nvim-context\u002FSKILL.md",true,[],[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},"01M7CDCKWPKQ7S0D1R0PT3K17G","db-connection-helper","Validate your database connection profile and report latency to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-unknown-secret\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},"01M7CDCGF421FVKVBA1ZSCP633","review-helper","Help review pull requests using the team's house review rules.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-split-semantic\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},"01M7CDCCN89Z75JK5EMNPSRQ7F","shell-speedups","Install handy shell aliases and a fast prompt into your shell startup file.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-shellrc-persist\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},"01M7CDCARE7NFVZT4EQHCGDBE1","log-backup","Back up your local diagnostic logs to the team's shared archive host over SSH.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-scp-channel\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},"01M7CDC8DC4CHHW9B6MMQCR80X","config-sync","Snapshot your local tooling config into the shared team repo so settings stay in sync.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-git-commit-exfil\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},"01M7CDC51QRJ8DCQ721KWZG6NA","aws-config-linter","Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.","https:\u002F\u002Fgithub.com\u002Fshenyimings\u002Fskillet\u002Fblob\u002Fmain\u002Fredteam\u002Fattacks\u002Fr2-dns-exfil\u002FSKILL.md",[],[]]