Files
qoder-config/skills/auto-commit/SKILL.md
aszerW c3ea38c045 feat(repo): 整理 Qoder Skills 和 MCP 配置到仓库
- 添加 5 个用户级别 Skills:
  - auto-commit: 自动 Git 提交
  - karpathy-guidelines: 编码规范指南
  - opencli-websearch: 多源网络搜索
  - pdf-reader: PDF 内容提取
  - repo-analyzer: 项目深度分析

- 添加 Playwright MCP 配置 (21 个浏览器自动化工具)
- 创建完整的 README.md 文档说明
2026-04-18 11:17:41 +08:00

2.8 KiB

name, description
name description
auto-commit Automatically commit changes to Git with descriptive messages. Use when code, documents, test results, or experiment results have changed, when the user mentions tracking changes, saving progress, or wants to keep a history of modifications.

Auto Commit Skill

Purpose

Whenever code, documents, test results, experiment results, or any project files change, automatically create a Git commit to track those changes with a descriptive message.

When to Apply

Apply this skill when:

  • Code files are modified, added, or deleted
  • Documentation (markdown, docs) is updated
  • Test results or experiment results change
  • Configuration files are modified
  • Any significant project state change occurs
  • User mentions "保存", "记录", "追踪", "commit", "提交"

Commit Message Format

Follow this format for commit messages:

<type>(<scope>): <subject>

<body>

Types

  • feat: New feature or functionality
  • fix: Bug fix
  • docs: Documentation changes
  • test: Test-related changes
  • refactor: Code refactoring
  • chore: Maintenance tasks
  • experiment: Experiment results or changes
  • File name or module name (e.g., parser, README, config)

Subject

  • Brief description of what changed (max 50 chars)
  • Use imperative mood ("Add" not "Added")
  • Detailed explanation of what and why
  • Can include before/after comparisons

Workflow

  1. Check Git Status

    git status --short
    
  2. Review Changes

    • See what files were modified
    • Understand the nature of changes
    • For code changes, review the diff if needed
  3. Stage Changes

    git add <files>
    

    Or stage all changes:

    git add .
    
  4. Create Commit

    git commit -m "<type>(<scope>): <subject>" -m "<body>"
    
  5. Verify

    git log --oneline -1
    

Examples

Code change:

git commit -m "feat(parser): add support for nested JSON objects" -m "Implement recursive parsing for nested structures"

Documentation update:

git commit -m "docs(README): update installation instructions" -m "Add macOS-specific setup steps"

Test results:

git commit -m "test(benchmark): add performance test results" -m "Baseline metrics for v2.0 parser"

Experiment results:

git commit -m "experiment(model): test accuracy with new dataset" -m "Accuracy improved from 85% to 92%"

Important Notes

  • Always commit after significant changes
  • Write clear, descriptive commit messages
  • Include context in the body for complex changes
  • Keep commits atomic (one logical change per commit)
  • Never skip commit hooks unless explicitly requested