Pan commit

From eltmon/overdeck · View interactive version

Pan commit is an AI agent skill from the GitHub repository eltmon/overdeck. Create Overdeck repo commits that satisfy commitlint and husky on the first try

How to use this skill

Skill file

Overdeck Commit Helper

Use this skill when committing inside the Overdeck repo so the commit passes this repo's husky and commitlint checks on the first attempt.

Repo Rules

Read commitlint.config.js before drafting a message if you have not already verified the current rules.

Current expectations in this repo:

Preferred types:

Required Workflow

1. Inspect commit context

Run these first:

git status --short --branch
git diff --staged
git diff
git log --oneline -5

If there are untracked files to include, stage them explicitly by path. Do not use git add . or git add -A unless the user explicitly asks.

2. Choose the narrowest fitting scope

Map changed files to the closest repo scope. Examples:

If the change spans multiple areas, choose the scope that best matches the primary reason for the change. If no scope fits cleanly, omit the scope instead of inventing one.

3. Draft the commit message

Use one of these safe templates:

feat(cli): add pan-commit skill
fix(dashboard): restore terminal reconnect state
refactor(cloister): simplify specialist handoff flow
test(review): cover failed verification retry path
docs: clarify pan sync workflow
chore(deps): update effect packages

For multi-line messages, use a short body that explains why. Keep every body line short.

Good:

fix(dashboard): rehydrate snapshot after reconnect

Restore the initial snapshot step so the UI can recover cleanly after the server restarts.

Bad:

add a new thing
feat(skill): something vague and too long that keeps going until it exceeds the header limit and fails lint
feat(unknown): use a scope that is not part of the repo's normal scopes

4. Commit safely

For a single-line message:

git commit -m "feat(cli): add pan-commit skill"

For a multi-line message:

git commit -m "$(cat <<'EOF'
fix(dashboard): rehydrate snapshot after reconnect

Restore the initial snapshot step so the UI can recover cleanly after the server restarts.
EOF
)"

5. If commitlint rejects the message

Do not bypass hooks. Fix the message and retry.

Common fixes:

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.