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.
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…
$ npx skills add sysprog21/zhtw-mcp --skill zhtw-conventions -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install sysprog21/zhtw-mcp zhtw-conventions --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "zhtw-conventions" agent skill from https://github.com/sysprog21/zhtw-mcp/tree/main/.claude/skills/zhtw-conventions into .claude/skills/zhtw-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhtw-conventions", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/sysprog21/zhtw-mcp/tree/main/.claude/skills/zhtw-conventionsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add sysprog21/zhtw-mcp --skill zhtw-conventions -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install sysprog21/zhtw-mcp zhtw-conventions --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sysprog21/zhtw-mcp.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/zhtw-conventions .agents/skills/zhtw-conventions && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "zhtw-conventions" agent skill from https://github.com/sysprog21/zhtw-mcp/tree/main/.claude/skills/zhtw-conventions into .agents/skills/zhtw-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhtw-conventions", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sysprog21/zhtw-mcp --skill zhtw-conventions -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install sysprog21/zhtw-mcp zhtw-conventions --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sysprog21/zhtw-mcp.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/zhtw-conventions .cursor/skills/zhtw-conventions && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "zhtw-conventions" agent skill from https://github.com/sysprog21/zhtw-mcp/tree/main/.claude/skills/zhtw-conventions into .cursor/skills/zhtw-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhtw-conventions", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/sysprog21/zhtw-mcp.git --path .claude/skills/zhtw-conventions--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add sysprog21/zhtw-mcp --skill zhtw-conventions -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install sysprog21/zhtw-mcp zhtw-conventions --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sysprog21/zhtw-mcp.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/zhtw-conventions .gemini/skills/zhtw-conventions && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "zhtw-conventions" agent skill from https://github.com/sysprog21/zhtw-mcp/tree/main/.claude/skills/zhtw-conventions into .gemini/skills/zhtw-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhtw-conventions", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install sysprog21/zhtw-mcp zhtw-conventionsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add sysprog21/zhtw-mcp --skill zhtw-conventions -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/sysprog21/zhtw-mcp.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/zhtw-conventions .github/skills/zhtw-conventions && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "zhtw-conventions" agent skill from https://github.com/sysprog21/zhtw-mcp/tree/main/.claude/skills/zhtw-conventions into .github/skills/zhtw-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhtw-conventions", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sysprog21/zhtw-mcp --skill zhtw-conventions -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install sysprog21/zhtw-mcp zhtw-conventions --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sysprog21/zhtw-mcp.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/zhtw-conventions .opencode/skills/zhtw-conventions && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "zhtw-conventions" agent skill from https://github.com/sysprog21/zhtw-mcp/tree/main/.claude/skills/zhtw-conventions into .opencode/skills/zhtw-conventions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "zhtw-conventions", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
zhtw-conventionsThe 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. 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.
Read from SKILL.md and the folder at commit 5b385b3. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
makegitcargoFrom the folder's file list and the shell code blocks in SKILL.md.
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.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
The full file from sysprog21/zhtw-mcp at commit 5b385b3, republished under its MIT licence (© sysprog21). 1,035 words, ~1,972 tokens.
.claude/skills/zhtw-conventions/SKILL.md (or your agent's skills folder).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.
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 cargoThe 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.
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.
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.
let end = start + len; // add the lengthlet end = start + len; // byte offsets, mapped back through NFC above, so this indexes the original text and not the normalized copyComment 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.
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.
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.
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.
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 referencessrc/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.
No test bodies under src/. A module that has unit tests declares them and
points at the file:
#[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
Just SKILL.md in .claude/skills/zhtw-conventions of sysprog21/zhtw-mcp.
Open the folder on GitHubat commit 5b385b3
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Zhtw Conventions this skillsysprog21/zhtw-mcp | 488 | — | ~2k | Automated safety check: Pass | MIT | |
| Git Workflow and Versioningaddyosmani/agent-skills | 102k | 2 repos | ~3.5k | Automated safety check: Notes | MIT | |
| React Router Pull Request Creatorremix-run/react-router | 57k | — | ~2.5k | Automated safety check: Pass | MIT | |
| Verdaccio Pull Request Workflowverdaccio/verdaccio | 18k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Emoji Commit ConventionsbaptisteArno/typebot.io | 11k | — | ~424 | Automated safety check: Pass | Custom licence | |
| Draft Pull Request Creatorwordpress-mobile/WordPress-Android | 3.2k | — | ~881 | Automated safety check: Notes | GPL-2.0 |
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.
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.
verdaccio/verdaccio
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.
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.
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.
tisfeng/Easydict
创建或复用当前 checkout 已提交变更的 GitHub PR,必要时推送任务分支。PR 审查使用 review-pr;仅本地提交使用 git-commit。
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…
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…
Works with
Categories
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.
Zhtw Conventions fits situations like: drafting a commit message; A PR description; A public surface; removing a flag.
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.
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.
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.
Going by SKILL.md and its folder, Zhtw Conventions needs the command-line tools its instructions call (make, git and cargo).
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.
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.
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.
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.
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.
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.