Create Commit create-commit
Stage, review, and commit files following Penpot commit conventions.
- Our test
- 7/10✓ Verified
- tested Dec 6, 2026
- GitHub stars
- 63k
- penpot/penpot
- Added by
- 0
- members
- Updated
- Dec 6
- commit a290dbc
- Content
- 1 file
- no scripts · 3 KB
- License
- MPL 2.0
- free to use
What our test found
The skill gives a clear, safety-conscious commit workflow, but depends on an external guidance document that may not be available.
Limits spotted
- The required `mem:workflow/creating-commits` source is not included, so the skill cannot be applied fully without additional context.
- Staging files without confirmation may be unsuitable when the calling context has not clearly specified which files to include.
name: create-commit description: Stage, review, and commit files following Penpot commit conventions. slash: true
Skill: create-commit
Produce a git commit that follows Penpot's commit message conventions. This skill handles staging review and safety checks — it does not implement features or push.
When to Use
- After code changes are complete and files need to be committed
- When delegated by a workflow step (e.g. implement-plan) to handle the commit
Required Reading
Before drafting any commit, read mem:workflow/creating-commits end-to-end. It is the authoritative source for the commit message format, the emoji menu, subject/body limits, and the AI-assisted-by trailer. Follow it exactly.
Iron Rules (non-negotiable)
Follow the message rules and exceptions in mem:workflow/creating-commits. Run `./scripts/check-commit` and require exit code 0. A non-zero exit is a hard blocker: fix the message and re-check it before reporting success.
Workflow
- Stage the files specified by the calling context. Do not ask for confirmation.
- Run
git diff --stagedto review the content. If you see secrets (API keys, tokens, passwords, private keys,.envvalues), debug prints, or anything that does not match the stated intent, STOP and tell the user before committing. - Draft the message following the format in the memory doc, wrapping the body at 80 characters per line, and run: ``
bash git commit -m "<subject>" -m "<body>"`(orgit commit -F -` if the body has unusual characters). - Verify the message with the checker: ``
bash ./scripts/check-commit`If it fails, amend the message (git commit --amend`) until it passes. Do not finish with a failing checker. - When adding an
AI-assisted-bytrailer, use the canonical model ID from the calling context as a bare lowercase slug (for example,gpt-6.1-terra), without a provider prefix or display name. Do not guess the ID.
Constraints
- Do not push. Pushing is a separate workflow handled by the user.
- Do not run
git reset,git checkout,git restore,git clean, orrm. - Do not pass
--author. Author identity comes from the local git config. - Do not amend a commit you did not create in this session, unless explicitly asked.
- Do not bypass pre-commit hooks (
--no-verify) unless explicitly asked. - Add
Co-authored-by:only for a human co-author. AI providers, agents and bots are rejected by./scripts/check-commit; for AI participation use theAI-assisted-by:trailer. - Do not add untracked files that were not created in this session.
- Do not skip the
scripts/check-commitverification step.