Agent skill

Zhtw Conventions

by sysprog21 in sysprog21/zhtw-mcp

The zhtw-mcp conventions no gate enforces - the register a comment, a commit message and a PR reply are written in, where Chinese belongs in the tree and where it does not, the untracked working…

MITAuto-check passedDevelopment

Install Zhtw Conventions

skills CLI
$ npx skills add sysprog21/zhtw-mcp --skill zhtw-conventions -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sysprog21/zhtw-mcp zhtw-conventions --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sysprog21/zhtw-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/zhtw-conventions .claude/skills/zhtw-conventions && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
zhtw-conventions
GitHub stars
488
Token cost
~2k tokens
SKILL.md length
1,035 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

The zhtw-mcp conventions no gate enforces - the register a comment, a commit message and a PR reply are written in, where Chinese belongs in the tree and where it does not, the untracked working…

  • Drafting a commit message
  • SKILL.md covers Commit messages, Prose register, Comments and Working docs at the repo root, plus 4 more sections
  • Calls make, git and cargo
  • A PR description

What it does

Zhtw Conventions is an agent skill from sysprog21/zhtw-mcp. The zhtw-mcp conventions no gate enforces - the register a comment, a commit message and a PR reply are written in, where Chinese belongs in the tree and where it does not, the untracked working docs at the repo root, deleting a redundant surface instead of deprecating it, and the repository layout. Use when drafting a commit message or a PR description, adding a file or a public surface, removing a flag or a subcommand, or writing a comment longer than a line.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Commit messages and Pull requests. It works with Model Context Protocol and Git. The repository describes itself as: A linguistic linter for Traditional Chinese (zh-TW). The licence is MIT.

When your agent uses it

  • Drafting a commit message
  • A PR description
  • A public surface
  • Removing a flag

Example prompts

  • “/zhtw-conventions”

What it can do on your machine

Read from SKILL.md and the folder at commit 5b385b3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make
    • git
    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Zhtw Conventions loads about 2k tokens when it runs. Until then it costs about 121 tokens; SKILL.md has 1,035 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~121
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sysprog21/zhtw-mcp at commit 5b385b3, republished under its MIT licence (© sysprog21). 1,035 words, ~1,972 tokens.

Download SKILL.mdSave it as .claude/skills/zhtw-conventions/SKILL.md (or your agent's skills folder).
name
zhtw-conventions
description
The zhtw-mcp conventions no gate enforces - the register a comment, a commit message and a PR reply are written in, where Chinese belongs in the tree and where it does not, the untracked working docs at the repo root, deleting a redundant surface instead of deprecating it, and the repository layout. Use when drafting a commit message or a PR description, adding a file or a public surface, removing a flag or a subcommand, or writing a comment longer than a line.

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.

Prose register

Source comments use plain prose: no em dash, and no backticks around an identifier. Name it plainly, and use quotes only where a bare token would read as part of the sentence. scripts/check-comments.sh enforces both, in make check and in the pre-commit hook, so this is a rule you hear about at commit time rather than in review.

Two exemptions, both because the text is markup rather than prose. Markdown files under docs/ and the README use ordinary GitHub Markdown. Rust doc comments, /// and //!, are rustdoc markdown: a backticked span renders as code and an intra-doc link resolves inside one, so backticks stay there. The em dash rule has no exemption; it is about prose in any markup.

The doubled em dash is the zh-TW 破折號 and is data in this tree, not punctuation. The checker leaves it alone, along with one inside quotes.

Chinese in a comment is not only allowed, it is often the only honest way to say what a rule is about: // 聯繫 is contact-copy in zh-TW and a verb in zh-CN. Use it where the term is the subject. Do not use it for prose that has an English form, and keep user-facing strings, identifiers and file names English.

Comments

Brevity is part of correctness, but the bar is rationale rather than length: this tree carries long comments where the reasoning is long, and the rule is that every line says something the code cannot. Delete anything restating the statement below it.

  • Bad: let end = start + len; // add the length
  • Good: let end = start + len; // byte offsets, mapped back through NFC above, so this indexes the original text and not the normalized copy

Comment width is settled by commentflow through scripts/indent.sh, so do not hand-wrap to a column and do not fight the result; run make indent.

Never point a comment, a doc comment or a docs/ page at TODO.md. It is untracked and per-developer, so the reference dangles for everyone else.

Show full SKILL.md (398 more words)Show less

Working docs at the repo root

TODO.md, DONE.md and CLAUDE.md are excluded through .git/info/exclude, not through .gitignore, because the exclusion is one person's habit and .gitignore would push it onto everybody. Never git add, stage, commit or delete them, and never assume a clone has them. Reports and analyses stay out of the tree the same way: a scratch directory, not a new tracked file. A finished TODO item moves to DONE.md rather than being deleted.

Deleting a surface

A flag, subcommand or helper that turns out to be redundant gets deleted, along with its call sites in the Makefile, the scripts, the README, docs/ and the tests. It does not become an alias and it does not get a deprecation warning. "Never break userspace" here means the observable contract: the MCP tool schema in docs/mcp.md, the CLI exit codes, the SARIF and JSON output shapes, and the golden fixtures under tests/. The convenience surface is not that contract.

Pull requests and review replies

The commit body carries what and why. A review thread carries a correction, a measurement, or nothing: no pasted agent walkthroughs, no severity tables, no re-summarizing a diff git already shows.

Layout

text
src/engine/     Scanner passes, normalization, s2t conversion, scoring
src/rules/      Rule store, ruleset schema, overrides, judgment cache
src/cli/        Argument parsing, file discovery, output rendering
src/mcp/        MCP server, stdio transport, tool types, sampling
assets/         ruleset.json, the source of truth for vocabulary rules
scripts/        Table generator, ruleset checker, gate and hook scripts
extension/      Browser extension over the browser-wasm build of the library
tests/          Integration suites, corpora and fixtures
tests/unit/     Unit test bodies, mirroring the module path they belong to
docs/           Internals, rule schema, CLI and MCP references

src/engine/s2t_data.rs is generated and gitignored. See zhtw-verify for what regenerates it, and zhtw-rules for how a vocabulary rule is added.

Test code does not live in src

No test bodies under src/. A module that has unit tests declares them and points at the file:

rust
#[cfg(test)]
#[path = "../../tests/unit/engine/excluded/tests.rs"]
mod tests;

The file lives at tests/unit/ plus the module path plus the module name, so src/engine/excluded.rs puts its tests module in tests/unit/engine/excluded/tests.rs and src/engine/scan/mod.rs puts its in tests/unit/engine/scan/tests.rs. The relative path in the attribute is counted from the directory holding the source file, not from the repository root.

They stay unit tests, which is the point: they keep private access, they compile into the same test binary, and no internal item has to become pub to be reachable. Making an internal pub so a test in tests/*.rs can see it is the thing this arrangement exists to avoid.

What legitimately remains in src/ is not test bodies: a #[cfg(test)] helper on a production type, such as Trie::get_freq in src/engine/segment.rs or Scanner::force_bytewise in src/engine/scan/mod.rs, is an affordance the type offers its tests and belongs with the type. A test-only free function is test code and goes to tests/unit/, which is where the nine legacy grammar scanners sit as tests/unit/engine/scan/grammar/legacy.rs.

© sysprog21, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/zhtw-conventions of sysprog21/zhtw-mcp.

Open the folder on GitHubat commit 5b385b3

Compare with similar skills

Zhtw Conventions next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Zhtw Conventions compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Zhtw Conventions this skillsysprog21/zhtw-mcp488—~2kAutomated safety check: PassMIT
Git Workflow and Versioningaddyosmani/agent-skills102k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Verdaccio Pull Request Workflowverdaccio/verdaccio18k—~1.9kAutomated safety check: PassMIT
Emoji Commit ConventionsbaptisteArno/typebot.io11k—~424Automated safety check: PassCustom licence
Draft Pull Request Creatorwordpress-mobile/WordPress-Android3.2k—~881Automated safety check: NotesGPL-2.0

Similar skills

  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    102k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.

    18k GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Emoji Commit Conventions

    baptisteArno/typebot.io

    Sets the repository's convention for commit messages and pull request titles: one emoji prefix for the main intent, a concise title and clean follow-up commits.

    11k GitHub stars~424 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Draft Pull Request Creator

    wordpress-mobile/WordPress-Android

    Commits and pushes current changes, writes a pull request title and body from the branch history and template, and opens a draft PR on GitHub after you approve it.

    3.2k GitHub stars~881 tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Submit PR

    tisfeng/Easydict

    创建或复用当前 checkout 已提交变更的 GitHub PR,必要时推送任务分支。PR 审查使用 review-pr;仅本地提交使用 git-commit。

    15k GitHub stars~595 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from sysprog21/zhtw-mcp

  • Zhtw Rules

    sysprog21/zhtw-mcp

    What the gates cannot tell you about adding or changing a zh-TW rule - why assets/ruleset.json is the only place a vocabulary rule lives, the false-friend problem and the four gates that answer it…

    488 GitHub stars~1.7k tokensUpdated 3 days ago
    Auto-check passed
  • Zhtw Verify

    sysprog21/zhtw-mcp

    How a zhtw-mcp change is validated - make check as the gate, the generated tables and the ruleset normalization that have to be current before it passes, the formatter chain in scripts/indent.sh…

    488 GitHub stars~2.8k tokensUpdated 3 days ago
    Auto-check passed

Categories

Questions about Zhtw Conventions

What does Zhtw Conventions do?

The zhtw-mcp conventions no gate enforces - the register a comment, a commit message and a PR reply are written in, where Chinese belongs in the tree and where it does not, the untracked working…. Zhtw Conventions is an agent skill from sysprog21/zhtw-mcp. The zhtw-mcp conventions no gate enforces - the register a comment, a commit message and a PR reply are written in, where Chinese belongs in the tree and where it does not, the untracked working docs at the repo root, deleting a redundant surface instead of deprecating it, and the repository layout.

When should I use Zhtw Conventions?

Zhtw Conventions fits situations like: drafting a commit message; A PR description; A public surface; removing a flag.

How do I install Zhtw Conventions in Claude Code?

Run `npx skills add sysprog21/zhtw-mcp --skill zhtw-conventions -a claude-code`. Or copy the skill folder (.claude/skills/zhtw-conventions in sysprog21/zhtw-mcp) into .claude/skills/zhtw-conventions in your project. Claude Code loads it when a task matches its description.

How do I install Zhtw Conventions in Codex?

Run `npx skills add sysprog21/zhtw-mcp --skill zhtw-conventions -a codex`. Or copy the skill folder (.claude/skills/zhtw-conventions in sysprog21/zhtw-mcp) into .agents/skills/zhtw-conventions in your project. Codex loads it when a task matches its description.

Can I use Zhtw Conventions in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sysprog21/zhtw-mcp --skill zhtw-conventions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/zhtw-conventions, .gemini/skills/zhtw-conventions, .github/skills/zhtw-conventions and .opencode/skills/zhtw-conventions in your project.

What does Zhtw Conventions need to run?

Going by SKILL.md and its folder, Zhtw Conventions needs the command-line tools its instructions call (make, git and cargo).

Does Zhtw Conventions access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Zhtw Conventions safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Zhtw Conventions use?

Zhtw Conventions is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Zhtw Conventions use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Zhtw Conventions?

Skills that share tags, products or a category with Zhtw Conventions: Git Workflow and Versioning (addyosmani/agent-skills, 102k stars), React Router Pull Request Creator (remix-run/react-router, 57k stars), Verdaccio Pull Request Workflow (verdaccio/verdaccio, 18k stars) and Emoji Commit Conventions (baptisteArno/typebot.io, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Zhtw Conventions?

sysprog21 (a GitHub organization) maintains it in sysprog21/zhtw-mcp, which has 488 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 5, 2026.

Source: sysprog21/zhtw-mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.