Agent skill

Nano Doctor

by garagon in garagon/nanostack

Install health check for nanostack. An agent skill from garagon/nanostack.

Apache-2.0Auto-check passed

Install Nano Doctor

skills CLI
$ npx skills add garagon/nanostack --skill nano-doctor -a claude-code

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

GitHub CLI
$ gh skill install garagon/nanostack nano-doctor --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/garagon/nanostack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/doctor .claude/skills/nano-doctor && 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
nano-doctor
GitHub stars
207
Token cost
~1.6k tokens
SKILL.md length
762 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
Apache-2.0

At a glance

Install health check for nanostack. An agent skill from garagon/nanostack.

  • SKILL.md covers Telemetry preamble, Process, Interpreting the output and When to recommend --fix, plus 4 more sections
  • Calls npx

What it does

Nano Doctor is an agent skill from garagon/nanostack. Install health check for nanostack. Diagnoses dependencies, permissions, telemetry config, and pre-V5 detection. Triggers on /nano-doctor. Flags - --json, --offline, --fix.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: A workflow harness that helps AI coding agents plan, review, test, and ship safer code. The licence is Apache-2.0.

Example prompts

  • “/nano-doctor”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 0372aed. 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

    Shell commands in SKILL.md call:

    • npx

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

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    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

Nano Doctor loads about 1.6k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 762 words of instructions outside code blocks.

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

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

The full file from garagon/nanostack at commit 0372aed, republished under its Apache-2.0 licence (© garagon). 762 words, ~1,645 tokens.

Download SKILL.mdSave it as .claude/skills/nano-doctor/SKILL.md (or your agent's skills folder).
name
nano-doctor
description
Install health check for nanostack. Diagnoses dependencies, permissions, telemetry config, and pre-V5 detection. Triggers on /nano-doctor. Flags - --json, --offline, --fix.
concurrency
read
summary
Install health check. Ten checks, exit code maps to severity.
estimated_tokens
150

/nano-doctor — Install Health Check

You diagnose the local nanostack install. Ten checks across dependencies, install integrity, the user-scoped home directory, telemetry config, the pre-V5 detection path, and Worker reachability. Output names the category, the check, and a one-line detail. No decorative prose.

This is a diagnostic skill, not a fix-everything skill. Mechanical issues (file permissions, missing chmod +x) repair with --fix. Anything that needs human judgment stays as a warning or failure.

Telemetry preamble

Defensive telemetry init. No-op if telemetry is disabled via NANOSTACK_NO_TELEMETRY=1, ~/.nanostack/.telemetry-disabled, or if the helpers are removed.

bash
_P="$HOME/.claude/skills/nanostack/bin/lib/skill-preamble.sh"
[ -f "$_P" ] && . "$_P" nano-doctor
unset _P

Process

Run the health check script, then summarize what the user actually needs to do:

bash
~/.claude/skills/nanostack/bin/nano-doctor.sh

Optional flags:

  • --json — machine-readable output. Use when invoked by another tool or when piping to jq. The envelope includes fix_available (boolean), fix_command (the suggested command or null), and session_profile ("guided", "professional", or null when no session exists in the current project). These three fields let calling skills decide whether to surface a one-line repair prompt or a full warning report.
  • --offline — skip Worker reachability. Use in air-gapped environments or during CI.
  • --fix — repair mechanical issues. Currently covers: chmod 700 on ~/.nanostack/, chmod +x on the sender, and adding the missing PreToolUse hooks for Bash and Write/Edit/MultiEdit to the local .claude/settings.json. Always backs up the file first as .claude/settings.json.YYYYMMDD-HHMMSS.bak. Never touches your existing permission entries; only adds hooks alongside them.

Interpreting the output

The script prints one line per check, grouped by category. Status values:

  • ok — passed, nothing to do.
  • warn — minor issue. Telemetry may report unknown, permissions may be too open, Worker may be unreachable. None of these block /think, /nano, etc.
  • FAIL — critical issue. A missing dependency or missing skill file. Usage is impaired.

The host category reports the protection level for every detected agent CLI (Claude Code, Cursor, Codex, OpenCode, Gemini). Each row reads a host's declared capability from adapters/<host>.json and cross-checks against this install. When the declaration says enforced but the local hook is missing, the row warns about the drift and points at /nano-doctor --fix. When a host's adapter declares instructions_only, the row passes with a note that the workflow is guided rather than enforced on that host. See reference/host-adapter-schema.md for the full vocabulary.

Exit codes:

ExitMeaning
0Everything checks out
1Warnings only, skill still works
2Critical, needs repair before use

When to recommend --fix

If the report shows warnings for home permissions, sender_executable, bash_guard, or write_guard, re-run with --fix. The --fix mode handles those four mechanically and leaves a backup. For any other warning or failure (missing VERSION, broad Bash(rm:*), broken telemetry tier), surface the detail to the user and let them decide. Do NOT try to fix missing dependencies or rewrite permission lists automatically.

Show full SKILL.md (315 more words)Show less

When to recommend a reinstall

If the skill_dir check fails, the install itself is missing or corrupted. Tell the user:

sh
npx create-nanostack

That reinstalls and preserves the existing ~/.nanostack/ (telemetry config, installation-id, past opt-in choice).

Profile-aware output

Read session_profile from the JSON envelope (or default to professional if no session exists). Branch the user-facing summary by profile:

Guided profile (also: local mode, no git, non-technical user). Do not dump the raw report and do not lead with "hooks/settings JSON". Follow reference/plain-language-contract.md. Translate the outcome into the four-block skeleton:

<!-- guided-output:start -->
Resultado: Nanostack esta sano y listo para acompañarte.

Como verlo:
1. No hace falta hacer nada. Cuando empieces tu proximo trabajo, te aviso si algo necesita atencion.

Que revise:
- Las herramientas que necesita estan instaladas.
- Los permisos del directorio personal son correctos.
- Las protecciones automaticas estan activas.

Pendiente:
- No revise si hay actualizaciones nuevas (corre /nano-update si queres).
<!-- guided-output:end -->

When the report has warnings, replace the result line with: "Encontre algunos avisos menores. ¿Queres que los repare?" and offer --fix only if fix_available is true. When it has failures: "Hay un problema con la instalacion. Lo mas probable es que necesites reinstalar con npx create-nanostack. ¿Queres que te guie?"

Never read the internal category names ("install", "detection") to a Guided user. Those are for the report, not for the conversation.

Professional profile. Print the full report. Lead with the failed/warned rows, name the missing hook or permission directly, and surface fix_command verbatim when fix_available is true. Example: write_guard: warn — check-write.sh missing from .claude/settings.json. Fix: nano-doctor.sh --fix.

Telemetry finalize

Before returning control:

bash
_F="$HOME/.claude/skills/nanostack/bin/lib/skill-finalize.sh"
[ -f "$_F" ] && . "$_F" nano-doctor success
unset _F

Outcome stays success even if the diagnosis found issues; the skill itself ran, the install is what has the problem. Pass error only if the script failed to execute (missing, not readable, etc.).

Gotchas

  • Do not run --fix without reporting what it will change. The user should see the warnings before they are repaired, not after. Default to read-only; --fix is opt-in.
  • Do not treat warn as fail. A missing VERSION file is not a broken install; it just means events report unknown.
  • Do not interpret the output for the user when it is clean. If exit is 0 and there are no warnings, say "healthy" and stop. No need to recite the ten lines.

© garagon, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in doctor of garagon/nanostack.

Open the folder on GitHubat commit 0372aed

Compare with similar skills

Nano Doctor 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.

Nano Doctor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nano Doctor this skillgaragon/nanostack207—~1.6kAutomated safety check: PassApache-2.0
Azure Resource Health Diagnosegithub/awesome-copilot40k1 repos~2.9kAutomated safety check: PassMIT
Diagnosing SDK HealthPostHog/posthog40k—~2.7kAutomated safety check: PassCustom licence
AWS Resource Health Diagnosegithub/awesome-copilot40k—~1.7kAutomated safety check: PassMIT
Diagnosing Experiment HealthPostHog/posthog40k—~5.9kAutomated safety check: PassCustom licence
Dependency Scanningsickn33/agentic-awesome-skills47k1 repos~2.4kAutomated safety check: PassMIT

Similar skills

  • Azure Resource Health Diagnose

    github/awesome-copilot

    Official

    Analyze Azure resource health, diagnose issues from logs and telemetry, and create a remediation plan for identified problems.

    40k GitHub starsUsed in 1 repo~2.9k tokens
    Auto-check passed
  • Diagnosing SDK Health

    PostHog/posthog

    Official

    Diagnoses the health of a project's PostHog SDK integrations — which SDKs are out of date and how to fix them.

    40k GitHub stars~2.7k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • AWS Resource Health Diagnose

    github/awesome-copilot

    Official

    Analyze AWS resource health, diagnose issues from CloudWatch logs and metrics, and create a remediation plan for identified problems.

    40k GitHub stars~1.7k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Official

    Runs diagnostics and a health check on one PostHog experiment: its setup, exposures, results and changes during the run.

    40k GitHub stars~5.9k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Dependency Scanning

    sickn33/agentic-awesome-skills

    Scan package dependencies for known vulnerabilities using Snyk, Dependabot, and OWASP Dependency-Check.

    47k GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check passed
  • Diagnose

    github/awesome-copilot

    Official

    Perform a systematic diagnostic scan of an AI workflow across 5 quality dimensions — prompt quality, context efficiency, tool health, architecture fitness, and safety — producing a scored report…

    40k GitHub starsUsed in 1 repo~1k tokens
    Agent WorkflowsAuto-check passed

More from garagon/nanostack

All 14 skills in this repo
  • Nano

    garagon/nanostack

    A skill your agent uses when starting non-trivial work (touching 3+ files, new features, refactors, bug investigations).

    207 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Nano Run

    garagon/nanostack

    First-time setup and guided sprint. An agent skill from garagon/nanostack.

    207 GitHub stars~3k tokensUpdated 1 mo ago
    Auto-check passed
  • Security

    garagon/nanostack

    Use before shipping to production. An agent skill from garagon/nanostack.

    207 GitHub stars~3.7k tokensUpdated 1 mo ago
    Auto-check: notes
  • Ship

    garagon/nanostack

    A skill your agent uses when code is ready to ship — creates PRs, merges, deploys, and verifies.

    207 GitHub stars~4.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Compound

    garagon/nanostack

    Document what you learned during this sprint. An agent skill from garagon/nanostack.

    207 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Conductor

    garagon/nanostack

    Orchestrate parallel agent sessions through a sprint. An agent skill from garagon/nanostack.

    207 GitHub stars~2.6k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Nano Doctor

What does Nano Doctor do?

Install health check for nanostack. An agent skill from garagon/nanostack. Nano Doctor is an agent skill from garagon/nanostack. Install health check for nanostack.

How do I install Nano Doctor in Claude Code?

Run `npx skills add garagon/nanostack --skill nano-doctor -a claude-code`. Or copy the skill folder (doctor in garagon/nanostack) into .claude/skills/nano-doctor in your project. Claude Code loads it when a task matches its description.

How do I install Nano Doctor in Codex?

Run `npx skills add garagon/nanostack --skill nano-doctor -a codex`. Or copy the skill folder (doctor in garagon/nanostack) into .agents/skills/nano-doctor in your project. Codex loads it when a task matches its description.

Can I use Nano Doctor 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 garagon/nanostack --skill nano-doctor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nano-doctor, .gemini/skills/nano-doctor, .github/skills/nano-doctor and .opencode/skills/nano-doctor in your project.

What does Nano Doctor need to run?

Going by SKILL.md and its folder, Nano Doctor needs the command-line tools its instructions call (npx). Our summary lists: Node.js.

Does Nano Doctor access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Nano Doctor 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 Nano Doctor use?

Nano Doctor is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nano Doctor use?

About 1.6k tokens (SKILL.md is roughly 6.6k 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 Nano Doctor?

Skills that share tags, products or a category with Nano Doctor: Azure Resource Health Diagnose (github/awesome-copilot, 40k stars), Diagnosing SDK Health (PostHog/posthog, 40k stars), AWS Resource Health Diagnose (github/awesome-copilot, 40k stars) and Diagnosing Experiment Health (PostHog/posthog, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nano Doctor?

garagon (a GitHub user) maintains it in garagon/nanostack, which has 207 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on September 10, 2026.

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