Skip to content
Agentmart
Submit a tool

pac-commit

Create or plan repository-compliant commits from existing changes and select commit or pull-request issue links.

Skill by mypac

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ladislas-pac-commit

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Create or plan repository-compliant commits from existing changes and select commit or pull-request issue links. Load immediately for a standalone commit, split, fixup, amend, reword, commit-planning, or pull-request-finalization request. In an implementation workflow, load when commit preparation becomes relevant; this may be before proportionate verification is complete.

Use cases: productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pac-commit

What's inside

Skill name
pac-commit
Description
Create or plan repository-compliant commits from existing changes and select commit or pull-request issue links. Load immediately for a standalone commit, split, fixup, amend, reword, commit-planning, or pull-request-finalization request. In an implementation workflow, load when commit preparation becomes relevant; this may be before proportionate verification is complete.
License
MIT
Compatibility
Git repository; gitmoji CLI is optional.
Metadata
stage: shared · author: mypac
Instructions
149 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (4)

  • FIXUP.md
  • PR_DELIVERY.md
  • SKILL.md
  • skill.test.mjs

SKILL.md (first lines)

# Create repository-compliant commits

During an implementation workflow, this skill may load when a coherent slice exists and commit preparation becomes relevant, including before proportionate implementation verification is complete. It may assist with inspecting the slice, verification, staging, hooks, and commit preparation. Exact skill read order is a progressive-context efficiency goal, not a safety or correctness guarantee; avoid loading the procedure before commit work is relevant.

Load this skill immediately for an explicit standalone request whose primary action is Git work on existing changes: commit, split, fixup, amend, reword, or commit planning.

Before running `git commit`, confirm that a coherent slice exists, proportionate verification is complete or the strongest available evidence has been gathered, and commit creation is allowed by repository and user policy. Do not run `git commit` until all three conditions hold.

## Conditional PR delivery

For authorized or requested PR delivery of GitHub-backed work, read and follow [PR_DELIVERY.md](PR_DELIVERY.md) when publication becomes relevant. Ordinary local commit preparation does not load this procedure or confer push authorization. Explicit `/pac-lwot` invocation supplies delivery authorization for actionable GitHub-backed work, subject to narrower user instructions and stronger repository restrictions; AFK readiness alone does not.

## Conditional history workflows

For an explicit fixup, amend, autosquash, reword, or other history rewrite request, read and follow [FIXUP.md](FIXUP.md) before acting. Do not read `FIXUP.md` for an ordinary normal implementation commit.

## Resolve applicable policy first

Before applying the procedure below:

1. Consume applicable repository and user policy already available in the session context. Resolve whether Pi may create commits; either source may prohibit agent-created commits or defer them for user review. If commits are prohibited or deferred, do not commit; report the applicable rule and stop before the commit procedure.
2. If a specific required policy value remains unresolved, name that value and perform a targeted read of the smallest authoritative artifact likely to resolve it. Relevant values may include message format, required verification, hooks, signing, issue references, protected branches, and stronger restrictions.
3. Do not broadly re-read `AGENTS.md`, and do not re-read repository policy just because `pac-commit` was loaded.
4. If two authoritative applicable rules still contradict each other, stop the affected operation and ask for resolution. A repository rule that replaces a fallback is not a conflict.

Only when commit creation is allowed, create one atomic, coherent commit per meaningful, verified work slice. Do not make one commit per file or tiny checkbox, and do not batch unrelated work.

## Repository commit policy

- Select the file list explicitly. Stage only the current logical unit and leave unrelated changes, including unrelated already-staged files, out of the commit.
- If changes naturally split into unrelated groups, stop and present the proposed split for approval before committing. Ask if a file's membership is unclear.
- Never commit on the actual default branch or an additional locally protected branch. Create or switch to a branch that follows repository conventions.
- Run proportionate verification plus mandatory repository checks. Never use `--no-verify`. If a hook fails, report the failure and fix it or stop; never bypass it.
- Do not push by default. Push, merge, force-push, and history rewrite each require explicit authorization. Preserve any stronger repository or user restriction or prohibition; for example, a user-only force-push rule remains user-only even after a force-push request.
- Report each created commit's hash and subject, plus files intentionally left unstaged and any reason for stopping.

## Resolve the commit message

Apply this order:

1. Apply explicit user direction together with explicit repository guidance or enforced policy. The repository message format is authoritative and wins over package defaults; if applicable user and repository rules contradict each other, use the conflict rule above.
2. Only when message policy remains unresolved, inspect a small recent-history sample, such as five recent commit subjects. Preserve a clear established convention when one appears; do not inspect broad history by default.
3. If neither source resolves the message, use the mypac gitmoji format as the final fallback below.

### mypac fallback message contract

Use one emoji and one primary purpose:

```text
<emoji> <type>(<scope>): <summary>
```

Scope is optional:

```text
<emoji> <type>: <summary>
```

Example: `✨ feat(auth): Add user authentication system`

- Use a conventional type such as `feat`, `fix`, `docs`, `refactor`, `test`, `chore`, or `perf`.
- Keep the optional scope short and lowercase.
- Keep the summary concise, imperative, and without a trailing period.
- Choose the emoji and type for the change's primary impact, not an implementation detail.
- Use a body when needed to explain why, tradeoffs, verification, issue references, or migration notes.
- Do not add sign-offs unless applicable repository policy requires them.

For multiline messages, use multiple `-m` flags or a temporary message file. Never put escaped `\n` sequences inside a quoted `-m` argument.

```bash
git commit \
  -m "✨ feat(scope): Summary" \
  -m "Body paragraph." \
  -m "Verification: npm test"
```

## Issue references

Treat issue association separately from issue closure:

- When implementation is complete and all locally available verification has passed, hosted checks that run only after push or PR creation do not by themselves make the issue partial. If no known implementation defect or unresolved decision remains and only normal hosted merge-gating checks remain, use `Closes #N`. If a hosted check fails, block merge and address the failure; failing verification is not acceptable.
- Use `Refs #N` when substantive issue work remains unfinished, including unresolved manual decisions or defects exposed by validation.

- Never guess an issue number.
- Carry known issue identity through planning, but do not decide closure during target resolution or other early workflow stages.
- Decide completeness when the coherent, verified commit slice is ready. If authoritative evidence shows that slice fully resolves the issue, default to `Closes #N` in the commit body when repository policy permits closing links. The resolved issue scope, completed implementation, and successful verification are normally sufficient; do not demand unusual extra proof.
- Use the non-closing reference `Refs #N` in the commit body for intermediate, partial, supporting or evidence-only, and preparatory slices that leave issue work unfinished.
- For work completed across multiple commits, earlier commits use `Refs #N` and the final completing commit uses `Closes #N`.
- Issue closure does not depend on a pull request body. A user-created minimal pull request must still close the issue after merge through the completing commit.
- During pull request creation or finalization, Pi may also include `Closes #N` for a completed issue or `Refs #N` for partial work, but this is additional linkage rather than the exclusive closure mechanism.
- Preserve a repository-local convention or policy that explicitly differs. If completeness remains materially ambiguous when the commit is ready, ask rather than guessing.
- Re-check issue and repository state if verification or hooks mutate files or otherwise change the evidence used for the closure decision.

## Common gitmoji shortlist

- ✨ `feat` — new feature
- 🐛 `fix` — bug fix
- 📝 `docs` — documentation
- ♻️ `refactor` — refactor
- ✅ `test` — tests
- 🔧 `chore` — configuration or tooling
- ⚡️ `perf` — performance
- 🚚 — move or rename files
- 🔥 — remove code or files
- 💄 — UI or style polish
- ⬆️ / ⬇️ — dependency upgrade or downgrade
- 🔒 — security hardening
- 🚑️ — critical hotfix
- 💥 — breaking change; explain required consumer changes in the body

Use the closest match. If none fits and `gitmoji` is installed, `gitmoji list` may provide the full catalog. Do not block a commit because the CLI is unavailable.

## Workflow

1. **Resolve policy and scope**
   - Apply the policy-resolution and commit-permission gate above.
   - Treat explicit paths or globs as the intended scope.
   - Carry an explicitly referenced GitHub issue into planning without assuming it should close.
   - Ask before committing if scope is ambiguous.

From ladislas/mypac, MIT.

More from ladislas/mypac

Signals

Stars
2
Forks
1
Open issues
3
Last commit (this folder)
Oct 15, 2026 (14 days ago)
Last release
Oct 15, 2026 (14 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mypac

Cite this page

pac-commit skill. Agent Mart. https://agentmart.dev/skills/ladislas-pac-commit (last updated 2026-10-24)