neovim
Skill14 starsChanged 4 months agoMITView on GitHub
Neovim config healthcheck for ~/.dotfiles/.config/nvim/ using lazy.nvim and GNU Stow. Use when the user wants to validate or repair Neovim, add/remove plugins, diagnose startup performance, fix keymaps/LSP, or modernize config. Prefer audit for whole-dotfiles reviews and shell-env for non-Neovim terminal config.
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-repoSkill
- architectSkill
- commitSkill
- debugSkill
- frontendSkill
- pr-reviewSkill
- react-hook-form-auditSkill
- react-hook-formSkill
- reactSkill
- refactorSkill
- researchSkill
- reviewSkill
- specSkill
- testSkill
- auditSkill
- shell-envSkill
- learnSkill
- tilSkill
- audit-paraSkill
- capture-receiptSkill
- close-daySkill
- dailySkill
- goalsSkill
- ideasSkill
- ingestSkill
- maintainSkill
- memory-recallSkill
- moneySkill
- process-inboxSkill
- projectSkill
- save-noteSkill
- spot-driftSkill
- vaultSkill
- weekly-reviewSkill
- careerSkill
- check-communicationSkill
- deslopifySkill
- ideationSkill
- prototypeSkill
- standupSkill
- blogSkill
- docsSkill
- talkSkill
- tutorialSkill
- tweet-todaySkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
Do not load all references.
- Very specific: line 55
Create or edit a file in lua/kriscard/plugins/.
- Very specific: line 58
Run :checkhealth <plugin> when the plugin provides health checks.
- Very specific: line 64
Run :Lazy profile to see per-plugin load times.
- Very specific: line 80
Delete ~/.local/share/nvim/lazy/<plugin> only as a last resort to force reinstall.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Neovim Configuration
Config lives at ~/.dotfiles/.config/nvim/, symlinked by GNU Stow, namespaced under kriscard/. Plugin manager is lazy.nvim.
Config Location
~/.dotfiles/.config/nvim/
├── init.lua # Entry point — sources all modules
├── lua/kriscard/
│ ├── core/
│ │ ├── options.lua # vim.opt settings
│ │ ├── keymaps.lua # vim.keymap.set with {desc = "..."}
│ │ └── autocmds.lua # autocommands
│ └── plugins/ # lazy.nvim plugin specs (one file per plugin or group)
│ └── *.luaStow package: cd ~/.dotfiles && stow nvim (or whatever the package name is — check ls ~/.dotfiles).
First: classify the branch
- Healthcheck or broken config → use Key Workflows; load
references/config.mdif needed. - Plugin add/remove/replacement → load
references/plugins.md. - Startup/performance → load
references/performance.md. - Whole-dotfiles health issue → route to audit; non-Neovim terminal config → route to shell-env.
Do not load all references.
Key Workflows
Validate config
:checkhealth " full diagnostic
:checkhealth lazy " plugin manager health
:checkhealth nvim-treesitter
:Lazy " plugin status dashboardDone when health output is captured, any failing provider/plugin is named, and each issue has a fix or next diagnostic command.
Add a plugin
- Create or edit a file in
lua/kriscard/plugins/. - Return a lazy.nvim spec table.
- Save — lazy.nvim auto-detects changes on next start, or run
:Lazy sync. - Run
:checkhealth <plugin>when the plugin provides health checks.
Done when the spec is in the Stow-managed source path, lazy.nvim can sync/load it, and any keymaps/commands include lazy-load boundaries.
Diagnose performance
Run :Lazy profile to see per-plugin load times. For CLI measurement:
nvim --headless --startuptime /tmp/nvim.log +q && sort -k2 -n /tmp/nvim.log | tail -20Done when before/after startup measurements are recorded, top slow plugins or config files are named, and each recommendation maps to a lazy.nvim event, cmd, keys, or ft boundary or is marked needs deeper profiling.
Fix broken plugin
Move from least destructive to most destructive:
:Lazy log— inspect recent install/update errors.:messages— capture Lua errors after startup.:Lazy sync— retry install/update when the error indicates missing or stale plugin state.:Lazy clean— remove unused plugins only after confirming they are no longer referenced.- Delete
~/.local/share/nvim/lazy/<plugin>only as a last resort to force reinstall.
Done when the error is reproduced or log output is captured, the least destructive applicable repair has run, and the next startup/checkhealth result is recorded.
Quick Checks (run on every audit)
- Plugins use
opts = {}instead ofconfig = function() require("x").setup({}) endwhere possible - Keymaps include
{desc = "..."}for which-key integration - LSP plugins are not loaded eagerly (use
event = "BufReadPre") - No duplicate keymaps (
:verbose map <key>to check) vim.loader.enable()called ininit.lua(bytecode cache, free perf)
Completion gate: do not declare Neovim work done until the changed source path, validation command, and result are reported.
References
| Priority | Load when | Reference |
| High | Plugin recommendations, modern picks, what to add/remove, abandoned plugins | references/plugins.md |
| High | Startup time, lazy-loading strategies, profiling, which plugins are slow | references/performance.md |
| Medium | Config structure, best practices, common mistakes, keymaps, LSP setup | references/config.md |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

