cm SKILL.md skillA

cm from zhaojiannet/canon is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add zhaojiannet/canon/cm@git:20261004.e8cf316

Pins git:20261004.e8cf316 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
zhaojiannet/canon
Path
plugins/flow/skills/cm/SKILL.md
Versions recorded
9
Latest version
git:20261004.e8cf316, committed Oct 4, 2026
First version recorded
Jun 6, 2026
Size
3,591 bytes
Repository stars
4
License
MIT

按规范提交当前改动:先确认代码审过,每个 commit 前查密钥、调 vet 核对 message.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

把当前改动提交。带参数时只提交参数指定的部分,其余改动留在工作区。

## 先看改动

1. 跑 `git status --porcelain` 和 `git diff`。前者列出未跟踪的新文件,后者看不到它们。分组以这两条命令的输出为准,上下文里的任务列表只当线索。
2. 改动里有代码文件(`.md`、`.txt`、图片、锁文件以外的都算)时,确认本会话跑过 `/code-review`,并且那之后的代码改动只是在修它确认的问题。修这些问题不用再审:不带参数的 `/code-review` 每次都重审未推送的提交和全部未提交的改动,修完就要求再审会一轮接一轮。
   - 没跑过,或者审查之后又写了别的代码,就用 AskUserQuestion 问我,问题里列出这些代码文件,选项两个:「跑 `/code-review`」「跳过」。
   - 选跑:调 `/code-review`,等结果回来,修掉它确认的问题,再往下走。选跳过:直接往下走。

   审查放在提交前,审出的问题能修进同一个 commit,已提交的历史保持不动。

## 分几个 commit

- 默认全部放进一个 commit。改动里有两件互不相干的事时才分开,比如一个 bug 修复加一个无关的新功能。同一件事改了多少文件、跨了多少目录,都放在一起。
- 一两行的清理(`.gitignore` 条目、拼写、格式)跟着最相关的 commit 走,message 里不提。
- 分开后,每个 commit 单独看都要完整:函数签名和它的调用点、改动和它的测试,放在同一个 commit。
- 一个文件里混了两件事时,整个文件放进主要的那个 commit,在 message 末尾用一句话交代这个文件顺带了哪件事的改动。

## 每个 commit

1. 用 `git add <路径…>` 暂存这一组,全程保持工作区原样。`git add -A`、`git commit -a` 会把别的组带进来;用 `git stash`、`git reset`、`git checkout` 切割改动可能丢数据(claude-code issue #14293)。
2. 查密钥,用下面第一个能用的:
   - `gitleaks git --pre-commit --staged --redact --verbose --no-banner .`
   - `docker run --rm -v "$PWD":/repo ghcr.io/gitleaks/gitleaks:v8.30.1 git --pre-commit --staged --redact --verbose --no-banner /repo`
   - 两个都用不了,就自己把暂存的 diff 扫一遍。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add zhaojiannet/canon/cm@sha256:3a731be3ad3668a7

The line at the top of this page pins the label git:20261004.e8cf316, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_4vct7lqgtl6zihsl.svg)](https://markdownregistry.com/a/art_4vct7lqgtl6zihsl)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 9 versions of this file, between Jun 6, 2026 and Oct 4, 2026, about one every 15 days.

versioncommittedcommitsizeaudit
git:20261004.e8cf316 latest2026-10-04 e8cf316 3,591 BA view · diff
git:20261001.947ab442026-10-01 947ab44 3,631 BA view · diff
git:20260926.2fd6ef02026-09-26 2fd6ef0 3,212 BA view · diff
git:20260926.b657d1b2026-09-26 b657d1b 3,165 BA view · diff
git:20260926.7dc7ead2026-09-26 7dc7ead 3,088 BA view · diff
git:20260915.3cdb3812026-09-15 3cdb381 3,800 BA view · diff
git:20260821.f5d779a2026-08-21 f5d779a 2,956 BA view · diff
git:20260727.5a67c7d2026-07-27 5a67c7d 2,661 BA view · diff
git:20260606.a0b76862026-06-06 a0b7686 1,232 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3591 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

zhaojiannet/canon · 4 stars · license MIT · pushed 2026-10-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_4vct7lqgtl6zihsl
GET https://markdownregistry.com/api/v1/resolve?ref=zhaojiannet/canon/cm
GET https://markdownregistry.com/api/v1/blob/3a731be3ad3668a77a9314f14d95a436278c1f8361903b25d712b3b4ac7e465d

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from zhaojiannet/canon

e2e SKILL.md skill
zhaojiannet/canon · plugins/flow/skills/e2e/SKILL.md · 用现有账号和环境给当前项目做全量端到端测试。摸清项目 → 出计划 → 人审 → 生成 spec → 横切面检查 → 跑并修 → 出报告,被测项目只加 e2e/ 目录和一行 .gitignore
git:20260926.2fd6ef0 · audit A · 4 stars
go SKILL.md skill
zhaojiannet/canon · plugins/flow/skills/go/SKILL.md · 工作纪律:先查证再动手,找到真正的原因再修,收尾前审查代码,如实汇报
git:20260926.2fd6ef0 · audit A · 4 stars
msg SKILL.md skill
zhaojiannet/canon · plugins/flow/skills/msg/SKILL.md · 写或审 commit message 时的格式与禁忌。写 commit、起草 message、改 message、检查 message 时都先读这里。
git:20261004.e8cf316 · audit A · 4 stars
oss SKILL.md skill
zhaojiannet/canon · plugins/flow/skills/oss/SKILL.md · 调研、选型、对比开源项目时的筛选标准和安全核对。用户要调研、选型、对比、推荐库、框架、工具、GitHub 项目,或提到 star 数、替代方案时,先读这里再找候选。
git:20261004.e8cf316 · audit B · 4 stars
pin SKILL.md skill
zhaojiannet/canon · plugins/flow/skills/pin/SKILL.md · 用 Playwright 脚本把肉眼难确认的界面 bug(时序、偶发、多步交互)钉住:先复现、按复现率反复验证,再修应用代码,spec 留作回归
git:20260926.2fd6ef0 · audit A · 4 stars
vet SKILL.md skill
zhaojiannet/canon · plugins/flow/skills/vet/SKILL.md · 提交前把关。在看不到对话的子代理里,拿 diff 逐句核对 commit message 草稿和新增注释,标出指不到 diff 的句子、仓库里找不到的编号、讲开发经过的句子、只复述代码的注释、非中文。cm 在 commit…
git:20260926.2fd6ef0 · audit A · 4 stars
astro SKILL.md skill
zhaojiannet/canon · plugins/lockstep-astro/skills/astro/SKILL.md · Enforce Astro 7 static-first conventions. Use when editing .astro files or when the user mentions Astro, islands…
git:20260914.a9571da · audit A · 4 stars
echo SKILL.md skill
zhaojiannet/canon · plugins/lockstep-echo/skills/echo/SKILL.md · Enforce Echo v5 handler conventions for Go, focused on error handling. Use when editing .go handler/route/middleware…
git:20260914.a9571da · audit A · 4 stars
fastify SKILL.md skill
zhaojiannet/canon · plugins/lockstep-fastify/skills/fastify/SKILL.md · Enforce Fastify v5 plugin/route conventions for Node/TypeScript. Use when editing .ts/.js/.mjs that import fastify or…
git:20260914.a9571da · audit A · 4 stars
nuxt-ui SKILL.md skill
zhaojiannet/canon · plugins/lockstep-nuxt-ui/skills/nuxt-ui/SKILL.md · Enforce Nuxt UI v4 component-first conventions. Use when editing .vue files or when the user mentions Nuxt UI, a…
git:20260914.a9571da · audit A · 4 stars
postgres SKILL.md skill
zhaojiannet/canon · plugins/lockstep-postgres/skills/postgres/SKILL.md · Enforce PostgreSQL schema design and safe migrations. Use when editing **/migrations/*.sql, **/schema/*.sql…
git:20260914.a9571da · audit A · 4 stars
sqlc SKILL.md skill
zhaojiannet/canon · plugins/lockstep-sqlc/skills/sqlc/SKILL.md · Enforce sqlc codegen conventions for Go + PostgreSQL. Use when editing sqlc.yaml, **/queries/*.sql, or generated…
git:20260914.a9571da · audit A · 4 stars

Every file in zhaojiannet/canon

Browse by kind, by grade A, or by owner.