norbertsuski/sdd-toolkit/sdd-health-check

Claude Code and agent skill by norbertsuski/sdd-toolkit

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Health-check an existing project: dependency audit, security scan, test runner detection, CI/CD and missing-config analysis. Writes $CONTEXT_ROOT/foundation/health-check.md with prioritized fixes and an agent-readiness verdict. Trigger phrases: "health check", "audit my project", "is my project healthy", "sprawdź projekt", "audyt projektu". Use AFTER /sdd-stack-assess (brownfield chain), BEFORE agent onboarding.

Install

npx vskill@latest install norbertsuski/sdd-toolkit/sdd-health-check

SKILL.md

The same SKILL.md was published earlier as norbertsuski/sdd-toolkit/sdd-health-check.

Health Check: Audit an Existing Project for Agent-Readiness

This skill is the brownfield counterpart to /sdd-bootstrapper. Where bootstrapper scaffolds a new project and verifies the scaffold, health-check runs the same three execution gates (pre/in/post) as an assessment framework for an existing codebase. It reuses the per-language audit dispatch pattern from bootstrapper's post-scaffold verification but applies it as the opening move, not the closing check.

The skill sits in the brownfield chain: /sdd-shape → /sdd-prd → /sdd-stack-assess → /sdd-health-check. Its single job: audit the project's dependency health, test infrastructure, CI/CD configuration, and configuration completeness, then produce a structured report with prioritized fixes and an agent-readiness verdict.

Before any of that, it resolves `CONTEXT_ROOT` per ../sdd-shape/references/context-resolution.md (discover every context/.sdd.yml in the repo, pick among several roots — pre-selecting the one nearest cwd — and, for a legacy root, pick the <app>). Every artifact path below is relative to that resolved CONTEXT_ROOT.

When $CONTEXT_ROOT/foundation/stack-assessment.md exists (from /sdd-stack-assess), health-check links its findings to the quality-gate gaps identified there. The two reports are complementary: stack-assess evaluates the _stack choice_ against quality gates; health-check evaluates the _project state_ against operational health criteria.

This skill resolves audience per ../sdd-shape/references/plain-mode.md's "Audience resolution": it reads $CONTEXT_ROOT/.sdd.local.yml, else asks+writes there; default technical. When audience: plain, it follows ../sdd-shape/references/plain-mode.md: it runs the same autonomous audit and gives a plain-language summary in place of the technical status block. The health-check.md it writes is unchanged — a developer reads the full report.

Legacy roots. If the resolved CONTEXT_ROOT came from a legacy (app-partitioned) root, health-check still runs exactly as described below — legacy roots remain fully supported for reads and writes. It's worth a one-line note to the user that new context roots are flat (no <app> segment); the legacy layout isn't being deprecated, just superseded for anything scaffolded going forward.

When to use, when to skip

Use when: the user has an existing project and wants to verify its health before starting agent-assisted development. The project directory should contain recognizable project markers (package.json, Cargo.toml, pyproject.toml, go.mod, Gemfile, composer.json, *.csproj, pubspec.yaml).

Skip when: the user is scaffolding a new project — /sdd-bootstrapper runs its own verification slots. Skip also when the user only wants a stack quality-gate assessment without operational health checks — that is /sdd-stack-assess territory.

Relationship to other skills

  • /sdd-stack-assess — upstream. Produces $CONTEXT_ROOT/foundation/stack-assessment.md. Optional input — health-check can run without it, but the report is richer when gaps are linked.
  • /sdd-bootstrapper — greenfield parallel. Same three execution gates, different application (scaffold verification vs existing project audit).
  • /sdd-shape, /sdd-prd — earlier in the brownfield chain. Not direct inputs, but the PRD's scope-of-change context can inform which parts of the project matter most.

Required inputs

  1. An existing codebase in cwd with at least one recognizable project marker.

Optional inputs

  1. $CONTEXT_ROOT/foundation/stack-assessment.md — if present, health-check cross-references quality-gate gaps with operational findings.
  2. $CONTEXT_ROOT/foundation/prd.md — if present and has context_type: brownfield, health-check uses the PRD's ## Scope of Change to prioritize findings relevant to the planned work.

Initial Response

When this skill is invoked:

  1. Resolve `CONTEXT_ROOT` per ../sdd-shape/references/context-resolution.md: run discovery, then either inherit the root from an input path (when the argument is a path-style reference under a discovered root — see step 2 below), or present the pick (pre-selecting the root nearest cwd) and let the user confirm. This sets CONTEXT_ROOT to a flat root or a resolved root/<app> for a legacy root. If no root is discovered, offer to run /sdd-init per the reference's "None found" step, then re-run discovery.
  2. If a path argument was provided (e.g. /sdd-health-check @$CONTEXT_ROOT/foundation/stack-assessment.md), strip a leading @ if present and use the path as the stack-assessment location for this run — and, if the path reveals a CONTEXT_ROOT different from the one resolved in step 1, inherit it from the path instead. The assessment is optional context, not a precondition.
  3. If no argument was provided, check for $CONTEXT_ROOT/foundation/stack-assessment.md. If present, load it for cross-referencing. If absent, proceed without it.

Workflow

Step 0 — Cwd precondition

Detect project markers by executing a shell command:

bash
find . -maxdepth 1 \( -name "package.json" -o -name "Cargo.toml" -o -name "pyproject.toml" -o -name "go.mod" -o -name "Gemfile" -o -name "composer.json" -o -name "*.csproj" -o -name "pubspec.yaml" \) 2>/dev/null

If no markers found, print:

No project markers found in the current directory. /sdd-health-check requires an existing codebase.
If you're starting from scratch, use /sdd-bootstrapper after /sdd-tech-stack-selector instead.

Then STOP.

If markers are found, detect the language family from the marker (same detection logic as /sdd-stack-assess Step 1) and proceed to Step 1.

Step 1 — Pre-check (dependency audit + lockfile + security)

Execution gate: pre-check. Before reading or changing anything in the project, audit the dependency tree. This maps to the bootstrapper's pre-execution gate: "what is the state of the hand-off before we act on it?"

1a. Lockfile presence

Check for a lockfile matching the detected language family:

Language familyExpected lockfiles
JS/TSpackage-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb
Pythonpoetry.lock, uv.lock, Pipfile.lock, requirements.txt (weak — not a true lock)
RustCargo.lock
Gogo.sum
RubyGemfile.lock
PHPcomposer.lock
.NETpackages.lock.json (NuGet)
Dartpubspec.lock

If no lockfile is found, flag as a finding:

⚠ No lockfile detected. Dependency versions are not pinned — builds are non-reproducible
and the AI assistant cannot reason about exact dependency state.
Fix: run <package-manager lock command> to generate a lockfile.
1b. Dependency audit

Dispatch to the ecosystem's audit tool by language family. The dispatch table matches the bootstrapper's audit_commands pattern:

Language familyAudit commandNotes
JS/TSnpm audit --jsonExits non-zero when vulnerabilities exist — not a halt condition
Pythonpip-audit --format jsonFalls back to skip if pip-audit not installed
Rustcargo audit --jsonFalls back to skip if cargo-audit not installed
Gogovulncheck -json ./...Falls back to skip if govulncheck not installed
Rubybundle audit check --updateHuman-readable output, parse line-by-line
PHPcomposer audit --format jsonRequires Composer 2.4+
.NETdotnet list package --vulnerable --include-transitiveHuman-readable, parse for severity markers
Java, Dart(skip)No built-in audit tool; note the skip and recommend external tools

Run the resolved command from cwd using a shell command. Capture stdout, stderr, and exit code. The audit tool's exit code is informational — health-check does NOT halt on a non-zero audit exit.

Severity tiering (same as bootstrapper's post-scaffold verification):

  • CRITICAL (CVSS >= 9.0) — surface inline
  • HIGH (CVSS 7.0–8.9) — surface inline
  • MODERATE (CVSS 4.0–6.9) — log only
  • LOW (CVSS < 4.0) — log only

For tools with native severity (npm-audit, cargo-audit, govulncheck), use the tool's label. For tools without native severity, default to MODERATE unless the advisory explicitly names CRITICAL or HIGH.

When the tool distinguishes direct from transitive dependencies, surface the breakdown. Direct findings are immediately actionable; transitive findings are advisory.

1c. Outdated dependencies check

If the language family supports it, run a quick staleness check:

Language familyCommandWhat it shows
JS/TSnpm outdated --jsonCurrent vs wanted vs latest for each package
Pythonpip list --outdated --format jsonCurrent vs latest
Rustcargo outdated --root-deps-only (if installed)Outdated direct deps
Rubybundle outdated --only-explicitOutdated direct gems

This check is informational — surface major version gaps and packages more than 2 major versions behind. Do not report every minor version bump.

Failure mode for all 1a–1c steps: WARN-AND-CONTINUE. If a tool is not installed, log the skip and proceed. If a network call fails, log the partial output and proceed. Never halt on a pre-check finding.

Echo one summary line after pre-check completes:

Pre-check: <lockfile status>. Audit: <C> CRITICAL, <H> HIGH, <M> MODERATE, <L> LOW.
Outdated: <N> packages with major version gaps.
Step 2 — In-check (test runner, CI/CD, configuration)

Execution gate: in-check. Read-only analysis of the project's test infrastructure, CI/CD pipeline, and configuration completeness. This maps to the bootstrapper's in-execution gate: "what does the execution environment look like?"

2a. Test runner detection and health

Detect the test runner from configuration files:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/norbertsuski/sdd-toolkit/sdd-health-check/badge)](https://verified-skill.com/skills/norbertsuski/sdd-toolkit/sdd-health-check)

Something wrong with this skill or its page? Tell us.