/config-history:restore [version number or a description, optional]from Config History
Go back to an earlier version of your Claude Code config. Pick a version by number or in your own words, see what would change, then restore all of it or only some files.
Ships in Config History. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Help the user put their Claude Code config back to an earlier saved version with config-history. Speak in plain words and keep each message short.
What the user asked for, which may be empty: $ARGUMENTS
Follow these steps in order. In the commands below, N is a version number, digits only. Always put --dry-run first, right after restore, when you preview.
Every question you ask in these steps offers "Cancel, restore nothing" as its last choice: which version, which files, the final confirmation, and the files --exact would delete. If the user picks it, say that nothing was changed and stop.
config-history history and read the recent versions. Each row has a version number, when it was saved, and what changed. Run config-history history --limit 30 if you need older ones.config-history diff --point N if you need to see what a version holds. If more than one version could match, ask instead of guessing.config-history restore --dry-run --point N to see which files would be created or overwritten. If nothing would change, say so and stop.--only <path> per file or folder they chose, such as config-history restore --dry-run --point N --only settings.json --only skills/demo/, to show the smaller plan.--only options as the last dry run:
config-history restore --point Nconfig-history restore --point N --only <path>
Never add --exact unless the user asked to also remove files that are not in that version. In that case, first run config-history restore --dry-run --point N --exact, show the list of files it would delete, ask the user to confirm that list, with "Cancel, restore nothing" as the last choice, and wait for a clear yes. If they pick it, say that nothing was changed and stop. Only after a clear yes, run config-history restore --point N --exact --yes. --exact cannot be combined with --only.
If the user declines the permission prompt, stop./config-history:undo reverts this restore.If a command says config-history is not set up yet, nothing is being saved on this computer until it is set up. Tell the user that in plain words, and that they can type /config-history:setup to set it up, which can also restore settings from a history in a folder, such as on a new computer. Run nothing else.
If a command prints "config-history has not finished installing", the plugin has not finished installing on this computer. Tell the user that, and that they can start a new Claude Code session and try again. Run nothing else.
If a command fails, show its output and stop. Run no other commands.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub razamit/config-history --plugin config-history4 skills in this plugin
/historySaved versions of the user's Claude Code config in ~/.claude (settings, hooks, skills, agents, commands, CLAUDE.md). Use when they ask what changed in it, when Claude Code misbehaves after a change to it, or to see or save versions./setupSet up config-history. Choose where your Claude Code config history is saved, in the plugin's own folder or a folder such as a Google Drive folder that gets backed up, or set up a new computer from a history saved in such a folder./undoUndo the most recent config-history restore.