mk:agent-detector

mk:agent-detector is a skill for Claude Code from ngocsangyem/MeowKit. It costs 21 tokens per session (1,194 once invoked), scanned A, original, MIT.

An automatic task-routing helper that identifies the type and difficulty of a development request. It selects an appropriate agent, model level, and workflow policy.

In plain words
What is it for?
Use it to route tasks based on their subject, technology, project files, and expected complexity.
Why use it?
It reduces the need to choose an agent or complexity level by hand for every request. It also performs an initial safety check before work begins.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it to route tasks based on their subject, technology, project files, and expected complexity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ngocsangyem/meowkit/agent-detector
Install

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.

Any agent
npx skills add ngocsangyem/MeowKit --skill agent-detector
Clone the repo
git clone --depth 1 https://github.com/ngocsangyem/MeowKit

Made for: Claude Code.

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 mk:agent-detector

README.md
[![agentmods](https://agentmods.dev/badge/skills/ngocsangyem/meowkit/agent-detector/github.svg)](https://agentmods.dev/skills/ngocsangyem/meowkit/agent-detector)
Your own site
<a href="https://agentmods.dev/skills/ngocsangyem/meowkit/agent-detector"><img src="https://agentmods.dev/badge/skills/ngocsangyem/meowkit/agent-detector/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 mk:agent-detector

Your own site · 80×15
<a href="https://agentmods.dev/skills/ngocsangyem/meowkit/agent-detector"><img src="https://agentmods.dev/badge/skills/ngocsangyem/meowkit/agent-detector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,194 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 original No closer match found 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.00021 $0.01194
Opus 5.5 $0.00008 $0.00478
Sonnet 5.5 $0.00004 $0.00239
Haiku 4.5 $0.00002 $0.00119

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

Security

Grade A, and why

mk:agent-detector 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.

The scan reads SKILL.md. This mod also ships 4 executable files (eval/fixtures/auth-reset/src/auth.js, eval/fixtures/auth-reset/test/auth.test.js, eval/fixtures/auth-typo/src/auth.js, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/agent-detector/SKILL.md · 84 lines

How it starts

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

Agent Detector

Once per task, picks the specialist agent to own it, the complexity tier (TRIVIAL, STANDARD or COMPLEX) and any risk flags, and says so in one line. It is offered on every message; detect when a task starts or its scope changes, and otherwise reuse the result already given for the current task: a question, a one-line edit or a follow-up inside the same task needs no new detection. The domain-to-complexity CSV match is mk:scale-routing; this skill adds the agent and the horizontal risk flags.

Workflow

  1. Safety baseline precheck (do this first). Before any other step, scan the context window for the cached-sentinel marker emitted by safety-sentinel-inject.cjs:

    ## Safety baseline: verified (cached, session <id>)
    

    If the marker IS present (turns 2..N of the same session): emit Safety baseline: verified (cached) and SKIP the Read loop below. The rules remain in context from the inner harness's .claude/rules/ auto-load; the sentinel only suppresses redundant re-reads.

    If the marker is ABSENT (turn 1 of a new session, OR MEOWKIT_SKIP_SAFETY_SENTINEL=off): Read each of the always-on safety/baseline rules — exactly the files in .claude/rules/, no more:

    • .claude/rules/meowkit-core.md
    • .claude/rules/security-rules.md
    • .claude/rules/injection-rules.md
    • .claude/rules/core-behaviors.md
    • .claude/rules/development-rules.md
    • .claude/rules/agent-conduct.md

    If any Read returns "file does not exist" or equivalent, ABORT IMMEDIATELY with the exact message:

    SAFETY BASELINE INCOMPLETE: rule <name> not found among the always-on rules
    Refusing to route any task. Restore the rule (git checkout / the installer) before retrying.
    

    Do NOT proceed to detection. Do NOT route to any agent. Those rules are the deterministic baseline; their absence indicates either repo corruption or a partial install. Replaces the unverified directory-auto-load assumption with a positive existence check.

Read the full file on GitHub · 84 lines

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 Changed · -46 lines · -4 tokens per session e4710db6e413
  2. 10d ago Changed 65392b15ffbe
  3. 13d ago Changed · -6 tokens per session 74ca39764bc0
  4. 15d ago Changed · -1 lines 4d18a64d5bbc
  5. 20d ago Changed · +5 lines · -20 tokens per session 2d1366c76fd8
  6. 2mo ago First seen · 126 lines · 51 tokens per session scan A 56fd0d42001f

Subscribe to this mod's changes

mk:agent-detector is a skill published in the GitHub repository ngocsangyem/MeowKit (17 stars, last pushed yesterday), licensed MIT. It adds 21 tokens to every session and 1,194 once invoked, about $0.0001 per session on Opus 5.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-09-03.

Related

mk:agent-detector compared with skills from other repositories

mk:agent-detector next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mk:agent-detectorngocsangyem/MeowKitSkill17yesterdayMITA21Claude Code
blueprint-work-orderlaurigates/claude-pluginsSkill60todayMITA39Claude Code
document-detectionlaurigates/claude-pluginsSkill60todayMITA37Claude Code
configure-formattinglaurigates/claude-pluginsSkill60todayMITA49Claude Code
api-testinglaurigates/claude-pluginsSkill60todayMITA45Claude Code
adr-relationshipslaurigates/claude-pluginsSkill60todayMITA29Claude Code
blueprint-ruleslaurigates/claude-pluginsSkill60todayMITA48Claude Code