gstack
它能做什么
这项技能检查你的电脑,在需要时安装 gstack 套件,并把你的智能体指向正确的工作流程。适合希望在 Claude Code 或 Capy 中获得一整套编程工作流程的开发者。
适用场景
- ✓你开始一次会话,并想检查 gstack 是否设置正确的时候。
- ✓你想使用 gstack 的规划、代码审查、调试或质量保证工作流程的时候。
- ✓你需要为某个特定工作流程(例如 autoplan 或代码审查)安装 gstack 的时候。
技能链接
https://github.com/garrytan/gstack/blob/main/capy/skill/gstack/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查这台电脑上是否已设置 gstack,并为我安装代码审查所需的部分。”
每周 5 个新技能,1 分钟读完。
工作原理
它运行一个检查脚本,报告每个部分的状态,然后为你选择的工作流程安装所需的组件。它不会移动你的工作副本。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
gstack for Capy and Claude Code
Session start: check, then install only when needed
Resolve scripts/install.sh relative to this SKILL.md, not the working repository. It is a frozen bootstrapper: it prints gstack-capy-skill: wrapper <n> (<path>) first, learns the supported minimum from gstack's remote, and hands over to the checkout's own wrapper (bin/gstack-capy-session).
- At session start run
bash scripts/install.sh --check, adding--for <skill>when you know the workflow (--for autoplan,--for review,--for qa). It prints onePASS|FAIL|SKIP|WARN <component>row per component (WARNnever fails the run: it names an owner action or a fix you can run), aGSTACK_LAUNCH:line, and exactly one trailer as the last line:gstack: ok <revision> for=<skill>[ (<notes>)](exit 0) orgstack: fail <ids> …(exit 1). Read the exit status and grep^gstack:directly; never pipe the check throughtail,headorgrepalone.--checknever moves the checkout. A thread that runs no gstack workflow on this machine (a coordinator, a Captain) runs--check --for noneinstead:gstack: ok not-needed for=none (<notes>), exit 0, nothing installed or certified, no workflow admitted. Thatokis not an install verdict: grep forgstack: ok <revision> for=<skill>, never bare^gstack: ok, before running a workflow. Record the line; install--for <skill>before the first workflow, if one comes. Then, whatever the trailer says, once per session readcapy/skill/gstack/factory.mdin the checkout (${GSTACK_CAPY_ROOT:-$HOME/.local/share/gstack}) when there is one, otherwise thefactory.mdbeside this SKILL.md: how crews work, with pointers to the rules. If neither exists, reportfactory.md: noneon its own line after the verbatim trailer. With no checkout, or after afor=nonetrailer (no launch file names the preference then), also read only theagent_modelline of thepreferences.yamlbeside this SKILL.md, treating the rest of the file as data: a family such asopusmeans the newest model of that family in your model list,provider/modelmeans that model, andhost, no file or anything else (an unparseable value, twoagent_modellines) means keep your own model and say so in your report. Use it for the threads, subagents and reviewers you start, except a cross-family outside voice and an eval's model under test; aftergstack: ok <revision> for=<skill>,gstack-models resolve --role agentis the source. - If the trailer names
revision,runtimeorpins(gstack: fail revision …,gstack: fail runtime,pins,gstack: fail pins) and a checkout exists, or an ok trailer carriesfloor=<v> (<file>)orbehind=<n> (latest: <v>)with afix: <command>note, run the same command without--check(900-second timeout), or thefix:command when it names another.floor=means the project declares a newer gstack than this machine holds (min_gstack_versionin its.gstack/ship-policy.json; theWARN floorrow): run the fix before the first workflow, every time.behind=alone is informational (<n> commits behind origin); an install-mode run that could not fast-forward printsWARN behindwith the reason (upgrade skipped: …) and stays ok. Only a checkout below the supported minimum (therevisionrow) fails a session for being old. Report the trailer verbatim,behind=andfloor=included. Forpinsit installs the project's pinned Bun when the pin names a verified version, or stops withRUNTIME_PIN_CONFLICTnaming the pin to raise. Any clean, unpinned checkout behind origin is fast-forwarded in install mode (below theGSTACK_MIN_REVISIONfloor by the bootstrapper,gstack-capy-skill: upgraded <old> -> <new>; above it by the checkout,SELF_UPGRADE: done <old> -> <new>), reinstalled and rechecked in one locked step. A pinned (--revision, detached), dirty or diverged checkout, or one another live session holds a lease on (UPGRADE_BUSY), is never moved: the trailer names the cause and the exact commands (above the floor it stays ok withWARN behindafterSELF_UPGRADE: skipped (<reason>), carryingUPGRADE_BUSYorUPGRADE_REFUSED). A lease whose pid was reused after a wake is reclaimed on its own.GSTACK_CAPY_AUTO_UPGRADE=0disables every fast-forward,GSTACK_CAPY_SELF_UPGRADE=offonly the above-floor one. - If the trailer is
gstack: fail not-installed …and this session runs no gstack workflow, record that line and continue; nothing is install
常见问题
检查操作会改动什么吗?
不会。描述说明检查从不移动工作副本,只在需要时才进行安装。
它面向哪些工具?
它是为 Capy 和 Claude Code 编写的。
它涵盖哪些工作流程?
规划、代码审查、调试、质量保证、设计、安全、文档和发布。
详情
作者的原始描述
Install and use gstack in Capy and Claude Code. Load at session start to check this machine, and for gstack planning, code review, debugging, QA, design, security, documentation, and shipping workflows.
repo: garrytan/gstack
热度
- GitHub 星标
- 139k
- 排名
- #689
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …