Agent skill

NixOS Flake Analyzer

by Ruixi-rebirth in Ruixi-rebirth/flakes

Produces a quick structured report on a NixOS Flake repository, covering its hosts and Nix file count, by calling the flake-stats-mcp tool.

No licenceAuto-check passedDevelopment

SKILL.md written in Chinese; this summary is our English description.

Install NixOS Flake Analyzer

skills CLI
$ npx skills add Ruixi-rebirth/flakes --skill flake-analyzer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Ruixi-rebirth/flakes flake-analyzer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Ruixi-rebirth/flakes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/flake-analyzer .claude/skills/flake-analyzer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
flake-analyzer
GitHub stars
100
Token cost
~199 tokens
SKILL.md length
64 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
None found

At a glance

Produces a quick structured report on a NixOS Flake repository, covering its hosts and Nix file count, by calling the flake-stats-mcp tool.

  • Works in 2 steps: 快速概览 (Quick Scan) → 状态检查
  • Getting a quick size and host overview of a NixOS Flake repository
  • SKILL.md covers 核心任务, 工作流程 and 验证
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

This skill, written in Chinese, builds a structured report on the current NixOS Flake repository. When you ask to check your Flake or how big it is, the agent calls get_flake_summary on the flake-stats-mcp server, which returns the list of hosts (k-on, minimal and yu) and the total number of Nix files, and then presents them as a readable summary in Chinese.

It also checks that the hosts/ directory follows Flake conventions and judges how complex the setup is from the file count. With more than two hosts it suggests verifying each host's default.nix, and with more than 100 Nix files it suggests splitting the directories more finely. After every run, the agent confirms that the reported figures match what is actually in the working directory.

When your agent uses it

  • Getting a quick size and host overview of a NixOS Flake repository
  • Checking that the hosts/ directory follows Flake layout conventions
  • Deciding whether a Flake has grown big enough to split into smaller directories

Example prompts

  • “Check my Flake and tell me how many hosts and Nix files it has.”
  • “How big is this Flake repository, and is the hosts directory laid out correctly?”

Requirements

  • The flake-stats-mcp MCP server connected
  • A NixOS Flake repository as the working directory

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. 快速概览 (Quick Scan)
  2. 状态检查

What it can do on your machine

Read from SKILL.md and the folder at commit ad88a12. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

NixOS Flake Analyzer loads about 199 tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 64 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~199

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 64 words (~199 tokens).

“本 Skill 旨在利用 flake-stats-mcp 工具提供的底层统计能力,为用户提供一个结构化的 Flake 仓库报告。”

— opening of SKILL.md by Ruixi-rebirth
name
flake-analyzer

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/flake-analyzer of Ruixi-rebirth/flakes.

Open the folder on GitHubat commit ad88a12

Compare with similar skills

NixOS Flake Analyzer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

NixOS Flake Analyzer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
NixOS Flake Analyzer this skillRuixi-rebirth/flakes100—~199Automated safety check: PassNone
Basemind Code ContextGoldziher/basemind108—~2.9kAutomated safety check: PassMIT
trace-mcp Code Navigationnikolai-vysotskyi/trace-mcp189—~354Automated safety check: PassMIT
Trace MCPnikolai-vysotskyi/trace-mcp189—~1.6kAutomated safety check: NotesMIT
Codebase SearchHelweg/open-codebase-index218—~1.3kAutomated safety check: PassMIT
Codebase Search WorkflowHelweg/open-codebase-index218—~822Automated safety check: PassMIT

Similar skills

  • Basemind Code Context

    Goldziher/basemind

    Answers structural questions about a repository, such as where a symbol is defined, what calls it and what changed recently, through the basemind MCP server.

    108 GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • trace-mcp Code Navigation

    nikolai-vysotskyi/trace-mcp

    Routes code exploration through trace-mcp's indexed dependency graph, using symbol search, outlines, call graphs and change-impact tools instead of Read, Grep and Glob.

    189 GitHub stars~354 tokensUpdated today
    DevelopmentAuto-check passed
  • Trace MCP

    nikolai-vysotskyi/trace-mcp

    Use trace-mcp tools for code navigation, impact analysis, and framework-aware queries instead of Read/Grep/Glob/Bash.

    189 GitHub stars~1.6k tokensUpdated today
    Agent WorkflowsAuto-check: notes
  • Codebase Search

    Helweg/open-codebase-index

    Chooses the right retrieval tool for code questions: compact context for unfamiliar repos, direct lookup for known symbols, call graphs for relationships and grep for exhaustive matches.

    218 GitHub stars~1.3k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Codebase Search Workflow

    Helweg/open-codebase-index

    Directs an agent to use a local codebase index for repository orientation, definition lookups, call graphs and semantic search before turning to web lookups.

    218 GitHub stars~822 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • 1c Code Search

    comol/ai_rules_1c

    Find BSL code in a 1C project — routines by name, code by behaviour or exact literal, module layout, members of a context — through the graph and code-metadata MCP servers before any Grep.

    481 GitHub stars~1k tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed

More from Ruixi-rebirth/flakes

  • Nix Flake Updater

    Ruixi-rebirth/flakes

    Updates chosen or all Nix flake inputs, checks the result with nix flake check and a system rebuild, fixes warnings, then offers to commit.

    100 GitHub stars~469 tokensUpdated 20 days ago
    Auto-check passed
  • NixOS Flake Rebuild

    Ruixi-rebirth/flakes

    Rebuilds a Flake-based NixOS system through a wrapper script that validates, formats, picks the host, runs the chosen rebuild mode and checks the result.

    100 GitHub stars~356 tokensUpdated 20 days ago
    Auto-check: notes
  • Nix Code Reviewer

    Ruixi-rebirth/flakes

    Reviews Nix expressions, NixOS modules and flake.nix files for style, naming, maintainability and extensibility, then runs nix fmt and nix flake check.

    100 GitHub stars~289 tokensUpdated 20 days ago
    Auto-check passed
  • Git Workflow

    Ruixi-rebirth/flakes

    标准化的代码暂存、提交(包含 GPG 签名)和推送流程。当需要使用约定式提交(Conventional Commits)并处理交互式 GPG 验证时使用。

    100 GitHub stars~383 tokensUpdated 20 days ago
    Auto-check passed

Questions about NixOS Flake Analyzer

What does NixOS Flake Analyzer do?

Produces a quick structured report on a NixOS Flake repository, covering its hosts and Nix file count, by calling the flake-stats-mcp tool. This skill, written in Chinese, builds a structured report on the current NixOS Flake repository. When you ask to check your Flake or how big it is, the agent calls get_flake_summary on the flake-stats-mcp server, which returns the list of hosts (k-on, minimal and yu) and the total number of Nix files, and then presents them as a readable summary in Chinese.

When should I use NixOS Flake Analyzer?

NixOS Flake Analyzer fits situations like: getting a quick size and host overview of a NixOS Flake repository; checking that the hosts/ directory follows Flake layout conventions; deciding whether a Flake has grown big enough to split into smaller directories.

How do I install NixOS Flake Analyzer in Claude Code?

Run `npx skills add Ruixi-rebirth/flakes --skill flake-analyzer -a claude-code`. Or copy the skill folder (.agents/skills/flake-analyzer in Ruixi-rebirth/flakes) into .claude/skills/flake-analyzer in your project. Claude Code loads it when a task matches its description.

How do I install NixOS Flake Analyzer in Codex?

Run `npx skills add Ruixi-rebirth/flakes --skill flake-analyzer -a codex`. Or copy the skill folder (.agents/skills/flake-analyzer in Ruixi-rebirth/flakes) into .agents/skills/flake-analyzer in your project. Codex loads it when a task matches its description.

Can I use NixOS Flake Analyzer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Ruixi-rebirth/flakes --skill flake-analyzer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/flake-analyzer, .gemini/skills/flake-analyzer, .github/skills/flake-analyzer and .opencode/skills/flake-analyzer in your project.

What does NixOS Flake Analyzer need to run?

SKILL.md names no scripts, command-line tools or credentials: NixOS Flake Analyzer is instructions for the agent only. Our summary lists: The flake-stats-mcp MCP server connected; A NixOS Flake repository as the working directory.

Does NixOS Flake Analyzer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is NixOS Flake Analyzer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does NixOS Flake Analyzer use?

No licence was found for NixOS Flake Analyzer or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does NixOS Flake Analyzer use?

About 199 tokens (SKILL.md is roughly 796 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to NixOS Flake Analyzer?

Skills that share tags, products or a category with NixOS Flake Analyzer: Basemind Code Context (Goldziher/basemind, 108 stars), trace-mcp Code Navigation (nikolai-vysotskyi/trace-mcp, 189 stars), Trace MCP (nikolai-vysotskyi/trace-mcp, 189 stars) and Codebase Search (Helweg/open-codebase-index, 218 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains NixOS Flake Analyzer?

Ruixi-rebirth (a GitHub user) maintains it in Ruixi-rebirth/flakes, which has 100 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 21, 2026.

Source: Ruixi-rebirth/flakes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.