Agent skill

Rebuild After Change

by zhyese in zhyese/grid-qa

改了项目代码/配置后,判断该 rebuild 哪个镜像、哪些走 HMR、.env 改动要不要重建容器。避免"改了没生效"的最常见坑。

Custom licenceAuto-check: notesDevOps & Cloud

Install Rebuild After Change

skills CLI
$ npx skills add zhyese/grid-qa --skill rebuild-after-change -a claude-code

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

GitHub CLI
$ gh skill install zhyese/grid-qa rebuild-after-change --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/zhyese/grid-qa.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/rebuild-after-change .claude/skills/rebuild-after-change && 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
rebuild-after-change
GitHub stars
131
Token cost
~463 tokens
SKILL.md length
159 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Custom licence

At a glance

改了项目代码/配置后,判断该 rebuild 哪个镜像、哪些走 HMR、.env 改动要不要重建容器。避免"改了没生效"的最常见坑。

  • Works in 5 steps: 改了后端没 rebuild → "代码没生效"。必须 --build。 → 改了 .env 没重建容器 → env 没进容器。up -d(不带… → rebuild 后 health 空 → bge 预热慢,sleep… → …
  • DevOps & Cloud work in your project
  • SKILL.md covers 核心前提, 决策表, 验证生效 and 常见坑, plus 1 more section
  • Calls docker, curl and npm

What it does

Rebuild After Change is an agent skill from zhyese/grid-qa. 改了项目代码/配置后,判断该 rebuild 哪个镜像、哪些走 HMR、.env 改动要不要重建容器。避免"改了没生效"的最常见坑。

Its SKILL.md is about 460 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 DevOps & Cloud. It works with Docker, npm and Redis. The repository describes itself as: 基于大模型+RAG的电网自主运维智能问答系统(Vue3+FastAPI+Milvus+DeepSeek/百炼/火山云).

When your agent uses it

  • DevOps & Cloud work in your project

Example prompts

  • “/rebuild-after-change”

Requirements

  • Node.js
  • Docker

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 改了后端没 rebuild → "代码没生效"。必须 --build。
  2. 改了 .env 没重建容器 → env 没进容器。up -d(不带 --build 也行,重建容器重读 env)。
  3. rebuild 后 health 空 → bge 预热慢,sleep 不够。循环等 ready。
  4. 前端 dev server 没起 → 5173 不通。本地 cd frontend && npm run dev(不是容器)。
  5. 改 compose 的 redis command → up -d redis 重建,但会清空内存(AOF 重载);或 redis-cli CONFIG SET 立即生效不丢缓存。

What it can do on your machine

Read from SKILL.md and the folder at commit 3b583b3. 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

    Shell commands in SKILL.md call:

    • docker
    • curl
    • npm
    • redis-cli

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

  • Network

    No URLs in SKILL.md. Its commands use docker, curl and npm, which can reach the network depending on how they are called.

    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

Rebuild After Change loads about 463 tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 159 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:16
    | `.env`(环境变量)| **重建 backend 容器**(env 进容器)| `docker compose up -d backend` |
  • NoteMentions a .env fileSKILL.md:39
    2. **改了 .env 没重建容器** → env 没进容器。`up -d`(不带 --build 也行,重建容器重读 env)。

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 159 words (~463 tokens).

“后端源码 bake 进 Docker 镜像(无 bind mount)——改了源码,运行中的容器还是旧代码,必须 rebuild 镜像才生效。前端相反(Vite dev server HMR,改完即生效)。”

— opening of SKILL.md by zhyese, Custom licence
name
rebuild-after-change

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/rebuild-after-change of zhyese/grid-qa.

Open the folder on GitHubat commit 3b583b3

Compare with similar skills

Rebuild After Change 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.

Rebuild After Change compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rebuild After Change this skillzhyese/grid-qa131—~463Automated safety check: NotesCustom licence
Dockeravibebuilder/claude-prime120—~1kAutomated safety check: NotesMIT
Redis Insight Pluginredis/RedisInsight8.9k—~3.5kAutomated safety check: PassMIT
Running And Testing LocallyNangoHQ/nango13k—~4kAutomated safety check: NotesCustom licence
Add Componentlbedner/aegis-stack143—~5.3kAutomated safety check: PassMIT
Redis Test Image Updateredis/go-redis22k—~1.5kAutomated safety check: PassBSD-2-Clause

Similar skills

  • Docker

    avibebuilder/claude-prime

    ALWAYS activate when the user's query involves Docker in any way — even if it also matches other skills.

    120 GitHub stars~1k tokensUpdated 4 mo ago
    DevOps & CloudAuto-check: notes
  • Redis Insight Plugin

    redis/RedisInsight

    Official

    A skill your agent uses when creating, modifying, debugging, deploying, or testing Redis Insight Workbench visualization plugins, plugin manifests, package.json visualizations, activationMethod…

    8.9k GitHub stars~3.5k tokensUpdated 6 days ago
    DatabasesAuto-check passed
  • A skill your agent uses when running the Nango application locally for development and browser testing - covers Docker services, dev commands, service URLs, and troubleshooting startup issues

    13k GitHub stars~4k tokensUpdated today
    Backend & APIsAuto-check: notes
  • Add Component

    lbedner/aegis-stack

    A skill your agent uses when adding a new infrastructure component (worker, scheduler, database, redis, ingress, observability) to the Aegis Stack framework itself, or adding a new variant axis…

    143 GitHub stars~5.3k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Official

    Keeps every reference to the redislabs client-libs-test image tag in sync across the Makefile, compose file, GitHub workflows and docs when a Redis test version changes.

    22k GitHub stars~1.5k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Reflexo Release

    Myriad-Dreamin/typst.ts

    Guide Reflexo/typst.ts release preparation and operator handoffs.

    1.2k GitHub stars~1.5k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed

More from zhyese/grid-qa

  • Cache Debug

    zhyese/grid-qa

    排查问答缓存问题(不命中/脏缓存/黑名单误拦/置信度过滤/多轮不缓存)时使用。覆盖三级缓存(Redis/MySQL/Semantic)+黑名单+置信度规则。

    131 GitHub stars~646 tokensUpdated 6 days ago
    Auto-check passed

Works with

Questions about Rebuild After Change

What does Rebuild After Change do?

改了项目代码/配置后,判断该 rebuild 哪个镜像、哪些走 HMR、.env 改动要不要重建容器。避免"改了没生效"的最常见坑。. Rebuild After Change is an agent skill from zhyese/grid-qa.

When should I use Rebuild After Change?

Rebuild After Change fits situations like: devOps & Cloud work in your project.

How do I install Rebuild After Change in Claude Code?

Run `npx skills add zhyese/grid-qa --skill rebuild-after-change -a claude-code`. Or copy the skill folder (.claude/skills/rebuild-after-change in zhyese/grid-qa) into .claude/skills/rebuild-after-change in your project. Claude Code loads it when a task matches its description.

How do I install Rebuild After Change in Codex?

Run `npx skills add zhyese/grid-qa --skill rebuild-after-change -a codex`. Or copy the skill folder (.claude/skills/rebuild-after-change in zhyese/grid-qa) into .agents/skills/rebuild-after-change in your project. Codex loads it when a task matches its description.

Can I use Rebuild After Change 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 zhyese/grid-qa --skill rebuild-after-change -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rebuild-after-change, .gemini/skills/rebuild-after-change, .github/skills/rebuild-after-change and .opencode/skills/rebuild-after-change in your project.

What does Rebuild After Change need to run?

Going by SKILL.md and its folder, Rebuild After Change needs the command-line tools its instructions call (docker, curl, npm and redis-cli). Our summary lists: Node.js; Docker.

Does Rebuild After Change access the network?

SKILL.md contains no URLs. Its commands use docker, curl and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Rebuild After Change safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Rebuild After Change use?

Rebuild After Change has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Rebuild After Change use?

About 463 tokens (SKILL.md is roughly 1.9k 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 Rebuild After Change?

Skills that share tags, products or a category with Rebuild After Change: Docker (avibebuilder/claude-prime, 120 stars), Redis Insight Plugin (redis/RedisInsight, 8.9k stars), Running And Testing Locally (NangoHQ/nango, 13k stars) and Add Component (lbedner/aegis-stack, 143 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rebuild After Change?

zhyese (a GitHub user) maintains it in zhyese/grid-qa, which has 131 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 4, 2026.

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