跳到正文
cccskills
免费在 GitHub 公开

commit

Create standardized git commits following Terrae's conventions

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

check

免费

Verify all outputs exist after creating a new component and fix any issues

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

docs

免费

Generate or update documentation for Terrae components

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

fix

免费

Systematically fix issues found by /review or reported by the user

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

issue

免费

Read a GitHub issue, summarize it, and create a branch for it

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

lint

免费

Run linting and type checking across the Terrae codebase

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

new

免费

End-to-end workflow for building a new Terrae component from scratch

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

查看 alamenai 的全部技能

报告此技能的问题