Skills for Real Engineers. Straight from my .agents directory.
commit-with-reflection
Agent skill fromforyourhealth111-pixel/Vibe-Skills
Git提交与调试反思报告生成技能。用于分析开发过程中的错误、调试步骤和解决方案,生成结构化的中文反思报告,并创建包含报告引用的Git提交。显式请求词:反思提交、智能提交、生成调试报告、commit with reflection。
How to install commit-with-reflection
npx skills add foryourhealth111-pixel/Vibe-Skills# or add only this skill to Claude Code: copy the folder
bundled/skills/commit-with-reflection/
# into
~/.claude/skills/commit-with-reflection/ (all projects)
.claude/skills/commit-with-reflection/ (one project)
1# Git提交与反思报告技能 (Commit with Reflection)23自动化Git提交并生成深度调试反思报告的技能。将AI编码过程中的错误、调试经验和解决方案转化为结构化的知识文档,保存在GitHub仓库中供长期参考和学习。45## 何时使用此技能 (When to Use)67在以下情况下使用此技能:89- 用户说:"反思提交"、"智能提交"、"生成调试报告"10- 用户说:"commit with reflection"、"reflective commit"11- 完成了包含多次调试迭代的功能开发12- 修复了复杂的bug并希望记录解决过程13- 重构代码时遇到并解决了架构问题14- 希望将本次开发经验转化为可复用的知识1516**相关信号(用于人工判断或路由参考)**:17- 检测到会话中出现了错误消息18- 对同一文件进行了3次以上的修改迭代19- Git diff显示添加了调试相关代码(console.log, try-catch等)2021## 不适用场景 (Not For)2223此技能不适用于:2425- 简单的文字修改或格式调整(无错误发生)26- 仅添加注释或文档的提交27- 初始化项目或添加依赖包28- 用户明确要求"简单提交"或"快速提交"2930**必需输入**:31- 至少有一个修改过的文件(git status显示变更)32- 会话中包含开发过程的上下文(如果无错误,会询问是否仍要生成报告)3334## 快速参考 (Quick Reference)3536### 核心工作流3738**阶段1: 上下文收集**39```bash40# 获取Git状态41git status4243# 获取所有变更44git diff4546# 分析会话历史提取:47# - 错误消息和堆栈跟踪48# - 调试步骤和迭代49# - 解决方案和修复50```5152**阶段2: 生成反思报告**53```541. 读取统一模板55 - 优先使用: project-root/docs/workflows/templates/unified-template.md56 - 回退使用: ~/.claude/skills/shared-templates/unified-workflow-report.md57582. 分析内容:59 - 错误分类(语法/类型/逻辑/架构/集成)60 - 严重程度评级(严重/重要/次要)61 - 根本原因分析62 - 预防策略制定63 - 经验提炼和模式识别64653. 填充模板66 - 报告类型设为: reflection67 - 重点填充: 错误分析、根本原因、经验总结章节6869报告格式:70docs/workflows/YYYY-MM/DD_reflection_[type]_[desc].md71```7273**阶段3: 创建Git提交**74```bash75# 创建报告目录76mkdir -p docs/workflows/$(date +%Y-%m)7778# 生成并保存报告79echo "$REPORT" > docs/workflows/...8081# 提交所有变更82git add .83git commit -m "type: description8485遇到错误: N86调试迭代: N8788详见反思报告: docs/workflows/...8990Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>"91```9293**阶段4: 更新索引**94```bash95# 自动更新 docs/workflows/INDEX.md96# 包含:97…
Excerpt shown under the repository's Apache-2.0 license.
More skills in Vibe-Skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
