execution-context-builder

execution-context-builder is a skill for Claude Code from smicolon/ai-kit. It costs 58 tokens per session (1,276 once invoked), scanned A, original, MIT.

A preparation step that records the selected task flow as Markdown and JSON files in a project's clarification folder.

In plain words
What is it for?
Use it after a flow has been detected or chosen to create the files that guide the coding work.
Why use it?
It preserves the agreed execution context before implementation begins and avoids asking more questions once one flow has been selected.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the clarify plugin — 3 skills shipped together

Good fit Use it after a flow has been detected or chosen to create the files that guide the coding work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smicolon/ai-kit/execution-context-builder
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 smicolon/ai-kit --skill execution-context-builder
Clone the repo
git clone --depth 1 https://github.com/smicolon/ai-kit

Made for: Claude Code.

Or install clarify, the plugin that ships this one along with the rest of its 3 skills.

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 execution-context-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/smicolon/ai-kit/execution-context-builder/github.svg)](https://agentmods.dev/skills/smicolon/ai-kit/execution-context-builder)
Your own site
<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.

agentmods 80×15 button for execution-context-builder

Your own site · 80×15
<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>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,276 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.00058 $0.01276
Opus 5.5 $0.00023 $0.00510
Sonnet 5.5 $0.00012 $0.00255
Haiku 4.5 $0.00006 $0.00128

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

Security

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.

packs/clarify/skills/execution-context-builder/SKILL.md · 133 lines

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-detector returned exactly one candidate (skip selector, come straight here).
  • flow-selector has 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 in references/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-HHMMSS using 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]"
  }
}

Read the full file on GitHub · 133 lines

Files

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.

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. 1mo ago First seen · 133 lines · 58 tokens per session scan A cb899fe2f258

Subscribe to this mod's changes

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.