Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

explanatory-playground解释性游乐场

Agent Skill

explanatory-playground 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

436

周安装

18

GitHub Stars

35

下载量

143
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:explanatory-playground(解释性游乐场)
来源仓库:https://github.com/petekp/claude-code-setup
仓库路径:skills/explanatory-playground
安装命令:
npx skills add https://github.com/petekp/claude-code-setup --skill explanatory-playground
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/petekp/claude-code-setup --skill explanatory-playground

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在需要围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装命令:npx skills add https://github.com/petekp/claude-code-setup --skill explanatory-playground
  • 注意:使用前请确认权限范围和维护状态,避免触发不必要的网络请求或文件操作。

SKILL.md

Explanatory Playground

Build an explainer that teaches a real system, not just a debug widget.

Pair two layers whenever possible:

  • a reader-facing narrative that explains the system in human order
  • an interactive artifact that proves the explanation with source links, runtime traces, or live controls

If the user already has a finished study guide markdown and just wants a polished presentation, use interactive-study-guide instead. If the user only needs a narrow debug panel with no broader teaching goal, transparent-ui may be enough.

Failure Modes To Prevent

  1. Pretty diagrams that are not anchored to real code or behavior
  2. Exhaustive file tours that follow repository order instead of conceptual order
  3. Runtime instrumentation with no explanatory story
  4. Prose that sounds confident but is not backed by code, tests, or traces
  5. Monolithic playgrounds that try to teach the entire codebase at once

Core Principles

Narrative owns the order. Borrow the key idea from literate programming: present the system in the order that helps a human understand it, not the order files happen to exist on disk.

Evidence beats vibes. Every major claim in the artifact should be grounded in one or more of: exact source locations, a trace/log, a test, a typed contract, or a controlled experiment inside the playground.

Show the stable concepts first. Start with actors, boundaries, invariants, and the happy path before diving into edge cases or implementation detail.

Make the reader do small experiments. Good understanding comes from changing an input, replaying a transition, or stepping through a failure path.

Prefer one subsystem at a time. If the request sounds codebase-wide, identify the workflow or subsystem that best answers the user's question and teach that first.

Default Deliverable

Unless the user explicitly wants chat-only output, aim to ship a paired artifact:

  1. Narrative spine - a concise explainer doc or page section that answers the reader's core questions in order
  2. Interactive playground - panels, controls, timelines, or diagrams tied to the actual system
  3. Source index - links to the authority files, tests, entrypoints, and probes used to support the explanation

Follow the blueprint in references/guide-blueprint.md. Apply the literate-programming rules in references/literate-programming.md. Use references/patterns.md only for the system patterns that actually fit. When runtime evidence matters, normalize it with references/trace-adapters.md.

If the repo does not already have an explanatory package, bootstrap one with:

python3 scripts/scaffold.py <repo-root> "<topic>" --shape docs

Use --shape hybrid when a Next.js-style dev route is appropriate. The scaffold creates the narrative control plane first so the later UI work has a grounded structure.

Workflow

1. Calibrate the teaching target

Before building anything, pin down:

  • the subsystem or workflow to explain
  • who the artifact is for: newcomer, adjacent engineer, or debugger
  • the questions the artifact must answer
  • the boundary: whole system, request path, data pipeline, state container, render loop, and so on

A good framing prompt is:

  • "After ten minutes with this artifact, what should the reader be able to explain or modify confidently?"

2. Build an evidence ledger

Read just enough of the codebase to ground the explanation:

  • entrypoints
  • key tests
  • architecture docs or ADRs if present
  • recent churn or TODO/FIXME hints when relevant
  • the source files that actually own state, orchestration, and side effects

Extract:

  • main actors and nouns
  • inputs and outputs
  • state and transitions
  • invariants or promised behaviors
  • ordering and timing concerns
  • failure paths
  • exact file anchors worth linking from the artifact

Do not start designing visuals until you know what the system is actually doing.

3. Design the narrative spine

Organize the artifact around a small number of reader questions. Use the section templates in references/guide-blueprint.md.

A strong default sequence is:

  1. Why this subsystem exists
  2. The key actors and boundaries
  3. The happy-path walkthrough
  4. State, invariants, and source of truth
  5. Timing, branching, or failure behavior
  6. Hands-on probes the reader can run
  7. Where to read next in the real code

Do not mirror the folder tree unless the folder tree itself is the concept being taught.

4. Apply literate-programming discipline

For each section:

  • lead with the concept or question
  • show only the code excerpt needed for that concept
  • explain why that excerpt matters before enumerating implementation detail
  • link back to the full source
  • keep prose and interactive controls adjacent so the reader can test the claim immediately

Use named chunks, short excerpts, and explicit cross-references. The reader should feel guided, not dumped into raw source.

5. Choose the artifact shape

Pick the lightest structure that can teach the idea well:

  • Embedded dev route: best when the real app context matters and live state is useful
  • Standalone explainer page/app: best when the teaching artifact needs more editorial freedom
  • Hybrid doc + playground: best for multi-session onboarding or architecture-heavy topics

If the repo has no convention, a reasonable default is:

docs/explanatory/<topic>/
app/__dev/<topic>/page.tsx
src/devtools/<topic>/*

Adapt to the project's actual layout instead of forcing this shape.

When starting from zero, run the scaffold after choosing the shape:

python3 scripts/scaffold.py <repo-root> "<topic>" --shape docs
python3 scripts/scaffold.py <repo-root> "<topic>" --shape hybrid

docs is framework-neutral and creates:

  • guide.md
  • source-index.md
  • chunk-manifest.md
  • reader-lab.md

hybrid additionally creates a Next.js-style app/__dev/<topic>/page.tsx, a shared explainer model in src/devtools/<topic>/artifact.ts, and a normalized trace layer in src/devtools/<topic>/trace.ts.

Use references/chunk-manifest.md to keep the narrative units crisp while you fill in the scaffold.

6. Instrument minimally and honestly

Prefer the least invasive evidence source that answers the reader's question:

  1. existing tests, fixtures, and logs
  2. dev-only wrappers or observers
  3. event emitters or trace buffers
  4. controlled test inputs and replay tools

When adding instrumentation:

  • keep it dev-only
  • capture timestamps and causal metadata
  • store enough history to replay important transitions
  • label speculative vs observed behavior clearly

If you scaffolded a hybrid artifact, make trace.ts the single normalization layer for runtime evidence. Adapt emitters, store transitions, request lifecycles, or wrapper probes into that shape before building panel-specific views.

7. Build panels that answer specific questions

Every panel needs a job. Good panel prompts:

  • "What state are we in right now?"
  • "What just happened, and why?"
  • "Which module owns this decision?"
  • "What changed between step A and step B?"
  • "What fails if this invariant breaks?"
  • "Which files should I open next?"

Include only the panels that earn their place. Use the shared affordances and domain patterns in references/patterns.md.

8. Add reader experiments

A great explanatory playground lets the reader verify understanding. Add a few targeted probes:

  • trigger the happy path
  • pause and scrub through history
  • inject a malformed input or edge case
  • compare before/after snapshots
  • toggle a guard, feature flag, or branch condition
  • reveal which invariant was preserved or violated

Favor a few high-signal scenarios over a kitchen-sink control surface.

9. Verify the artifact as a teaching tool

Before finishing, check whether a fresh reader could answer:

  • What is this subsystem for?
  • What is the main execution path?
  • Where does state live?
  • What must remain true?
  • Where do timing or branching issues show up?
  • Which files are the authority?
  • What would I change first if behavior X were wrong?

If the answer is no, simplify and sharpen the artifact until it teaches.

Output Quality Bar

A strong result usually has:

  • a clear narrative spine with stable section headings
  • interactive panels tied to actual code or traces
  • file links or source anchors for every major concept
  • one or more "try this" reader experiments
  • explicit invariants and failure modes
  • a path from overview to real implementation details

Cleanup And Promotion

If the artifact is temporary:

  • keep it behind a dev-only route or flag
  • add a clear removal note at the top of created files
  • summarize what to delete when the user is done

If the artifact will remain useful for onboarding:

  • promote the narrative into repo docs or a durable explainer page
  • keep the interactive portion lightweight enough that it does not rot faster than the system it teaches

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.46%
按下载量换算51

Claude

28.69%
按下载量换算41

Cursor

18.03%
按下载量换算26

Gemini CLI

9.25%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills