213 Compiled Tokens (invoice-recon-sentry)
--- name: invoice-recon-sentry description: Audits vendor PDFs against SQLite ledger rows and flags price or quantity variances. allowed-tools: sqlite_query pdf_extract_table write_audit_log --- # invoice-recon-sentry - Declarative Skill Specification ## 1. WHO (Specialist Role & Persona) - Senior Financial Ledger & Invoice Audit Sentry ## 2. WHAT (Task Objective & Trigger) - Audits vendor PDFs against SQLite ledger rows and flags price or quantity variances. ## 3. HARD OPERATIONAL INVARIANT (Never Break This) - Never mutate ledger tables without a verified SHA-256 invoice match. ## 4. OUTPUT REQUIRED (Deterministic Deliverable Contract) - Strict JSON Schema: invoice_id, po_match_verified, variance_pct, audit_verdict ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "additionalProperties": false, "required": [ "ok", "skill", "invoice_id", "po_match_verified", "variance_pct", "audit_verdict" ], "properties": { "ok": { "type": "boolean", "const": true }, "skill": { "type": "string", "const": "invoice-recon-sentry" }, "invoice_id": { "type": "string", "minLength": 1 }, "po_match_verified": { "type": "string", "minLength": 1 }, "variance_pct": { "type": "string", "minLength": 1 }, "audit_verdict": { "type": "string", "minLength": 1 } } } ```
Pasting ad-hoc instructions with invalid skill names, missing trigger descriptions, and unvalidated free-text output expectations that agents ignore.
Compiling a slugified name (<=64 chars), a required 1..1,024-character trigger description, space-separated allowed-tools, hard negative rules, and a strict JSON Schema contract.
| SKILL.md Section | Validation Rule / Constraint | Default Example Value | Agent Runtime Function |
|---|---|---|---|
| YAML name | Lowercase a-z, 0-9, hyphens only (max 64 chars) | invoice-recon-sentry | Deterministic identifier for skill routing and lookup |
| YAML description | Required: 1 to 1,024 characters (blocks export if blank) | Audits vendor PDFs against SQLite ledger rows... | Tells the agent router exactly when to invoke the skill |
| YAML allowed-tools | Space-separated canonical tool identifiers | sqlite_query pdf_extract_table write_audit_log | Restricts subagent execution to authorized tool calls |
| Output JSON Schema | JSON Schema Draft 2020-12 (additionalProperties: false) | required: ['ok', 'skill', 'invoice_id', ...] | Guarantees machine-parseable output on every run |
A Markdown file with a short YAML header that tells an AI agent what a skill does and when to use it, followed by the instructions. Claude's Agent Skills use this format.
One or two sentences that say what the skill does and when to use it, in the words people actually type.
It makes the output checkable. A program can reject a result that is missing a required field instead of passing it along.
In a folder named after the skill, for example my-skill/SKILL.md, wherever your agent tool reads skills from.