health

health is a command for Claude Code from pwdev-solucoes/pwdev-claude-marketplace. It costs 27 tokens per session (2,420 once invoked), scanned A, original, Apache-2.0.

A command that checks a project's overall health across code, tests, dependencies, security, documentation, and its .planning workspace. With --deps, it runs only the dependency audit.

In plain words
What is it for?
Use /pwdev-code:health for a full project check, or /pwdev-code:health --deps when you only need to review dependencies.
Why use it?
It collects common project checks in one diagnostic, helping identify missing setup, dependency problems, test gaps, and other maintenance issues.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the pwdev-code plugin — 2 skills, 22 commands, 8 agents, 6 hooks shipped together

Good fit Use /pwdev-code:health for a full project check, or /pwdev-code:health --deps when you only need to review dependencies.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add pwdev-solucoes/pwdev-claude-marketplace
Claude Code
/plugin install pwdev-code

Made for: Claude Code.

Or install pwdev-code, the plugin that ships this one along with the rest of its 2 skills, 22 commands, 8 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for health

README.md
[![agentmods](https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/health/github.svg)](https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/health)
Your own site
<a href="https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/health"><img src="https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/health/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for health

Your own site · 80×15
<a href="https://agentmods.dev/commands/pwdev-solucoes/pwdev-claude-marketplace/health"><img src="https://agentmods.dev/badge/commands/pwdev-solucoes/pwdev-claude-marketplace/health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.02420
Opus 5 $0.00014 $0.01210
Sonnet 5 $0.00005 $0.00484
Haiku 4.5 $0.00003 $0.00242

Measured 11d ago against content hash a749b84a4900, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

health scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/pwdev-code/commands/health.md · 244 lines

How it starts

The opening of the file, as written. The whole thing — 244 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/pwdev-code:health — Project Health Diagnostics

Role

Utility agent that runs a comprehensive assessment of project health: code, tests, dependencies, security, documentation, and framework workspace (.planning/).

When called with --deps, runs a focused dependency audit instead of the full health check.

Input

$ARGUMENTS: Optional flags.

  • --deps → run only the dependency audit (STEP 2.5 + STEP 2.6)
  • empty → run full health check

Procedure

STEP 0 — Language

Follow ${CLAUDE_PLUGIN_ROOT}/references/language.md (resolve lang from .planning/config.json; ask only if unset).

STEP 0.1 — Framework Workspace Validation

Validates the PROJECT's pwdev-code workspace (the plugin itself is validated with claude plugin validate, not here).

echo "=== WORKSPACE VALIDATION ==="
ERRORS=0

# .planning/ workspace
[ -d ".planning" ] || { echo "❌ Missing: .planning/ (run /pwdev-code:init)"; ERRORS=$((ERRORS+1)); }
[ -f ".planning/state.md" ] && echo "✅ Found: .planning/state.md" || echo "⚠️ Missing: .planning/state.md"

# config.json required fields
if [ -f ".planning/config.json" ]; then
  echo "✅ Found: .planning/config.json"
  for field in lang model_profile audit version; do
    grep -q "\"$field\"" .planning/config.json || echo "⚠️ Missing field in config.json: $field"
  done
else
  echo "❌ Missing: .planning/config.json (run /pwdev-code:init)"
  ERRORS=$((ERRORS+1))
fi

# Project skills (optional)
if [ -d ".claude/skills" ]; then
  for skill_dir in .claude/skills/*/; do
    [ -d "$skill_dir" ] || continue
    skill_name=$(basename "$skill_dir")
    if [ -f "$skill_dir/SKILL.md" ]; then
      echo "✅ Skill: $skill_name"
    else
      echo "❌ Skill: $skill_name (missing SKILL.md)"
      ERRORS=$((ERRORS+1))
    fi
  done
fi

# CLAUDE.md must exist
[ -f "CLAUDE.md" ] && echo "✅ Found: CLAUDE.md" || echo "⚠️ Missing: CLAUDE.md"

# .mcp.json at root (optional)
[ -f ".mcp.json" ] && echo "✅ Found: .mcp.json" || echo "ℹ️ Optional: .mcp.json not found"

# Memory index consistency (if memory exists)
if [ -f ".planning/memory/MEMORY.md" ]; then
  grep -o '(memory/[^)]*)' .planning/memory/MEMORY.md | tr -d '()' | while read -r m; do
    [ -f ".planning/$m" ] || echo "⚠️ Memory index points to missing file: $m"
  done
  for f in .planning/memory/*.md; do
    [ "$(basename "$f")" = "MEMORY.md" ] && continue
    if grep -q "status: active" "$f" 2>/dev/null; then
      grep -q "$(basename "$f")" .planning/memory/MEMORY.md || echo "⚠️ Active memory not indexed: $(basename "$f")"
    fi
  done
fi

# Audit DB integrity (when enabled)
if grep -q '"audit"[[:space:]]*:[[:space:]]*true' .planning/config.json 2>/dev/null; then
  if [ -f ".planning/pwdev-audit.db" ] && command -v sqlite3 >/dev/null 2>&1; then
    sqlite3 .planning/pwdev-audit.db "PRAGMA integrity_check;" 2>/dev/null | head -1
  else
    echo "⚠️ Audit enabled but DB or sqlite3 missing"
  fi
fi

echo "=== STRUCTURE ERRORS: $ERRORS ==="

Read the full file on GitHub · 244 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 244 lines · 27 tokens per session scan A a749b84a4900

Subscribe to this mod's changes

health is a command published in the GitHub repository pwdev-solucoes/pwdev-claude-marketplace (2 stars, last pushed today), licensed Apache-2.0. It adds 27 tokens to every session and 2,420 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.