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.
npx skills add smicolon/ai-kit --skill execution-context-buildergit clone --depth 1 https://github.com/smicolon/ai-kitWrote 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.
[](https://agentmods.dev/skills/smicolon/ai-kit/execution-context-builder)<a href="https://agentmods.dev/skills/smicolon/ai-kit/execution-context-builder"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/execution-context-builder/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.
<a href="https://agentmods.dev/skills/smicolon/ai-kit/execution-context-builder"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/execution-context-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.01276 |
| Opus 5.5 | $0.00023 | $0.00510 |
| Sonnet 5.5 | $0.00012 | $0.00255 |
| Haiku 4.5 | $0.00006 | $0.00128 |
Grade A, and why
execution-context-builder 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Execution Context Builder
Take a full_context record and write the two canonical artifacts.
Activation Triggers
This skill activates when:
flow-detectorreturned exactly one candidate (skip selector, come straight here).flow-selectorhas resolved the user's pick (or synthesized one from "Other").
This skill never asks the user a question. If the input full_context has missing fields, fill them with conservative defaults (see "Field Defaults" below) and move on.
Inputs
The skill receives:
task— the original task description (string), and optionally a source ref (e.g.,ENG-123).full_context— the chosen candidate's context record. Schema is defined inreferences/execution-context.json.
Process
1. Resolve the slug
Generate a slug from the task title:
- Lowercase, replace non-alphanumeric runs with
-, strip leading/trailing-. - Truncate to 60 characters max, on a word boundary.
- If the result is empty (no usable characters), fall back to
clarification-YYYYMMDD-HHMMSSusing the current local time.
Examples:
"Send message on sign-in"→send-message-on-sign-in"Migrate auth to Better Auth (Phase 2)"→migrate-auth-to-better-auth-phase-2"!!!"→clarification-20260427-143022
2. Fill defaults
If any required field in full_context is missing, fill with these defaults:
| Field | Default |
|---|---|
trigger.timing |
"after" |
trigger.preconditions |
[] |
action.channel |
"in-app" |
flow.mode |
"async" |
flow.transport |
null |
failure_handling.strategy |
"retry" |
failure_handling.details |
"3 attempts with exponential backoff, then log" |
out_of_scope |
[] |
Defaults are not user-visible questions — silently apply them.
3. Build the JSON artifact
Read references/execution-context.json, populate it from full_context, add metadata:
{
"task": { "title": "<original task>", "source": "<ticket ref or null>", "slug": "<slug>" },
"entity": "...",
"trigger": { "event": "...", "timing": "...", "preconditions": [...] },
"action": { "verb": "...", "channel": "...", "recipient": "..." },
"flow": { "services": [...], "mode": "...", "transport": "..." },
"failure_handling": { "strategy": "...", "details": "..." },
"out_of_scope": [...],
"metadata": {
"created_at": "<ISO-8601>",
"created_by": "[email protected]"
}
}
What ships with it
2 files 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.
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.
- 1mo ago First seen · 133 lines · 58 tokens per session scan A cb899fe2f258
execution-context-builder is a skill published in the GitHub repository smicolon/ai-kit (6 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 1,276 once invoked, about $0.0002 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-08-31.
Other skills, from other repositories
add-matrix
Add Matrix channel integration via Chat SDK. Works with any Matrix homeserver.
add-resend
Add Resend (email) channel integration via Chat SDK.
add-macos-statusbar
Add a macOS menu bar status indicator for NanoClaw. Shows a bolt icon with a green/red dot indicating whether NanoClaw is running, with Start, Stop, and Restart controls. macOS only.
git-commit
Generate well-formatted git commit messages following conventional commit standards.
trend-analysis
A data-analysis workflow that groups records, rates performance, applies different growth assumptions, predicts values, and creates comparison charts.
excel-basic-statistics-and-routing
An Excel workflow for filtering grouped data, calculating averages, extracting row ranges, removing duplicates, and adding totals.