squad-conventions
Core conventions and patterns used in the Squad codebase
- License 许可
- MIT
- 所属仓库
- spboyer/sensei
- 最近更新
- 2026-11-09
- Stars
- ★ 60
- Forks
- 8
01 前言 Front Matter
- name
- readme-writer
- license
- MIT
- description
- Write READMEs for software projects. The skill should be used when writing or revising a README or README.md file.
02 资源文件 3
- 脚本scripts/flesch_kincaid.rb1.3 KB
- 脚本scripts/top1000.txt5.8 KB
- 脚本scripts/vocabulary_profiler.rb6.7 KB
03 SKILL.md 正文
The general flow of a README:
- A section describing what the package does and why it's important (i.e. "what's in it for me" for the user)
- A section on how to install and use the package
- A section on common configuration options and methods
- A section on how to contribute or pointer to CONTRIBUTING.md, notes on the developer's build environment and potential portability problems.
- a brief explanation of any unusual top-level directories or files, or other hints for readers to find their way around the source;
Github-flavored markdown
Since most all of my projects are Github, you have have some neat markdown block extensions available:
[!CAUTION] [!IMPORTANT] [!NOTE] [!TIP] [!WARNING]
Use these to call out any semantic sections.
Reading level
I prefer a Fleisch-Kincaid reading level of 9th grade or below. Revise the README until it is below a 9th grade level. Use scripts/flesch_kincaid.rb.
ESL audience
Many of the people reading a software project README are not native speakers of English.
scripts/top1000.txt is available for profiling what % of a text's words are in the top 1000 most common in English. Aim to increase this number.
DO use active voice where possible. DON'T assume passive constructions are easy just because the words are simple. DO keep noun phrases short and direct. DON'T stack multiple modifiers before nouns ("the recently revised standardized testing protocol"). DO limit embedded clauses—one level of nesting is usually manageable. DON'T assume simple vocabulary guarantees comprehension; "The man who the dog that bit the cat chased ran away" uses basic words but is notoriously hard to parse. DO use conditionals sparingly, favoring simple "if/then" structures. DON'T rely heavily on mixed or inverted conditionals ("Had she known..."). DO make logical connections explicit with transition words (however, therefore, because). DON'T expect readers to infer relationships between ideas. DO spread information across multiple sentences when needed. DON'T pack too many new concepts into a single sentence. DO explain or gloss cultural references. DON'T assume shared background knowledge about idioms, historical events, or cultural touchstones.
Bibliography
— GNU Coding Standards, https://www.gnu.org/prep/standards/html_node/Releases.html#i... (July 1, 2021) — Software Release Practice HOWTO, https://tldp.org/HOWTO/Software-Release-Practice-HOWTO/distp... (Revision 4.1)
04 同仓库更多 Skills
sample-skill
Utility for working with files
sensei
**WORKFLOW SKILL** - Iteratively improve skill frontmatter and routing clarity. WHEN: "run sensei", "sensei help", "improve skill", "fix frontmatter", "score skill", "check skill tokens". INVOKES: token CLI, test runners, git. FOR SINGLE OPERATIONS: use the token CLI directly.
{skill-name}
{what this skill teaches agents}