跳到正文
Skillpedia
写作8.2k · #12549

cognitive-doc-design

它能做什么

这项技能教你的 AI 如何编写让人能快速理解的文档。适合编写指南、README、架构说明或拉取请求描述的人。

适用场景

  • ✓当你为新成员编写 README、指南或入门文档的时候。
  • ✓当一份文档感觉太长、太密或难以浏览的时候。
  • ✓当你撰写拉取请求描述或架构说明,且审阅者必须快速理解的时候。

技能链接

https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/cognitive-doc-design/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/cognitive-doc-design/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请重写这份 README,让新开发者先看到快速上手的路径,然后再看细节。”

每周 5 个新技能,1 分钟读完。

工作原理

技能要求 AI 先给出结论,先展示主要路径,使用简短的章节和表格,然后再补充细节和边界情况。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

When to Use

Load this skill when creating or editing documentation that people need to understand quickly, retain, or use during review.

Use it especially for:

  • PR descriptions and review notes.
  • Contributor or maintainer guides.
  • Architecture, workflow, or onboarding docs.
  • Any doc that currently feels long, dense, or hard to scan.

Critical Patterns

Pattern Rule
Lead with the answer Put the decision, action, or outcome first. Context comes after.
Progressive disclosure Start with the happy path, then add details, edge cases, and references.
Chunking Group related information into small sections. Keep flat lists short.
Signposting Use headings, labels, callouts, and summaries so readers know where they are.
Recognition over recall Prefer tables, checklists, examples, and templates over prose that must be remembered.
Review empathy Design docs so reviewers can verify intent without reconstructing the whole story.

Documentation Shape

Use this default structure unless the repo already provides a stronger template:

# <Outcome-oriented title>

<One paragraph: what changed, who it helps, and why it matters.>

## Quick path

1. <First action>
2. <Second action>
3. <Verification or expected result>

## Details

| Topic | Decision |
|-------|----------|
| <area> | <concise explanation> |

## Checklist

- [ ] <Reader can confirm this>
- [ ] <Reader can confirm that>

## Next step

<Link or action that continues the workflow.>

PR and Review Docs

When documenting a PR, reduce reviewer burnout by making the review path explicit:

  • State what to review first.
  • State what is intentionally out of scope.
  • Link the previous and next PR when work is chained.
  • Keep each section focused on one decision or unit of work.
  • Use checklists for acceptance criteria and verification.

Commands

# Check markdown files changed in the current branch
git diff --name-only -- '*.md'

# Inspect PR changed-line count for cognitive load
gh pr view <PR_NUMBER> --json additions,deletions,changedFiles
常见问题

它推荐什么结构?

清晰的标题、简短的开头段落、带步骤的快速路径,然后是分节或表格中的细节。

它适用于拉取请求描述吗?

适用。它把 PR 描述和审阅笔记列为所涵盖的文档之一。

它会让文档变长吗?

不会。它注重简短的章节和清晰的标题,让读者更快找到所需内容。

详情

作者的原始描述

Design docs that reduce cognitive load. Trigger: writing guides, READMEs, RFCs, onboarding, architecture, or review-facing docs.

repo: Gentleman-Programming/gentle-ai

热度

GitHub 星标
8.2k
排名
#12549
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能