Skip to content
Back to skills

Ah Stack

ASecurity

Show a jjack stack file as a page: each PR's commits and diff stats, newest first, with buttons that open any commit's or PR's diff in skepsis and Push, Land, and Sync buttons the user clicks to run jjack. Use when the user asks for a stack page, or wants to see how a stack of jj changes splits into PRs.

  • 67 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
toolsgoshellbashawsgit

Works with

  • claude code
  • terminal
  • cli

Security analysis

A100/100

Scanned November 27, 2026

npx -y skills add david-crespo/ah --skill ah-stack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ah Stack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ah Stack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-crespo-ah-stack/badge)](https://www.skillsdirectory.com/skills/david-crespo-ah-stack)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ah-stack
description: "Show a jjack stack file as a page: each PR's commits and diff stats, newest first, with buttons that open any commit's or PR's diff in skepsis and Push, Land, and Sync buttons the user clicks to run jjack. Use when the user asks for a stack page, or wants to see how a stack of jj changes splits into PRs."
---

# Stack pages

A stack page shows a jjack stack file the way the user reviews a stack:
newest first, like `jj log`, each PR with its tip, its files, and a line per
commit that opens to the commit's description and files. jjack owns the
file and pushes the PRs. ah draws the page from the file, from jj, and from
jjack's status for the file.

ah's server imports jjack as a library, so the page's buttons work without
the `jjack` command. You run `jjack` from your shell, so it has to be
installed, from https://github.com/david-crespo/jjack. The jjack skill is at
`skills/jjack` in that repository. jjack reads and writes the stack file
format of jj-spr, the tool ah used before, so a stack file from jj-spr works
as it is.

The jjack skill covers the stack file and jjack's commands: the format,
changing a stack, what to do when a command refuses, and taking over a stack
that was pushed with `jj git push`. Read it before writing or changing a
stack file. This skill covers the page.

Run every `ah` command as the whole Bash command, as the ah-page skill says (in
Claude Code: no pipes, `&&`, redirects, or `$`), or it runs in the sandbox and
fails.

## Starting one

A stack lives in a directory of its own,
`.claude/notes/<YYYY-MM-DD>-<slug>-stack/`, which jj ignores. Make the stack
file first, from the tip of each PR, bottom to top:

```
jjack init .claude/notes/2026-11-05-versioned-docs-stack/stack.json --tips 'vdocs-release-data | vdocs-routes | kxqzwmvtnlop'
```

Each tip has to be an ancestor of the next. Each becomes an entry with the
change's bookmark if it has exactly one, else its change ID, and a title from
its description. Then open the page:

```
ah tool stack .claude/notes/2026-11-05-versioned-docs-stack/index.html --title 'Versioned docs stack'
```

ah writes `index.html` next to the stack file, opens it in a window, and
binds it to this session. Without a stack file there, it writes an empty one
to fill in. Run the same command without `--title` to open an existing page.
With no file, it looks for stack pages in this workspace's `.claude/notes`:
it opens the only one, or with several, the user picks one in the terminal,
so give a path when you know which one you want.

## The stack file

```json
{
  "title": "Versioned docs stack",
  "notes": ["The schema change in 2 has to be live before 3 can deploy."],
  "prs": [
    { "tip": "vdocs-release-data", "body": "vdocs-release-data.md" },
    { "tip": "vdocs-routes", "body": "vdocs-routes.md" },
    { "tip": "kxqzwmvtnlop", "title": "Serve docs by release" }
  ]
}
```

`title` and `notes` at the top are ah's. jjack keeps them:

- `title` is the page's heading.
- `notes` are plain-text paragraphs (backticks for code) for context that
  belongs to no one PR, such as a PR that's been tabled. What a PR does goes
  in its body.

Everything under `prs` is jjack's format. The page numbers the PRs by
place, so don't number titles. After editing the file, check it with
`jjack status <file>`. The page shows the same problems and planned actions
on each PR.

## Bodies and commit summaries

Write each PR's body before the user pushes it: set its `body` key and write
the file. The page's Body button on a PR with a `body` key opens the file in
a doc page bound to the same agent, starting it with just the title if it
doesn't exist. Comments on it come to you as the ah-doc skill describes.
Later pushes send the file's changes to GitHub.

A commit's summary on the page is its description's body, under the title
line. Write it when you make the commit (`jj describe`). After squashing,
splitting, or moving changes between commits, reread each changed commit's
diff and update its body to match.

## The page

The page redraws when the stack file or a body changes and after each jj
operation. Merged PRs start folded to one line. When the user folds or
unfolds a PR, the page keeps that choice. Once a PR is on GitHub, the page
shows its state, checks, review, and GitHub stack, and it reads them again
every minute while it's in view.

Each diff stat (`+12 −3`) on a PR or commit is a button that opens that diff
in skepsis. After a push, the commits changed since are tagged new or
changed, and a changed PR has a tag by its diff stat. A changed tag opens the
interdiff: what changed apart from moving onto new parents. Comments sent from
skepsis come to the agent the page is bound to as messages; treat them as the
user's. A second click on the same diff brings its window forward rather
than opening another. The server hosts skepsis itself. If a button has a red
outline, its tooltip has the error.

## Pushing, landing, and syncing

A PR that a push would change has a Push button, which does what
`jjack submit <file> --upto <tip>` does, for it and the PRs below it. Push
all, under the title, pushes the whole stack. When the push adds commits to
open PRs, a field by the button has the message for each update's last
commit, drafted from what changed since the last push. When the field is
blank, that message is "Update", or "Merge …" when the update merges the
main branch or the PR below.

A PR has Land (`jjack land --upto`) once it and the PRs below it are open on
GitHub with nothing to push. Land all shows once every PR is. Land
squash-merges the PRs, bottom first, then syncs: it abandons the merged
changes, rebases the rest onto trunk, and marks those PRs merged in the
stack file. Sync (`jjack sync`) shows when a PR has merged on GitHub and
isn't marked merged in the stack file, as when it was merged some other way
or a land's sync stopped. It runs that sync alone.

Clicking a button opens a native sheet in ah's window for the page, listing
what the command will do. Only confirming there runs it. jjack's log then
shows on the page. In a browser tab, the buttons are disabled, since only ah's window
can show the sheet.

These are the user's actions. Never call the page's routes for them. When the
user asks you to push, run `jjack submit <file> [--upto <tip>] [-m '<message>']`
from your shell, as the jjack skill describes, or point them at the button.
Push a stack file's PRs only through jjack with the file, never with
`jjack submit -r` or `jj git push`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.