Agent Skills › penpot/penpot › create-commit

create-commit

GitHub

遵循Penpot规范生成Git提交,包含文件暂存、内容审查(防泄露)、消息格式化及脚本校验。

.agents/skills/create-commit/SKILL.md penpot/penpot

Trigger Scenarios

代码变更完成后需要提交时 工作流步骤委托处理提交任务时

Install

npx skills add penpot/penpot --skill create-commit -g -y
More Options

Non-standard path

npx skills add https://github.com/penpot/penpot/tree/develop/.agents/skills/create-commit -g -y

Use without installing

npx skills use penpot/penpot@create-commit

指定 Agent (Claude Code)

npx skills add penpot/penpot --skill create-commit -a claude-code -g -y

安装 repo 全部 skill

npx skills add penpot/penpot --all -g -y

预览 repo 内 skill

npx skills add penpot/penpot --list

SKILL.md

Frontmatter
{
    "name": "create-commit",
    "slash": true,
    "description": "Stage, review, and commit files following Penpot commit conventions."
}

Skill: create-commit

Produce a git commit that follows Penpot's commit message conventions. This skill owns the commit format, 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)

  1. Wrap every body line at 76 characters or fewer. Count characters, do not eyeball. Exceptions: Signed-off-by: / AI-assisted-by: trailers and lines carrying a URL. This is the rule agents skip most often.
  2. Subject ≤70 chars, imperative, capitalized, no trailing period.
  3. Blank line between subject and body.
  4. Run ./scripts/check-commit and require exit code 0. It mechanically checks rules 1–3. A non-zero exit is a hard blocker: fix the message and re-commit. Never report the commit as done with a failing checker.

Workflow

  1. Stage the files specified by the calling context. Do not ask for confirmation.
  2. Run git diff --staged to review the content. If you see secrets (API keys, tokens, passwords, private keys, .env values), debug prints, or anything that does not match the stated intent, STOP and tell the user before committing.
  3. Draft the message following the format in the memory doc, wrapping the body at 76 characters per line, and run:
    git commit -m "<subject>" -m "<body>"
    
    (or git commit -F - if the body has unusual characters).
  4. Verify the message with the checker:
    ./scripts/check-commit
    
    If it fails, amend the message (git commit --amend) until it passes. Do not finish with a failing checker.
  5. The AI-assisted-by trailer value is provided by the calling context — use it verbatim.

Constraints

  • Do not push. Pushing is a separate workflow handled by the user.
  • Do not run git reset, git checkout, git restore, git clean, or rm.
  • 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.
  • Do not add untracked files that were not created in this session.
  • Do not skip the scripts/check-commit verification step (Iron Rule 4).

Version History

  • f9b8f1b Current 2026-09-28 20:56
  • 267134e 2026-09-23 10:32

Same Skill Collection

.agents/skills/bat-cat/SKILL.md
.agents/skills/code-review-criteria/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/fd-find/SKILL.md
.agents/skills/implement-plan/SKILL.md
.agents/skills/jq-json-processor/SKILL.md
.agents/skills/local-ci/SKILL.md
.agents/skills/make-a-plan/SKILL.md
.agents/skills/nrepl-eval/SKILL.md
.agents/skills/plan-review-criteria/SKILL.md
.agents/skills/planner/SKILL.md
.agents/skills/refine-prompt/SKILL.md
.agents/skills/resolve-git-conflicts/SKILL.md
.agents/skills/review-code/SKILL.md
.agents/skills/review-plan/SKILL.md
.agents/skills/ripgrep/SKILL.md
.agents/skills/security-and-hardening/SKILL.md
.agents/skills/taiga/SKILL.md
.agents/skills/testing/SKILL.md
.agents/skills/update-changelog/SKILL.md
.opencode/skills/bat-cat/SKILL.md
.opencode/skills/code-review-and-quality/SKILL.md
.opencode/skills/code-review/SKILL.md
.opencode/skills/create-commit/SKILL.md
.opencode/skills/create-issue/SKILL.md
.opencode/skills/create-pr/SKILL.md
.opencode/skills/fd-find/SKILL.md
.opencode/skills/jq-json-processor/SKILL.md
.opencode/skills/nrepl-eval/SKILL.md
.opencode/skills/plan-review/SKILL.md
.opencode/skills/planner/SKILL.md
.opencode/skills/refine-prompt/SKILL.md
.opencode/skills/ripgrep/SKILL.md
.opencode/skills/security-and-hardening/SKILL.md
.opencode/skills/taiga/SKILL.md
.opencode/skills/testing/SKILL.md
.opencode/skills/update-changelog/SKILL.md
.agents/skills/ste/SKILL.md
.opencode/skills/ste/SKILL.md

Metadata

Files
0
Version
f9b8f1b
Hash
debd97bb
Indexed
2026-09-23 10:32

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-04 18:01
浙ICP备14020137号-1