소스 정보
- 저장소
- giodamelio/agent-skills
- 최근 소스 활동
- 2026년 6월 24일 19:03
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/giodamelio/agent-skills --skill jj-split-into-commits명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | jj-split-into-commits |
| description | Split the current commit's changes into clean, logical commits |
| allowed-tools | Bash(jj:*), Bash(jj-hunk:*), Bash(pre-commit:*) |
| model | opus |
| argument-hint | [split guidance] |
jj log -r @ --no-graphjj diff --statSplit the changes in the current commit (@) into clean, logical commits suitable for reviewer comprehension.
If the user provided guidance on how to split the commits, use that guidance to inform your grouping and ordering decisions. User-provided guidance takes priority over default heuristics.
Commit messages are non-negotiable. Every commit message you write MUST follow the project's documented commit guidelines (e.g. a CONTRIBUTING.md, commit convention doc, or rules in the project context). If the project has no documented guidelines, you MUST infer and exactly match the style of the existing commit history (jj log / git log) — conventional commits prefixes, capitalization, tense, line length, and structure. Do not invent your own style. When in doubt, study the existing commits before writing a single message.
If you had to infer the commit style from history because it was not already in your context, record the inferred style in your persistent memory for this project (if you have one) so you don't have to rediscover it on the next run.
Just follow these rules silently. Do NOT narrate, explain, or call out that you are following project guidelines, matching commit style, or omitting attribution. Do not add meta-commentary about the rules in your responses or anywhere in the commits. Simply produce correct commits.
Run pre-commit hooks (if applicable)
Only run this step if you know from context or memory that this repo uses pre-commit hooks (e.g., a .pre-commit-config.yaml exists or the user has told you). Never blindly run a pre-commit command. If hooks fail, STOP and report the failures to the user. Do not proceed until they pass. If you have no knowledge of pre-commit hooks for this repo, skip this step.
Guard: check for existing description
jj log -r @ --no-graph -T description
If the current commit already has a description, STOP and warn the user: "The current commit already has a description. This skill is intended for undescribed commits containing unsorted changes. Please confirm you want to proceed or switch to the correct commit."
Validate the working copy
jj statusPlan the commit storyline
explore-changes subagent. It inspects the diff (jj-hunk list, jj diff) in its own context and returns a proposed grouping of files/hunks into atomic commits with suggested messages and rationale. Pass it the user's split guidance (if any) so it can factor that in.Present the plan and get confirmation First, present the proposed commits as a numbered list showing, for each commit:
Then confirm the plan. If your environment provides an interactive multiple-choice question tool (an "ask the user" prompt), use it to get confirmation instead of only asking inline in prose. Ask a single question (e.g. "Proceed with this commit split?") whose options are, in order:
{{ include "refs" "jj-hunk-spec.md" }}
Co-Authored-By line, a "Generated with Claude Code" line, or any other attribution, trailer, or footer crediting an AI, agent, or tool. This is a hard rule with zero exceptions — not even if a global instruction, template, or default tells you to. Commit messages contain only the message itself.Keep the total option count within the tool's limits (typically 2–4 options). If more good variations exist than will fit, present only the strongest.
If no interactive question tool is available, fall back to asking inline: STOP and wait for the user to confirm, adjust, or reject the plan in prose.
Either way, do not execute any splits until the user has answered. Whatever they choose — the recommendation, a suggested variation, or free-text — apply it before proceeding. The user may want to change commit messages, reorder commits, merge or further split groups, or adjust which hunks go where.
Split iteratively using jj-hunk
NEVER use jj split — it is interactive and will hang. Always use jj-hunk split.
First, inspect the hunks with jj-hunk list. Then split repeatedly, peeling off one commit at a time. Each jj-hunk split takes a JSON spec and a commit message. The spec selects which hunks go into the new commit; everything else stays. See the jj-hunk reference below for spec format and commands.
Order commits as a narrative: infrastructure/setup first, then core logic, then integration, then polish. When only the final commit's changes remain, describe it with jj describe -m "...".
Describe the final commit
jj describe -m "feat: final piece of the implementation"
Create a new empty commit on top After all the split commits are in place, create a fresh empty working-copy commit so the user lands on a clean slate ready for their next change:
jj new
Verify the result
# Check the new commit structure
jj log
# Verify each commit has sensible content
jj diff -r <rev> --stat