sova: Skill for Claude Code

.agents/skills/sova-after-merge/SKILL.md

sova-after-merge is a skill for Claude Code, Codex from xsovad06/sova. It costs 32 tokens per session (916 once invoked), scanned A, original, Apache-2.0.

A cleanup workflow for after a GitHub pull request has been merged. It synchronizes the local main branch, removes finished branches and worktrees, updates the linked issue, and records lessons learned.

In plain words
What is it for?
Use it after a merge to update local Git state, remove worktrees, close or tidy the related issue, and preserve review learnings.
Why use it?
Merged work can leave stale branches, temporary workspaces, open issue statuses, and useful knowledge uncaptured. This handles those follow-up tasks in one process.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is xsovad06/sova's own configuration. It tells Claude Code and Codex how to work on sova itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sova configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xsovad06/sova. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/xsovad06/sova/main/.agents/skills/sova-after-merge/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/xsovad06/sova

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sova-after-merge

README.md
[![agentmods](https://agentmods.dev/badge/skills/xsovad06/sova/sova-after-merge/github.svg)](https://agentmods.dev/skills/xsovad06/sova/sova-after-merge)
Your own site
<a href="https://agentmods.dev/skills/xsovad06/sova/sova-after-merge"><img src="https://agentmods.dev/badge/skills/xsovad06/sova/sova-after-merge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sova-after-merge

Your own site · 80×15
<a href="https://agentmods.dev/skills/xsovad06/sova/sova-after-merge"><img src="https://agentmods.dev/badge/skills/xsovad06/sova/sova-after-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 916 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00916
Opus 5.5 $0.00013 $0.00366
Sonnet 5.5 $0.00006 $0.00183
Haiku 4.5 $0.00003 $0.00092

Measured 14d ago against content hash 6d24bb5bff2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sova-after-merge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/sova-after-merge/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

After Merge Cleanup

The sova-integrate-pr skill is the preferred path (it merges, audits and cleans up in one run); this command is kept for PRs merged outside it.

Run this after a PR has been merged to clean up local state and capture learnings.

Instructions

Each shell block below runs as its own shell invocation, so each one assigns every variable it reads.

  1. Get the PR from the arguments provided when this skill is invoked (PR number or branch name). If empty, check for recently merged PRs:

    gh pr list --author @me --state merged --limit 5
    
  2. Switch to the base branch and pull (from the primary checkout, not a worktree):

    BASE=$(gh pr view <PR_NUMBER> --json baseRefName --jq .baseRefName)
    git checkout "$BASE"
    git pull origin "$BASE"
    
  3. Clean up worktrees (if any exist for this ticket). Do this before deleting the branch: git refuses to delete a branch that a worktree still has checked out.

    git worktree list
    

    Remove worktrees for the merged ticket. Do not pass --force: if a worktree has uncommitted changes, leave it in place and report it rather than discarding the work.

    git worktree remove .claude/worktrees/<ID>
    

    Prune dangling worktree references (directories removed but entries remain):

    git worktree prune
    
  4. Delete the merged branch locally:

    git branch -d <branch-name>
    

    If -d refuses ("not fully merged", expected after a rebase merge), confirm BASE=$(gh pr view <PR_NUMBER> --json baseRefName --jq .baseRefName); git diff "origin/$BASE" <branch-name> prints nothing, then git branch -D <branch-name>. If the diff is non-empty only because the base branch moved on after the merge, compare against the PR's merge commit instead (gh pr view <PR_NUMBER> --json mergeCommit --jq .mergeCommit.oid); if that is not empty either, keep the branch and report it.

  5. Close linked issue and clean up labels:

    gh issue close <ISSUE_NUMBER> 2>/dev/null || true
    

    Remove stale workflow labels that are no longer meaningful on a closed issue:

    gh issue edit <ISSUE_NUMBER> --remove-label "agent:in-review" --remove-label "agent:in-progress" --remove-label "sova:revise" --remove-label "sova:block" 2>/dev/null || true
    

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed 6d24bb5bff2e
  2. 16d ago Changed · +11 lines · +3 tokens per session 5fb5bad1c2b4
  3. 22d ago First seen · 63 lines · 29 tokens per session scan A 3c2d7ebe30b2

Subscribe to this mod's changes

sova-after-merge is a skill published in the GitHub repository xsovad06/sova (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 32 tokens to every session and 916 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.

Related

Other skills, from other repositories