guard-src-drift-output
Skill14 starsChanged 7 months agoMITView on GitHub
Drift-generierter Guard fuer `src/drift/output`. Aktiv bei Signalen: EDS. Konfidenz: 0.95. Verwende diesen Skill wenn du Aenderungen an `src/drift/output` planst oder wiederholte Drift-Findings (EDS) fuer dieses Modul bearbeitest.
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- llms.txtllms.txt
- brainstormingSkill
- drift-adr-workflowSkill
- drift-agent-prompt-authoringSkill
- drift-commit-pushSkill
- drift-dependency-updateSkill
- drift-docs-gap-fixSkill
- drift-evidence-artifact-authoringSkill
- drift-finding-message-authoringSkill
- drift-ground-truth-fixture-developmentSkill
- drift-mcp-repo-ops-usageSkill
- drift-pr-review-loopSkill
- drift-pr-reviewSkill
- drift-releaseSkill
- drift-risk-audit-artifact-updatesSkill
- drift-security-triageSkill
- drift-session-handover-authoringSkill
- drift-signal-development-full-lifecycleSkill
- fix-failing-actionsSkill
- grill-meSkill
- guard-src-drift-apiSkill
- guard-src-drift-commandsSkill
- guard-src-drift-ingestionSkill
- guard-src-drift-signalsSkill
- guard-src-driftSkill
- improve-codebase-architectureSkill
- prd-to-issuesSkill
- self-improving-agentSkill
- simplify-and-hardenSkill
- skill-creatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- tddSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- workspace-automation-orchestratorSkill
- write-a-prdSkill
- writing-plansSkill
The file
Files
Guard: src/drift/output
src/drift/output enthaelt 16 Formatter-Dateien: rich_output.py, json_output.py, markdown_report.py, llm_output.py, badge_svg.py, guided_output.py, grouping.py, u.a. Jede Datei verantwortet genau ein Ausgabeformat. EDS entsteht wenn Formatter anfangen zu berechnen was sie nur rendern sollten.
Konfidenz: 0.95 — das Output-Modul hat den schwersten EDS-Befund: komplexe Verschraenkung zwischen Formatierung, Aggregation und Empfehlungslogik.
When To Use
- Du aenderst wie Findings angezeigt, formatiert oder gerendert werden
- Du fuegest ein neues Ausgabeformat hinzu
- Du aenderst
rich_output.py,json_output.py,markdown_report.pyoderguided_output.py - Drift meldet EDS fuer eine Datei in
src/drift/output/
Warum dieses Modul kritisch ist
EDS tritt hier auf weil Formatter historisch begannen, eigene Aggregate zu berechnen:
guided_output.pykennt Scoring-Logik, die eigentlich inscoring/liegtmarkdown_report.pyaggregiert Finding-Counts, die eigentlich inmodels/stehen solltenrich_output.pyhat Farb-Logik UND Layout-Logik UND Conditional-Logik gemischt
Jede neue Berechnung in einem Formatter verstaerkt diese Verschraenkung.
Core Rules
- Formatter berechnen nicht — sie rendern — ein Formatter erhaelt ein
RepoAnalysis- oderlist[Finding]-Objekt und gibt formattierten Text/Dict/SVG zurueck. Keine eigene Score-Berechnung, kein eigenes Grouping-Erstellen. - Gemeinsame Ausgabe-Logik gehoert in
grouping.py— wenn zwei Formatter dieselbe Sortier- oder Gruppierungslogik brauchen, gehoert sie ingrouping.py. Kein Copy-Paste zwischen Formattern. json_output.pyist Single Source of Truth fuer das JSON-Schema — das Schema indrift.output.schema.jsonmuss mit dem tatsaechlichen Output vonjson_output.pyuebereinstimmen. Aenderungen an einem erfordern Aenderungen am anderen.- Neue Ausgabeformate als eigene Datei — kein neues Format als zusaetzliche Funktion in
rich_output.pyoderjson_output.py. Eine neue Datei wiesarif_output.pyodercsv_output.pyist der richtige Weg. RepoAnalysis.preflightdirekter Zugriff — inmarkdown_report.pyund anderen Formatternanalysis.preflightdirekt nutzen (typed), nichtgetattr(analysis, 'preflight', None). Das Modell hat einen definierten Typ.
Iron Law
Kein Formatter darf
scoring/-Module direkt importieren. Die Scores sind bereits inRepoAnalysisenthalten. Doppeltes Scoring in Formattern erzeugt Inkonsistenz.
Review Checklist
- Neuer Formatter hat eigene Datei, importiert keine
scoring/-Module - Gemeinsame Logik in
grouping.py, nicht inline dupliziert json_output.py-Aenderungen: Schema indrift.output.schema.jsonaktualisiertmarkdown_report.pynutztanalysis.preflightdirekt (keingetattr)drift nudgezeigtsafe_to_commit: true- Keine neuen EDS-Findings in
src/drift/output/
References
- src/drift/output/grouping.py — Gemeinsame Gruppierungs-Logik
- src/drift/output/json_output.py — Kanonisches JSON-Format
- drift.output.schema.json — JSON-Output-Schema
- src/drift/models/_findings.py —
RepoAnalysis-Modell
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.

