integrate
Start a fresh branch from main and release the current branch's test-server resources
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- integrate
- type
- skill
- description
- Start a fresh branch from main and release the current branch's test-server resources
- execution_mode
- immediate
03 SKILL.md 正文
/integrate
Run the installed integration utility from the target repository's working directory. The utility resolves the Git root itself and must be invoked from a repository. It performs the safety checks, optional test-server cleanup, main branch update, and fresh-branch creation described below.
Runtime script
Use the user-scope installed script:
${CLAUDE_HOME:-$HOME/.claude}/scripts/integrate.sh
Require that path to be executable before running it. Do not look for,
require, copy, or invoke ./integrate.sh or any other repository-local copy.
The repository's scripts/integrate.sh is the export source used by the
installer; the runtime entry point is the copy under the active Claude home.
Argument mapping
Interpret the text after /integrate as the script's explicit argv list. The
supported forms are one optional branch name and these flags:
- no arguments: run the script with no arguments;
<branch-name>: pass that branch name as one positional argument;--force: pass the force flag;--new-branch: pass the new-branch flag;--helpor-h: pass the help flag.
Preserve every supplied argument and its order when constructing argv. Do not
use $@, eval, unquoted expansion, or pass the entire $ARGUMENTS string as
one shell argument. Let the script apply its own argument validation and
multiple-name warning rather than silently changing that behavior. Run it from
the current target repository directory and report its exit status and output.
Examples:
/integrate
/integrate feature/my-feature
/integrate fix/bug-123 --force
/integrate --new-branch feature/my-feature
Workflow contract
- The script fetches
origin/mainand creates a timestampeddev<epoch>branch when no branch name is supplied. - It skips test-server cleanup on
mainand detached HEAD. - If
test_server_manager.shis absent at the Git root, it reportsSKIPPEDand continues. - If the manager is present but not executable, or its stop command fails, it reports the original error and exits before checkout, stash, or branch deletion.
- A successful manager call proves only that the manager returned success; it does not prove that no orphaned processes remain.
--forceand--new-branchretain the script's documented safety semantics.
After the script succeeds, invoke /learn as a required completion step
when learning persistence is authorized. A user request for /integrate
includes this learning step; do not require separate approval or skip it
because the user did not also type /learn. When an explicit no-memory
instruction or higher-priority storage restriction applies, skip /learn
and report it as skipped; otherwise, follow the canonical learn skill for all
persistence targets and report each result. Honor higher-priority storage
restrictions, report any blocked target, and never claim learning was saved
when persistence is blocked.
Run /testserver start when the new branch needs its test server started. Do not claim
server cleanup or branch integration until the script output and exit status
establish it, or learning capture until its persistence results are verified.
04 同仓库更多 Skills
instinct
Use when the user invokes /instinct or /in, or asks to "message Instinct", "ask Instinct", "tell Instinct", "check Instinct", or read replies from the configured peer assistant. iMessage first, WhatsApp Web as fallback.
hr
Compatibility alias for history-resume; produce the same fresh-state, provenance-aware resume briefing.
history-resume
Resume briefing for the current repository branch or worktree using fresh state and admitted history sources.
grok
Alias for the canonical grokbot browser conversation workflow; /grok talks to the Grok bot the same way /dot talks to Dot.
codexa-bench
Compare `codexa` and normal `codex` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.