Token导航 LogoToken导航TokenDH.com
前端设计执行命令github未标认证来源可访问clear审计通过

semantic-git语义 git

Agent Skill

semantic-git 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,258

周安装

97

GitHub Stars

11

下载量

792
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:semantic-git(语义 git)
来源仓库:https://github.com/siviter-xyz/dot-agent
仓库路径:skills/semantic-git
安装命令:
npx skills add https://github.com/siviter-xyz/dot-agent --skill semantic-git
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/siviter-xyz/dot-agent --skill semantic-git

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在需要围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装方式:通过 npx skills add 命令从指定 GitHub 仓库添加。
  • 注意权限范围和维护状态,确认是否会触发联网、命令执行或文件读写。

SKILL.md

Semantic Git

Manage Git commits using conventional commit format with atomic commits and concise messages.

This skill is zagi-aware and is designed to work well with AI IDEs (Cursor, etc.)

Tooling

  • Preferred: zagi (a better git interface for agents).

- Assume zagi is installed if: - git is aliased to zagi in the shell or - a zagi binary is available. - When in doubt, treat git as if it may be zagi-compatible and avoid using exotic flags. - Even when zagi is available, generate plain git commands and let any gitzagi integration handle them.

  • Fallback: plain git when zagi is not available.

When to Use

  • Committing changes to git
  • Staging files for commit
  • Creating commit messages
  • Managing atomic commits
  • Before pushing changes

Core Principles

  • Atomic commits: Stage and commit related changes together. Tests go with implementation code.
  • User confirmation: Always confirm with user before committing and before moving to the next commit.
  • Conventional format: Use conventional commit message format (feat, fix, etc.) unless directed otherwise.
  • Concise messages: Keep messages brief and to the point. Omit description unless change is complicated.
  • Command transparency: Always show the exact git commands that will be run (which may be handled by zagi via alias/wrapper), and ask whether the user wants:

- to run them manually, or - to have the agent run them.

Commit Message Format

<type>[optional scope]: <subject>

[optional body]

[optional footer(s)]

Types

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Maintenance tasks (updating build tasks, dependencies, etc.; no production code change)
  • revert: Revert a previous commit

Breaking Changes

Use ! after the type/scope to indicate breaking changes:

  • feat!: add new API
  • fix(api)!: change response format

Subject Line

  • Use imperative mood: "add feature" not "added feature" or "adds feature"
  • First letter lowercase (unless starting with proper noun)
  • No period at the end
  • Keep under 72 characters when possible

Body and Footer

  • Omit body unless change is complicated or requires explanation
  • When needed, be concise and reference issues, PRs, or documentation
  • Use footer for breaking changes: BREAKING CHANGE: <description>

Workflow

  1. Implement atomic change: Code + tests together.

- Use test: for test-only changes.

  1. Run CI checks: Verify types, tests, and linting pass before staging.

- Prefer a single CI command if it exists (e.g., pnpm ci, npm run ci, just ci). - If no CI command, run checks individually (typecheck, test, lint). - If any check fails, stop and report – do not proceed.

  1. Stage atomic changes: Group related files together (implementation + tests).
  2. Suggest commit message: Generate a conventional commit message based on changes.
  3. Generate commands:

- Construct explicit shell commands using git (which may be an alias or wrapper such as zagi), for example: git add path/to/file1 path/to/file2 GIT_AUTHOR_DATE="YYYY-MM-DD HH:MM:SS" \ GIT_COMMITTER_DATE="YYYY-MM-DD HH:MM:SS" \ git commit -m "feat: add feature" - Always print these commands to the user in order.

  1. Ask for execution preference:

- Ask the user whether they want: - to copy-paste and run the commands themselves, or - to have the agent run them. - Only execute commands after explicit user approval.

  1. Commit:

- When executing, run exactly the printed commands. - Respect any user instructions about backdating timestamps or additional flags.

  1. Next commit:

- Before staging the next set of changes, confirm with the user that the previous commit is complete and understood.

Automation Mode

If user requests "continue to X" or "automate until X":

  • Proceed with atomic commits automatically, but still print commands.
  • For each commit:

- Show the staging and commit commands. - Optionally execute them automatically, as per the user’s automation request.

  • Resume asking for confirmation when X is reached.
  • X can be: specific file, feature completion, test passing, etc.

Stop and Ask Protocols

Stop and ask user before:

  • Adding type ignores (@ts-ignore, # type: ignore, etc.).
  • Adding suppressions (ESLint disable, pylint disable, etc.).
  • Using any type or similar type escapes.
  • When uncertain how to proceed with implementation.
  • When requirements are unclear.
  • When a destructive git operation is proposed (reset --hard, checkout., clean -f, push --force); prefer safer alternatives and explain the risks.

Examples

Simple feature or behaviour change:

feat: add user authentication

Feature with scope:

feat(api): add user endpoint

Bug fix:

fix: resolve memory leak in cache

Breaking change:

feat!: migrate to new API version

Test-only change:

test: improve unit tests for auth service

Refactor (no behavior change):

refactor: extract validation logic into separate function

Complex change (with body):

feat(api): add pagination support

Implements cursor-based pagination for large datasets.
See docs/api/pagination.md for details.

References

For detailed guidance, see:

  • references/conventional-commits.md – Commit format and examples
  • references/ci-verification.md – CI check patterns and verification
  • references/co-authors.md – Handling Co-Authored-By trailers and zagi co-author stripping

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.09%
按下载量换算199

Codex

23.2%
按下载量换算184

Antigravity

19.21%
按下载量换算152

Gemini CLI

11.07%
按下载量换算88

OpenCode

7.67%
按下载量换算61

Cursor

3.39%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/siviter-xyz/dot-agent --skill semantic-git;npx skills add siviter-xyz/dot-agent --skill "semantic-git" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills