スキル一覧に戻る
onepunch-tk

git

by onepunch-tk

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: git description: | Git automation skill. Provides task selection UI when /git command is executed. Choose from commit, push, sync, merge operations. model: opus allowed-tools:

  • Bash
  • Read
  • Glob
  • Grep
  • AskUserQuestion

Git Automation Skill

Select a task when the /git command is executed.

Argument Parsing

Parse the args parameter when the skill is invoked to separate the action and message.

Parsing Rules

Input ExampleParsing Result
(none)action=none, message=none
"Login feature"action=none, message="Login feature"
commitaction=commit, message=none
commit "Login feature"action=commit, message="Login feature"
syncaction=sync, message=none
sync "Login feature"action=sync, message="Login feature"
pushaction=push
mergeaction=merge

Parsing Method

  1. If args starts with quotes → treat entire content as message (no action)
  2. If args starts with commit, sync, push, merge → use that value as action, rest as message
  3. Otherwise → no action, treat entire content as message

Execution Flow

1. If no action → Display task selection UI

Call AskUserQuestion tool to provide task selection UI.

If no message:

{
  "questions": [
    {
      "header": "Git Task",
      "question": "Which Git operation would you like to perform?",
      "multiSelect": false,
      "options": [
        { "label": "commit", "description": "Analyze changes and commit" },
        { "label": "push", "description": "Push current branch" },
        { "label": "sync", "description": "Full workflow: add → commit → push" },
        { "label": "merge", "description": "Trunk-based merge (current branch → main)" }
      ]
    }
  ]
}

If message exists (e.g., /git "Login feature"):

{
  "questions": [
    {
      "header": "Git Task",
      "question": "Which Git operation would you like to perform? (message: \"Login feature\")",
      "multiSelect": false,
      "options": [
        { "label": "commit", "description": "Commit with provided message" },
        { "label": "sync", "description": "add → commit → push with provided message" },
        { "label": "push", "description": "Push current branch (message not used)" },
        { "label": "merge", "description": "Trunk-based merge (message not used)" }
      ]
    }
  ]
}

When Other is selected from UI:

  • Treat input as message for commit/sync operations

2. If action exists → Execute that operation directly

actionmessagebehavior
commitnoneAuto-generate message and commit
commitexistsCommit with provided message
syncnoneAuto-generate message then add → commit → push
syncexistsadd → commit → push with provided message
push-Push immediately
merge-Ask about branch deletion, then merge

3. Reference Documents by Operation

Common Rules

Commit Message Format (Conventional Commits)

<emoji> <type>[scope][!]: <description>

- [detailed change 1]
- [detailed change 2]

Type & Emoji Map

TypeEmojiUsage
featNew feature
fix🐛Bug fix
docs📝Documentation changes
style💄Code style
refactor♻️Refactoring
perfPerformance improvement
testTests
chore🔧Config/build
ci🚀CI/CD
build📦Build system
revertRevert

Detailed rules: references/commit-prefix-rules.md

Commit Message Rules

  • Subject under 72 characters (including emoji + type + scope)
  • Imperative mood ("Add" not "Added")
  • Atomic commits (single purpose)
  • Split unrelated changes

Language Rules

  • Commit messages: Korean
  • Variable/function names: English

Prohibited [Important]

  • Do NOT use Co-Authored-By pattern (e.g., Co-Authored-By: Claude ...)
  • Do NOT use non-standard types (types not in the table above)
  • Do NOT use hotfix: type → Use fix
  • Do NOT use merge: type → Use Git auto-generated message
  • No force push

Reference Documents

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です