fable-loop

fable-loop is a skill for Claude Code, Codex from imMamdouhaboammar/get-fable. It costs 111 tokens per session (1,700 once invoked), scanned A, original, MIT.

A bounded loop for repeating checks while an outside process changes state, such as a CI build, deployment, batch job, or eventually consistent service. It uses time limits, backoff, and separate handling for pending, success, failure, and cancellation.

In plain words
What is it for?
Use it to monitor asynchronous jobs, wait for CI or deployment status, or run a finite series of measurements while a known process stabilizes.
Why use it?
It avoids endless retries and distinguishes a process that is still progressing from one that has failed or stopped changing.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the get-fable plugin — 78 skills, 1 agent, 5 hooks shipped together

Good fit Use it to monitor asynchronous jobs, wait for CI or deployment status, or run a finite series of measurements while a known process stabilizes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/immamdouhaboammar/get-fable/fable-loop
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 imMamdouhaboammar/get-fable --skill fable-loop
Clone the repo
git clone --depth 1 https://github.com/imMamdouhaboammar/get-fable

Made for: Claude Code, Codex.

Or install get-fable, the plugin that ships this one along with the rest of its 78 skills, 1 agent, 5 hooks.

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 fable-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/immamdouhaboammar/get-fable/fable-loop/github.svg)](https://agentmods.dev/skills/immamdouhaboammar/get-fable/fable-loop)
Your own site
<a href="https://agentmods.dev/skills/immamdouhaboammar/get-fable/fable-loop"><img src="https://agentmods.dev/badge/skills/immamdouhaboammar/get-fable/fable-loop/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 fable-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/immamdouhaboammar/get-fable/fable-loop"><img src="https://agentmods.dev/badge/skills/immamdouhaboammar/get-fable/fable-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,700 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.00111 $0.01700
Opus 5 $0.00056 $0.00850
Sonnet 5 $0.00022 $0.00340
Haiku 4.5 $0.00011 $0.00170

Measured 7d ago against content hash 3732c1e3cbcd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

fable-loop 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 7d 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/fable-loop/SKILL.md · 195 lines

How it starts

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

Fable Loop

Repeat a check only when repetition can reveal new state, with explicit termination, backoff, error classification, and zero ambiguity about why the loop stopped.

Mission

Polling is not "run the same command until it turns green." A good loop models a changing external condition, distinguishes pending from failure, respects rate/cost budgets, and terminates on success, terminal failure, cancellation, or exhausted budget.

If repeated execution cannot produce new information, the task belongs in diagnosis—not a loop.

Activate When

  • waiting for CI/deployment/build/batch-job state to change;
  • monitoring a bounded asynchronous operation;
  • checking eventually-consistent external state;
  • repeating a safe measurement while a known process progresses;
  • running a finite stabilization sample where repetition itself is the measurement.

Do Not Activate When

  • one command/probe is enough (fable-run/fable-verify);
  • the same deterministic failure is repeating with no external state change (fable-recover);
  • user expects a future notification/scheduled task rather than an in-session bounded loop;
  • polling would create repeated non-idempotent side effects;
  • no termination criteria or budget can be defined.

Loop Classification

Loop type Success/terminal semantics
CI/build pending → success or terminal failure/cancelled
Deployment progressing → healthy/rolled back/failed
Batch job queued/running → completed/failed
Eventual consistency old state → expected state within deadline
Rate-limited API pending/retryable → success or terminal auth/schema error
Stabilization sampling N bounded observations → distribution/variance verdict

Protocol

Stage 1 — Define the state machine

Before iteration, enumerate:

  • success state;
  • pending/retryable states;
  • terminal failure states;
  • malformed/unknown states;
  • cancellation condition.

A loop that treats every non-success as "try again" is unsafe.

Read the full file on GitHub · 195 lines

Files

What ships with it

7 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. 7d ago First seen · 195 lines · 111 tokens per session scan A 3732c1e3cbcd

Subscribe to this mod's changes

fable-loop is a skill published in the GitHub repository imMamdouhaboammar/get-fable (4 stars, last pushed today), licensed MIT. It adds 111 tokens to every session and 1,700 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-09-05.

Related

Other skills, from other repositories

deployment-pipeline-design

Design multi-stage CI/CD pipelines with approval gates, security checks, and deployment orchestration. Use this skill when designing zero-downtime deployment pipelines, implementing canary rollout strategies, setting up multi-environment promotion workflows, or debugging failed deployment gates in CI/CD.

wshobson/agents · 58 tokens

bazel-build-optimization

Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.

wshobson/agents · 36 tokens

baby-sit

Monitor a GitHub pull request until CI is green, diagnose failures, and rerun only evidence-backed flaky GitHub Actions jobs.

langchain-ai/open-swe · 30 tokens

babysit

Use when the user says "babysit", "monitor", "keep checking", "keep an eye on", "loop on this PR", "let me know when", or wants polling that outlives a wait+poll window. Same-session monitoring loop for PRs, CI runs, tickets, and deployments using the monitorstart / monitorupdate / autonudgestop MCP tools. The loop…

kirodotdev/KiroCrew · 137 tokens

deploying-to-staging-environment

Use when deploying changes to staging across relay, relay-dashboard, and relay-cloud repos - coordinates multi-repo branch syncing using git worktrees, automatically triggers staging deployments via GitHub Actions.

AgentWorkforce/relay · 44 tokens

turborepo-caching

Configure Turborepo for efficient monorepo builds with local and remote caching. Use when setting up Turborepo, optimizing build pipelines, or implementing distributed caching.

wshobson/agents · 42 tokens