resize
Move a repo up or down ion-repo's sizes (tiny, small, medium, large) - what the new size brings or removes shown before the merge, the settings that go with it, ion repo set on a branch, merged. Use when the user asks to change a project's size, or it outgrew its size or is heavier than it needs.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 3
- Forks
- 3
01 前言 Front Matter
- name
- resize
- description
- Move a repo up or down ion-repo's sizes (tiny, small, medium, large) - what the new size brings or removes shown before the merge, the settings that go with it, ion repo set on a branch, merged. Use when the user asks to change a project's size, or it outgrew its size or is heavier than it needs.
- argument-hint
- [tiny|small|medium|large]
03 SKILL.md 正文
Size asked for: $ARGUMENTS; without one, propose it from what the project has become. Talk to
the user in their language.
1. Where the repo stands
- Read the size in
.copier-answers.yml(size). An old name is the same notch:spark= tiny,ember= small,flame= medium,blaze= large (renamed in 0.4.10;ion repo setconverts it). - Weigh the notch against what the project is, from its README and backlog:
- tiny: a script, a personal tool, a one-off analysis;
- small: a small app or site, one or two people, low stakes;
- medium: in production with real users, personal data stored, several contributors;
- large: several teams or services, high stakes. Storing other people's data or going to production is the usual reason to go up; a project that stayed a personal tool, the usual reason to go down. Say which notch fits and why, in two lines; the user decides.
2. What changes, before anything merges
Branch chore/ion-repo-resize in a worktree (skill /repo:worktree), clean tree. Run there
ion repo set size=<new> together with the settings that go with it, each one asked to the user
first:
- going to medium or large:
podman=true(its default there), and for a Django backend in productiondeploy=vps vps_host=… api_domain=… site_url=… deploy_branch=…; on a server that already runs another project, free portsvps_port=… vps_db_port=…(read what listens withssh <host> ss -ltnp) and the server's Caddyfile importing/etc/caddy/sites/*.caddy; look for the host and the domain in the user's other repos (their.vps/,.cloudflare/folders, their docs) before asking; - going down: nothing is switched off without saying so: containers, deployment and the rules of the upper notch go, list them.
Then show the user what the notch did, from the diff (git diff --stat, then
git diff .claude/rules/ion-repo/ charter.toml .github/): the rules added or removed (for medium,
for instance, personal data covered by export and anonymisation in the same change, the frozen
API contract, request correlation, antivirus on uploads), the CI jobs, the containers and the
production files. Ask before going on; on a no, remove the worktree and the branch: nothing
reached develop.
3. Finish
- Conflicts (
<<<<<<< before updating): keep the project's own version of what it built (pages, config, README sections), take ion-repo's additions around it, and never a demo the template brings to a new project (a health badge, an/apiproxy that would shadow the front's own server routes). A binary file the project replaced (an icon) is kept as it was:git checkout <integration> -- <file>if the update put ion-repo's back. - Commit in batches of 10 files at most, grouped by theme (ion-repo's rules and settings, CI,
backend, containers, production, docs), then run the same
ion repo setagain: it locks, installs and runs every check. Commit the lock files it writes. - Update the repo map of the project's
CLAUDE.mdfor every folder the notch added or removed (backend/,config/vps/,scripts/ops/…). - Merge into
develop(skill/repo:merge). Deploying is a separate step, through the project'sdocs/operations/production.md.
04 同仓库更多 Skills
worktree
Create a work branch in a ready-to-use git worktree. The normal way to start a branch, so as not to cross another session in the main tree.
update
Update ion-repo - the ion-repo tool of the machine and its plugins, then the open repo (ion repo update, on a branch merged right away into develop). Use when the user asks to update ion-repo, or accepts the update offered at session start.
token
Set up a service's credentials (PyPI, Stripe, an API, a host…) in a `.<service>/` folder at the repo root (`token`, chmod 600, and `config` on its scope), with one command that pastes the token unseen. Use when a task needs an API key or a token, or when the user wants to give one.
statusline
Change the look of the status line - its style, its colors, among them the chat's (the person's and Claude's) - each shown before it is chosen. Use when the user wants another status line, other colors for it, or from `/repo:look`.
skill
Write or sharpen a skill of an Ion tool's plugin - intent, SKILL.md in the right craft's plugin, one trigger case, docs; tested with `claude plugin eval` only on request. Use when the user wants a new skill, to fix one, or to check one fires and does its job.
review
暂无简介