Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计未展示

code%3astacked-commit代码%3a 堆叠提交

Agent Skill

code%3astacked-commit 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

216

周安装

9

GitHub Stars

20

下载量

72
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:code%3astacked-commit(代码%3a 堆叠提交)
来源仓库:https://github.com/martinffx/atelier
仓库路径:skills/code%3Astacked-commit
安装命令:
npx skills add https://github.com/martinffx/atelier --skill code:stacked-commit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/martinffx/atelier --skill code:stacked-commit

简介

code%3astacked-commit 用于处理 GitHub 仓库、Pull Request 和代码协作信息,支持 Graphite 驱动的堆叠提交管理。

  • 适用于拆分复杂任务为小粒度、可独立审阅的提交序列。
  • 需预先安装 Graphite CLI,并通过 gt stack 查看当前分支栈状态。
  • 创建新提交时会自动关联父分支,保持逻辑连贯性。
  • 建议配合 PR 审阅工具链使用,提升协作效率与合并成功率。

SKILL.md

Stacked Commit Skill (Graphite)

Manage stacked commits using Graphite - a CLI for creating and managing stacked PRs.

When to Use

  • User wants to break work into multiple small, reviewable commits
  • Working with stacked commits (multiple commits stacked on each other)
  • Syncing and submitting stacked PRs

Prerequisites

Ensure Graphite is installed:

brew install graphite-dev || npm install -g @graphite-dev/cli

Core Operations

1. View Current Stack

gt stack

Shows all branches in the stack with their status (synced, to-push, in-progress).

2. Create a New Commit

gt branch create "feat(auth): add JWT authentication"

This:

  1. Creates a new branch on top of the current stack
  2. Opens editor for commit message (or use -m for inline)
  3. Commits the staged changes

Works best when you:

  • Stage specific files: git add file1 file2
  • Then create commit: gt branch create "feat: add feature"
  • Repeat for each logical unit of work

3. Restack (Rebase onto Main)

gt branch restack

Rebases all branches in the stack onto the latest main. Use before submitting or when main has advanced.

4. Sync with Remote

gt branch sync

Pull latest changes from remote and restack.

5. Submit Stack as PRs

gt branch submit

Creates PRs for each branch in the stack. Opens browser to create the first PR; subsequent PRs link to it.

6. Continue Working on Branch

If you need to add more changes to a specific commit:

# Make your changes, stage them
git add .

# Amend to current branch
gt branch continue

7. Navigate Stack

# Go to parent branch
gt branch checkout @parent

# Go to child branch
gt branch checkout @child

Workflow Example

# Start new feature work
git checkout main
gt branch create "feat(api): add user endpoint"

# Add user endpoint code
git add src/users/
gt branch continue  # Amend to current commit

# Create next commit in stack
gt branch create "feat(api): add user validation"

# Add validation code
git add src/validation/
gt branch continue

# View stack
gt stack

# Restack before submit
gt branch restack

# Submit all as stacked PRs
gt branch submit

Best Practices

  1. One logical change per commit - Each commit should be reviewable independently
  2. Meaningful commit messages - Use conventional commit format
  3. Restack before submit - Always gt branch restack before submitting to ensure clean history
  4. Keep stack small - Deep stacks can be hard to manage; 3-5 commits is ideal
  5. Sync regularly - Run gt branch sync often when working with others

Troubleshooting

IssueSolution
Conflicts during restackResolve in editor, then gt branch continue
Stack brokengt branch repair to fix detached HEAD
Too many branchesgt branch delete <name> to remove (won't delete remote)

Commit Message Format

Follow conventional commits within the Graphite workflow:

<type>(<scope>): <subject>

[optional body]

Examples:

feat(api): add user profile endpoint
fix(db): resolve connection pool exhaustion
docs(readme): update installation instructions

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.59%
按下载量换算28

Claude

28.81%
按下载量换算21

Cursor

20.33%
按下载量换算15

Gemini CLI

9.95%
按下载量换算7

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills