Skip to content
Back to skills

Audit Green Red

ASecurity

Audit a Hypersomnia feature with an HTML report where every finding is green or red by how much complexity its fix adds, optionally fixing the green ones right away. Use only when the prompt says "z raportem złożonościowym" (or "z raportem złożoności", "zielony/czerwony raport") and the audit is the session's first task, in a fresh session. Inside a longer working session use `audit-rounds` instead.

  • 1,733 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
development

Security analysis

A100/100

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

Scanned November 19, 2026

npx -y skills add TeamHypersomnia/Hypersomnia --skill audit-green-red --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit Green Red?

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

Security grade badge for Audit Green Red
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/teamhypersomnia-audit-green-red/badge)](https://www.skillsdirectory.com/skills/teamhypersomnia-audit-green-red)

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: audit-green-red
description: Audit a Hypersomnia feature with an HTML report where every finding is green or red by how much complexity its fix adds, optionally fixing the green ones right away. Use only when the prompt says "z raportem złożonościowym" (or "z raportem złożoności", "zielony/czerwony raport") and the audit is the session's first task, in a fresh session. Inside a longer working session use `audit-rounds` instead.
---

# Audit with a complexity report

The audit itself is `audit-gameplay`: read `.claude/skills/audit-gameplay/SKILL.md` and follow its Scoping and
Checklist (one `auditor` agent per system, in parallel - launched without asking about the token cost: the audit
prompt is the user's yes, their decision against the global rule). This skill changes only two things: how each finding is
colored, and whether green findings get fixed.

## Green or red

Color decides the fix, not the bug. A crash with a one-line fix is green; a nit whose fix adds a flag is red.

- **Green** - the fix keeps or removes complexity: a one-liner, a guard, a wrong constant, deleting dead or duplicated
  code, moving code to where it belongs, deleting a comment. The intended behavior is obvious.
- **Red** - the fix adds complexity (a new field, map, flag, setting, second code path, new file, new sync), or it
  is a product/UX choice, or intended behavior is unclear (severity `decision`), or it changes gameplay balance or
  what players see.

When a red finding has a cheaper variant that cuts something instead, write that variant into the fix field.

## Fixing

- Default: report only, nothing edited. Every item gets state `todo`.
- When the prompt also says **"oczywiste fixy rób sam"** (or "zielone popraw sam"): fix every green finding,
  compile-check each edited file with `build_file`, then one full `build` at the end. Mark it `fixed`.
  Red ones stay `todo` for the user. Do not commit.
  If a green fix turns out bigger than it looked while fixing, revert it and recolor it red.

## Report

Copy `report_template.html` next to this file; keep its CSS and script, replace only the data.
Same format as the `audit-gameplay` template, with two extra fields per item:

`[color, severity, title, where, problem, fix, state]` - `color` is `"g"` or `"r"`, `state` is `"fixed"` or `"todo"`.
For `fixed` items, the fix field says what was changed.

Also set the title, the header line (date, scope) and a new `DONE_KEY` per audit. There is no `TOP`: the first tab,
"Czerwone", lists every red finding by itself. The script numbers the findings: the red ones 1 to R through the systems
in order, then the green ones - so the reds always read 1, 2, 3... with no gaps, and one number names one finding.
The chat summary uses the same numbers. Order the items in each system most severe first.

A red finding the user has settled stays red with its state - `fixed` when done, `todo` while open; when listing
the findings the user hasn't answered yet, publish a report of just those (they get 1..x again).

Write it in the user's language. Save it to `~/Downloads/audit-<topic>.html` and open it (`firefox <path> &`).
In the chat: counts (green fixed / red to decide) and the red findings one line each.

Files in this skill

  • SKILL.md3.2 KB
  • report_template.html9.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.

View all in development →

Comments

Loading comments…

Newsletter

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