karryviber/orb/commit-lineage
Claude Code and agent skill by karryviber/orb
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
commit message 必带 lineage 锚点——若改动来自 spec / lesson / 决策原文,message 必须引用源路径。Use when 准备 git commit、用户说「提交」「commit」「频繁 commit」、或起草 commit message 时。
Install
npx vskill@latest install karryviber/orb/commit-lineageSKILL.md
Commit Lineage
每次 commit 把代码改动反向锚定到 spec / lesson / 决策原文,长期可审计「为什么这行长这样」。
借鉴 Yansu traceable lineage 原则:每行代码都该能追溯到引发它的需求或决策。
When to Use
- 准备执行
git commit时 - 起草 commit message 时
- 用户说「提交」「commit」「先 commit 一下」
规则
commit message 末尾按需追加 lineage 行,使用以下锚点:
| 锚点 | 何时用 | 例 | |
|---|---|---|---|
Spec: | 改动来自 workspace/specs/*.md 的实施 | Spec: specs/dm-routing.md#实施步骤-3 | |
Lesson: | 改动是为了规避某条踩坑复盘 | Lesson: lessons/slack-stream-chunk-semantics.md | |
Decision: | 改动来自架构决策原文(CLAUDE.md / soul / spec 的 Decision Log) | Decision: CLAUDE.md#Worker-IPC-Protocol | |
Issue: | 改动是为了修复一个 issue / 用户报告的 bug | Issue: 2026-04-25 Karry 反馈 cron 卡死 | |
Followup: | 来自之前 commit 的遗留 TODO | Followup: 40b358a |
没有源头的改动(探索性 / 临时调试 / 重构)不强制带 lineage,但 message 主体要写清「为什么」。
模板
conventional commits + lineage 行:
例子
好:
好(无源头但 why 清晰):
坏(有 spec 来源但没引用):
Gotchas
- 不要为了凑 lineage 编造来源——没源头的改动主体写清 why 即可
- 不要把 lineage 行写在 message 第一行(影响 oneline 可读性),只放末尾
- 引用 lessons 时用相对路径
lessons/xxx.md,不要绝对路径(commit history 跨机器看也能 grep) - spec 引用最好带
#anchor锚到具体段,否则 spec 长了找不到 - 多源头时一个锚点一行,不要堆在同一行
反模式
- :x: 每个 commit 都硬塞 lineage(没源头就别加)
- :x:
Spec: see above/Lesson: 见之前讨论(不可追溯) - :x: lineage 写在 message 主标题里
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingprofiles/.claude/skills/commit-lineage/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/karryviber/orb/commit-lineage)