dos-enforce-tune

dos-enforce-tune is a skill for Claude Code, Codex from Bilal140202/the-lord-of-the-skills. It costs 117 tokens per session (3,017 once invoked), scanned A, a copy of dos-enforce-tune, MIT.

A self-tuning loop for adjusting DOS enforcement policies from recorded decisions and their outcomes.

In plain words
What is it for?
Use it to test candidate policy changes in an isolated worktree and keep changes only when the project's checks and outcome measurements show improvement.
Why use it?
It helps reduce overly aggressive denials while preserving denials that correctly stopped unwanted actions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Codex.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../_et-candidate HEAD.

Good fit Use it to test candidate policy changes in an isolated worktree and keep changes only when the project's checks and outcome measurements show improvement.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Bilal140202/the-lord-of-the-skills
agentmods
npx agentmods add skills/bilal140202/the-lord-of-the-skills/anthony-chaudhary__dos-kernel

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for dos-enforce-tune

README.md
[![agentmods](https://agentmods.dev/badge/skills/bilal140202/the-lord-of-the-skills/anthony-chaudhary__dos-kernel/github.svg)](https://agentmods.dev/skills/bilal140202/the-lord-of-the-skills/anthony-chaudhary__dos-kernel)
Your own site
<a href="https://agentmods.dev/skills/bilal140202/the-lord-of-the-skills/anthony-chaudhary__dos-kernel"><img src="https://agentmods.dev/badge/skills/bilal140202/the-lord-of-the-skills/anthony-chaudhary__dos-kernel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dos-enforce-tune

Your own site · 80×15
<a href="https://agentmods.dev/skills/bilal140202/the-lord-of-the-skills/anthony-chaudhary__dos-kernel"><img src="https://agentmods.dev/badge/skills/bilal140202/the-lord-of-the-skills/anthony-chaudhary__dos-kernel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,017 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00117 $0.03017
Opus 5 $0.00059 $0.01509
Sonnet 5 $0.00023 $0.00603
Haiku 4.5 $0.00012 $0.00302

Measured 8d ago against content hash c7669e683306, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

dos-enforce-tune 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 8d 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.

Origin

This is a copy

94% identical to dos-enforce-tune — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/gondor/claude-code/anthony-chaudhary__dos-kernel/SKILL.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dos-enforce-tune — the loop where DOS tunes its OWN enforcement, from outcomes

DOS is a sound PDP with no feedback from the PEP. The kernel decides an intervention verdict, a host acts on it, the act is journaled — but nothing fed whether the act was right back into the policy that drove it. This loop closes that. It learns the enforcement thresholds from the journal's own ground truth: a deny the operator later overrode is a false-DENY (too aggressive); a deny that stood is a held catch. The loop tunes the policy to drive false-DENIES down while holding the catches — and keeps an edit only if the kernel, not the agent, measures that it helped.

This is [[dos-self-improve]] pointed at the enforcement policy, with one twist: the metric is not a generic count, it is the docs/143 net_task_delta of the policy over labelled cases the loop did not author.

A self-tuner's fatal failure mode is grading its own homework — relabelling its outcomes so its policy edit looks good. dos enforce-tune closes that hole the same way dos improve does: the metric is computed BY THE KERNEL from cases the loop did not author (a frozen corpus ∪ the live enforcement journal). The loop cannot keep a policy edit by claiming it is better. The only path to KEEP is to actually move net_task_delta.

What the kernel decides vs. what you do

Step Who What
Read the outcomes dos enforce-outcomes the live false-DENY / held-catch ledger — what to tune toward
Propose ONE policy-knob edit YOU (a subagent) the untrusted step — edit [intervention_policy] / [intervention] ranks / [improve] in a worktree
Measure dos enforce-tune score the candidate policy's net_task_delta over the corpus, on the worktree
Keep / revert / escalate dos enforce-tune (rides dos improve) the kernel's typed verdict over env-authored facts — NOT your opinion
Merge / discard / escalate YOU (or the autonomous cadence) carry out the kernel's verdict

Read the full file on GitHub · 214 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 8d ago First seen · 214 lines · 117 tokens per session scan A c7669e683306

Subscribe to this mod's changes

dos-enforce-tune is a skill published in the GitHub repository Bilal140202/the-lord-of-the-skills (4 stars, last pushed 6d ago), licensed MIT. It adds 117 tokens to every session and 3,017 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to dos-enforce-tune, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

autoresearch

Autonomously optimize any Claude Code skill by running it repeatedly, scoring outputs against binary evals, mutating the prompt, and keeping improvements. Based on Karpathy's autoresearch methodology. Use when: optimize this skill, improve this skill, run autoresearch on, make this skill better, self-improve skill…

adriannoes/awesome-agentic-ai · 100 tokens

hunt-race-condition

Hunting skill for race condition vulnerabilities. Built from 3 public bug bounty reports. Use when hunting race condition on any target.

adriannoes/awesome-agentic-ai · 31 tokens

browserstack

Run tests on BrowserStack. Use when user mentions "browserstack", "cross-browser", "cloud testing", "browser matrix", "test on safari", "test on firefox", or "browser compatibility".

adriannoes/awesome-agentic-ai · 44 tokens

generate

Generate Playwright tests. Use when user says "write tests", "generate tests", "add tests for", "test this component", "e2e test", "create test for", "test this page", or "test this feature".

adriannoes/awesome-agentic-ai · 51 tokens

init

Set up Playwright in a project. Use when user says "set up playwright", "add e2e tests", "configure playwright", "testing setup", "init playwright", or "add test infrastructure".

adriannoes/awesome-agentic-ai · 44 tokens

playwright-pro

Production-grade Playwright testing toolkit. Use when the user mentions Playwright tests, end-to-end testing, browser automation, fixing flaky tests, test migration, CI/CD testing, or test suites. Generate tests, fix flaky failures, migrate from Cypress/Selenium, sync with TestRail, run on BrowserStack. 55 templates…

adriannoes/awesome-agentic-ai · 77 tokens