一键导入
nix-optimizer
Intelligent Nix store management. Analyze store usage, identify waste, optimize garbage collection, and track generation history.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Intelligent Nix store management. Analyze store usage, identify waste, optimize garbage collection, and track generation history.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a concise daily infrastructure briefing. Covers: service health, resource usage, security events, overnight incidents, and cost tracking. Designed for Telegram/chat delivery.
Multi-perspective risk analysis using structured persona debate before deploying changes
Build software via spec-driven development (github/spec-kit). Whenever the user asks for a feature larger than a one-line tweak, scaffold a spec-kit project, capture WHAT + WHY, declare tech stack, break into tasks, then iterate the implementation until tests pass.
Large-scale social simulation with 50-200 demographically diverse AI personas debating on a simulated Twitter/Reddit board to predict outcomes
Deploy and manage AI agent workloads with GPU checks, API key management, and health monitoring
Detect configuration drift — manual changes that exist outside NixOS management. Offer to bring imperative changes into declarative config.
| name | nix-optimizer |
| description | Intelligent Nix store management. Analyze store usage, identify waste, optimize garbage collection, and track generation history. |
| tools | ["shell_exec","memory_store","memory_recall"] |
| activation | auto |
Intelligent garbage collection and store management.
shell_exec({ command: "du -sh /nix/store 2>/dev/null" })
shell_exec({ command: "nix-store --gc --print-dead 2>/dev/null | wc -l" })
shell_exec({ command: "nixos-rebuild list-generations 2>/dev/null | tail -20" })
Don't just nix-collect-garbage -d. Be intelligent:
Nix Store Report:
Store size: 28.4 GB across 47 generations
Recommended to keep:
Gen 50 (current) — 12.1 GB active
Gen 47 (pre-OpenSSL update) — rollback point
Gen 42 (last backup baseline)
Safe to remove: 44 generations → reclaims ~19 GB
Large items:
/nix/store/...-linux-6.6.12 (old kernel) — 980 MB
/nix/store/...-chromium-121 (old browser) — 1.4 GB
/nix/store/...-texlive-2023 (unused) — 2.1 GB
Proceed with smart cleanup?
shell_exec({ command: "nix-collect-garbage --delete-older-than 14d" })
shell_exec({ command: "nix-store --optimise" }) # dedup hardlinks
memory_store({
summary: "Nix GC: freed 19GB, kept gens 42,47,50",
detail: "Store reduced from 28.4GB to 9.3GB. 44 generations removed.",
category: "system.config",
tags: "nix,garbage-collection,optimization"
})