---
title: "我的第一个 Claude Code 模组"
url: "https://claudemods.dev/zh-cn/builds/my-first-claude-code-mod-1d072f"
source: "https://github.com/a-pavithraa/claude-mods"
source_type: "github"
repo: "https://github.com/a-pavithraa/claude-mods"
author: "Regular_Mud_3266"
author_handle: "Regular_Mud_3266"
stars: 0
category: "工作流与 CI"
categories: ["workflow"]
tags: ["code-review", "commit-gate", "hooks", "mcp", "model-routing"]
permission_level: null
scan_complete: false
added: "2026-10-17T02:27:45.529Z"
updated: "2026-10-16T13:29:19Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# 我的第一个 Claude Code 模组

一篇 Reddit 帖子，展示了四个 Claude Code 模组（triage-gate、model-fit、hindsight、toolbelt）以及一个 quiz-me 技能，并附有 GitHub 仓库链接。

## Description

作者描述了四个为解决日常问题而构建的模组：triage-gate 在更改较大或有风险时阻止提交，并突出显示敏感文件；model-fit 将请求的成本与较小的模型进行比较，并建议 /compact 或交接说明；hindsight 检测反复出现的障碍，并提出一行 CLAUDE.md 修复；toolbelt 列出未使用的插件、技能和 MCP 服务器。一个 quiz-me 技能会就本次会话的更改提出理解性问题。仓库：https://github.com/a-pavithraa/claude-mods

## Original README

I built mods for problems I run into every day. The agent writes most of my code, but I still read it and make small changes so I don't lose my skills. That's getting harder. One commit often spans many files now, and sometimes I just skim. Comprehension debt grows with every line I commit. At the same time, the number of skills I've installed keeps growing. I already use code-review skills and hooks, but I wanted a check that I can see and control myself. I wanted it for the code, and for the skills and MCP servers I install. So I built four mods: triage-gate holds Claude's commit when a change is big or risky. A pane shows why it was held and which files to read first. Size and blast radius come from local checks. With a TypeSafe key, their Jev model also judges each change for security, data, money, concurrency and public API risk. It does not just flag large code changes. I made a 2-line change that let admin sessions skip the expiry check. Jev flagged it as a likely security change, down to the exact line. You can also ask Codex to review the change. ⛔ Hold: review before commit 1 file · +2 −0 · auth · judged on the whole diff with Jev Why: likely touches security · sensitive path src/auth/session.ts Start with: src/auth/session.ts:42 : Jev points here (security) [ Approve commit ] [ Run Codex review ] [ Refresh assessment ] model-fit shows what each ask cost and whether a smaller model would have done. It is based on the use cases in Anthropic's own guidance. Haiku judges each ask, and after every ask one dim line shows the result: ◇ Looked simple · Opus/high · ≈ $0.29 · judged by Haiku That ask didn't need this conversation, but rereading its 140k tokens cost ≈ $0.29. Ask ones like it in a new session on Haiku: ≈ $0.01. Keep this one for the work it's about. [ Dismiss ] You can turn on Jev as a shadow: it labels the same asks, and /fit shows where Jev and Haiku agree and where they don't. When a conversation gets long, model-fit suggests /compact or a handoff note, a file you can use to continue in a new session. Context is past 150k tokens. /compact for the same task, /clear for a new one. [ Put /compact keep: in prompt ] [ Put /model-fit:baton in prompt ] [ Dismiss ] hindsight spots a snag that comes back in a later session, like reading a huge log file whole, and offers a one-line CLAUDE.md fix you can accept with a button. It is based on Matt Pocock's retro skill. toolbelt lists the plugins, skills and MCP servers I never use. These are mods rather than skills because each one needs a pane or a button I control. Adding more text to Claude's context wouldn't do that. I also added a quiz-me skill that asks questions about the changes made in the session and checks how well you understand them. Repo: https://github.com/a-pavithraa/claude-mods   submitted by   /u/Regular_Mud_3266   to   r/ClaudeCode [link]   [comments]
