Declarative Claude Code config: skills, settings, permissions, and stop hook#74
Open
bphenriques wants to merge 2 commits intomainfrom
Open
Declarative Claude Code config: skills, settings, permissions, and stop hook#74bphenriques wants to merge 2 commits intomainfrom
bphenriques wants to merge 2 commits intomainfrom
Conversation
Replace the single code-reviewer agent with four user-invocable skills: /review-code, /review-security, /design-review, and /deep-plan. Skills are slash commands that avoid rewriting the same persona prompts repeatedly and accept $ARGUMENTS for context-specific variations. https://claude.ai/code/session_011WgapntT1iuzZE784p9AdL
Manage all Claude Code configuration declaratively via home-manager: - Default model set to opus - Pre-approve safe read-only tools and common commands (git, nix) - Move stop hook (git hygiene check) from manual /root/.claude/ into Nix https://claude.ai/code/session_011WgapntT1iuzZE784p9AdL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
code-revieweragent with four user-invocable skills:/review-code,/review-security,/design-review, and/deep-plansettingsmanaged via home-manager: default model (opus), permissions, and hooksRead,Glob,Grep,Agent) and common commands (git *,nix *,home-manager *,nixos-rebuild *) to reduce permission prompts/root/.claude/into Nix asclaude-code-stop-hook.shWhy skills over agents
Skills are user-invoked slash commands (
/review-code) — matches the workflow of explicitly choosing a review persona. Agents are auto-delegated by Claude during conversations, which isn't the use case here. Each skill accepts$ARGUMENTSfor context-specific variations (e.g.,/review-code focus on Nix module patterns).What's configured
opusRead,Glob,Grep,Agent,Skillgit *,nix *,home-manager *,nixos-rebuild *Skills overview
/review-code/review-security/design-review/deep-planTest plan
home-manager switchand verify~/.claude/skills/contains the four skill directories withSKILL.mdfiles~/.claude/settings.jsoncontains the model, permissions, and hooks config/review-code,/review-security,/design-review,/deep-planautocompletehttps://claude.ai/code/session_011WgapntT1iuzZE784p9AdL