Agent skill

Config Migration

by GXFG in GXFG/newtab-naivetab

NaiveTab 浏览器扩展的配置迁移开发指南。当用户要修改持久化配置结构(新增/重命名/删除字段、修改类型)时使用。强制走 handleAppUpdate 迁移流程,防止破坏老用户数据。

GPL-3.0Auto-check passedFrontend & Design

Install Config Migration

skills CLI
$ npx skills add GXFG/newtab-naivetab --skill config-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install GXFG/newtab-naivetab config-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/GXFG/newtab-naivetab.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/config-migration .claude/skills/config-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
config-migration
GitHub stars
137
Token cost
~345 tokens
SKILL.md length
82 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
GPL-3.0

At a glance

NaiveTab 浏览器扩展的配置迁移开发指南。当用户要修改持久化配置结构(新增/重命名/删除字段、修改类型)时使用。强制走 handleAppUpdate 迁移流程,防止破坏老用户数据。

  • Works in 3 steps: 修改默认配置 → 升版本号 → 添加迁移分支
  • Frontend & Design work in your project
  • SKILL.md covers 迁移流程, 迁移场景速查, 关键规则 and 注意事项
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Config Migration is an agent skill from GXFG/newtab-naivetab. NaiveTab 浏览器扩展的配置迁移开发指南。当用户要修改持久化配置结构(新增/重命名/删除字段、修改类型)时使用。强制走 handleAppUpdate 迁移流程,防止破坏老用户数据。

Its SKILL.md is about 350 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design. The repository describes itself as: NaiveTab - newtab extension for browser |浏览器新标签页扩展|Visual keyboard for bookmarks & browser commands — one-press access. Drag & drop layout, full customization, focus mode, and…. The licence is GPL-3.0.

When your agent uses it

  • Frontend & Design work in your project

Example prompts

  • “/config-migration”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. 修改默认配置
  2. 升版本号
  3. 添加迁移分支

What it can do on your machine

Read from SKILL.md and the folder at commit ae78a42. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Config Migration loads about 345 tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 82 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~345

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from GXFG/newtab-naivetab at commit ae78a42, republished under its GPL-3.0 licence (© GXFG). 82 words, ~345 tokens.

Download SKILL.mdSave it as .claude/skills/config-migration/SKILL.md (or your agent's skills folder).
name
config-migration
description
NaiveTab 浏览器扩展的配置迁移开发指南。当用户要修改持久化配置结构(新增/重命名/删除字段、修改类型)时使用。强制走 handleAppUpdate 迁移流程,防止破坏老用户数据。

NaiveTab Config Migration

任何持久化配置结构修改都不能破坏老用户数据。本技能确保迁移流程正确执行。

迁移流程

Step 1 — 修改默认配置

在 src/logic/config/state.ts 的 defaultConfig 或 defaultState 中添加/修改字段。

Step 2 — 升版本号

修改 package.json 的 version 字段(由用户手动操作)。

Step 3 — 添加迁移分支

在 src/logic/config/update.ts 的 handleAppUpdate 函数中添加迁移分支:

ts
// 使用 if 而非 if-else,确保跨版本用户依次执行所有迁移
if (compareLeftVersionLessThanRightVersions('2.6.0', localVersion)) {
  // 迁移逻辑
  localConfig.value.newField = 'defaultValue'
  // 或使用 mergeState 合并
  mergeState(defaultConfig, localConfig.value)
}

迁移场景速查

场景正确做法错误做法
新增扁平字段在 handleAppUpdate 中赋值只改 defaultConfig
新增嵌套对象整体赋值 defaultConfig.xxx只依赖浅合并
重命名字段新字段=旧字段值 → delete 旧字段直接改字段名
删除字段先 delete 旧值 → 再删 defaultConfig直接从 defaultConfig 删
修改类型新增替代字段 + 迁移直接改类型

关键规则

  • handleAppUpdate 使用 if 而非 if-else,确保跨越多个版本的旧用户能依次执行所有迁移
  • mergeState 以默认配置为模板过滤废弃字段;keymap 和数组直接替换不深合并
  • 嵌套对象新增字段不能依赖浅合并,必须在迁移分支中手动赋值
  • 修改 keyboard 配置时,重命名/删除字段必须同步修改 src/background/config/cache.ts

注意事项

© GXFG, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/config-migration of GXFG/newtab-naivetab.

Open the folder on GitHubat commit ae78a42

Compare with similar skills

Config Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Config Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Config Migration this skillGXFG/newtab-naivetab137—~345Automated safety check: PassGPL-3.0
Web Artifacts Builderanthropics/skills180k41 repos~769Automated safety check: PassApache-2.0
React Doctormakeplane/plane61k12 repos~657Automated safety check: PassAGPL-3.0
Impeccablebestofjs/bestofjs3.1k27 repos~2.6kAutomated safety check: PassMIT
Figma Design System Builderwarpdotdev/warp65k2 repos~4.4kAutomated safety check: PassAGPL-3.0
Web Interface Guidelines Reviewervercel-labs/openreview1.7k97 repos~308Automated safety check: PassNone

Similar skills

  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 41 repos~769 tokens
    Frontend & DesignAuto-check passed
  • React Doctor

    makeplane/plane

    Scans React code for lint, accessibility, bundle size and architecture issues, reports a health score and checks that changes do not lower it.

    61k GitHub starsUsed in 12 repos~657 tokens
    Frontend & DesignAuto-check passed
  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 27 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Builds or updates a design system in Figma from a codebase in ordered phases: discovery, variables and tokens, components, theming and documentation, with checkpoints.

    65k GitHub starsUsed in 2 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Web Interface Guidelines Reviewer

    vercel-labs/openreview

    Official

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my…

    1.7k GitHub starsUsed in 97 repos~308 tokens
    Frontend & DesignAuto-check passed
  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed

More from GXFG/newtab-naivetab

  • Add Command

    GXFG/newtab-naivetab

    NaiveTab 浏览器扩展的全局命令快捷键开发指南。当用户要新增/修改命令快捷键(如新增 tab 操作、页面滚动、窗口操作等命令)时使用。涵盖需要修改的完整文件清单、执行环境分类、类型注册等,防止遗漏关键步骤。

    137 GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed
  • Add Widget

    GXFG/newtab-naivetab

    NaiveTab 浏览器扩展的 Widget 开发指南。当用户要在 newtab-naivetab 项目中新增 Widget 组件、添加新功能组件时使用。涵盖需要修改的完整文件清单、配置规范、类型注册等,防止遗漏关键步骤。

    137 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • Add I18n Locale

    GXFG/newtab-naivetab

    NaiveTab 浏览器扩展的 i18n 国际化开发指南。当用户要新增/修改翻译文本、添加多语言 key 时使用。涵盖中英文同步更新规则、变量替换模式等,防止遗漏或格式错误。

    137 GitHub stars~269 tokensUpdated 2 days ago
    Auto-check passed
  • Add Setting Pane

    GXFG/newtab-naivetab

    NaiveTab 浏览器扩展的 Setting 面板开发指南。当用户要新增 Setting 设置面板、添加新的设置页时使用。涵盖需要修改的完整文件清单、注册规范等,防止遗漏关键步骤。

    137 GitHub stars~279 tokensUpdated 2 days ago
    Auto-check passed

Questions about Config Migration

What does Config Migration do?

NaiveTab 浏览器扩展的配置迁移开发指南。当用户要修改持久化配置结构(新增/重命名/删除字段、修改类型)时使用。强制走 handleAppUpdate 迁移流程,防止破坏老用户数据。. Config Migration is an agent skill from GXFG/newtab-naivetab.

When should I use Config Migration?

Config Migration fits situations like: frontend & Design work in your project.

How do I install Config Migration in Claude Code?

Run `npx skills add GXFG/newtab-naivetab --skill config-migration -a claude-code`. Or copy the skill folder (.claude/skills/config-migration in GXFG/newtab-naivetab) into .claude/skills/config-migration in your project. Claude Code loads it when a task matches its description.

How do I install Config Migration in Codex?

Run `npx skills add GXFG/newtab-naivetab --skill config-migration -a codex`. Or copy the skill folder (.claude/skills/config-migration in GXFG/newtab-naivetab) into .agents/skills/config-migration in your project. Codex loads it when a task matches its description.

Can I use Config Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GXFG/newtab-naivetab --skill config-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/config-migration, .gemini/skills/config-migration, .github/skills/config-migration and .opencode/skills/config-migration in your project.

What does Config Migration need to run?

SKILL.md names no scripts, command-line tools or credentials: Config Migration is instructions for the agent only.

Does Config Migration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Config Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Config Migration use?

Config Migration is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Config Migration use?

About 345 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Config Migration?

Skills that share tags, products or a category with Config Migration: Web Artifacts Builder (anthropics/skills, 180k stars), React Doctor (makeplane/plane, 61k stars), Impeccable (bestofjs/bestofjs, 3.1k stars) and Figma Design System Builder (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Config Migration?

GXFG (a GitHub user) maintains it in GXFG/newtab-naivetab, which has 137 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 7, 2026.

Source: GXFG/newtab-naivetab on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.