Refocus logo

Refocus

Community
whit3rabbit
refocus

Audits an existing Clean Room run and steers it back to missed gates without expanding declared scope.

Overview

Publisherwhit3rabbit
Repositoryclean-room-skill
Skill namerefocus
Stars
20
Forks
3
Bundled files
Instructions only
LicenseMIT
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 whit3rabbit on GitHub. Read the source before you install it.

Installation

Install the Refocus 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/whit3rabbit/clean-room-skill/tree/main/skills/refocus
  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/whit3rabbit/clean-room-skill.git /tmp/clean-room-skill
mkdir -p .claude/skills
cp -r /tmp/clean-room-skill/skills/refocus .claude/skills/refocus
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Refocus 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 Refocus 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 Refocus 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.

Clean Room Refocus

Refocus realigns the current run to the declared scope, controller policy, artifact schemas, and clean-room boundary.

Refocus does not optimize, expand, or reinterpret the task. It does not invent new requirements or add behavior beyond preflight-goal.json, task-manifest.json, clean-run-context.json, ledgers, implementation plan/report, QC, and abstract delta tickets.

Use the canonical clean-room skill workflow and references in this plugin. Preserve the same clean-room boundary, role separation, artifact schemas, leakage rules, implementation-root rules, and hook expectations.

Audit

Compare current artifacts to the canonical gate checklist:

  • Scope gate recorded authorization, roots, boundaries, prohibited actions, evidence handling, selected target profile, Agent 0-4 pipeline, and Agent 1.5 sanitizer role for new runs.
  • Preflight goal exists for new runs, validates against preflight-goal.schema.json, and is referenced by task-manifest.json with preflight_goal_ref and preflight_goal_sha256.
  • Task manifest records the required handoff_sequence and does not skip Stage 0.
  • Initialization snapshot exists when init preferences were used, and reusable init-config.json drift is reported instead of silently applied.
  • clean-run-context.json exists before clean roles run and excludes source roots, visual roots, contaminated roots, source index refs, visual index refs, and ledger paths.
  • clean-run-context.json records artifact-only coordination: Agent 0 does not directly steer Agent 2, Agent 3, or Agent 4, and clean implementation/polish roles report to Agent 0 only at terminal status.
  • When context management is enabled, the next role launch can be driven by a fresh role-session-brief.json inside the recorded budgets. controller-status.json remains contaminated-side only.
  • Implementation roots are recorded, separated, and not source-derived.
  • Source index or visual-index fallback preflight exists when required and remains contaminated-only.
  • Decomposition produced neutral task-manifest.json units.
  • Contaminated analysis wrote draft behavior specs without implementation code.
  • Agent 1.5 sanitization ran before handoff, or older artifacts clearly predate the Agent 1.5 gate and require review before reuse.
  • Handoff package excludes full task-manifest.json, source-index.json, visual-index.json, raw screenshots, source or visual paths, raw diffs, copied comments, copied visible words, private identifiers, exact UI palettes/layouts/iconography, source-shaped pseudocode, and contaminated ledgers.
  • Agent 2 produced clean-only implementation-plan.json when the run reached that gate.
  • Agent 3 produced implementation-report.json when the run reached implementation.
  • Non-terminal Agent 3 implementation reports were not used as Agent 0 feedback or guidance.
  • QC produced qc-report.json with schema, leakage, coverage, and abstract delta ticket status when the run reached that gate.
  • Agent 4 produced polish-report.json when the run reached final polish review.
  • Contaminated verification returned only abstract delta tickets.

Validate schemas and handoff hashes before trusting the artifacts. Use source-index.json or visual-index.json only on the contaminated side and only when referenced by the task manifest.

Findings

Emit missed-gate findings only:

  • Missing required artifact.
  • Invalid schema.
  • Failed or missing leakage review.
  • Invalid or stale handoff hash.
  • Boundary violation or unproven root separation.
  • Stale handoff compared with latest QC or ledger state.
  • Stale implementation plan compared with latest clean handoff.
  • Stale implementation report compared with latest implementation plan.
  • Controller policy not preserved.
  • Missing, invalid, or drifted preflight goal.
  • Noncanonical manifests, reports, ledgers, or manual result summaries used as completion evidence. Mark these not verified unless clean-room-skill run --dry-run (or npx clean-room-skill@latest run --dry-run if the binary is not available) succeeds against the canonical task-manifest.json.
  • Missing public-surface inventory parity: required public commands, APIs, config keys, protocol entries, or user-visible behaviors listed in approved specs are not mapped through behavior spec tests, implementation-plan public_contract_refs, terminal implementation reports, and coverage-ledger public_surface_coverage.

Do not suggest speculative improvements. Do not change source scope, target profile, public API, or implementation plan. If the user asks to add scope, stop and route to a new scope gate instead of silently expanding the run.

Output

Return a bounded next-action plan containing:

  • Current verified gate.
  • Missed gate findings.
  • One to three process corrections, ordered by safety.
  • The single next action the controller should take.

If root separation, authorization, or clean/contaminated boundary cannot be proven, the single next action is to stop and repair that gate.

Frequently asked questions

What does the Refocus AI skill do?

Audits an existing Clean Room run and steers it back to missed gates without expanding declared scope.

Why use Refocus on TypingMind?

Because you install it once and use it with any model. Refocus 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 Refocus in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/whit3rabbit/clean-room-skill/tree/main/skills/refocus. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Refocus?

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 Refocus?

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

Is the Refocus AI skill free?

Yes. It is published on GitHub by whit3rabbit under the MIT 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 👇