搜索

PythonReactSEOPDF
GitHub Skill

git-commit-fixup

Analyze working tree changes, map to existing commits, and create fixup commits for autosquash

lambdalisue☆ 41 仓库 Stars4 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Arguments

  • context (optional): Additional context for mapping changes to commits (e.g., "These changes are for the auth refactor", "Fix edge cases in parser"). This context will be used to inform which existing commits the changes should be mapped to.

Language

  • Task prompts to agents: English
  • User-facing explanations, summaries, AskUserQuestion: Japanese
  • Git artifacts (commit messages, branch names): preserve original language from agent output

Workflow

  1. Analyze - Use the Task tool (subagent_type: "git-commit-fixup") to analyze all working tree changes, map them to existing commits since base branch, and create a fixup plan.

    • If context argument is provided, include it in the prompt: "Analyze all working tree changes and create a fixup commit plan. Additional context: {context}"
    • If no context is provided, simply: "Analyze all working tree changes and create a fixup commit plan."
    • If the agent reports nothing to commit, inform the user and STOP.
    • If the agent reports no existing commits to fixup against, inform the user and suggest using /git-commit instead. STOP.
  2. Approve - Present the fixup plan to the user exactly as returned by the agent. Use AskUserQuestion to ask for approval with options: "Approve", "Modify" (let user adjust the plan), "Cancel".

  3. Execute - If approved, use the Task tool (subagent_type: "git-commit-fixup") to execute the approved fixup plan. Include the full approved plan in the prompt. Present the summary to the user.

  4. Present - Show rebase instructions in Japanese:

    ✅ fixup コミットを作成しました
    
    以下のコマンドで自動的にスカッシュできます:
      git rebase -i --autosquash origin/<base-branch>
    

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!