跳到主要内容
知仓学习社ZHICANG

code-sample-documentation

Design, write, review, and test code samples in developer documentation, including executable examples, explanatory snippets, request and response p…

执行命令联网无严重或高危命中hashgraph-online/awesome-codex-plugins

它会碰到什么

扫了多少4 个文本文件,11 KB
它会碰到什么执行命令联网
命中总数2 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Code Sample Documentation

Use this skill to create and review code samples that are useful, accurate, copyable, and maintainable. It applies to executable examples, explanatory snippets, API request/response pairs, CLI commands, config files, and generated references.

This skill is derived from Docs for Developers: An Engineer's Field Guide to Technical Writing, especially Chapter 5, "Integrating code samples." The guidance is transformed and paraphrased; do not copy book prose into user outputs. Source: https://link.springer.com/book/10.1007/978-1-4842-7217-6

Quick Start

  1. Load guidelines.md to choose the smallest useful reference set.
  2. Classify the sample as executable, explanatory, or paired request/response.
  3. Check whether the sample is explained, concise, clear, usable, and trustworthy.
  4. Use workflows/review-code-sample.md for a full sample review.
  5. Prefer running or testing samples when feasible; otherwise mark what remains unverified.

Default Output

When reviewing or designing code samples, return:

  1. Sample purpose - what the reader should learn or accomplish.
  2. Sample type - executable, explanatory, request/response, CLI, config, or generated.
  3. Issues or design notes - ordered by reader risk.
  4. Revised sample - concise and copyable when requested.
  5. Testing plan - how to verify runtime behavior, outputs, and version assumptions.
  6. Maintenance notes - source of truth, owner, and generated/manual boundary.

Contents

| Need | Start Here |

|------|------------|

| Understand sample types | references/core/knowledge.md |

| Apply sample rules | references/core/knowledge.md |

| See before/after examples | references/core/knowledge.md |

| Review or design a sample | workflows/review-code-sample.md |

| Route by task | guidelines.md |

Core Posture

  • A sample is documentation and software; treat it as both.
  • Match sample complexity to the reader's stage.
  • Make placeholders, inputs, outputs, and limitations explicit.
  • Do not imply a sample is production-ready unless it has been reviewed and tested for that use.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。