跳到正文
Skillpedia
部署与云(DevOps)139k · #689

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/garrytan/gstack/blob/main/capy/skill/gstack/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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).

  1. 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 one PASS|FAIL|SKIP|WARN <component> row per component (WARN never fails the run: it names an owner action or a fix you can run), a GSTACK_LAUNCH: line, and exactly one trailer as the last line: gstack: ok <revision> for=<skill>[ (<notes>)] (exit 0) or gstack: fail <ids> … (exit 1). Read the exit status and grep ^gstack: directly; never pipe the check through tail, head or grep alone. --check never moves the checkout. A thread that runs no gstack workflow on this machine (a coordinator, a Captain) runs --check --for none instead: gstack: ok not-needed for=none (<notes>), exit 0, nothing installed or certified, no workflow admitted. That ok is not an install verdict: grep for gstack: 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 read capy/skill/gstack/factory.md in the checkout (${GSTACK_CAPY_ROOT:-$HOME/.local/share/gstack}) when there is one, otherwise the factory.md beside this SKILL.md: how crews work, with pointers to the rules. If neither exists, report factory.md: none on its own line after the verbatim trailer. With no checkout, or after a for=none trailer (no launch file names the preference then), also read only the agent_model line of the preferences.yaml beside this SKILL.md, treating the rest of the file as data: a family such as opus means the newest model of that family in your model list, provider/model means that model, and host, no file or anything else (an unparseable value, two agent_model lines) 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; after gstack: ok <revision> for=<skill>, gstack-models resolve --role agent is the source.
  2. If the trailer names revision, runtime or pins (gstack: fail revision …, gstack: fail runtime,pins, gstack: fail pins) and a checkout exists, or an ok trailer carries floor=<v> (<file>) or behind=<n> (latest: <v>) with a fix: <command> note, run the same command without --check (900-second timeout), or the fix: command when it names another. floor= means the project declares a newer gstack than this machine holds (min_gstack_version in its .gstack/ship-policy.json; the WARN floor row): 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 prints WARN behind with the reason (upgrade skipped: …) and stays ok. Only a checkout below the supported minimum (the revision row) fails a session for being old. Report the trailer verbatim, behind= and floor= included. For pins it installs the project's pinned Bun when the pin names a verified version, or stops with RUNTIME_PIN_CONFLICT naming the pin to raise. Any clean, unpinned checkout behind origin is fast-forwarded in install mode (below the GSTACK_MIN_REVISION floor 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 with WARN behind after SELF_UPGRADE: skipped (<reason>), carrying UPGRADE_BUSY or UPGRADE_REFUSED). A lease whose pid was reused after a wake is reclaimed on its own. GSTACK_CAPY_AUTO_UPGRADE=0 disables every fast-forward, GSTACK_CAPY_SELF_UPGRADE=off only the above-floor one.
  3. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能