Analyzing Execution Implementation Shortfall logo

Analyzing Execution Implementation Shortfall

Organization
CaseMark
analyzing-execution-implementation-shortfall

Measures implementation shortfall with paper portfolio comparison, delay cost attribution, and execution quality assessment. Use when measuring implementation shortfall, analyzing execution quality, or attributing trading costs.

Overview

PublisherCaseMark
Repositoryskills
Skill nameanalyzing-execution-implementation-shortfall
Stars
53
Forks
20
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by CaseMark on GitHub. Read the source before you install it.

Installation

Install the Analyzing Execution Implementation Shortfall AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/CaseMark/skills/tree/main/skills/capital/analyzing-execution-implementation-shortfall
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CaseMark/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/capital/analyzing-execution-implementation-shortfall .claude/skills/analyzing-execution-implementation-shortfall
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Analyzing Execution Implementation Shortfall in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Analyzing Execution Implementation Shortfall on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Analyzing Execution Implementation Shortfall is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Analyzing Execution Implementation Shortfall

Measures implementation shortfall by comparing actual execution results against a paper (decision-time) portfolio, decomposing total cost into delay, market impact, and opportunity components, and assessing broker/algo execution quality.

When To Use

  • Evaluating post-trade execution quality for a single order, basket, or rebalance event
  • Attributing total trading cost across delay cost, market impact cost, and opportunity cost
  • Comparing execution performance across brokers, algorithms, or venues
  • Benchmarking systematic strategy slippage against expected transaction cost models
  • Satisfying best-execution reporting requirements or internal TCA reviews

Inputs To Gather

  • Decision-time snapshot: Price at the moment the portfolio manager decided to trade (the "paper portfolio" benchmark price). Confirm whether this is mid-quote, arrival price, or VWAP at decision time.
  • Order details: Side (buy/sell), intended quantity, asset identifier, order submission timestamp, and any limit/urgency parameters
  • Execution fills: Fill prices, fill quantities, timestamps, venue/broker identifiers, and commissions/fees per fill
  • Market data: Intraday price path (trades and quotes) from decision time through final fill or order cancellation; closing price on the decision date for opportunity cost calculation
  • Benchmark selection: Confirm which IS variant to compute — arrival price (Perold, 1988), interval VWAP, or close-to-close [VERIFY: firm's standard IS benchmark definition]
  • Reference transaction cost model (if available): Expected cost estimates (e.g., from a pre-trade TCA model) for comparison against realized shortfall

Workflow

  1. Construct the paper portfolio return

    • Record the decision price P_decision for each security at the moment the trade intent was generated
    • Compute the hypothetical paper portfolio P&L as if the full intended quantity executed instantly at P_decision with zero cost
  2. Compute total implementation shortfall

    • IS (bps) = (Side × (Average Execution Price − P_decision) / P_decision) × 10,000 + commission cost in bps
    • For a basket, weight each security's IS by its intended trade notional to get portfolio-level IS
  3. Decompose IS into cost components

    • Delay cost: Slippage between decision price and the price at order submission (broker receipt). Captures portfolio manager latency or operational lag.
    • Market impact cost: Slippage between the order submission price and the volume-weighted average fill price. Captures the price movement caused by the order itself.
    • Opportunity cost: Value of the unfilled portion, measured as the difference between the decision price and the closing price (or cancellation price) applied to unexecuted shares.
    • Fixed costs: Commissions, exchange fees, taxes, and settlement charges.
    • Confirm all components sum to total IS within rounding tolerance.
  4. Benchmark against expectations

    • Compare realized IS to the pre-trade cost estimate from the firm's transaction cost model
    • Flag orders where realized cost exceeds the model estimate by more than 1 standard deviation of model error [VERIFY: firm-specific threshold]
    • Segment results by order urgency, market-cap bucket, spread decile, and volatility regime to identify systematic patterns
  5. Assess execution quality dimensions

    • Broker/algo scorecard: Rank brokers or algo strategies by average IS, participation rate, and reversion (post-trade price movement favoring or penalizing the execution)
    • Venue analysis: Examine fill rates and price improvement by venue (lit exchanges, dark pools, SIs) [VERIFY: regulatory venue reporting requirements per jurisdiction — MiFID II RTS 28, SEC Rule 606]
    • Timing analysis: Plot cumulative IS contribution over the execution horizon to identify front-loading, back-loading, or even pacing patterns
    • Market condition adjustment: Normalize IS for realized volatility and spread during execution to distinguish skill from luck
  6. Compile findings and flag outliers

    • Identify the top N most costly orders by absolute IS contribution
    • Highlight any orders with negative IS (execution better than paper) and assess whether this reflects genuine alpha capture or adverse selection risk
    • Note any data gaps (missing fills, timestamp mismatches, corporate actions during execution) that may distort results

Output

Produce an Implementation Shortfall Analysis Report containing:

  • Executive summary: Portfolio-level IS in basis points and dollar terms, with comparison to the pre-trade estimate and prior-period averages
  • Component decomposition table: Delay cost, market impact, opportunity cost, and fixed costs — each in bps and dollars, with percentage-of-total breakdown
  • Broker/algo scorecard: Ranked table with average IS, fill rate, participation rate, and reversion metrics per broker or strategy
  • Outlier detail: Individual order-level breakdown for the highest-cost trades, with annotated market context (e.g., news events, liquidity gaps)
  • Trend analysis: Rolling IS over the past N rebalance cycles to show whether execution quality is improving or deteriorating
  • Recommendations: Specific, actionable suggestions (e.g., shift volume allocation toward algo X, reduce delay cost by automating order staging, revisit dark pool usage for small-cap names)

Quality Checks

  • Verify that component costs sum to total IS within ±0.1 bps rounding tolerance
  • Confirm decision-time prices are sourced from an independent feed, not back-filled from execution timestamps
  • Cross-check fill data against broker confirmations or FIX drop copies
  • Ensure opportunity cost uses the correct closing price (adjusted for any corporate actions or halts)
  • Validate that the benchmark definition matches the firm's compliance and best-execution policy [VERIFY]
  • For multi-day executions, confirm that overnight gap attribution is handled consistently (assigned to delay cost or separated as a distinct component per firm convention)
  • Flag any security where daily volume participation exceeded 10% ADV, as market impact estimates become less reliable at high participation rates

Frequently asked questions

What does the Analyzing Execution Implementation Shortfall AI skill do?

Measures implementation shortfall with paper portfolio comparison, delay cost attribution, and execution quality assessment. Use when measuring implementation shortfall, analyzing execution quality, or attributing trading costs.

Why use Analyzing Execution Implementation Shortfall on TypingMind?

Because you install it once and use it with any model. Analyzing Execution Implementation Shortfall is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Analyzing Execution Implementation Shortfall in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/CaseMark/skills/tree/main/skills/capital/analyzing-execution-implementation-shortfall. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Analyzing Execution Implementation Shortfall?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Analyzing Execution Implementation Shortfall?

As many as you like. As long as a model supports skills, you can use Analyzing Execution Implementation Shortfall with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Analyzing Execution Implementation Shortfall AI skill free?

Yes. It is published on GitHub by CaseMark under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇