write-detection-rule SKILL.md skillF
write-detection-rule from akasecurity/ai-tc is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add akasecurity/ai-tc/write-detection-rule@git:20261014.d3788b8Pins git:20261014.d3788b8 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- F, 13 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- akasecurity/ai-tc
- Path
skills/write-detection-rule/SKILL.md- Versions recorded
- 14
- Latest version
- git:20261014.d3788b8, committed Oct 14, 2026
- First version recorded
- Jul 29, 2026
- Size
- 15,001 bytes
- Repository stars
- 17
- License
- Apache-2.0
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Skill: write-detection-rule
This skill teaches Claude Code how to write detection rules for the AI Traffic Control rule engine. Read this before creating or modifying anything in `rules/`. The full rule schema is `Rule` in `packages/schema/src/zod/rule.ts` — it is the source of truth for every field below.
## Rule file format (specVersion 1)
Every rule is a JSON file named `<rule-name>.json` inside a pack directory:
```json
{
"specVersion": 1,
"id": "<pack-id>/<rule-name>",
"name": "Human-readable name",
"category": "pii|financial|secret|phi|code_context|code_flaw|custom|config",
"severity": "critical|high|medium|low",
"matcher": { ... },
"postValidators": ["luhn"],
"examples": ["example matching string"]
}
```
### A misspelled key fails the parse — it is not dropped
Every object in the rule tree is **strict**: an unrecognized key is a parse error naming the key,
at whatever depth it sits. This holds for the rule itself, for `matcher`, `appliesTo`,
`requiresNearby`, the object form of a `postValidators` entry, and for fixture files including each
entry of `expectedSpans`.
…Read the whole file at its exact version.
How to install
mdr add akasecurity/ai-tc/write-detection-rule@sha256:9dd92b07e27c5231The line at the top of this page pins the label git:20261014.d3788b8, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_pu5eto52znh4yh2t)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 14 versions of this file, between Jul 29, 2026 and Oct 14, 2026, about one every 6 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261014.d3788b8 latest | 2026-10-14 | d3788b8 | 15,001 B | F | view · diff |
| git:20261013.ee419c0 | 2026-10-13 | ee419c0 | 14,326 B | F | view · diff |
| git:20261007.566a463 | 2026-10-07 | 566a463 | 14,476 B | F | view · diff |
| git:20261007.d1ce9aa | 2026-10-07 | d1ce9aa | 14,609 B | F | view · diff |
| git:20261006.a08e365 | 2026-10-06 | a08e365 | 13,934 B | F | view · diff |
| git:20261006.6dea3a1 | 2026-10-06 | 6dea3a1 | 13,918 B | F | view · diff |
| git:20261006.d45ae63 | 2026-10-06 | d45ae63 | 13,848 B | F | view · diff |
| git:20261004.99b26ca | 2026-10-04 | 99b26ca | 12,858 B | F | view · diff |
| git:20261001.0586802 | 2026-10-01 | 0586802 | 12,106 B | F | view · diff |
| git:20260815.621f811 | 2026-08-15 | 621f811 | 11,857 B | F | view · diff |
| git:20260813.f32fc71 | 2026-08-13 | f32fc71 | 11,860 B | F | view · diff |
| git:20260813.efbf809 | 2026-08-13 | efbf809 | 11,666 B | F | view · diff |
| git:20260813.ded45bd | 2026-08-13 | ded45bd | 9,774 B | F | view · diff |
| git:20260729.9d0d704 | 2026-07-29 | 9d0d704 | 9,580 B | F | view |
Audit of the latest version
- fail: Frontmatter block present
- fail: Frontmatter declares a name
- fail: Frontmatter declares a description
- FAIL, critical: No credential-shaped string (matched: AKIAIOSFODNN7EXAMPLE)
- pass: Size between 200 bytes and 200 KB (15001 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
akasecurity/ai-tc · 17 stars · license Apache-2.0 · pushed 2026-11-07 · branch dev
API
GET https://markdownregistry.com/api/v1/artifacts/art_pu5eto52znh4yh2t GET https://markdownregistry.com/api/v1/resolve?ref=akasecurity/ai-tc/write-detection-rule GET https://markdownregistry.com/api/v1/blob/9dd92b07e27c5231b8ac512ab224cc0138b50ce821898fffbe516f3cd1a16fb8
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.