karimo-overview: Command for Claude Code

.claude/commands/karimo/merge.md

merge is a command for Claude Code from opensesh/karimo-overview. It costs 0 tokens per session (7,145 once invoked), scanned A, a copy of merge, Apache-2.0.

A KARIMO command that combines completed feature-branch task changes and creates the final pull request to the main branch. A pull request is a proposed set of code changes for review and merging.

In plain words
What is it for?
Use it to validate a completed PRD, create the final pull request, or automatically merge it when validation passes.
Why use it?
It completes the feature workflow after all planned tasks are finished and checks that the feature branch is ready.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument; mentions Claude Code.

This is opensesh/karimo-overview's own configuration. It tells Claude Code how to work on karimo-overview 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 karimo-overview configures →

Reuse

Borrowing it

Nothing to install: this file belongs to opensesh/karimo-overview. 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/opensesh/karimo-overview/main/.claude/commands/karimo/merge.md
Clone the repo
git clone --depth 1 https://github.com/opensesh/karimo-overview

Made for: Claude Code.

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 merge

README.md
[![agentmods](https://agentmods.dev/badge/commands/opensesh/karimo-overview/merge.svg)](https://agentmods.dev/commands/opensesh/karimo-overview/merge)
Your own site
<a href="https://agentmods.dev/commands/opensesh/karimo-overview/merge"><img src="https://agentmods.dev/badge/commands/opensesh/karimo-overview/merge.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,145 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 92% copy Near-identical to another mod 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.00000 $0.07145
Opus 5 $0.00000 $0.03572
Sonnet 5 $0.00000 $0.01429
Haiku 4.5 $0.00000 $0.00715

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

Security

Grade A, and why

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 8d 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.

Origin

This is a copy

92% identical to merge — 100 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/karimo/merge.md · 875 lines

How it starts

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

/karimo:merge — Feature Branch Merge Command

Consolidate feature branch changes and create final PR to main. This completes the v5.0 feature branch workflow after all task PRs have been merged.

Arguments

  • --prd {slug} (required): The PRD slug to merge.
  • --skip-validation (optional): Skip validation suite (use with caution).
  • --auto-merge (optional): Automatically merge PR after creation (requires passing validation).

Prerequisites

Before merge, the PRD must be:

  1. Orchestrated via /karimo:run (execution_mode: "feature-branch")
  2. All tasks complete (status: "ready-for-merge")
  3. Feature branch exists with all task commits

Behavior

1. Validation

Verify the PRD is ready for merge:

# 1. Check status.json
status=$(jq -r '.status' .karimo/prds/{NNN}_{slug}/status.json)
execution_mode=$(jq -r '.execution_mode' .karimo/prds/{NNN}_{slug}/status.json)
feature_branch=$(jq -r '.feature_branch' .karimo/prds/{NNN}_{slug}/status.json)

if [ "$status" != "ready-for-merge" ]; then
  echo "❌ PRD not ready for merge (status: $status)"
  echo "   Expected: ready-for-merge"
  echo "   Hint: Run /karimo:run --prd {slug} first"
  exit 1
fi

if [ "$execution_mode" != "feature-branch" ]; then
  echo "❌ PRD not using feature branch mode"
  echo "   This command is for v5.0 feature branch workflow only"
  echo "   For direct-to-main PRDs, tasks are already merged"
  exit 1
fi

# 2. Check feature branch exists
if ! git ls-remote --heads origin "$feature_branch" | grep -q "$feature_branch"; then
  echo "❌ Feature branch not found: $feature_branch"
  exit 1
fi

# 3. Check all tasks merged to feature branch
open_prs=$(gh pr list --label karimo-${prd_slug} --base "$feature_branch" --state open --json number --jq 'length')
if [ "$open_prs" -gt 0 ]; then
  echo "❌ $open_prs task PRs still open to feature branch"
  gh pr list --label karimo-${prd_slug} --base "$feature_branch" --state open
  echo "   Wait for all task PRs to merge before running /karimo:merge"
  exit 1
fi

echo "✓ PRD ready for merge"

Read the full file on GitHub · 875 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. 8d ago First seen · 875 lines · 0 tokens per session scan A 6a32efc8fdd7

Subscribe to this mod's changes

merge is a command published in the GitHub repository opensesh/karimo-overview (11 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 7,145 tokens. A static security scan graded it A with 0 findings. It is 92% identical to merge, differing in 100 lines, and is treated as a copy.