{"id":50433151,"url":"https://github.com/walis85300/claude-code-completion.nvim","last_synced_at":"2026-05-31T15:30:22.116Z","repository":{"id":350726483,"uuid":"1208027427","full_name":"walis85300/claude-code-completion.nvim","owner":"walis85300","description":"Skill and slash-command autocomplete for Neovim inside Claude Code's Ctrl+G editor","archived":false,"fork":false,"pushed_at":"2026-04-11T19:17:58.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-11T20:23:37.765Z","etag":null,"topics":["blink-cmp","claude-code","lua","neovim"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/walis85300.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-11T18:09:10.000Z","updated_at":"2026-04-11T19:18:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/walis85300/claude-code-completion.nvim","commit_stats":null,"previous_names":["walis85300/claude-code-completion.nvim"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/walis85300/claude-code-completion.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walis85300%2Fclaude-code-completion.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walis85300%2Fclaude-code-completion.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walis85300%2Fclaude-code-completion.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walis85300%2Fclaude-code-completion.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walis85300","download_url":"https://codeload.github.com/walis85300/claude-code-completion.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walis85300%2Fclaude-code-completion.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33737692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blink-cmp","claude-code","lua","neovim"],"created_at":"2026-05-31T15:30:21.404Z","updated_at":"2026-05-31T15:30:22.111Z","avatar_url":"https://github.com/walis85300.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# claude-code-completion.nvim\n\nSkill and slash-command autocomplete for Neovim inside Claude Code's `Ctrl+G` editor.\n\nClaude Code has 50+ built-in commands, bundled skills, and hundreds of plugin-provided skills. When `Ctrl+G` opens your editor, you're on your own remembering them. This plugin brings them all into your completion menu.\n\nIt detects Claude Code's temp prompt buffers, discovers every available skill (built-in, user, project, and plugin), and feeds them to [blink.cmp](https://github.com/saghen/blink.cmp) — the default completion engine in LazyVim. Type `/` and see everything.\n\n## Features\n\n- `/` completion for 50+ built-in commands and bundled skills\n- Dynamic discovery from `~/.claude/skills/`, `.claude/skills/`, and `~/.claude/plugins/`\n- **SessionStart hook** writes a project-aware manifest — skills reflect the CWD Claude Code is running in\n- Filesystem scan fallback when no manifest exists\n- Omnifunc fallback for setups without blink.cmp\n- Zero external dependencies — only requires Neovim 0.10+\n- Works on macOS and Linux\n\n## Installation\n\n### lazy.nvim\n\n```lua\n{\n  \"walis85300/claude-code-completion.nvim\",\n  event = \"BufEnter\",\n  dependencies = {\n    \"MeanderingProgrammer/render-markdown.nvim\",\n    \"ibhagwan/fzf-lua\",\n  },\n  opts = {},\n}\n```\n\nBundled dependencies:\n- [render-markdown.nvim](https://github.com/MeanderingProgrammer/render-markdown.nvim) — Claude prompts are `.md` files; rendered headings, bullets, tables out of the box\n- [fzf-lua](https://github.com/ibhagwan/fzf-lua) — powers the picker for browsing skills, agents, and files with preview\n\n### With blink.cmp provider (recommended)\n\n```lua\n{\n  \"saghen/blink.cmp\",\n  opts = {\n    sources = {\n      default = { \"lsp\", \"path\", \"snippets\", \"buffer\", \"claude_code\" },\n      providers = {\n        claude_code = {\n          name = \"Claude Code\",\n          module = \"claude-code-completion.source\",\n          score_offset = 100,\n        },\n      },\n    },\n  },\n}\n```\n\n## SessionStart Hook (recommended)\n\nThe hook runs a Lua script via `nvim --headless` on every Claude Code session start. It reuses the plugin's own scanner and frontmatter parser — no external dependencies beyond nvim itself.\n\n### Setup\n\n1. Add the script to your `$PATH`:\n\n```bash\nln -s ~/.local/share/nvim/lazy/claude-code-completion.nvim/bin/claude-skills-manifest ~/.local/bin/\n```\n\n2. Add the hook to `~/.claude/settings.json`:\n\n```json\n{\n  \"hooks\": {\n    \"SessionStart\": [\n      {\n        \"matcher\": \"startup\",\n        \"command\": \"claude-skills-manifest\"\n      }\n    ]\n  }\n}\n```\n\nThe hook scans all skill sources from Claude Code's CWD context and writes a manifest to `$TMPDIR/claude-skills-*.json`. Without it, the plugin falls back to scanning skill directories from nvim using the inherited CWD.\n\n## Configuration\n\n```lua\nrequire(\"claude-code-completion\").setup({\n  scan_paths = {\n    user = true,    -- ~/.claude/skills/\n    project = true, -- {cwd}/.claude/skills/\n    plugins = true, -- ~/.claude/plugins/*/skills/\n  },\n})\n```\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `:ClaudeSkillsRefresh` | Clear cache and rescan skills + agents |\n| `:ClaudePicker` | Open fzf picker (all skills, agents, files) |\n| `:ClaudePicker /` | Open picker filtered to skills |\n| `:ClaudePicker @` | Open picker filtered to agents + files |\n| `:checkhealth claude-code-completion` | Verify setup |\n\n## Keybindings (Claude prompt buffers only)\n\n| Mode | Key | Action |\n|------|-----|--------|\n| Normal | `\u003cleader\u003e/` | Browse skills with fzf preview |\n| Normal | `\u003cleader\u003e@` | Browse agents + files with fzf preview |\n| Normal | `\u003cleader\u003ecp` | Browse all (skills, agents, files) |\n| Insert | `Ctrl+/` | Browse skills (insert mode) |\n| Insert | `Ctrl+@` | Browse agents + files (insert mode) |\n\nSelecting an item inserts it at the cursor position (`/skill-name` or `@file-path`).\n\n## Semantic Highlighting\n\nKnown skills and agents are highlighted differently from unrecognized ones:\n\n| Pattern | Highlight | Meaning |\n|---------|-----------|---------|\n| `/commit` | `ClaudeSlashCommand` (keyword color) | Known skill |\n| `/typo` | `ClaudeSlashUnknown` (comment/dim) | Not a known skill |\n| `@Explore` | `ClaudeAtAgent` (attribute color) | Known agent |\n| `@src/file.ts` | `ClaudeAtFile` (string color) | File exists in project |\n| `@nonexistent` | `ClaudeAtUnknown` (comment/dim) | Not found |\n\nHighlights update live as you type. Customize with:\n\n```lua\nvim.api.nvim_set_hl(0, \"ClaudeSlashCommand\", { fg = \"#ff9e64\", bold = true })\nvim.api.nvim_set_hl(0, \"ClaudeAtAgent\", { fg = \"#7dcfff\", bold = true })\nvim.api.nvim_set_hl(0, \"ClaudeAtFile\", { fg = \"#9ece6a\" })\n```\n\n## How It Works\n\n```\nClaude Code (Ctrl+G)\n    │\n    ▼\nOpens $EDITOR with /tmp/claude-prompt-{uuid}.md\n    │\n    ▼\nPlugin detects buffer name ──► Reads hook manifest or scans filesystem\n    │\n    ▼\nblink.cmp shows completions when you type \"/\"\n```\n\n## Skill Sources\n\n| Priority | Source | Location |\n|----------|--------|----------|\n| 1 | Hook manifest | `$TMPDIR/claude-skills-{hash}.json` |\n| 2 | Built-in commands | Hardcoded in plugin |\n| 3 | User skills | `~/.claude/skills/*.md` |\n| 4 | Project skills | `{cwd}/.claude/skills/*.md` |\n| 5 | Plugin skills | `~/.claude/plugins/**/skills/` |\n\n## Running Tests\n\n```bash\nmake test\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalis85300%2Fclaude-code-completion.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalis85300%2Fclaude-code-completion.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalis85300%2Fclaude-code-completion.nvim/lists"}