Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/mick-gsk/drift/guard-src-driftnpx skills add mick-gsk/drift --skill guard-src-driftgit clone --depth 1 https://github.com/mick-gsk/driftWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mick-gsk/drift/guard-src-drift)<a href="https://agentmods.dev/skills/mick-gsk/drift/guard-src-drift"><img src="https://agentmods.dev/badge/skills/mick-gsk/drift/guard-src-drift.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00088 | $0.01152 |
| Opus 5 | $0.00044 | $0.00576 |
| Sonnet 5 | $0.00018 | $0.00230 |
| Haiku 4.5 | $0.00009 | $0.00115 |
Grade A, and why
guard-src-drift scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Guard: src/drift
src/drift ist der Kern des gesamten Analyzers. Er enthaelt analyzer.py, pipeline.py, cache.py, scoring/, mcp_*.py-Orchestrierung und alle oeffentlichen Einstiegspunkte. Jede Aenderung hier hat breite Auswirkungen auf Scan-Korrektheit, Scoring und Agenten-Verhalten.
Konfidenz: 0.95 — alle vier Hauptsignale treten wiederholt auf.
When To Use
- Du aenderst eine Datei direkt in
src/drift/(nicht in einem Unterpaket) - Du bearbeitest
analyzer.py,pipeline.py,cache.py,api_helpers.py,task_graph.pyoderscoring/ - Ein Drift-Scan meldet AVS, EDS, MDS oder PFS fuer Dateien im Wurzelpaket
- Vor einem Commit der
src/drift/__init__.pyoder oeffentliche Exports aendert
Nicht benutzen fuer Aenderungen ausschliesslich in src/drift/signals/, src/drift/api/ oder src/drift/output/ — dafuer gibt es dedizierte Guards.
Warum dieses Modul kritisch ist
src/drift/ ist das einzige Modul mit allen vier Hochrisiko-Signalen gleichzeitig:
| Signal | Was es bedeutet | Konkretes Risiko hier |
|---|---|---|
| AVS | God-Module / Abstraction Violation | analyzer.py baut Verantwortlichkeiten auf — neue Logik dort zieht AVS an |
| EDS | Unexplained Complexity | drift_map, pipeline.py haben bereits EDS — neue verschraenkte Logik verschlimmert das |
| MDS | Exakte Duplikate | Hilfsfunktionen entstehen oft doppelt wenn man nicht _utils.py oder api_helpers.py nutzt |
| PFS | Pattern Fragmentation | MCP-Handler (mcp_*.py) haben schon inkonsistente Muster — neue Varianten erhoehen PFS |
Core Rules
-
Keine neue Logik direkt in
analyzer.pyoderpipeline.py— diese Dateien sind bereits God-Module-Kandidaten (AVS). Neue Faehigkeiten gehoeren in dedizierte Untermodule oder Klassen. -
Duplikate aktiv vermeiden — vor dem Schreiben einer neuen Hilfsfunktion
grep_searchin_utils.py,api_helpers.py,scoring/undtask_graph.pylaufen lassen. MDS entsteht fast immer dadurch, dass eine existierende Funktion nicht gefunden wurde.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 73 lines · 88 tokens per session scan A c05f37249d3f
guard-src-drift is a skill published in the GitHub repository mick-gsk/drift (14 stars, last pushed 1mo ago), licensed MIT. It adds 88 tokens to every session and 1,152 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
truecourse-hooks
Install, configure, or remove the TrueCourse pre-commit hook.
truecourse-list
List TrueCourse violations found in this repository.
code-quality-review
Run a maintainability and structure review focused on abstraction quality, branching complexity, file growth, canonical ownership, duplication, and refactoring opportunities. Use when the user asks for code quality review, maintainability review, 代码质量审查, 可维护性审查, or comments about whether the change stays easy to…
analytics
/analytics - Agent Usage Analytics.
feature
Full per-feature pipeline: implement → testloop → evaluator challenge → coder feedback → document → commit.
layer-check
Three-Layer Enforcement - Production Reality Gate.