Capability reality repair
Skill Xopoko/plug-n-skills/plugins/capability-workbench/skills/capability-reality-repair
Ready-to-install skills and plugins for Codex, Claude Code, and AI coding agents: practical workflows for app delivery, architecture, research, design, and agent tooling.
npx -y skills add Xopoko/plug-n-skills --skill capability-reality-repairAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 8 stars8 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Repair stale or false agent capability instructions immediately. Use when a skill, script, plugin manifest/helper, MCP/tool contract, connector guidance, validator, or bundled reference describes commands, schemas, paths, outputs, install state, dependencies, or behavior that does not match live reality.
SKILL.md
4.5 KB, as published. Nobody here has run it
Capability Reality Repair
Bundled commands use $PLUGIN_ROOT ($env:PLUGIN_ROOT in PowerShell; same path suffix) for the plugin root. Set it once: use the host's plugin-root variable when defined (Claude Code: PLUGIN_ROOT="$CLAUDE_PLUGIN_ROOT"), otherwise the absolute path of this skill folder's ../...
Treat a false skill, plugin, script, or MCP contract as an urgent capability defect. The target is not to work around the bad instruction once; the target is to repair the source that made the agent wrong so the same failure does not recur.
Trigger
Use this immediately when current work exposes a mismatch between a capability artifact and reality:
- A
SKILL.md, reference,agents/openai.yaml, plugin manifest, MCP schema, tool description, or connector instruction names a false command, flag, field, path, dependency, output shape, install state, auth flow, API contract, or workflow. - A bundled script, validator, installer, generator, CLI wrapper, or helper gives false guidance, crashes on its documented input, parses the wrong output, uses a stale schema, or succeeds while checking the wrong thing.
- A plugin or MCP advertises capabilities that are missing, wired differently, not visible to the host agent, or only present in a cache copy while the canonical source differs.
- The agent has to invent a workaround because the capability instructions or helper code are inaccurate.
- The discrepancy was found while doing unrelated work. The trigger does not require the user to explicitly ask for maintenance.
Do not trigger on ordinary target-project bugs, third-party outages, missing user credentials, or ambiguous suspicions until the capability artifact itself is shown to be wrong or materially misleading.
Priority Rule
Repair is urgent. If the discrepancy is confirmed and the source is writable, fix it in the same turn before finalizing the original task.
Only defer when the canonical source cannot be found, the source is read-only or externally owned, the repair would require destructive migration, or the original task has a higher explicit safety or production deadline.
If deferred, leave a concrete patch plan and exact evidence needed.
Repair Loop
- Identify the bad contract: exact artifact, claim, script behavior, schema, or helper output that contradicted reality.
- Prove current reality with direct evidence:
--help,--version, source, generated schema, manifest, installed config, validator output, minimal reproducer, official docs, or live tool output. - Find the editable source of truth, not only a generated cache. For installed plugins, locate the source path, patch source, then refresh the install/cache state and probe runtime discovery separately when needed.
- Patch every reachable artifact that repeats the false claim: skill text, references, scripts, schemas, manifests, examples, expected outputs, router entries, and validators.
- Add recurrence protection: validator, unit test, fixture, schema check, smoke command, install/cache check, runtime-discovery probe, or explicit validation command.
- Validate the repaired surface and resume the original task from the corrected contract.
Boundaries
- Do not change target product code merely to satisfy a false capability instruction.
- Do not add historical apology text like "this used to be wrong" inside the skill. Make the artifact simply correct.
- Do not create broad rewrites when a focused contract update and regression check solve the problem.
- Do not install unknown third-party code or run opaque candidate scripts just to compare behavior.
- Do not silently ignore a capability defect because the original user request was about something else.
Done
The repair is complete only when:
- the false or broken capability source has been updated;
- the live behavior or authoritative proof is recorded in work notes or final response;
- the relevant validator, script test, smoke command, install/cache check, or runtime-discovery probe passed or the blocker is explicit;
- the original task can continue without relying on the stale contract.
Use $PLUGIN_ROOT/references/reality-repair.md for source-selection order, repair examples, and defer/rollback details.