docs(git-master): sync skill markdown with multilingual wording

This commit is contained in:
Kazumasa Shimomura
2026-04-04 03:19:35 +09:00
parent 01d6a7d384
commit fdc4376ae6
+35 -33
View File
@@ -18,9 +18,9 @@ Analyze the user's request to determine operation mode:
| User Request Pattern | Mode | Jump To | | User Request Pattern | Mode | Jump To |
|---------------------|------|---------| |---------------------|------|---------|
| "commit", "커밋", changes to commit | `COMMIT` | Phase 0-6 (existing) | | Commit intent in any language (e.g., "commit", "커밋", "コミット") | `COMMIT` | Phase 0-6 (existing) |
| "rebase", "리베이스", "squash", "cleanup history" | `REBASE` | Phase R1-R4 | | Rebase/squash intent in any language (e.g., "rebase", "리베이스", "リベース") | `REBASE` | Phase R1-R4 |
| "find when", "who changed", "언제 바뀌었", "git blame", "bisect" | `HISTORY_SEARCH` | Phase H1-H3 | | History lookup intent in any language (e.g., "find when", "언제 바뀌었", "いつ追加") | `HISTORY_SEARCH` | Phase H1-H3 |
| "smart rebase", "rebase onto" | `REBASE` | Phase R1-R4 | | "smart rebase", "rebase onto" | `REBASE` | Phase R1-R4 |
**CRITICAL**: Don't default to COMMIT mode. Parse the actual request. **CRITICAL**: Don't default to COMMIT mode. Parse the actual request.
@@ -107,18 +107,18 @@ git log --oneline $(git merge-base HEAD main 2>/dev/null || git merge-base HEAD
<style_detection> <style_detection>
**THIS PHASE HAS MANDATORY OUTPUT** - You MUST print the analysis result before moving to Phase 2. **THIS PHASE HAS MANDATORY OUTPUT** - You MUST print the analysis result before moving to Phase 2.
### 1.1 Language Detection ### 1.1 Language Profile Detection
``` ```
Count from git log -30: Count from git log -30:
- Korean characters: N commits - Dominant language/script patterns: N commits
- English only: M commits - Secondary language/script patterns: M commits
- Mixed: K commits - Mixed/ambiguous: K commits
DECISION: DECISION:
- If Korean >= 50% -> KOREAN - Preserve the dominant repository language pattern in commit messages
- If English >= 50% -> ENGLISH - If multiple languages are common, follow the nearest recent examples for the same module
- If Mixed -> Use MAJORITY language - Never restrict output to specific languages; support any language used by the repo (e.g., Japanese, Korean, English, etc.)
``` ```
### 1.2 Commit Style Classification ### 1.2 Commit Style Classification
@@ -151,9 +151,9 @@ STYLE DETECTION RESULT
====================== ======================
Analyzed: 30 commits from git log Analyzed: 30 commits from git log
Language: [KOREAN | ENGLISH] Language profile: [DOMINANT_LANGUAGE_OR_SCRIPT]
- Korean commits: N (X%) - Dominant pattern: N (X%)
- English commits: M (Y%) - Secondary pattern: M (Y%)
Style: [SEMANTIC | PLAIN | SENTENCE | SHORT] Style: [SEMANTIC | PLAIN | SENTENCE | SHORT]
- Semantic (feat:, fix:, etc): N (X%) - Semantic (feat:, fix:, etc): N (X%)
@@ -165,7 +165,7 @@ Reference examples from repo:
2. "actual commit message from log" 2. "actual commit message from log"
3. "actual commit message from log" 3. "actual commit message from log"
All commits will follow: [LANGUAGE] + [STYLE] All commits will follow: [DOMINANT_LANGUAGE_OR_SCRIPT] + [STYLE]
``` ```
**IF YOU SKIP THIS OUTPUT, YOUR COMMITS WILL BE WRONG. STOP AND REDO.** **IF YOU SKIP THIS OUTPUT, YOUR COMMITS WILL BE WRONG. STOP AND REDO.**
@@ -507,17 +507,19 @@ git log -1 --oneline
**Based on COMMIT_CONFIG from Phase 1:** **Based on COMMIT_CONFIG from Phase 1:**
``` ```
IF style == SEMANTIC AND language == KOREAN: IF style == SEMANTIC:
-> "feat: 로그인 기능 추가" -> Use a semantic prefix + repository language message
-> Examples:
- "feat: add login feature"
- "feat: ログイン機能を追加"
- "feat: 로그인 기능 추가"
IF style == SEMANTIC AND language == ENGLISH: IF style == PLAIN:
-> "feat: add login feature" -> Use plain repository language message without semantic prefix
-> Examples:
IF style == PLAIN AND language == KOREAN: - "Add login feature"
-> "로그인 기능 추가" - "ログイン機能を追加"
- "로그인 기능 추가"
IF style == PLAIN AND language == ENGLISH:
-> "Add login feature"
IF style == SHORT: IF style == SHORT:
-> "format" / "type fix" / "lint" -> "format" / "type fix" / "lint"
@@ -589,7 +591,7 @@ NEXT STEPS:
| If git log shows... | Use this style | | If git log shows... | Use this style |
|---------------------|----------------| |---------------------|----------------|
| `feat: xxx`, `fix: yyy` | SEMANTIC | | `feat: xxx`, `fix: yyy` | SEMANTIC |
| `Add xxx`, `Fix yyy`, `xxx 추가` | PLAIN | | `Add xxx`, `Fix yyy`, `xxx 추가`, `xxxを追加` | PLAIN |
| `format`, `lint`, `typo` | SHORT | | `format`, `lint`, `typo` | SHORT |
| Full sentences | SENTENCE | | Full sentences | SENTENCE |
| Mix of above | Use MAJORITY (not semantic by default) | | Mix of above | Use MAJORITY (not semantic by default) |
@@ -691,16 +693,16 @@ USER REQUEST -> STRATEGY:
"squash commits" / "cleanup" / "정리" "squash commits" / "cleanup" / "정리"
-> INTERACTIVE_SQUASH -> INTERACTIVE_SQUASH
"rebase on main" / "update branch" / "메인에 리베이스" "rebase on main" intent in any language (e.g., "update branch", "메인에 리베이스", "mainにリベース")
-> REBASE_ONTO_BASE -> REBASE_ONTO_BASE
"autosquash" / "apply fixups" "autosquash" / "apply fixups"
-> AUTOSQUASH -> AUTOSQUASH
"reorder commits" / "커밋 순서" "reorder commits" intent in any language (e.g., "커밋 순서", "コミット順を並べ替え")
-> INTERACTIVE_REORDER -> INTERACTIVE_REORDER
"split commit" / "커밋 분리" "split commit" intent in any language (e.g., "커밋 분리", "コミット分割")
-> INTERACTIVE_EDIT -> INTERACTIVE_EDIT
``` ```
</rebase_context> </rebase_context>
@@ -850,12 +852,12 @@ NEXT STEPS:
| User Request | Search Type | Tool | | User Request | Search Type | Tool |
|--------------|-------------|------| |--------------|-------------|------|
| "when was X added" / "X가 언제 추가됐어" | PICKAXE | `git log -S` | | "when was X added" in any language (e.g., "X가 언제 추가됐어", "Xはいつ追加された") | PICKAXE | `git log -S` |
| "find commits changing X pattern" | REGEX | `git log -G` | | "find commits changing X pattern" | REGEX | `git log -G` |
| "who wrote this line" / "이 줄 누가 썼어" | BLAME | `git blame` | | "who wrote this line" in any language (e.g., "이 줄 누가 썼어", "この行を書いたのは誰") | BLAME | `git blame` |
| "when did bug start" / "버그 언제 생겼어" | BISECT | `git bisect` | | "when did bug start" in any language (e.g., "버그 언제 생겼어", "バグはいつ入った") | BISECT | `git bisect` |
| "history of file" / "파일 히스토리" | FILE_LOG | `git log -- path` | | "history of file" in any language (e.g., "파일 히스토리", "ファイル履歴") | FILE_LOG | `git log -- path` |
| "find deleted code" / "삭제된 코드 찾기" | PICKAXE_ALL | `git log -S --all` | | "find deleted code" in any language (e.g., "삭제된 코드 찾기", "削除されたコードを探す") | PICKAXE_ALL | `git log -S --all` |
### H1.2 Extract Search Parameters ### H1.2 Extract Search Parameters