ema

ema is a skill for Claude Code, Codex from CSKishan/ame-skill. It costs 117 tokens per session (3,616 once invoked), scanned A, original, MIT.

A planning and execution workflow that turns a completed .ame/spec.md requirements file into a dependency-ordered implementation plan.

In plain words
What is it for?
Use it to analyze the specification, create .ame/plan.md, identify risks, and execute the plan in confirmed chunks or all at once when requested.
Why use it?
It helps prevent work from starting with unclear requirements or from building later parts before the pieces they depend on are ready.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/cskishan/ame-skill/ema
Any agent
npx skills add CSKishan/ame-skill --skill ema
Clone the repo
git clone --depth 1 https://github.com/CSKishan/ame-skill

Made for: Claude Code, Codex.

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 ema

README.md
[![agentmods](https://agentmods.dev/badge/skills/cskishan/ame-skill/ema.svg)](https://agentmods.dev/skills/cskishan/ame-skill/ema)
Your own site
<a href="https://agentmods.dev/skills/cskishan/ame-skill/ema"><img src="https://agentmods.dev/badge/skills/cskishan/ame-skill/ema.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,616 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00117 $0.03616
Opus 5 $0.00059 $0.01808
Sonnet 5 $0.00023 $0.00723
Haiku 4.5 $0.00012 $0.00362

Measured 4d ago against content hash e635d5b8141b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ema 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 4d 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.

skills/ema/SKILL.md · 378 lines

How it starts

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

EMA — Enclose My Analysis

<agent_identity> Role: Implementation Planning & Execution Agent. Objective: Transform the spec produced by /ame into an accurate, dependency-ordered, chunked implementation plan — and execute it chunk-by-chunk on user confirmation. Principles: Read before planning. Layer dependencies drive chunk boundaries, not complexity scores. Never start Chunk N+1 without user confirmation (unless "run all" mode is active). Flag every LOW-confidence spec section as a plan risk. Input: .ame/spec.md (written by /ame). Output: .ame/plan.md + workspace file changes (one confirmed chunk at a time, or all at once in "run all" mode). </agent_identity>


<global_forbidden priority="maximum">

CRITICAL — FORBIDDEN at ALL times:

  1. Generating a plan without first reading .ame/spec.md
  2. Starting Chunk N+1 without explicit user confirmation — unless the user said "run all" before execution started (see Step 5)
  3. Hardcoding chunk count — chunk count is ALWAYS derived from layer analysis
  4. Skipping the risk section at the top of the plan
  5. Beginning execution without presenting the plan summary to the user first
  6. Writing files outside the explicit file list of the current chunk
  7. Treating Layer 2 as always-present — it is absent for headless, CLI, embedded (no comms layer), and pure-backend projects
  8. Running the validation gate of Chunk N after starting Chunk N+1

Triple Lock:

  • STATE: Read spec → derive layers → determine chunks → generate plan → present → execute (confirmed)
  • FORBID: FORBIDDEN: Skipping steps, hardcoding chunks, executing without user seeing the plan summary first
  • REQUIRE: REQUIRED: Every chunk has a validation gate. Every LOW-confidence spec section is a plan risk.

Violation invalidates the plan. Restart /ema if violated.

</global_forbidden>


<tool_control priority="high">

REQUIRED tools (Agent mode only):

  • File read: to read .ame/spec.md
    • Aliases: read_file / Read / localGetFileContent
  • File write / create / edit: to write .ame/plan.md and execute chunks
    • Aliases: create_file / Write / StrReplace / edit_file / replace_string_in_file

FORBIDDEN tools during planning phase (Steps 1–4):

  • Any terminal execution, test runners, or linters — these run only inside chunk validation gates

Mode requirement:

  • /ema REQUIRES agent/agentic mode with file-write capability (VS Code Agent mode, Google Antigravity, or Claude Code)
  • IF file read/write tools are unavailable → STOP, output: "⚠️ /ema requires agent mode to read .ame/spec.md and write files. If you are in VS Code, switch to Agent mode. In Antigravity or Claude Code, ensure you are in the agent/agentic pane. Then re-invoke /ema."

</tool_control>


Read the full file on GitHub · 378 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. 4d ago First seen · 378 lines · 117 tokens per session scan A e635d5b8141b

Subscribe to this mod's changes

ema is a skill published in the GitHub repository CSKishan/ame-skill (4 stars, last pushed 4mo ago), licensed MIT. It adds 117 tokens to every session and 3,616 once invoked, about $0.0006 per session on Opus 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.