搜索

PythonReactSEOPDF
GitHub Skill

atomic-commits

Create atomic commits grouped by logical features with README.md and CLAUDE.md awareness.

blueraai☆ 1 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Atomic Commits with Documentation Awareness

Guidelines for creating well-organized commits with README.md and CLAUDE.md awareness.

Documentation Check

Before committing, evaluate if changes need documentation updates.

README.md (User-facing documentation)
Change Type README Section to Update
New commands or features Commands/Usage documentation
CLI interface changes Usage examples
Configuration changes Configuration/Environment sections
Breaking API changes Upgrade/migration notes
New features Feature documentation
Installation changes Installation section

Trigger files (project-specific - customize in your .claude/skills/):

  • src/cli.ts or src/index.ts - Entry points
  • .claude-plugin/plugin.json - Plugin metadata
  • commands/*.md - Command definitions
CLAUDE.md (Claude Code memory - hierarchical)

CLAUDE.md stores context that helps future sessions "do the right thing". Update when:

  • You struggled with something and the insight would prevent future mistakes
  • Important patterns or conventions that aren't obvious from code alone
  • Workflows or commands that are non-trivial to discover

CLAUDE.md is hierarchical - use the directory level matching the changed files. Use @path/to/file includes to stay DRY.

Change Scope Which CLAUDE.md
Project-wide (scripts, CI/CD, build) Root CLAUDE.md
Directory-specific patterns Subdirectory CLAUDE.md (create if needed)

Grouping Rules

Identify logical features by grouping related files:

  • Same feature = same commit
  • Infrastructure/config = separate commit
  • Tests = with their implementation OR separate if test-only

Commit Message Format

<type>(<scope>): <description>

Types: feat, fix, docs, chore, refactor, test, style, build, ci, perf

Note: Commit messages are validated by commitlint (conventional commits format).

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!