本文へ移動
cccskills
無料GitHub で公開

docs-to-cheatsheet

Create concise checklist cheatsheets from official tool docs. Use for docs URLs, setup guides, or updating existing cheatsheets. Don't use for long tutorials or API references.

インストール方法を見る

含まれるファイル(6)

  • SKILL.md11.5 KB
  • agents/cheatsheet-reviewer.md2.4 KB
  • agents/community-researcher.md1.5 KB
  • agents/docs-mapper.md1.8 KB
  • docs/README.md2.5 KB
  • evals/evals.json2.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Docs to Cheatsheet

Turn a tool docs URL into a short checklist that moves from installation to advanced usage. Use official docs for facts and community sources for practical tips.

Repo Sync Before Edits (mandatory)

Before changing files in a git repository, sync the current branch so the cheatsheet is based on the latest content:

branch="$(git rev-parse --abbrev-ref HEAD)"
git fetch origin
git pull --rebase origin "$branch"

If the working tree is dirty, stash first, sync, then pop:

git stash push -u -m "docs-to-cheatsheet pre-sync"
branch="$(git rev-parse --abbrev-ref HEAD)"
git fetch origin
git pull --rebase origin "$branch"
git stash pop

If origin is missing, the pull fails, or conflicts occur, stop and ask the user before continuing.

Environment check

If the Agent tool is available, use subagents for heavy browsing and independent review. If not, execute the same phases inline with web_search, fetch_content, file reads, and validation commands.

Subagent prompts:

  • Read agents/docs-mapper.md before delegating official documentation navigation mapping.
  • Read agents/community-researcher.md before delegating best-practice blog/article research.
  • Read agents/cheatsheet-reviewer.md before delegating independent quality review.

Prerequisites

Before execution, check for: an official docs URL, network access or user-provided excerpts, write access for repo edits, and a local validator such as pnpm cheatsheet:lint. If a prerequisite fails, report the error and ask for the missing input.

Inputs

Expected input: one official documentation URL for a tool, such as a Pi, Claude Code, Codex, Ollama, MCP server, or CLI docs page.

Optional user preferences:

  • Target audience: beginner, intermediate, advanced, or mixed.
  • Output location or slug.
  • Whether to update an existing cheatsheet or create a new one when both are plausible.
  • Source freshness preference, if the default recent/community search is not enough.

Output contract

Produce or update one concise Markdown cheatsheet. In this repository, default to:

src/content/cheatsheets/<slug>/<slug>.md

When this repository's template contract exists, obey it. Use these sections in order unless the repo contract says otherwise:

  1. **One-line:** <short value proposition> before the first H2
  2. ## Prerequisites — optional - [ ] task list, only before Installation
  3. ## Installation
  4. ## Step-by-Step Setup & Optimization
  5. ## Best Practices
  6. ## Quick Command Reference
  7. ## Expected Outcomes
  8. ## Reference with a collapsed <details> block

Steps under ## Step-by-Step Setup & Optimization are ### Step N — Title H3s numbered 1..N (aim for 3–7). Every step gets a meta line and a Verify line:

### Step 1 — Install and verify

**Goal:** A working `tool` binary on PATH · **Time:** ~5 min · **Level:** beginner

1. Install:
   ```bash
   curl -fsSL https://example.dev/install.sh | sh
  1. Check the version:
    tool --version
    

Verify: tool --version prints a version number.

[!TIP] One-line tip that saves time.


Step rules: one action per numbered item; every command in its own fenced
code block with a language tag; commands copy-paste ready (no `$ ` prompts,
`<UPPER_SNAKE>` placeholders); `**Time:**` like `~5 min` or `1 h`;
`**Level:**` one of `beginner`/`intermediate`/`advanced`; `**Verify:**`
names an existing command's expected output (≥10 chars). Use GitHub alerts
(`> [!TIP]`, `> [!WARNING]`, …) for tips and warnings rather than bold prose.

Use checkable todo items for actionable content:

```markdown
- [ ] Install the CLI with the verified command from the official docs.
- [ ] Run the first successful login or health-check command.
- [ ] Configure the minimum recommended settings.
- [ ] Enable advanced/optimized settings only after the baseline works.

Keep the cheatsheet short and scannable. Prefer verified commands, defaults, and decision points over prose. Do not mirror every docs page.

Example

Example input:

Create a cheatsheet from https://docs.example.com/tool/quickstart

Expected output: a proposed plan first, then—after approval—a validated Markdown file at src/content/cheatsheets/<slug>/<slug>.md with checklist tasks, command blocks, and source links.

Workflow

Phase 1: Identify the tool

From the input URL and page content, determine:

  • Tool name and canonical capitalization.
  • Homepage, docs root, repository URL, package/installer URL when available.
  • Tool category: tool, mcp, concept, or comparison if the repo uses this taxonomy.
  • Slug in kebab-case.
  • Current version or release channel if clearly available.

If the URL does not identify a concrete tool, ask one focused clarification question before researching.

Phase 2: Check for an existing cheatsheet

Before browsing deeply, search for an existing cheatsheet:

  • Exact path: src/content/cheatsheets/<slug>/<slug>.md
  • Nearby slugs in src/content/cheatsheets/
  • Frontmatter title, slug, links.homepage, and links.repo
  • Existing skill/examples folders only as authoring references, not as cheatsheet output

If an existing cheatsheet is found, switch to update mode. Preserve valid current content, replace stale or unsupported claims, and keep useful references.

If no cheatsheet is found, switch to create mode.

Phase 3: Map official documentation navigation

Get a navigation overview before drafting. Use official docs pages first:

  • Fetch the supplied page and identify docs root/navigation/sidebar/sitemap links.
  • Count candidate pages and group them as must-read, skim, or skip.
  • Prioritize installation, setup, auth/login, configuration, CLI/API commands, workflows, advanced configuration, security, troubleshooting, and best practices.
  • Capture source URLs for every command or recommendation used in the final cheatsheet.

When Agent is available, spawn the docs mapper subagent. Otherwise do this inline.

Phase 4: Research recent community best practices

Search for the top 5 recent and/or popular practical sources using queries like <tool> best practices, <tool> setup guide, <tool> advanced configuration, <tool> tips workflow, and <tool> performance security troubleshooting. Prefer recent, authoritative, widely referenced, maintainer, or power-user sources. If popularity is unclear, rank by recency plus authority. Official docs decide command correctness.

When Agent is available, spawn the community researcher subagent in parallel with docs mapping.

Phase 5: Propose an implementation plan and wait

Before creating or editing the cheatsheet, present a short plan and stop for user approval.

Plan format:

## Proposed Cheatsheet Plan

- Tool: <name>
- Mode: create | update
- Output path: `src/content/cheatsheets/<slug>/<slug>.md`
- Official docs coverage: <N> candidate pages; <M> must-read; <S> skim; <K> skip
- Community sources: top 5 sources to inspect
- Cheatsheet scope:
  - Installation: <what will be covered>
  - Setup/config: <what will be covered>
  - Advanced/optimized: <what will be covered>
  - Best practices: <what will be covered>
- Known uncertainties: <short bullets or "none yet">

Reply `approve` to generate/update the cheatsheet, or tell me what to change.

Do not write the cheatsheet until the user approves the plan.

Phase 6: Draft or update the cheatsheet

After approval:

  • Read the selected official docs pages and chosen community sources.
  • Extract only important information: installation, first run, configuration, common workflows, advanced options, security/privacy, performance, troubleshooting, and best practices.
  • Convert the path from basic to advanced into checkable tasks.
  • Keep each task actionable and self-contained.
  • Mark uncertain or version-sensitive items as notes instead of pretending certainty.
  • Include only commands that were verified from official docs or explicitly provided by the user.

Recommended structure inside the main setup section:

## Step-by-Step Setup & Optimization

### Step 1 — Basic working setup

**Goal:** <what the reader has when done> · **Time:** ~10 min · **Level:** beginner

1. <action>:
   ```bash
   <command>

Verify: <command and expected output>.

Step 2 — Daily workflow

Step 3 — Configuration baseline

Step 4 — Advanced optimization

Step 5 — Maintenance and troubleshooting


### Phase 7: Validate and review

Run the repository's validator when available. For this repo, use:

```bash
pnpm cheatsheet:lint src/content/cheatsheets/<slug>/<slug>.md --no-links

If the package scripts differ, inspect package.json and use the closest local validator. Fix validation errors before final response.

Use an independent reviewer subagent when Agent is available. Check that the output is a concise cheatsheet, flows from installation to advanced use, sources commands from official docs, preserves useful existing content, and passes repo validation.

Phase 8: Final response

Return a concise completion summary with:

  • Created or updated file path.
  • Validation command and result.
  • Source coverage summary: official pages used and community sources used.
  • 2–4 content-specific review questions for ambiguous decisions.
  • Suggested conventional commit message.

Quality rules

  • No fabrication: never invent commands, flags, config keys, URLs, versions, or references.
  • Prefer official docs over blogs for factual commands and install steps.
  • Prefer checklists over paragraphs.
  • Keep basic setup before advanced optimization.
  • If the docs are huge, cover the high-value path and list omitted areas in the Reference section.
  • If sources disagree, note the conflict and choose the official docs unless the user says otherwise.

Acceptance Criteria

Verify these expected results before reporting success:

  • The tool, slug, mode, and output path are identified.
  • Existing cheatsheets are checked before writing.
  • The user approves the plan before any cheatsheet file is created or updated.
  • The final cheatsheet is checklist-first and flows from installation to advanced use.
  • Every command, flag, config key, and version-sensitive claim has an official source or is marked uncertain.
  • The repo validator runs successfully, or the blocker is reported with the exact command and error.

Edge Cases

Handle these carefully:

  • Invalid or inaccessible docs URL: ask for a valid official URL; do not fabricate install commands.
  • Huge docs site: cover must-read pages first and list omitted areas in ## Reference.
  • Existing stale cheatsheet: update supported claims and preserve useful current content.
  • Conflicting sources: prefer official docs, then note the community disagreement.

Step completion report format

After each major phase, report status in this format:

◆ <Phase Name> ([step N of M] — docs-to-cheatsheet)
··································································
  Tool identified:      √ pass
  Existing sheet check: √ pass
  Sources tracked:      √ pass
  User approval:        × fail — waiting for approval
  Criteria:             √ 3/4 met
  ____________________________
  Result:               PARTIAL

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Author standardized AI cheatsheets in the awesome-cheatsheets format

日本語の概要は準備中です。原文の説明を表示しています。

luongnv89/awesome-cheatsheets82026年10月5日 更新

luongnv89 のスキルをすべて見る

このスキルの問題を報告する