adding-an-osf-command
Use this skill when you add a new osf check, a lint rule, a scan rule, or a command-line command.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-08
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- adding-an-osf-command
- description
- Use this skill when you add a new osf check, a lint rule, a scan rule, or a command-line command.
03 SKILL.md 正文
- State what the new rule covers and what it does not.
- Put it in a Coverage section of the rule's doc text.
- Follow the Coverage section every existing rule carries, for example in
crates/osf/src/scan/meta.rs. - Never let a clean result read as "nothing found" when it means "nothing looked at".
- Make the rule tell "could not read" apart from "read, and found nothing".
- Hold the change when a test command is missing. Do not pass it.
- Give the rule a class and a source.
- Name the class: an external standard, a published measurement, or this project's own taste.
- Cite the source. A rule with no real citation says plainly that it is taste.
- Report a denylist match with only the file and the line. Never print the text that matched.
- Read only the files a change touches by default.
- Keep a whole-repository pass as a separate, occasional run.
- Follow the
changedandallscopes of the writing gate in.github/workflows/ci.yml.
- Run the new check against this repository's own files before you trust it anywhere else.
- Run
osf explain <rule-id>to read its doc text back.
- Run
- Make the check fail loudly.
- Never hide a real failure behind a suppression flag.
- Count a check as verifying something only when it can tell a pass from a failure.
Stop when the new rule carries a class, a citation, and a Coverage note. cargo test --workspace must also pass against this repository's own fixtures.
04 同仓库更多 Skills
show-me
Use this skill when the user wants a concise visual instead of a wall of prose, such as pseudocode, a call tree, a component tree, a file tree, a Mermaid diagram, or a diff over one of those.
pr-outline
Use this skill when the user wants a change outline written into a pull request description, or after opening or updating a pull request that changes code.
unpinned-script
Use this skill when the user wants to install the helper tool.
unclosed-frontmatter
暂无简介
no-trigger
Checks a folder for common problems before a release.
no-done
Use this skill when the user wants to migrate a package.