Communitygithub.com

Git工作流技能

强制约定式提交、分支命名和PR模板,确保Git工作流规范。

Git工作流技能 是什么?

该技能为AI代理(如Claude Code、Cursor、Codex等)定义了一套严格的Git工作流规范。它强制要求使用约定式提交格式(`feat:`、`fix:`、`docs:`等)和遵循标准的分支命名约定(`feat/feature-name`、`fix/bug-description`、`chore/task-name`)。PR模板要求包含变更内容、原因、测试方法和截图,确保代码审查清晰。工作流还包括对主分支使用Squash合并以保持历史整洁,禁止强制推送到主分支,提交信息需使用祈使语气、50字符主题行,并确保每个提交实现单一逻辑变更。版本发布遵循语义化版本号(semver),如`v1.0.0`。通过遵循这些规则,该技能有助于团队维护一致的代码库历史,减少合并冲突,并提升协作效率。适用于任何使用Git的软件开发环境,特别适合需要标准化工作流的AI辅助开发场景。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/git-workflow

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Git工作流

规则

  • 约定式提交:feat:、fix:、docs:、refactor:、test:、chore:
  • 分支命名:feat/feature-name、fix/bug-description、chore/task-name
  • PR模板:变更内容、原因、如何测试、截图
  • 对主分支使用Squash合并 — 保持历史整洁
  • 禁止强制推送到主分支
  • 提交信息:祈使语气,50字符主题行,空行,可选正文
  • 每个提交只包含一个逻辑变更 — 不要将重构与特性混在一起
  • 版本发布标签:遵循语义化版本号的v1.0.0

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

相关技能