Skip to content
Back to skills

Check Health

ASecurity

Collect system and cognitive health metrics. Returns a structured health report with status classifications (ok/warning/critical) for hardware, OS, and cognitive subsystems.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
businesspythonperformance

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill check-health --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Check Health?

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

Security grade badge for Check Health
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bdambrosio-check-health/badge)](https://www.skillsdirectory.com/skills/bdambrosio-check-health)

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-health
type: python
description: "Collect system and cognitive health metrics. Returns a structured health report with status classifications (ok/warning/critical) for hardware, OS, and cognitive subsystems."
schema_hint:
  out: "$variable (optional)"
---

# check-health

Homeostasis monitor. Collects hardware metrics (GPU, CPU, RAM, disk, network, processes) via system-health.sh and cognitive metrics (memory integrity, tool effectiveness, world model health, planning performance) from internal state. Returns a structured health report.

## Input

No required input. Runs all checks automatically.

## Output

Success (`status: "success"`):
- `value`: Human-readable summary string — lists concerns if any, otherwise "All systems nominal."
- The bound Note (`$health`) contains a **JSON object** with these top-level keys:
  - `overall_status`: `"ok"` | `"warning"` | `"critical"`
  - `concerns`: list of human-readable concern strings (empty if all ok)
  - `system`: hardware/OS metrics (cpu, gpu, ram, disk, network, processes)
  - `cognitive`: cognitive metrics (memory, planning, tool_model, world_model, user_interaction)

## Reading the health report in code blocks

```python
health = executor.get_json("$health")
overall = health["overall_status"]       # "ok", "warning", or "critical"
concerns = health["concerns"]            # e.g. ["Plan completion rate low: 45% (last 20 plans)"]
```

**Do NOT** use `health.get("extra", {}).get("overall_status")` — `overall_status` and `concerns`
are at the **top level** of the Note content, not nested under `extra`.

## Behavior

- Calls `src/scripts/system-health.sh` synchronously to collect OS/hardware metrics
- Reads cognitive state from executor, resource_manager, tool_model, and world_model
- Classifies each signal as ok / warning / critical based on thresholds
- Does NOT communicate with the user — returns data for the planner to act on

## Common Workflows

**Scheduled health check (planner decides what to report):**
```json
{"type":"check-health","out":"$health"}
```

The planner reads `$health` via `executor.get_json("$health")` and decides whether to
`say` or `ask` the user based on `overall_status` and `concerns`.

Files in this skill

  • Skill.md2.2 KB
  • tool.py18.4 KB

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.

Comments

Loading comments…

Newsletter

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