
Apply
Applies one tokendoctor audit fix to settings after a dry-run preview and confirmation
Apply is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 186
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Apply
This skill runs a single fix from a tokendoctor audit, identified by a finding ID passed as an argument. It first runs the tokendoctor-apply tool in dry-run mode so the agent can show the file path and the lines that would be removed and added, along with the chosen scope. The user must confirm before the change is written.
Once confirmed, the skill runs the write step, which backs up the existing file with a timestamped .bak copy before editing and refuses to overwrite agent files or write through symlinks. The change is logged so tokendoctor-undo can revert it. The skill also reminds the user that a new session is the most reliable way to confirm the change took effect.
The skill is marked as legacy in its own text: the same operation is available as /tokendoctor fix , which does not require a model call. It needs the tokendoctor-apply command installed and works with the Claude Code plugin marketplace.
When your agent uses it
Apply one tokendoctor audit fix after showing the exact change. Moved to /tokendoctor fix <id>, which needs no model call.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (2 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the tokendoctor plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add localixai/plugins
/plugin install tokendoctor@localix-labOr copy only this skill to ~/.claude/skills/apply:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/localixai/plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/apply &&
cp -R "$tmp/plugins/tokendoctor/skills/apply" ~/.claude/skills/apply &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/apply inside it instead.
Copy the skill folder to ~/.agents/skills/apply to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/localixai/plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/apply &&
cp -R "$tmp/plugins/tokendoctor/skills/apply" ~/.agents/skills/apply &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/apply inside it instead.
Copy the skill folder to ~/.cursor/skills/apply to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/localixai/plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/apply &&
cp -R "$tmp/plugins/tokendoctor/skills/apply" ~/.cursor/skills/apply &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/apply inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/localixai/plugins.git --path plugins/tokendoctor/skills/applyOr copy the folder to ~/.gemini/skills/apply yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/apply:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/localixai/plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/apply &&
cp -R "$tmp/plugins/tokendoctor/skills/apply" ~/.copilot/skills/apply &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/apply inside it instead.
Get the folder:
git clone --depth 1 https://github.com/localixai/plugins.gitThen copy plugins/plugins/tokendoctor/skills/apply into your agent's skills folder as apply. Agents that support SKILL.md read one folder per skill.
What it does
- Dry-run preview
- Shows the target file, scope and a short removed/added summary before any change is made.
- Explicit confirmation
- Requires a clear yes from the user before running the write step.
- Timestamped backups
- Copies the existing file to a .bak file with a timestamp before writing.
- Symlink and overwrite guard
- Refuses to overwrite existing agent files or write through symlinks.
- Undo support
- Logs the change so tokendoctor-undo can restore the previous state.
Good for
- Apply a fix from a tokendoctor audit to my Claude Code settings
- Preview what a tokendoctor finding would change before writing it
- Undo a previously applied tokendoctor settings change
Apply FAQ
Does Apply change files without asking?
No. It runs a dry run first, shows the file path and line changes, and only writes after the user clearly confirms.
What does the scope option control?
User scope affects every project, project scope is shared with the team through git, and local scope is personal to the current project.
Is there a newer way to run this?
The skill says the same fix is available as /tokendoctor fix <id>, which needs no model call, and that this command is being removed in the next release.
How do I install Apply in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/apply to use it in all your projects, or to .claude/skills/apply in one project. Or install the tokendoctor plugin, which includes it: /plugin marketplace add localixai/plugins, then /plugin install tokendoctor@localix-lab.
Does Apply run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Apply?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Apply?
The closest alternatives to Apply are Audit, Agentsmd optimize, System audit, Docsync and Optimize.
Where this comes from
- Description: from the skill's own SKILL.md.
More from localixai/plugins

Resumes a paused or stopped localix-loop with an answer or extra iterations
- Open source
- 186 GitHub stars
- Developer tools

Sets up a goal-driven loop where the agent proposes changes scored by a scorekeeper
- Open source
- 186 GitHub stars
- Developer tools

Reports where a localix-loop session stands: score, kept and rolled-back iterations
- Open source
- 186 GitHub stars
- Developer tools

Stops a running localix-loop session and leaves the best result in the working tree
- Open source
- 186 GitHub stars
- Developer tools

Audits a Claude Code setup for settings that waste tokens or silently do nothing
- Open source
- 186 GitHub stars
- Developer tools

Opens a local HTML dashboard showing where your Claude Code tokens were spent
- Open source
- 186 GitHub stars
- Developer tools




