test-run
Skill0 starsChanged 23 days agoMITView on GitHub
Test-Generierung + -Ausführung + Coverage-Analyse via test-agent-Subagent. Schlanker userInvocable Slash-Wrapper um den test-agent (analog /security-audit → security-reviewer). Optionaler TDD-Modus (Red-Green-Refactor) + Test-Anti- Pattern-Checkliste. Use when: "Tests schreiben", "Tests ausführen", "Coverage prüfen", "Test-Lücken finden", "test-run", "teste das", "TDD", "test-first".
5 other projects use a version of this.
Adopted by
Most recently taken up by
- gtapps/claude-code-hermittheir own version, first seen Nov 7, 2026
- gtapps/hermitdtheir own version, first seen Nov 7, 2026
- Mahashwetha/Job-search-email-system-claudetheir own version, first seen Nov 5, 2026
- NaveenGumaste/keyskillstheir own version, first seen Oct 13, 2026
- kronus-tech/kronustheir own version, first seen Mar 30, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- gtapps/claude-code-hermit★ 84same name
- gtapps/hermitd★ 84same name
- Mahashwetha/Job-search-email-system-claude★ 12same name
- kronus-tech/kronus★ 4same name
- NaveenGumaste/keyskills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- a11y-checkSkill
- agent-createSkill
- branch-finishSkill
- changelog-updaterSkill
- code-doc-syncSkill
- codex-msgSkill
- codex-reviewSkill
- csoSkill
- db-exploreSkill
- deploy-preflightSkill
- deps-checkSkill
- design-htmlSkill
- design-shotgunSkill
- design-taste-frontendSkill
- finanzberaterSkill
- footstep-eq-tunerSkill
- full-auditSkill
- gateSkill
- gemini-digestSkill
- graphifySkill
- handygame-botSkill
- hook-createSkill
- instructions-drift-checkSkill
- investigateSkill
- leanreaSkill
- legal-deSkill
- loopmodeSkill
- loopstopSkill
- lyraSkill
- office-hoursSkill
- plan-ceo-reviewSkill
- profileSkill
- python-env-auditSkill
- quick-reviewSkill
- reviewSkill
- security-auditSkill
- seoSkill
- site-anatomySkill
- skill-createSkill
- spatial-pipeline-helperSkill
- state-json-validatorSkill
- tool-scoutSkill
- transient-profile-validatorSkill
- ui-critiqueSkill
- wakeup-setupSkill
- websucheSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 54
Impl-Spiegel: Test bildet Implementierungsdetails nach statt Verhalten/Contract zu prüfen (bricht bei jedem Refactor, fängt keine echten …
- Distinctive: line 67
Test-Generierung NICHT überengineeren — Behavior + Edges + Error-Pfade, keine trivialen Getter-Tests.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
test-run — Test-Generierung/-Ausführung via test-agent
Du orchestrierst den test-agent-Subagent für Test-Arbeit. Du selbst schreibst keine
Tests inline — du dispatchst und rahmst das Ergebnis.
Vorgehen
- Scope ermitteln: welches Modul/welche Files? Default = uncommitted Diff bzw. zuletzt
geänderte Files (
git diff --name-only). - Dispatch
test-agent(1 Call) mit: Files-Liste · Aufgabe (generieren / ausführen / Coverage / Lücken finden / TDD-Modus, s.u.) · Test-Runner-Hinweis (Projekt nutzt ggf. standalonepython tests/test_x.py, NICHT pytest — vorher prüfen ob pytest oder standalone). Datei-Reads im Subagent NUR via Read-Tool (kein cat/Get-Content — Security-Flag). - Coverage-Rubrik (Coverage-TYP, kein Quality-Score):
★★★Behavior+Edge+Error ·★★Happy-Path ·★Smoke.★★bei Security/Auth/Persistence = MEDIUM-Lücke. - Ergebnis rahmen: welche Tests generiert/gelaufen, Pass/Fail, Coverage-Lücken je File + Aufwand. Fehlschlagender Test auf geändertem Code = HIGH (Regression).
TDD-Modus (optional) (geerntet aus superpowers:test-driven-development v6.1.1, 2026-07-21)
Auf Wunsch („TDD", „test-first") — bei Bugfixes empfohlen. Kernprinzip: wer den Test nie fehlschlagen sah, weiß nicht ob er das Richtige testet.
- RED: einen minimalen Test fürs gewünschte Verhalten schreiben (ein Behavior, klarer Name, echte Aufrufe statt Mocks wo möglich). Ausführen und Fehlschlag SEHEN — er muss aus dem richtigen Grund fehlschlagen (Feature fehlt, nicht Typo/Import-Error). Test passt sofort? Dann testet er Bestehendes → Test schärfen.
- GREEN: minimale Implementierung, nur genug für diesen Test (kein YAGNI-Ausbau, keine Nebenbei-Refactors). Ausführen: Ziel-Test grün + restliche Suite grün + Output sauber.
- REFACTOR: erst nach grün — Duplikate raus, Namen, Helper extrahieren. Kein neues Verhalten; Tests bleiben grün. Dann nächstes Behavior → zurück zu RED.
Eiserne Regel: Schlägt GREEN fehl → Code fixen, nicht den Test. Einen Test nachträglich an die Implementierung anpassen NUR mit expliziter Begründung (dokumentiert: Test-Annahme war nachweislich falsch) — sonst ist es Whitewashing. Bugfix: jeder Fix beginnt mit einem fehlschlagenden Repro-Test (beweist den Fix + verhindert Regression). Test schwer zu schreiben? Design-Signal, nicht Test-Problem: Interface zu kompliziert oder Code zu gekoppelt (→ Dependency-Injection) — nicht mit Mock-Bergen kompensieren.
Zukunft: TDD-Rollen-Split über zwei Dispatches — test-agent schreibt nur den RED-Test, ein zweiter (Impl-)Dispatch implementiert ohne den Test anfassen zu dürfen. Verhindert strukturell den „Test an Impl anpassen"-Bias; relevant sobald Multi-Agent-Flows hier Standard werden.
Test-Anti-Patterns (Checkliste für test-agent-Output) (geerntet aus superpowers:test-driven-development v6.1.1, 2026-07-21)
Generierte wie bestehende Tests dagegen prüfen — Treffer = Finding im Ergebnis-Rahmen:
- Impl-Spiegel: Test bildet Implementierungsdetails nach statt Verhalten/Contract zu prüfen (bricht bei jedem Refactor, fängt keine echten Bugs).
- Mock-Behavior testen: Assertions auf Mock-Existenz/Mock-Calls statt echtem Verhalten. Mocks isolieren — sie sind nicht das Testobjekt.
- Mock-Overuse: Mock-Setup länger als Test-Logik, oder Test bricht wenn der Mock wegfällt → weniger mocken; Integrationstest mit echten Komponenten ist oft simpler. Nur die langsame/externe Operation mocken — nie die Methode, auf deren Seiteneffekt der Test angewiesen ist.
- Unvollständige Mocks: Mock-Response nur mit den Feldern die der Test gerade kennt → Silent-Fails downstream. Komplette echte Struktur spiegeln.
- Test-only-Methoden in Produktion: Cleanup/Reset-Helper nur für Tests gehören in test-utils, nicht in die Produktionsklasse.
Constraints
- Test-Generierung NICHT überengineeren — Behavior + Edges + Error-Pfade, keine trivialen Getter-Tests.
- Runner verifizieren (standalone vs pytest) bevor „ausführen" — des Nutzers Projekte nutzen teils standalone.
- MEDIUM+-Coverage-Lücken (Security/Auth/Persistence ohne ★★★) → optional Problem-Tracker.
Beispiel-Triggers
/test-run · „schreib Tests für rbac.py" · „lauf die Tests + zeig Coverage-Lücken"
Changelog
- v1.1.0 (2026-07-21): TDD-Modus (Red-Green-Refactor, Test-nicht-an-Impl-anpassen-Regel, Repro-Test-Pflicht bei Bugfix) + Test-Anti-Pattern-Checkliste geerntet aus superpowers:test-driven-development v6.1.1 (Plugin wird deaktiviert).
- v1.0.0 (2026-06-05): Initial — Inventar-Audit G4 (test-agent ohne Slash-Skill).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

