Skip to content
Back to skills

Check

DSecurity

Static gate for a Nix repo. Per-dialect shell checks plus flake evaluation, building nothing.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
ai-agentsrustshellbash

Security analysis

D50/100
  • criticalPipes output to a shell interpreter
  • criticalPipes output to a shell interpreter

Pro shows the line behind each finding and how to fix it

Scanned November 7, 2026

npx -y skills add samuel-stidham/smithy --skill check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Check
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/samuel-stidham-check-smithy/badge)](https://www.skillsdirectory.com/skills/samuel-stidham-check-smithy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: check
description: Static gate for a Nix repo. Per-dialect shell checks plus flake evaluation, building nothing.
disable-model-invocation: true
---

# /anvil:check

Run the static gate over a Nix-defined environment: every shell file
checked with the right parser for its dialect, then the configuration
evaluated. Nothing is built and nothing changes state.

## Scope

The repo is in scope when it has a `flake.nix` declaring
`homeConfigurations` or `nixosConfigurations`, a `configuration.nix`,
a `devenv.nix`, or a `scripts/` tree of shell files. Absent all of
those, say the repo is out of scope and stop.

## Discover

Find every shell file the repo owns, including scripts embedded in
Nix through `writeShellApplication`. Detect each file's dialect from
its shebang, extension, and location (a `fish/` tree is fish). Detect
the interactive shell the configuration declares
(`programs.fish.enable`, `programs.zsh.enable`, a `fish/` or `zsh/`
tree, shebangs, `$SHELL` as a runtime fallback). Never ask the owner
and never run one tool over everything.

## Gates per dialect

Pick the gate by dialect. The `shell-dialects` skill holds the
differences and the reason this table exists: shellcheck cannot parse
fish, and trusting its false errors on correct fish breaks working
shell.

| Dialect | Gate |
| --- | --- |
| bash, sh | `shellcheck -x` plus `bash -n` |
| fish | `fish -n`, plus `fish_indent --check` when the repo uses it |
| zsh | `zsh -n` |

Then evaluate: `nix flake check` for a flake, an evaluation of the
configuration otherwise. Build nothing.

## Report

Rank findings by whether they fail loudly or silently. A crash gets
fixed. A quiet skip gets trusted for a year, so it outranks the
crash. Name every file you could not reach and say so plainly.
Silent partial coverage reads as a clean bill of health, which is
worse than no run at all. A fish tree excluded because the only
configured linter cannot read it is the exact shape of that failure.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.