Agent Skillsnearai/ironclaw › commit

commit

GitHub

分析暂存代码变更并生成符合仓库风格的 Git 提交信息,包含安全检查与用户确认环节。

skills/commit/SKILL.md nearai/ironclaw

Trigger Scenarios

用户请求创建 git commit 需要生成提交消息

Install

npx skills add nearai/ironclaw --skill commit -g -y
More Options

Use without installing

npx skills use nearai/ironclaw@commit

指定 Agent (Claude Code)

npx skills add nearai/ironclaw --skill commit -a claude-code -g -y

安装 repo 全部 skill

npx skills add nearai/ironclaw --all -g -y

预览 repo 内 skill

npx skills add nearai/ironclaw --list

SKILL.md

Frontmatter
{
    "name": "commit",
    "version": "1.0.0",
    "activation": {
        "tags": [
            "git",
            "version-control"
        ],
        "keywords": [
            "commit",
            "git commit"
        ],
        "patterns": [
            "(?i)(create|make|write|generate)\\s.*commit",
            "(?i)commit\\s.*(message|changes|staged)"
        ],
        "max_context_tokens": 1000
    },
    "description": "Generate git commit messages from staged changes"
}

Git Commit Workflow

When the user asks to create a commit:

  1. Run shell with git status to see what files are staged and unstaged.
  2. Run shell with git diff --cached to see the exact changes that will be committed.
  3. Run shell with git log --oneline -5 to understand the repo's commit message style.
  4. Analyze the staged changes and draft a commit message:
    • Summarize the nature of the change (new feature, bug fix, refactor, etc.)
    • Keep it concise: 1-2 sentences focusing on why, not what
    • Match the repo's existing commit message style
  5. Do not commit files that likely contain secrets (.env, credentials.json, API keys). Warn the user if such files are staged.
  6. Show the proposed commit message to the user and ask for confirmation before running git commit.
  7. Stage any requested files with git add <specific files> (never use git add -A or git add .).

Commit Message Format

If the repo doesn't have a clear style, use:

<type>: <concise description>

<optional body explaining why>

Where type is: fix, feat, refactor, test, docs, chore.

Version History

  • 5380a32 Current 2026-08-20 07:09

Same Skill Collection

.claude/skills/architecture-video/SKILL.md
.claude/skills/ironclaw-reborn-architecture-review/SKILL.md
.claude/skills/ironclaw-reborn-orientation/SKILL.md
.claude/skills/ironclaw-reborn-skill-maintainer/SKILL.md
.claude/skills/ironclaw-reborn-testing/SKILL.md
.claude/skills/mintlify-docs/SKILL.md
.claude/skills/railway-test/SKILL.md
.claude/skills/reborn-extension-surfaces/SKILL.md
.claude/skills/reborn-feature/SKILL.md
.claude/skills/thermo-nuclear-code-quality-review/SKILL.md
docs/internal/archived-skills/ceo-setup/SKILL.md
docs/internal/archived-skills/code-review/SKILL.md
docs/internal/archived-skills/commitment-setup/SKILL.md
docs/internal/archived-skills/content-creator-setup/SKILL.md
docs/internal/archived-skills/developer-setup/SKILL.md
docs/internal/archived-skills/github-workflow/SKILL.md
docs/internal/archived-skills/github/SKILL.md
docs/internal/archived-skills/linear/SKILL.md
docs/internal/archived-skills/llm-council/SKILL.md
docs/internal/archived-skills/local-test/SKILL.md
docs/internal/archived-skills/new-project/SKILL.md
docs/internal/archived-skills/parallel-pr-review/SKILL.md
docs/internal/archived-skills/plan-mode/SKILL.md
docs/internal/archived-skills/portfolio/SKILL.md
docs/internal/archived-skills/project-setup/SKILL.md
docs/internal/archived-skills/trader-setup/SKILL.md
docs/internal/archived-skills/web-ui-test/SKILL.md
skills/coding/SKILL.md
skills/commitment-digest/SKILL.md
skills/commitment-triage/SKILL.md
skills/decision-capture/SKILL.md
skills/delegation-tracker/SKILL.md
skills/delegation/SKILL.md
skills/idea-parking/SKILL.md
skills/product-prioritization/SKILL.md
skills/qa-review/SKILL.md
skills/review-checklist/SKILL.md
skills/review-readiness/SKILL.md
skills/routine-advisor/SKILL.md
skills/security-review/SKILL.md
skills/tech-debt-tracker/SKILL.md

Metadata

Files
0
Version
5380a32
Hash
0dcdf6d2
Indexed
2026-08-20 07:09

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 21:34
浙ICP备14020137号-1 $mapa de visitantes$