# Apply

> Apply is an open-source agent skill for developer tools. Applies one tokendoctor audit fix to settings after a dry-run preview and confirmation. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/localixai/plugins/tree/main/plugins/tokendoctor/skills/apply
- **Repository:** https://github.com/localixai/plugins
- **GitHub stars:** 186
- **License:** MIT
- **Skill name:** apply
- **Collection:** https://github.com/localixai/plugins
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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 <id>, 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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/localixai/plugins/tree/HEAD/plugins/tokendoctor/skills/apply)
- [License: MIT](https://github.com/localixai/plugins/tree/HEAD/plugins/tokendoctor/skills/apply)

## Features

- **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

## Install

### Claude Code

This skill ships in the `tokendoctor` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add localixai/plugins
/plugin install tokendoctor@localix-lab
```

Or copy only this skill to `~/.claude/skills/apply`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/apply` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/apply` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/localixai/plugins.git --path plugins/tokendoctor/skills/apply
```

Or copy the folder to `~/.gemini/skills/apply` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/apply`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/localixai/plugins.git
```

Then copy `plugins/plugins/tokendoctor/skills/apply` into your agent's skills folder as `apply`. Agents that support SKILL.md read one folder per skill.

## 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.

## Alternatives

- [Audit](https://ai-powered.com/skills/audit-localixai): Audit is an open-source agent skill for developer tools.
- [Agentsmd optimize](https://ai-powered.com/skills/agentsmd-optimize): Agentsmd optimize is an open-source agent skill for developer tools.
- [System audit](https://ai-powered.com/skills/system-audit): System audit is an open-source agent skill for developer tools.
- [Docsync](https://ai-powered.com/skills/docsync): Docsync is an open-source agent skill for developer tools.
- [Optimize](https://ai-powered.com/skills/optimize-localixai): Optimize is an open-source agent skill for developer tools.
- [Audit](https://ai-powered.com/skills/audit-zerotechdebt): Audit is an open-source agent skill for developer tools.
- [TDD](https://ai-powered.com/skills/tdd-michael-denyer): TDD is an open-source agent skill for developer tools.
- [Self improving skills review](https://ai-powered.com/skills/self-improving-skills-review): Self improving skills review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/apply
