بنقرة واحدة
semantic-commit
Commit a staged or deliberately selected change set using Semantic Commit format.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Commit a staged or deliberately selected change set using Semantic Commit format.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Resume and execute implementation work from a plan-tracking GitHub issue that carries issue-hosted source, plan, and execution-state snapshots, preserving progress on the issue when local docs/plans files may be cleaned up.
Use when the user wants to open or continue a GitHub issue as the durable timeline for a discovered problem, investigation, blocker, implementation handoff, or unresolved follow-up loop.
Finalize and close plan-tracking GitHub issues after issue-backed execution is complete and the user or project policy has approved closure.
Open or preview a provider-aware GitHub or GitLab tracking issue for a docs/plans plan bundle, bootstrapping the source doc and plan first when the user has a converged feature discussion but no plan file yet.
Deliver a dispatch-ready plan by sprint: split plan tasks into PR lanes, dispatch subagent work, enforce acceptance gates, and advance through final integration without main-agent implementation.
Close out an existing plan-issue runtime where main-agent owns orchestration and review only, subagents own implementation task lanes, and close gates require approval plus merged PRs.
| name | semantic-commit |
| description | Commit a staged or deliberately selected change set using Semantic Commit format. |
Prereqs:
--repo <path> to target one explicitly).git available on PATH.semantic-commit available on PATH (install via brew install nils-cli).git-scope is optional; default summary mode falls back to git show when unavailable.Inputs:
git add ...) for semantic-commit staged-context; the staged set may come from the user, an existing index state, or
agent-selected pre-skill staging.--message, or --message-file for semantic-commit commit.--repo <path>.Outputs:
semantic-commit staged-context: prints staged change context in bundle|json|patch format.semantic-commit commit: validates message, optionally commits staged changes, and prints commit summary unless disabled.--message-out <path>.Exit codes:
0: success (including --validate-only, --dry-run, and help output).1: usage or operational failure (invalid args, git command failure, hooks/conflicts, bad repo path).2: no staged changes for commands that require staged input.3: commit message missing/empty.4: commit message validation failed.5: required dependency missing (for example, git).Failure modes:
--repo supplied.exit 2).exit 3).exit 4).git commit failure (hooks/conflicts/signing/repo state) (exit 1).git-scope missing): warning emitted, fallback to git show.--repo <path> to avoid shell cwd switching.Use this skill for:
Use semantic-commit-autostage instead when the full working tree delta is intentionally in scope.
semantic-commit staged-context [--format <bundle|json|patch>] [--json] [--repo <path>]semantic-commit commit [--message <text>|--message-file <path>] [options]--message-out, --summary <git-scope|git-show|none>, --no-summary, --validate-only, --dry-run, --auto-fix,
--automation, --repo, --no-progress, --quiet--auto-fix (opt-in) normalizes machine-fixable issues before validation: wraps body lines at 100 chars (whitespace break preferred,
codepoint hard-break for CJK / unbreakable runs), lowercases the header type / (scope), uppercases the first char of - bullets,
inserts a missing blank line between header and body, and drops empty lines inside the body. Does not truncate over-length headers
or repair structural header errors; those still exit 4.Rules:
git add in this skill; commit only what the user has already staged.git status/diff and complete selective staging before entering this skill.semantic-commit staged-context output only.--repo <path> when operating from another working directory.Recommended flow:
semantic-commit staged-context --format bundle (or --json if your parser expects JSON only).type(scope): subject + optional bullet body).semantic-commit commit --validate-only ... before committing to catch formatting errors early.semantic-commit commit --dry-run ... for staged/message sanity checks without creating a commit.semantic-commit commit ... to finalize.exit_code, stdout, and stderr.Use one of:
type(scope): subjecttype: subjectRules:
<= 100 characters.- followed by an uppercase letter.<= 100 characters.exit 2 (no staged changes): stop and ask for staging.exit 3 (message missing/empty): provide/repair --message or --message-file.exit 4 (validation failed): fix header/body format first; do not commit. For body line-length, bullet casing, header type/scope casing,
blank-separator, or empty-body-line failures, retrying with --auto-fix normalizes the message in-place. Over-length headers and structural
header errors are not auto-fixable and must be rewritten by hand.exit 1 from commit: treat as operational failure and report stderr verbatim.git-scope warning only: not fatal unless summary is explicitly required to be git-scope.semantic-commit staged-context --format json
semantic-commit commit \
--message-file /tmp/commit-msg.txt \
--validate-only
semantic-commit commit \
--message-file /tmp/commit-msg.txt \
--summary git-show