zhtw-mcp: Skill for Claude Code

.claude/skills/zhtw-conventions/SKILL.md

zhtw-conventions is a skill for Claude Code from sysprog21/zhtw-mcp. It costs 108 tokens per session (1,558 once invoked), scanned A, original, MIT.

Repository conventions for the zhtw-mcp project, including commit-message rules, where Chinese is used, repository layout, and checks run by hooks. A commit message is the short record attached to a Git change, while a hook is an automated check run during Git actions.

In plain words
What is it for?
Use it to write acceptable commit messages, place language and documentation correctly, follow repository structure, and avoid redundant interfaces when changing the project.
Why use it?
Contributors can make technically correct changes that still violate the project's review or history rules. These conventions make those local expectations explicit.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

This is sysprog21/zhtw-mcp's own configuration. It tells Claude Code how to work on zhtw-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zhtw-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sysprog21/zhtw-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sysprog21/zhtw-mcp/main/.claude/skills/zhtw-conventions/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sysprog21/zhtw-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for zhtw-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/sysprog21/zhtw-mcp/zhtw-conventions.svg)](https://agentmods.dev/skills/sysprog21/zhtw-mcp/zhtw-conventions)
Your own site
<a href="https://agentmods.dev/skills/sysprog21/zhtw-mcp/zhtw-conventions"><img src="https://agentmods.dev/badge/skills/sysprog21/zhtw-mcp/zhtw-conventions.svg" alt="Measured on agentmods" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,558 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.01558
Opus 5 $0.00054 $0.00779
Sonnet 5 $0.00022 $0.00312
Haiku 4.5 $0.00011 $0.00156

Measured 2d ago against content hash f9c5e2846639, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

zhtw-conventions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/zhtw-conventions/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

zhtw-mcp conventions

The gate settles formatting and correctness. cargo fmt, clippy, black, shellcheck and scripts/indent.sh run in make check, so none of that is here. What is here is what a reviewer would otherwise have to say out loud, plus the rules enforced by the git hooks rather than by CI: the commit message and the staged-content checks. Any cargo build installs them, through build.rs; make hooks installs them on their own.

README.md and CLAUDE.md are the tracked and local halves respectively, and this file does not restate either. Where two of them speak to the same thing, README.md wins.

Commit messages

The house style is Chris Beams' seven rules, and scripts/git-commit-msg.sh enforces the mechanical ones: subject within 50 columns, capitalized, imperative, no trailing period, no backticks, no conventional-commit type prefix, body wrapped at 72 columns, no em dash character, no tabs, and no control or bidirectional-override characters. An area prefix such as Windows: retry the replace is not a conventional-commit prefix and is allowed. Run git log --no-merges --format=%s if you want the calibration set rather than the claim; the log sits at 43 columns in the median.

Two of those rules are this project's rather than Beams'. Widths are counted in terminal columns, so a CJK character costs two, which is what git log --oneline has to fit. And the subject line is English prose that may quote a Chinese term, which is what every subject in this log already is:

Narrow 聯繫 cross_strait flagging to contact-copy
Add word "test" to negative_context_clues for pass rule
Take the binary under test from cargo

The rule the hook cannot check is what the body says. This tree keeps its detailed reasoning in the comment next to the code, often several paragraphs per decision. A body that retells the mechanics duplicates that comment and then goes stale on its own. Write the premise and the trade, once, usually a single paragraph. Backticks are fine there and not in the subject.

Read the full file on GitHub · 128 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 128 lines · 108 tokens per session scan A f9c5e2846639

Subscribe to this mod's changes

zhtw-conventions is a skill published in the GitHub repository sysprog21/zhtw-mcp (475 stars, last pushed today), licensed MIT. It adds 108 tokens to every session and 1,558 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories