- 添加 5 个用户级别 Skills: - auto-commit: 自动 Git 提交 - karpathy-guidelines: 编码规范指南 - opencli-websearch: 多源网络搜索 - pdf-reader: PDF 内容提取 - repo-analyzer: 项目深度分析 - 添加 Playwright MCP 配置 (21 个浏览器自动化工具) - 创建完整的 README.md 文档说明
2.8 KiB
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 functionalityfix: Bug fixdocs: Documentation changestest: Test-related changesrefactor: Code refactoringchore: Maintenance tasksexperiment: Experiment results or changes
Scope (optional but recommended)
- 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")
Body (optional but recommended for significant changes)
- Detailed explanation of what and why
- Can include before/after comparisons
Workflow
-
Check Git Status
git status --short -
Review Changes
- See what files were modified
- Understand the nature of changes
- For code changes, review the diff if needed
-
Stage Changes
git add <files>Or stage all changes:
git add . -
Create Commit
git commit -m "<type>(<scope>): <subject>" -m "<body>" -
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