Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .agents/skills/agent-setup/references/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ Use the local receipt and subsequent plan as evidence; file installation alone d
2. Write a copy of the plan that keeps only the operations whose `relative` path is under `<tree>/<skill>/` for the four user skill trees (`.claude/skills`, `.agents/skills`, `.gemini/config/skills`, `.gemini/antigravity-cli/skills`). Update `summary` to match.
3. Have the user review that list, then `apply --input <cut plan>` and `check --input <receipt>`.

A cut plan can show `conflict` ("unmanaged or overlapping edit") for a skill you never edited. That
usually means another `--state` folder's ledger owns those files: a machine can collect several, for
example one in the checkout and one in a long-lived setup worktree. Plan again with each folder that has
`targets/*.json`. Apply each skill's operations from the ledger where they are clean updates, then
`check` every receipt. Never force past the conflict.

This is safe because `apply` checks every operation it is given (library and installer hashes, the target root, the destination folder, the content hashes) without requiring the full list. Conflicts are skipped and recorded in the receipt. The ownership ledger merges, so other skills' entries stay.

## Explicit MCP replacement
Expand Down
8 changes: 8 additions & 0 deletions .agents/skills/git-and-diff-workflows/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ gitleaks detect --source . --no-git -v 2>/dev/null | head -50
Either way, confirm `git diff --cached --stat` shows your change before you commit.
- See [bounded-output-patterns.md](../cli-tools-overview/references/bounded-output-patterns.md).

- **Bringing a checkout up to date:** `git pull --ff-only` fails with "no tracking information" when the
branch has no upstream. Run `git fetch origin`, then `git merge --ff-only origin/<default>`; don't set an
upstream, because that writes `.git/config`. To move a local `main` that isn't checked out (for example
while you're on a feature branch), run `git fetch origin main:main`, which refuses anything but a
fast-forward. Afterwards, check whether something runs from this checkout's build output: a global npm
link or junction, or a plugin read from the folder. An untracked `dist/` is still the old build, so offer
the project's build command.

## Commands Requiring Confirmation

See [commands-requiring-confirmation.md](../cli-tools-overview/references/commands-requiring-confirmation.md). — especially reset, clean, force-push, filter-repo.
Expand Down
4 changes: 4 additions & 0 deletions .agents/skills/merge-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ Any failing step: stop and report it with its output. Don't fix it here; that's

Immediately before merging, re-read the PR and confirm:

- **`mergeable` or `mergeStateStatus` reads `UNKNOWN`?** GitHub is still recomputing, which is common
for a few minutes after another PR merged into the same base. Poll about every 10 seconds for up to
5 minutes, then decide on the settled value. `UNKNOWN` is neither a conflict nor a pass, so never merge on it.

- the head is still `<sha>`, with no new commits;
- it is mergeable with no conflicts, `mergeStateStatus` is not `BLOCKED`, and no review has changed;
- the checks outside Actions still show nothing failing or pending;
Expand Down
5 changes: 5 additions & 0 deletions .agents/skills/safe-command-patterns/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ rg "pattern" path/ --max-count 30
- When **fff MCP** is connected, prefer `ffgrep`/`fffind` for repeated repo search over many shell roundtrips; one-off probes may still use `rg`/`fd`.
- Never paste secrets into commands or logs.
- Prefer project scripts from AGENTS.md over invented commands.
- **A permission classifier refuses a discard** such as `git checkout -- <file>`, `git restore` or
`git branch -D`. That can happen even after the user picked the option in a dialog. Use the reversible
form for superseded local changes: `git stash push --include-untracked -m "<why>" -- <paths>`. Send each
destructive command as its own step, so one refusal doesn't stop the rest. If it's still refused, hand
it to the user as a paste-ready `!` command. Never reword it to get past the check.

## Commands Requiring Confirmation

Expand Down
6 changes: 6 additions & 0 deletions .claude/skills/agent-setup/references/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ Use the local receipt and subsequent plan as evidence; file installation alone d
2. Write a copy of the plan that keeps only the operations whose `relative` path is under `<tree>/<skill>/` for the four user skill trees (`.claude/skills`, `.agents/skills`, `.gemini/config/skills`, `.gemini/antigravity-cli/skills`). Update `summary` to match.
3. Have the user review that list, then `apply --input <cut plan>` and `check --input <receipt>`.

A cut plan can show `conflict` ("unmanaged or overlapping edit") for a skill you never edited. That
usually means another `--state` folder's ledger owns those files: a machine can collect several, for
example one in the checkout and one in a long-lived setup worktree. Plan again with each folder that has
`targets/*.json`. Apply each skill's operations from the ledger where they are clean updates, then
`check` every receipt. Never force past the conflict.

This is safe because `apply` checks every operation it is given (library and installer hashes, the target root, the destination folder, the content hashes) without requiring the full list. Conflicts are skipped and recorded in the receipt. The ownership ledger merges, so other skills' entries stay.

## Explicit MCP replacement
Expand Down
8 changes: 8 additions & 0 deletions .claude/skills/git-and-diff-workflows/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ gitleaks detect --source . --no-git -v 2>/dev/null | head -50
Either way, confirm `git diff --cached --stat` shows your change before you commit.
- See [bounded-output-patterns.md](../cli-tools-overview/references/bounded-output-patterns.md).

- **Bringing a checkout up to date:** `git pull --ff-only` fails with "no tracking information" when the
branch has no upstream. Run `git fetch origin`, then `git merge --ff-only origin/<default>`; don't set an
upstream, because that writes `.git/config`. To move a local `main` that isn't checked out (for example
while you're on a feature branch), run `git fetch origin main:main`, which refuses anything but a
fast-forward. Afterwards, check whether something runs from this checkout's build output: a global npm
link or junction, or a plugin read from the folder. An untracked `dist/` is still the old build, so offer
the project's build command.

## Commands Requiring Confirmation

See [commands-requiring-confirmation.md](../cli-tools-overview/references/commands-requiring-confirmation.md). — especially reset, clean, force-push, filter-repo.
Expand Down
4 changes: 4 additions & 0 deletions .claude/skills/merge-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ Any failing step: stop and report it with its output. Don't fix it here; that's

Immediately before merging, re-read the PR and confirm:

- **`mergeable` or `mergeStateStatus` reads `UNKNOWN`?** GitHub is still recomputing, which is common
for a few minutes after another PR merged into the same base. Poll about every 10 seconds for up to
5 minutes, then decide on the settled value. `UNKNOWN` is neither a conflict nor a pass, so never merge on it.

- the head is still `<sha>`, with no new commits;
- it is mergeable with no conflicts, `mergeStateStatus` is not `BLOCKED`, and no review has changed;
- the checks outside Actions still show nothing failing or pending;
Expand Down
5 changes: 5 additions & 0 deletions .claude/skills/safe-command-patterns/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ rg "pattern" path/ --max-count 30
- When **fff MCP** is connected, prefer `ffgrep`/`fffind` for repeated repo search over many shell roundtrips; one-off probes may still use `rg`/`fd`.
- Never paste secrets into commands or logs.
- Prefer project scripts from AGENTS.md over invented commands.
- **A permission classifier refuses a discard** such as `git checkout -- <file>`, `git restore` or
`git branch -D`. That can happen even after the user picked the option in a dialog. Use the reversible
form for superseded local changes: `git stash push --include-untracked -m "<why>" -- <paths>`. Send each
destructive command as its own step, so one refusal doesn't stop the rest. If it's still refused, hand
it to the user as a paste-ready `!` command. Never reword it to get past the check.

## Commands Requiring Confirmation

Expand Down
6 changes: 6 additions & 0 deletions .cursor/skills/agent-setup/references/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ Use the local receipt and subsequent plan as evidence; file installation alone d
2. Write a copy of the plan that keeps only the operations whose `relative` path is under `<tree>/<skill>/` for the four user skill trees (`.claude/skills`, `.agents/skills`, `.gemini/config/skills`, `.gemini/antigravity-cli/skills`). Update `summary` to match.
3. Have the user review that list, then `apply --input <cut plan>` and `check --input <receipt>`.

A cut plan can show `conflict` ("unmanaged or overlapping edit") for a skill you never edited. That
usually means another `--state` folder's ledger owns those files: a machine can collect several, for
example one in the checkout and one in a long-lived setup worktree. Plan again with each folder that has
`targets/*.json`. Apply each skill's operations from the ledger where they are clean updates, then
`check` every receipt. Never force past the conflict.

This is safe because `apply` checks every operation it is given (library and installer hashes, the target root, the destination folder, the content hashes) without requiring the full list. Conflicts are skipped and recorded in the receipt. The ownership ledger merges, so other skills' entries stay.

## Explicit MCP replacement
Expand Down
8 changes: 8 additions & 0 deletions .cursor/skills/git-and-diff-workflows/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ gitleaks detect --source . --no-git -v 2>/dev/null | head -50
Either way, confirm `git diff --cached --stat` shows your change before you commit.
- See [bounded-output-patterns.md](../cli-tools-overview/references/bounded-output-patterns.md).

- **Bringing a checkout up to date:** `git pull --ff-only` fails with "no tracking information" when the
branch has no upstream. Run `git fetch origin`, then `git merge --ff-only origin/<default>`; don't set an
upstream, because that writes `.git/config`. To move a local `main` that isn't checked out (for example
while you're on a feature branch), run `git fetch origin main:main`, which refuses anything but a
fast-forward. Afterwards, check whether something runs from this checkout's build output: a global npm
link or junction, or a plugin read from the folder. An untracked `dist/` is still the old build, so offer
the project's build command.

## Commands Requiring Confirmation

See [commands-requiring-confirmation.md](../cli-tools-overview/references/commands-requiring-confirmation.md). — especially reset, clean, force-push, filter-repo.
Expand Down
4 changes: 4 additions & 0 deletions .cursor/skills/merge-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ Any failing step: stop and report it with its output. Don't fix it here; that's

Immediately before merging, re-read the PR and confirm:

- **`mergeable` or `mergeStateStatus` reads `UNKNOWN`?** GitHub is still recomputing, which is common
for a few minutes after another PR merged into the same base. Poll about every 10 seconds for up to
5 minutes, then decide on the settled value. `UNKNOWN` is neither a conflict nor a pass, so never merge on it.

- the head is still `<sha>`, with no new commits;
- it is mergeable with no conflicts, `mergeStateStatus` is not `BLOCKED`, and no review has changed;
- the checks outside Actions still show nothing failing or pending;
Expand Down
5 changes: 5 additions & 0 deletions .cursor/skills/safe-command-patterns/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ rg "pattern" path/ --max-count 30
- When **fff MCP** is connected, prefer `ffgrep`/`fffind` for repeated repo search over many shell roundtrips; one-off probes may still use `rg`/`fd`.
- Never paste secrets into commands or logs.
- Prefer project scripts from AGENTS.md over invented commands.
- **A permission classifier refuses a discard** such as `git checkout -- <file>`, `git restore` or
`git branch -D`. That can happen even after the user picked the option in a dialog. Use the reversible
form for superseded local changes: `git stash push --include-untracked -m "<why>" -- <paths>`. Send each
destructive command as its own step, so one refusal doesn't stop the rest. If it's still refused, hand
it to the user as a paste-ready `!` command. Never reword it to get past the check.

## Commands Requiring Confirmation

Expand Down