kbrdn1/dotfiles/flakes
Claude Code and agent skill by kbrdn1/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Detect the project dev stack and manage its Nix flake dev environment (init/update flake.nix + .envrc)
Install
npx vskill@latest install kbrdn1/dotfiles/flakesSKILL.md
/me:flakes - Project Stack Detector & Nix Flake Manager
Detect the development environment of the current project, and initialize / update its Nix flake dev environment (flake.nix + .envrc) from the detected stack.
Invocation
Actions (default: show):
show- Display the detected stack (read-only, writes nothing)init- Generateflake.nix+.envrcfrom the detected stack (errors ifflake.nixalready exists → useupdate)update- Regenerateflake.nixfrom the current stack (keeps aflake.nix.bakbackup)
Verbosity (default: --light):
- For
show→ controls the detection output (--emptysilent,--lightminimal,--verbose+ CLI helpers). - For
init/update→ controls the `shellHook` logs inside the generated `flake.nix`: --empty-shellHooksilencieux (PATH exports seulement)--light- résumé versions sur une ligne (PHP … | Bun … | Node …)--verbose- bannière + versions + liste de commandes
Execution
Parse the user's arguments. Extract the action (init, show, or update) and the verbosity flag (--empty, --light, or --verbose). If not specified, default to show and --light.
Routing (run from the project's current working directory):
show→ run the detector and display its raw output verbatim:
``bash bash ~/.claude/skills/me/flakes/detect.sh show [--verbosity] ``
init/update→ run the flake generator and display its raw output verbatim:
``bash bash ~/.claude/skills/me/flakes/flake.sh <init|update> [--verbosity] ``
Display the raw output of the script to the user. Do NOT add commentary, summary, or extra formatting. The script output IS the final result.
What the generator produces
flake.sh follows the house convention (nixos-unstable + flake-utils, phpXY.buildEnv with Laravel extensions + extraConfig, grouped buildInputs, shellHook). It maps the detected stack to Nix packages:
- PHP : local
php/composer.jsonconstraint →phpXY+phpXYPackages.composer+ Laravel extensions - Node : detected major → nearest nix LTS (
nodejs_18|20|22|24) - Bun :
bunifbun.lockb/bun.lock - DB :
mariadbormariadb.client(from the compose image, defaultmariadb.clientfor PHP projects ;mysql-clientwas renamed tomariadb.clientin nixpkgs) - Docker :
docker-composeif a compose file is present - always:
git,curl,jq
.envrc is created (use flake guarded by has nix) only if absent; an existing .envrc is left untouched. After init/update, run direnv allow (or nix develop).
Examples
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingprivate_dot_claude/skills/me/flakes/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/kbrdn1/dotfiles/flakes)