Use when the user asks to run the project's code-health GitHub workflow (`git.codeHealthWorkflow` in `.agent-kit/config.json`) from the terminal; local gates are check-all. `watch` follows the run to its end; `--full` forces a full-project scan.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Run Code Health?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ivan-ii-tech-digital-run-code-health)
---
name: run-code-health
description: Use when the user asks to run the project's code-health GitHub workflow (`git.codeHealthWorkflow` in `.agent-kit/config.json`) from the terminal; local gates are check-all. `watch` follows the run to its end; `--full` forces a full-project scan.
model: haiku
argument-hint: "[watch] [--full]"
---
Tokens in `$ARGUMENTS` (order-independent): `watch`, `--full`. Any other token → error listing these two and stop.
0. Run `ak-forge which | cut -d' ' -f1`. `gitlab` → print `agent-kit: run-code-health is not available on GitLab yet` and stop.
Then read the workflow (name or file name) from the config: run `ak-git-sync --print-config` (it changes nothing) and take its `code_health=` value.
Empty → print `agent-kit: no code-health workflow configured` and stop. Call the value `<WF>`.
1. Dispatch: `ak-forge workflow run "<WF>"` (add `-f full_scan=true` when `--full`; the workflow must declare that input). It prints `{id,url}` of the run (when gh prints no run URL it waits up to 60 seconds for the run to appear). Any non-zero exit → surface its error verbatim and stop. Print `Run #<id>: <url>`.
2. Only when `watch`: run `ak-forge run watch <id>` with `run_in_background`, then print `Run #<id> succeeded|FAILED. <url>` from its exit status (0 succeeded).
Runs against the default branch only; never modifies local files, commits, or pushes.
No such workflow in the repo yet? The kit ships a template at
`${CLAUDE_PLUGIN_ROOT}/templates/workflows/code-health.yml`; setup guide: `docs/code-health.md`
in the agent-kit repo.