Agent Skillsalamenai/terrae › commit

commit

GitHub

指导 Agent 按照 Terrae 规范创建标准化的 Git 提交。包括检查状态、审查变更、选择性暂存文件、遵循 Conventional Commits 格式编写消息,以及处理新组件的多步提交约定。

.claude/skills/commit/SKILL.md alamenai/terrae

Trigger Scenarios

用户请求提交代码更改 完成功能开发后的代码提交

Install

npx skills add alamenai/terrae --skill commit -g -y
More Options

Non-standard path

npx skills add https://github.com/alamenai/terrae/tree/main/.claude/skills/commit -g -y

Use without installing

npx skills use alamenai/terrae@commit

指定 Agent (Claude Code)

npx skills add alamenai/terrae --skill commit -a claude-code -g -y

安装 repo 全部 skill

npx skills add alamenai/terrae --all -g -y

预览 repo 内 skill

npx skills add alamenai/terrae --list

SKILL.md

Frontmatter
{
    "name": "commit",
    "description": "Create standardized git commits following Terrae's conventions",
    "allowed-tools": "Bash(git *)"
}

Commit Skill

Create standardized git commits following Terrae's conventions.

Instructions

  1. Check Current State

    • Run git status to see changed files
    • Run git diff to see the actual changes
  2. Review Changes with User

    • Summarize what files were changed
    • Explain the nature of changes (new feature, bug fix, refactor, etc.)
    • Ask the user if they want to proceed with the commit
  3. Stage Files

    • Stage specific files by name (avoid git add -A or git add .)
    • Never stage sensitive files (.env, credentials, etc.)
  4. Commit Message Format Follow conventional commits:

    type(scope): description
    

    Types:

    • feat: New feature
    • fix: Bug fix
    • docs: Documentation changes
    • style: Formatting, no code change
    • refactor: Code restructuring
    • test: Adding or updating tests
    • chore: Maintenance tasks

    Examples:

    • feat(marker): add rotation support
    • fix(popup): prevent memory leak on unmount
    • docs(readme): update installation instructions
  5. New Component Convention

    When committing a new component, split into 3 separate commits in this order:

    1. feat(map): add {component} component — the source file (src/registry/map/{slug}.tsx)
    2. feat(docs): add {component} example components — all example files (src/app/docs/_components/examples/{slug}-*.tsx)
    3. feat(docs): add {component} documentation page — the docs page (src/app/docs/{slug}/page.tsx)

    Shared file modifications (sidebar, components page, changelog, registry.json, barrel export) should be committed separately since they often contain changes for multiple components.

  6. Important Rules

    • Do NOT add Co-Authored-By lines
    • Do NOT commit until user approves
    • Do NOT use --amend unless explicitly requested
    • Do NOT push unless explicitly requested
    • Keep commit messages concise (under 72 characters)
  7. Create the Commit

    git commit -m "type(scope): description"
    
  8. Verify

    • Run git status to confirm commit succeeded
    • Show the commit hash to the user

Version History

  • ea9a480 Current 2026-07-25 11:49

Same Skill Collection

.claude/skills/check/SKILL.md
.claude/skills/docs/SKILL.md
.claude/skills/fix/SKILL.md
.claude/skills/issue/SKILL.md
.claude/skills/lint/SKILL.md
.claude/skills/new/SKILL.md
.claude/skills/perf/SKILL.md
.claude/skills/release/SKILL.md
.claude/skills/review/SKILL.md
.claude/skills/pr/SKILL.md
.claude/skills/test/SKILL.md

Metadata

Files
0
Version
ea9a480
Hash
241cede0
Indexed
2026-07-25 11:49

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-27 16:23
浙ICP备14020137号-1 $Carte des visiteurs$