clickhouse/nerve/nerve-dev
Claude Code and agent skill by clickhouse/nerve
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Nerve backend (Python) and frontend (React/TS) development and code contribution. Use when writing Python code for Nerve, fixing bugs, adding features, reviewing Nerve PRs, building the frontend, running tests, or working with the Nerve codebase. Triggers on "nerve code", "nerve PR", "fix nerve", "nerve feature", "nerve test", "build nerve UI", "nerve migration", "nerve lint".
Install
npx vskill@latest install clickhouse/nerve/nerve-devSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as clickhouse/nerve/nerve-dev.
Nerve Development Skill
Changing your own config (skills, cron, settings), not the app code? Usethenerve-workspaceskill instead — that covers the workspace, and which of apull request or a direct edit applies to this instance. This skill is fordeveloping the Nerve application codebase.
Repository
- Upstream: https://github.com/ClickHouse/nerve (
git@github.com:ClickHouse/nerve.git) - Issues & PRs: https://github.com/ClickHouse/nerve/pulls
All changes go through PRs — never push directly to main. The repo is public; see the security section before every commit.
Getting Started (Contributors)
Prerequisites: Python 3.13+ (pyproject.toml pins requires-python = ">=3.13"), uv, Node.js 22.12+, git, gh.
Run the commands below from the repository root (wherever you cloned it).
Project Layout
Gateway Routes Architecture
Routes are split into domain modules under nerve/gateway/routes/: auth, accounts, setup, actors, sessions, tasks, plans, skills, mcp_servers, memory, diagnostics, cron, sources, notifications, files, external_agents, prompt_rewrite, models, codex, workflow_runs, review_loops, config. Each module:
- defines its own
router = APIRouter()with related endpoints, - imports
get_deps()from_deps.pyto reach the engine, DB, notification
service and external-agents sync service,
- keeps its Pydantic request models co-located with the handlers.
Adding an endpoint: add the handler to the matching domain module; nothing else to wire. Adding a domain: create routes/new_domain.py with a router = APIRouter(), then import it and include_router it in routes/__init__.py::register_all_routes() — inclusion is explicit, not by discovery. (accounts and setup are included only in local-accounts auth mode.)
Dependency and auth pattern:
Use actor: Actor = Depends(require_auth) on handlers that consume identity for attribution or account authority; otherwise gate the module through the router dependency. Routes that invoke agent tools go through the shared registry (_deps.get_tool_registry() / build_route_tool_context()), so the REST and MCP paths share one implementation.
Agent Tools
Every agent tool is a ToolSpec (name, description, JSON schema, async handler) — see nerve/agent/tools/registry.py. Agents call them as mcp__nerve__<name>.
Adding a tool: put the schema in nerve/agent/tools/schemas.py, the handler and its ToolSpec in nerve/agent/tools/handlers/<domain>.py, and append the spec to that module's *_SPECS list — handlers/__init__.py::build_default_registry() registers every list. Handlers read state only from the ToolContext they are handed and return a ToolResult. The same registry serves the in-process MCP server of Claude sessions, the Codex loopback listener and the external /mcp/v1 endpoint, and the system prompt lists every served tool automatically. Then document the tool in docs/ and, if users should know it, in the TOOLS.md templates under nerve/templates/.
Development Workflow
Order for every change:
- Branch —
git checkout -b <username>/<feature-name>from up-to-date main - Recall —
memory_recallfor past issues, conventions and preferences on the area - Backend first — Python under
nerve/; add or renumber a migration if the schema changes - Frontend second — TypeScript/React under
web/src/ - Tests —
.venv/bin/pytest tests/ -v;cd web && npm test && npm run lint - Build UI —
cd web && npm run build(the server servesweb/dist/); after a visible UI change,web/e2e/snapshots.sh --update-snapshotsand commit the changed PNGs - Docs — update the matching
docs/*.md(and README tables) in the same change - Commit — focused, scoped commits on the feature branch
- Review — launch a review subagent, act on its feedback, run the leak check below
- Push to fork —
git push origin <username>/<feature-name> - PR — open it against upstream
main(https://github.com/ClickHouse/nerve)
PR Workflow
PR conventions:
- Keep PRs focused — one feature or fix per PR
- Include test coverage for new functionality
- Run the full backend suite, the frontend build and
npm testbefore opening - CI runs: backend tests on Python 3.13 with
uv sync --locked, the migration
number check, npm ci --strict-peer-deps && npm run build && npm test, an install + build on the Node floor (22.12.0), and the UI snapshot comparison (web/e2e/snapshots.sh). npm run lint is not in CI — run it yourself.
Build Commands
Backend
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingnerve/templates/skills/nerve-dev/SKILL.md
Popularity
- Repository stars
- 77
- Repository forks
- 28
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/clickhouse/nerve/nerve-dev)