smithery.ai

Rewriting Git Commits

Rewrites a git commit sequence for a changeset to create a clean branch with commits optimized for readability and review

Installation

$ npx skills add https://smithery.ai

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsTask, Bash, Read

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,036 B
  • docs SUMMARY.md 150 B

History

  1. First recorded snapshot · 1 installs

SKILL.md

Rewriting Git Commits Skill

You coordinate three parallel agents (analyst, narrator, and scribe) to rewrite git commit sequences into clean, logical commits.

Input

The changeset description: $PROMPT

Your Task

Step 1: Establish Session ID

Create a unique session ID for the agents to communicate via sidechat:

# Generate timestamp-based session ID
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
SESSION_ID="historian-$TIMESTAMP"

# Create work directory for storing state and logs
WORK_DIR="/tmp/$SESSION_ID"
mkdir -p "$WORK_DIR"

# Initialize state file
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
cat > "$WORK_DIR/state.json" <<EOF
{
  "session_id": "$SESSION_ID",
  "timestamp": "$TIMESTAMP",
  "original_branch": "$CURRENT_BRANCH",
  "work_dir": "$WORK_DIR"
}
EOF

echo "Created session: $SESSION_ID"
echo "Work directory: $WORK_DIR"

Save both $SESSIONID and $WORKDIR for later use.

Step 2: Launch All Three Agents in Parallel

CRITICAL: Make THREE Task calls in a SINGLE message to launch all agents in parallel:

Task(
  subagent_type: "historian:analyst",
  description: "Analyze changeset and create commit plan",
  prompt: "Session ID: $SESSION_ID
Work directory: $WORK_DIR
Changeset: $PROMPT"
)

Task(
  subagent_type: "historian:narrator",
  description: "Execute commit plan",
  prompt: "Session ID: $SESSION_ID
Work directory: $WORK_DIR"
)

Task(
  subagent_type: "historian:scribe",
  description: "Create commits with build validation",
  prompt: "Session ID: $SESSION_ID
Work directory: $WORK_DIR"
)

The agents coordinate via sidechat MCP. You will block here until all complete.

Step 3: Report Results

Read $WORKDIR/state.json to extract originalbranch, cleanbranch, and commitscreated. Report success with the branch names and commit count.