agentleFS
REX-codebaseREX-codebase/fable-mode/SKILL.md

fable-mode

Skill26 starsChanged 3 months agoMITView on GitHub

Evidence-gated workflow for risky coding tasks. Use when a change needs deliberate research, explicit invariants, a time lock, adversarial review, and a verifiable completion record through the Fable Engine MCP server.

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use addskill, apply-firmware and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ryanportfolioSkill

    addskill

    Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.

    Also in 6 projects that use this

  • ryanportfolioSkill

    apply-firmware

    Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.

    Also in 6 projects that use this

  • +10 more from ryanportfolio

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 7 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 26 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use Fable Mode for changes where a rushed edit has a meaningful cost:

    line 18
  2. Distinctive:

    Create one session with a unique, filesystem-safe name:

    line 31
  3. Very specific:

    Use Fable's scrape_* actions when they fit and are available.

    line 40
  4. Very specific:

    Do not edit merely because the plan sounds plausible.

    line 42
  5. Very specific:

    Use get_status before attempting to unlock.

    line 49
  6. Very specific:

    Call unlock_execution with a short evidence-based rationale.

    line 61
  7. Distinctive:

    Keep unrelated edits out of the patch.

    line 66
  8. Distinctive:

    Run the repository's own tests, linters, type checks, and build commands.

    line 67
  9. Very specific:

    If a review finds a breakage, reproduce it, fix it, rerun the relevant checks, and use record_breakage_report / verify_red_team_remediation …

    line 84
  10. Very specific:

    Use evolve_cortex only when persistent learning is wanted and the environment permits it.

    line 95
  11. Distinctive:

    Use domain cortex files only for the current task's language or risk area.

    line 123
  12. Distinctive:

    Timer still active: keep researching or refining.

    line 128
  13. Distinctive:

    Unlock rejected: read the returned missing prerequisites, satisfy them with real evidence, and retry only after the conditions change.

    line 129
  14. Very specific:

    A named action is absent: use tools/list from the connected MCP client to inspect the installed server version.

    line 130

“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Fable Mode

Fable Mode separates confidence from permission. Use the fable_session MCP tool to move a coding task through four gates:

THINK -> PROVE -> ATTACK -> WRITE

The engine records the session, enforces its configured authority timer, and checks its own unlock prerequisites. It does not replace the host's permissions, sandbox, tests, or human approval rules.

When to use it

Use Fable Mode for changes where a rushed edit has a meaningful cost:

  • security, authentication, payments, or data migration work;
  • unfamiliar codebases or broad refactors;
  • changes with hidden compatibility or concurrency risks;
  • autonomous runs where the evidence trail matters.

For a small, reversible edit, use the host's normal workflow unless the user explicitly asks for Fable Mode.

Core workflow

1. Think

  1. Create one session with a unique, filesystem-safe name:
    • action: create_session
    • required: session_name, objective
    • optional: time_budget_minutes (default 60, minimum 2)
  2. Inspect the repository and its local instructions before proposing changes.
  3. Record each important claim with log_epistemic_item:
    • PROVEN: supported by a file, command output, receipt, or source;
    • HYPOTHESIS: plausible but not verified;
    • UNKNOWN: a material gap that still needs a probe.
  4. Use Fable's scrape_* actions when they fit and are available. If not, use the host's normal research tools and record the resulting evidence. Never weaken the host's security or source rules to satisfy this skill.

Do not edit merely because the plan sounds plausible. The engine reports can_execute_code; treat false as locked.

2. Prove

  1. Record at least one meaningful invariant with record_invariant.
  2. Back unlock-driving claims with concrete evidence. The engine requires at least two PROVEN ledger items and one invariant.
  3. For a multi-part task, define a weighted acceptance rubric with set_goal_rubric. Point each criterion at a check, artifact, or command.
  4. Use get_status before attempting to unlock. If evidence is weak, run another probe and log a log_refinement_cycle instead of relabeling an assumption.

A useful invariant is falsifiable:

INV-01: Existing public CLI behavior remains compatible.
For every command in the documented smoke-test set, exit status and output schema
remain unchanged unless the task explicitly changes that command.

3. Unlock and implement

Call unlock_execution with a short evidence-based rationale. An unlock can succeed only when the engine's authority timer has elapsed and its cognitive prerequisites pass.

After unlock:

  1. Make the smallest change that satisfies the objective.
  2. Keep unrelated edits out of the patch.
  3. Run the repository's own tests, linters, type checks, and build commands.
  4. Record material file changes with track_file_change when lineage is useful.

Fable permission is not user permission. Continue to follow the host's approval, secret-handling, network, and side-effect rules.

4. Attack

Challenge the actual changed behavior, not an invented code string. red_team_code_review does not execute arbitrary source text passed through MCP. Use repository tests or a sandboxed host runner for executable probes, then use Fable to record and assess the review.

Cover the attack classes that matter to the change:

  • malformed, missing, oversized, or deeply nested inputs;
  • permission, filesystem, and network failures;
  • concurrency, reentrancy, and out-of-order lifecycle calls;
  • resource exhaustion and timeout behavior;
  • idempotency and state-transition invariants.

If a review finds a breakage, reproduce it, fix it, rerun the relevant checks, and use record_breakage_report / verify_red_team_remediation where applicable. Stop and report unresolved risk after the bounded remediation loop rather than claiming success.

5. Write the completion record

Before declaring completion:

  • rerun checks against the final working tree;
  • evaluate any registered rubric with evaluate_goal_rubric;
  • separate verified results from remaining limits;
  • report changed files, commands run, outcomes, and known gaps.

Use evolve_cortex only when persistent learning is wanted and the environment permits it. It is not a substitute for verification.

Action map

Needfable_session action
Start or inspect a runcreate_session, get_status, list_sessions
Record knowledgelog_epistemic_item, record_invariant, log_refinement_cycle
Move through the lifecycleadvance_phase, unlock_execution, checkpoint_session, restore_session
Track qualityset_goal_rubric, evaluate_goal_rubric, track_file_change, verify_proof
Audit evidence with AIadjudicate_evidence (optional, off by default; see docs/ai-evidence-adjudicator.md)
Researchscrape_web, scrape_github, scrape_arxiv, scrape_reddit, scrape_x, scrape_youtube
Challenge a changered_team_code_review, record_breakage_report, verify_red_team_remediation
Use advanced reasoningsystem3_* actions; see docs/system3-architecture.md in the repository

Load references only when needed

The installed skill includes focused material under references/, cortex/, and examples/. Do not load the whole tree by default.

  • Session mechanics: references/system2-session-engine.md
  • Evidence and proof design: references/proof-architecture.md
  • Adversarial review: references/adversarial-code-review-swarm.md
  • Goal rubrics: references/goal-rubric-and-pipeline-automation.md
  • Frontend creation and review: references/design-system.md
  • Legacy frontend pattern catalogue: references/anti-slop-frontend-architecture.md
  • Three.js work: references/aaa-threejs-game-engine.md
  • Advanced reasoning: references/system3-meta-cognition.md

Use domain cortex files only for the current task's language or risk area. Treat examples as patterns, not as authority to ignore the live repository, available tools, or user constraints.

Failure handling

  • MCP server unavailable: say which Fable gate could not be recorded; continue only if the user's request and host policy allow a normal workflow.
  • Timer still active: keep researching or refining. Do not busy-wait or attempt to bypass it.
  • Unlock rejected: read the returned missing prerequisites, satisfy them with real evidence, and retry only after the conditions change.
  • A named action is absent: use tools/list from the connected MCP client to inspect the installed server version. Do not invent an action.
  • Tests pass but risk remains: report the uncovered risk and run the targeted adversarial check. Passing tests are evidence, not a universal proof.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.