/myflow:commit [message]from MyFlow
Create structured atomic commits. Use when the user asks to commit, or when Implement has completed a plan phase whose automated success criteria are green.
Ships in MyFlow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are tasked with creating git commits for repository changes.
$ARGUMENTS — optional commit message hint. Empty/literal → infer from history and git diff.
Run this block from this skill's directory and keep its full output. Every path is relative to this installed skills/commit/SKILL.md.
node ../_shared/git-context.mjs
echo "---status---"
git status --short 2>/dev/null || true
echo "---diffstat---"
git diff --stat HEAD 2>/dev/null || true
echo "---recent-subjects---"
git log --pretty=%s -n 20 2>/dev/null || true
The first six lines are branch:, commit:, repo:, root:, in_repo:, and author:.
---status--- — the short status: staged, unstaged, and untracked paths.
---diffstat--- — per-file insertion and deletion counts against HEAD. Empty on a no-HEAD initial repository; use git diff --stat and git status directly there.
---recent-subjects--- — up to 20 most recent commit subject lines, used in Step 2 to match the repository's existing commit-message style. Empty on a no-HEAD initial repo.
When implement invokes this skill immediately after a completed plan phase, the accepted plan pre-authorizes one atomic commit for that phase. The usual user-confirmation step is skipped only in this context:
Show the resulting commit hash and subject, resolver-selected map path, automated evidence, deviations, outstanding manual verification, and next phase/Verify action in the implementation checkpoint. Manual-verification criteria remain for Stage 4 and do not block the phase commit.
For direct user invocations and Close's final closeout commit, retain the normal confirmation process below.
Check git availability:
in_repo: in the Metadata block is no, tell the user: "This directory is not a git repository. Run git init to initialize one." Stop — do not proceed.Think about what changed:
---status--- and the per-file insertion and deletion counts under ---diffstat---. For a file with a small diffstat (≲5 lines), the line counts alone are enough to write the message — skip git diff. Run git diff <path> only where the change is large or the intent isn't obvious from the filename and line counts.?? path/), assume their contents are the change unless the directory has many files; do NOT cat/head files to verify obvious purpose.Plan your commit(s):
---recent-subjects--- — same prefix convention (e.g. feat: / fix(scope): / docs: for Conventional Commits, gitmoji, bare sentence-case, ticket-prefixed, etc.), same length budget, same casing. If the sample is empty (initial repo) or mixed, default to imperative sentence-case with no prefix.Confirm the commit plan unless this is a pre-authorized plan-phase commit:
../myflow/references/capabilities.md. Question: "{N} commit(s) with {M} files. Proceed?". Header: "Commit". Options: "Commit (Recommended)" (Create the commit(s) as planned); "Adjust" (Change the grouping or commit messages); "Review files" (Show me the full diff before committing).Execute after confirmation, or directly for a pre-authorized plan-phase commit:
git add with specific files (never use -A or .)git log --oneline -n X (where X = number of commits you just created)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
21 skills in this plugin
/closeUse after a passing MyFlow Verify report to make proportionate closeout decisions, preserve continuity, and decide delivery with the developer./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewUse when reviewing a branch, commit range, pull request, or work-in-progress change against its specification and repository standards.npx claudepluginhub don-smith/myflow --plugin myflow