본문으로 건너뛰기
cccskills
무료GitHub에 공개

commit

Stage and commit with flexible intent parsing. Accepts file/folder scope, free-text description, amend, or any combination.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Commit

Usage

CommandWhat it does
/commitCommit staged files; if none staged, infer related changes
/commit <file>Scope to a specific file's changes
/commit <folder>/Scope to a folder's changes
/commit <description>Infer scope from free-text intent
/commit <scope> <description>Scope + explicit intent
/commit amendAmend the last commit (re-use message)
/commit amend <scope/description>Amend with additional scope or new message
(sequence mode)Deferred — sub-skills skip, caller commits once at the end

Argument Parsing

Parse the raw argument string into scope, intent, and flags:

  1. Amend flag: If the first word is amend, set amend mode and strip it. The remainder is parsed normally.
  2. Scope (file or folder): Any token that matches a real path in the repo (file or directory) — whether provided via @-reference or plain text. Multiple scopes are allowed.
  3. Intent (free-text description): Whatever remains after extracting scopes. Used to guide the commit message.
  4. Nothing: No arguments at all — default mode.

Examples:

InputScopeIntentAmend
(empty)——no
Meetings/Engineering/Meetings/Engineering/—no
.gitignore.gitignore—no
my awesome refactor—my awesome refactorno
Meetings/ wrap up notesMeetings/wrap up notesno
amend——yes
amend .obsidian/.obsidian/—yes
amend fixed typo—fixed typoyes

Workflow

1. Gather state

Run in parallel:

  • git diff --staged --stat — staged changes
  • git diff --stat — unstaged changes
  • git status --short — untracked files
  • git log --oneline -5 — recent commits (for style and amend safety)

2. Determine file set

Resolve which files will be committed, based on parsed arguments:

ScenarioFile set
Scope providedOnly changed/untracked files under the given path(s). Ignore everything else.
Intent provided, no scopeAnalyze all changed files; select only those whose diffs relate to the described intent. Present the selection for confirmation.
No args + staged files existUse exactly what's staged. Do NOT add unstaged files — the user intentionally staged those.
No args + nothing stagedAnalyze all changed/untracked files. Group related changes and propose a sensible set. Ask for confirmation.

If nothing matches (no changes in scope, or no related files for intent), tell the user and stop.

3. Stage files

  • If the file set is already fully staged, skip.
  • If unrelated files are staged, unstage them first (git restore --staged <path>).
  • Stage the resolved file set with explicit paths — never broad patterns.

4. Craft the commit message

Analyze the staged diff (git diff --staged) and write:

  • Title: ≤72 chars, conventional format — type: summary.
    • Common types: add (new files), update (modify existing), fix (corrections), chore (config/tooling), feat (new capability), refactor, docs, rename.
  • Body (optional): 1–3 lines explaining "why" if not obvious. Omit for trivial changes.
  • If the user provided intent, use it to guide the message but still ground it in the actual diff.

5. Present and confirm

Show:

  • The list of files that will be committed (or amended).
  • The proposed commit message.

Wait for user confirmation before proceeding.

6. Commit

  • Normal mode: git commit with the confirmed message.
  • Amend mode: git commit --amend (see safety rules below). If the user provided new intent, replace the message; otherwise keep the existing message (--no-edit).

Do not push.

Amend Safety

Before amending, verify ALL of these conditions:

  1. HEAD was created by you in this conversation — check git log -1.
  2. HEAD has not been pushed — git status should show "Your branch is ahead" or the commit should not exist on the remote.
  3. The user explicitly said amend.

If any condition fails, refuse and explain why. Suggest creating a new commit instead.

Sequence Mode

When called as part of a sequenced workflow (e.g. /meeting wrap), the caller owns the commit. Individual sub-skills skip their commit step.

How to detect: the calling workflow explicitly states it is running sub-skills in sequence. Do not offer to commit — just proceed. The sequence owner commits once at the end with a combined message.

Sub-skill commit format

When committing on behalf of a sequence:

  • Message: update: /{workflow-name} {argument} (e.g. update: /meeting wrap Meetings/Engineering/Some Meeting.md).
  • Stage only files modified by the current skill invocation (or full sequence). Use explicit paths.
  • Present and confirm before committing.

Important Notes

  • This workspace may not be a git repo. If git status fails, skip entirely without error.
  • Always use explicit file paths for staging — never broad patterns.
  • If no files were actually modified, skip the commit offer.
  • Never commit files that likely contain secrets (.env, credentials, tokens).
  • When the scope is a folder, include all changed files recursively under it.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Fetch & embed AI transcripts as Obsidian callouts. Args: <path>, all, refresh <path>. Prompts for URLs if empty.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

benoror/obsidianos_work1652026년 6월 11일 업데이트

defuddle

무료

Extract clean markdown content from web pages using Defuddle CLI, removing clutter and navigation to save tokens. Use instead of WebFetch when the user provides a URL to read or analyze, for online documentation, articles, blog posts, or any standard web page.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

benoror/obsidianos_work1652026년 6월 11일 업데이트

Resolve and fill Participants frontmatter + link unlinked names in body. Args: <path>, all.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

benoror/obsidianos_work1652026년 6월 11일 업데이트

Extract action items as plain markdown bullets (with confirmation). Args: <path>. No args = run [/note-status pending --step=todos](../note-status/SKILL.md#pending-mode).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

benoror/obsidianos_work1652026년 6월 11일 업데이트

Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

benoror/obsidianos_work1652026년 6월 11일 업데이트

last-1on1

무료

Show when you last had a 1:1 with each direct report / peer, sorted by recency. Flags people who haven't had one in N weeks. Powered by the OneOnOnes view on Meetings.base.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

benoror/obsidianos_work1652026년 6월 11일 업데이트

benoror의 스킬 모두 보기

이 스킬의 문제 신고