首页/ AI 技能 / @skilllib/skill-2117939930272413510
Skill站外收录 @skilllib/skill-2117939930272413510

readme-writing

提供编写目录级 README 文件的规范指导,强调阐明文件夹存在的目的、组织逻辑和隐含上下文,帮助开发者理解设计意图与代码归属关系,避免重复显而易见的文件列表,聚焦于提升团队协作中的认知效率。

0.0 (0) 13 次安装 原作者 编程导航
收录于 2026-01-22
文档处理 AI 技能

Skills.MD

# README Writing A folder README has one job: explain **why this folder exists**. Users can run `ls` to see what's in a folder. They need you to explain the reasoning behind the organization, the mental model, and any non-obvious context that helps them understand where things belong. ## Good README Explains purpose, organizational logic, and helpful context: ```markdown # Converters Transform field schemas into format-specific representations. Field schemas are pure JSON Schema objects with `x-component` hints. Different systems need them in different formats: ArkType for runtime validation, Drizzle for SQLite column definitions. Each converter takes the same input (a field schema) and produces output for a specific consumer. If you need field schemas in a new format, add a converter here. ``` ## Bad README File listing that duplicates what's visible: ```markdown # Converters - `to-arktype.ts` - Converts to ArkType - `to-drizzle.ts` - Converts to Drizzle - `index.ts` - Exports ``` ## Guidelines - Explain the "why" and the mental model - Add context that helps developers know where to put new code - Mention relationships to other folders when relevant - Don't list files or duplicate what's obvious from the code - Keep it scannable; a few sentences to a short paragraph is usually enough Exception: Root project READMEs need installation, usage, etc. This skill is for internal folder documentation.

评论 0

还没有评论,来抢沙发。