# Agent Skill Card & Preflight Router for Coding Agents

> Stops Claude Code, Cursor or Codex from jumping straight into edits: routes each task (bugfix, feature, PR, UI, explore), prints a Skill Card, and fills a PREFLIGHT with real results (memory, code search, git status, risk, test baseline) before the first edit or commit.

Agent Skill Card & Preflight Router for Coding Agents is a free AI agent skill on Agensi by Louis Philip, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Louis Philip](https://www.agensi.io/creators/louis-philip)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agent-skill-card-preflight-router-for-coding-agents
- Tags: ai-agents, code-review, llm-ops, automation, workflow-optimization

## About this skill

### The problem

Coding agents are fast, but on small tasks they tend to skip the boring part: they edit before checking `git status`, guess a root cause instead of proving it, commit without a review, or load random skills because a task "feels big". You only find out after the diff.

### What this skill does

Every real task goes through three visible steps:

1. **Route** — classify the request into one playbook: `feature`, `bugfix`, `pr`, `ui`, `improve` or `explore` (English + Vietnamese keywords). Hard-escalation rules fire on "commit", "still broken", "use skills".
2. **Skill Card** — a 5-line card showing the playbook, the part of the codebase, the risk class (`solo` or `pause-Money/Keys/Migration/…`) and which extra skills were loaded and why.
3. **PREFLIGHT** — a checklist filled with *real* results before the first edit: memory lookup, code search, `git status`, scope, risk decision, test command and baseline. On commits it also prints a `CODE REVIEW:` block with a secret scan.

### What's inside

- `SKILL.md` — the router and the output contract
- `references/` — intent map (EN + VI), Skill Card and PREFLIGHT formats, skill-selection policy (max 3 extras, signal-based, with a forbidden list), minimal built-in playbooks
- `config/router.config.example.md` — map your own playbooks, packages, risk classes and tools
- `examples/sessions.md` — five worked sessions

### Where it comes from

Extracted from the agent workflow I use daily while building a desktop trading app (Tauri / Rust / React), then generalized for any repository.

### Tested, and one required step

I tested it with Claude Code on a machine with many installed skills. From its description alone, the agent saw the skill but did not invoke it on small tasks. **Add one line to your repo's `CLAUDE.md` or `AGENTS.md`** (exact text in the README) and it triggered on every edit and commit test, in English and Vietnamese. Read-only questions are correctly skipped.

### Limits

- It does not write code; it classifies and hands off.
- It is a behaviour contract, not hard enforcement. Add a pre-edit hook if you need a hard gate.
- Built-in playbooks are intentionally short.

## Requires

- Git

## Known limitations

Does not write code; it routes and gates. It is a behaviour contract, not hard enforcement (add a pre-edit hook for a hard gate). Needs a one-line CLAUDE.md / AGENTS.md hook to trigger reliably on small tasks. Tested with Claude Code only so far. Built-in playbooks are minimal.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Agent Skill Card & Preflight Router for Coding Agents skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does the Agent Skill Card Router stop my AI from making low-quality code edits?

It makes the agent route each task to a playbook, print a Skill Card, and fill a PREFLIGHT with real results (memory lookup, code search, git status, risk class, test baseline) before the first edit or commit. You see what it checked before it changes anything. It is a behaviour contract followed by the agent, not a hard technical lock.

### Is this skill compatible with my specific AI agent or coding framework?

It is plain SKILL.md plus markdown references, with no scripts or network calls, and it is framework-agnostic. I have tested it with Claude Code. It should work with other SKILL.md agents (Cursor, Codex CLI, etc.), but I have not verified those yet.

### Does this skill replace the agent's ability to write code or perform refactors?

No. The router never writes code. It classifies the task, prints the card and checklist, and hands off to your agent's normal coding work (or to your own playbooks, if you map them in the config).

### What does the installation process look like for a standard repository?

Unzip into your skills folder (e.g. ~/.claude/skills/), then add the one-line hook from the README to your repo's CLAUDE.md or AGENTS.md. That line is what makes it trigger reliably on small tasks. Optionally copy config/router.config.example.md to .agent-router/config.md to map your own playbooks, risk classes and test command.

### How does the skill handle high-risk changes like database migrations or security logic?

Changes that touch a risk class (Money, Keys/Secrets, Migration, Data-overwrite, Auth; configurable) are marked pause-&lt;Class&gt;. The agent is told to stop and get your explicit decision before the risky step. On commits it prints a CODE REVIEW block that includes a scan of the staged diff for keys and tokens.

### What exactly is included in this skill?

SKILL.md (router + output contract), five reference files (intent map in English and Vietnamese, Skill Card and PREFLIGHT formats, skill-selection policy, minimal built-in playbooks), a per-repo config template, five worked example sessions, README and CHANGELOG. It is free.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
