agentleFS
learntocloudlearntocloud/learn-to-cloud-app/.github/skills/gh-stack/SKILL.md

gh-stack

Skill1.1k starsChanged 59 days agoMITView on GitHub

Manage dependent branches and pull requests with the gh-stack extension. Use only for explicit requests to create, inspect, navigate, rebase, sync, or publish a stack.

43 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use gh-create-pr, gh-commit and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ant-designSkill

    gh-create-pr

    使用 GitHub CLI (gh) 推送当前分支并创建或更新 PR。在用户说「提 PR」「新建 PR」「用 gh 建 PR」「submit PR」「create pull request」时使用。

    Also in 4 projects that use this

  • kelvincushmanSkill

    gh-commit

    Create well-formatted commits with conventional commit format.

    Also in 3 projects that use this

  • kelvincushmanSkill

    prek

    Use when setting up or running hooks with prek in any repository. prek is a Rust drop-in alternative to pre-commit for running Git hooks that check, format, lint, and validate code and repository files. Prefer it when speed, workspace mode, built-in hooks, shared toolchains, or native TOML configuration matter.

    Also in 3 projects that use this

  • carapace-shSkill

    bun

    Use when working with the bun CLI — Bun's all-in-one JavaScript runtime and toolkit. Covers the CLI command reference (install, add, remove, run, build, test, x, create, init, pm, upgrade, link, unlink), bunfig.toml configuration, environment variables, the package manager and lockfile, the test runner, the bundler, the Bun runtime API (Bun.serve, Bun.file, Bun.spawn, Bun.write, hashing, transpiler), the Bun shell ($ template literal), module resolution and loaders, and globals. Triggers on: "bun", "bunx", "bun install", "bun add", "bun remove", "bun run", "bun build", "bun test", "bun x", "bun create", "bun init", "bun pm", "bun upgrade", "bun link", "bun unlink", "bunfig.toml", "bun.lock", "Bun.serve", "Bun.file", "Bun.write", "Bun.spawn", "Bun.hash", "Bun.password", "bun:test", "Bun.build", "Bun.Transpiler", "bun shell", "$ template", "import.meta", "JavaScriptCore", "Bun.serve", "HTMLRewriter", "Bun.SQL", "Bun.RedisClient", "Bun.Glob", "Bun.plugin", "bun:ffi".

    Also in 3 projects that use this

  • xfstudioSkill

    typescript-expert

    TypeScript and JavaScript expert with deep knowledge of type-level programming, performance optimization, monorepo management, migration strategies, and modern tooling. Use PROACTIVELY for any TypeScript/JavaScript issues including complex type gymnastics, build performance, debugging, and architectural decisions. If a specialized expert is a better fit, I will recommend switching and stop.

    Also in 3 projects that use this

  • xfstudioSkill

    typescript-advanced-types

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the installed extension's help and upstream documentation for command details rather than maintaining a command manual here.

    line 9
  2. Very specific:

    Use view --json for inspection and submit --auto for authorized publishing.

    line 28
  3. Distinctive:

    Check the installed command's help if flags or behavior differ.

    line 30
  4. Distinctive:

    Before these operations, explain which branches will be rewritten or published and obtain explicit authorization for force-with-lease on …

    line 40
  5. Very specific:

    Before each push, require uv run poe check to pass for every changed layer being published at its final rebased head.

    line 46

“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Stacked Pull Requests

This is the repository's stacked-PR workflow, not the ordinary ship-it flow. Use the installed extension's help and upstream documentation for command details rather than maintaining a command manual here.

Before changing a stack

Inspect the branch, worktree, remotes, and existing stack. Preserve unrelated changes. Confirm gh authentication and extension availability; if the extension is missing, report the prerequisite rather than silently installing it or substituting ad-hoc history rewrites.

Agree on the dependency order before creating branches. Each layer should be independently reviewable, with its code, tests, and directly related docs together. Use repository branch prefixes and deliberate git add/git commit, not shortcuts that stage every change.

Non-interactive commands

  • Supply explicit branch names to init, add, and checkout.
  • With a configured prefix, pass only the suffix to add.
  • Use view --json for inspection and submit --auto for authorized publishing.
  • Select the intended remote explicitly when multiple remotes exist.
  • Check the installed command's help if flags or behavior differ. Stop rather than entering an interactive prompt or tearing down a conflicting stack.

Publishing and history changes

Viewing or navigating a stack does not authorize commits, rebases, pushes, PR changes, or branch deletion. A request to create a stack does not authorize publishing it.

push and submit use force-with-lease; sync combines rebasing and pushing. Before these operations, explain which branches will be rewritten or published and obtain explicit authorization for force-with-lease on those feature branches. Never force-push main, use plain --force, or treat an ordinary "ship it" request as authorization to rewrite history. Stop on divergence or unexpected remote changes rather than bypassing lease protection.

Before each push, require uv run poe check to pass for every changed layer being published at its final rebased head. Follow Quality Gates for additional checks. Do not use combined sync when it would push rebased heads before these checks; separate rebase, validation, and publishing.

Review each layer's diff and use the required commit trailers. Ensure each PR targets its immediate parent branch, with the bottom PR targeting main. Inspect the resulting stack and monitor checks on every published PR. Merging, pruning branches, and removing local or remote stack metadata require separate explicit requests.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.