Skip to content

docs: document check commands and headless nvim invocation in CLAUDE.md#89

Open
ooloth wants to merge 1 commit into
mainfrom
claude/issue-28
Open

docs: document check commands and headless nvim invocation in CLAUDE.md#89
ooloth wants to merge 1 commit into
mainfrom
claude/issue-28

Conversation

@ooloth
Copy link
Copy Markdown
Owner

@ooloth ooloth commented May 21, 2026

✅ What

  • Adds a Checks section to CLAUDE.md listing stylua --check . as the formatting check and nvim --headless -c "lua require('config')" -c "qa" as a way to load the config and catch Lua errors without an interactive session
  • Also documents stylua . as the fix command for formatting violations

🤔 Why

  • An agent making changes had no documented way to verify correctness — no formatting check, no load test, no feedback loop
  • With these commands documented, an agent can verify its changes produce no formatting violations or Lua load errors without asking what to run

👩‍🔬 How to validate

  • Read CLAUDE.md — expect a Checks section with stylua --check . listed
  • Read CLAUDE.md — expect nvim --headless -c "lua require('config')" -c "qa" listed
  • Run stylua --check . from the repo root — expect it exits 0 (no formatting violations)
  • Run nvim --headless -c "lua require('config')" -c "qa" — expect it exits without errors

🔖 Related links

Closes #28


Generated by Claude Code

#28

CLAUDE.md previously had no documented way for an agent to verify its
changes. An agent editing plugin specs, keymaps, or LSP config had no
feedback loop — no formatting check, no load test.

Add a Checks section listing `stylua --check .` as the formatting
check and `nvim --headless -c "lua require('config')" -c "qa"` as
a way to exercise real Lua code paths without an interactive session.
Also note `stylua .` as the fix command for formatting violations.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “Checks” section to CLAUDE.md so contributors/agents know how to validate formatting and sanity-check that Neovim can load the config in a non-interactive session.

Changes:

  • Documented stylua --check . as the formatting verification command and stylua . as the fix command.
  • Added a documented nvim --headless ... invocation intended to catch Lua load errors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CLAUDE.md
stylua --check .

# Load the config headlessly to catch Lua errors and plugin spec issues
nvim --headless -c "lua require('config')" -c "qa"
Comment thread CLAUDE.md
# Check formatting (must pass before committing)
stylua --check .

# Load the config headlessly to catch Lua errors and plugin spec issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how to run checks and invoke Neovim locally so agents can verify their changes

2 participants