mattpocock/skills

scaffold-exercises

按章节和练习编号建立课程练习骨架,区分problem、solution与explainer,并用 ai-hero-cli 的项目专用lint检查。它适用于这一套课程仓库约定,不是任意项目的通用练习生成器。

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

scaffold-exercises 是什么?

按章节和练习编号建立课程练习骨架,区分problem、solution与explainer,并用 ai-hero-cli 的项目专用lint检查。它适用于这一套课程仓库约定,不是任意项目的通用练习生成器。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 scaffold-exercises,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 scaffold-exercises

请在 Codex 的当前工作环境中安装并检查 scaffold-exercises 这个 Skill。

项目身份:mattpocock/skills / scaffold-exercises
来源:https://github.com/mattpocock/skills/blob/5863806dd4e15c63174bee4e7515a4256792ecfa/skills/misc/scaffold-exercises/SKILL.md
已定位的源文件:skills/misc/scaffold-exercises/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供课程计划、章节编号与每题需要的变体;仓库需支持 pnpm ai-hero-cli internal lint。

会得到什么

  • 符合课程编号规则的练习目录和可继续编写的README骨架;不是完整课程正文。

实际使用顺序

  1. 从计划提取章节、题目和变体,按exercises/XX-section/XX.YY-exercise命名,未知变体默认explainer。
  2. 为每个变体建立有实际标题和说明的readme.md。只读说明题可以只有README;含代码时需按来源规则提供main.ts。
  3. 执行项目lint,处理缺目录、空README、坏链接、禁止文件和main.ts问题;移动已有题目使用git mv并重新检查编号。源流程包含最终git commit。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用 scaffold-exercises 创建第05章Memory Skill Building,05.01介绍只要explainer,05.02短期记忆要explainer/problem/solution。先核对编号是否占用,写清每份README职责,再执行仓库已有lint;不要把骨架说成完整教程,最终提交前让我看差异。
预期结果

预期生成对应课程骨架并报告真实lint结果;本站未执行本例。

使用前先看这些限制

使用条件与边界

  • 源规则允许简短桩文件,但你的网站公开课程仍需独立内容审读,目录lint不证明教学质量。
  • 缺少ai-hero-cli时不能报告课程lint已通过。
针对这个 Skill 的疑问

常见问题

能自动补出整章教程吗?

此Skill主要搭建题目结构与桩文件。它检查命名和文件规则,不承诺生成完整课程内容。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/misc/scaffold-exercises/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

查看源文件章节 / Source sections
  • 原文:Scaffold Exercises
  • 原文:Directory naming
  • 原文:Exercise variants
  • 原文:Required files
  • 工作流程 / Workflow
  • 原文:Lint rules summary
  • 原文:Moving/renaming exercises
  • 原文:Example: stubbing from a plan
原文:Scaffold Exercises

Create exercise directory structures that pass `pnpm ai-hero-cli internal lint`, then commit with `git commit`.

原文:Directory naming

- **Sections**: `XX-section-name/` inside `exercises/` (e.g., `01-retrieval-skill-building`) - **Exercises**: `XX.YY-exercise-name/` inside a section (e.g., `01.03-retrieval-with-bm25`) - Section number = `XX`, exercise number = `XX.YY` - Names are dash-case (lowercase, hyphens)

原文:Exercise variants

Each exercise needs at least one of these subfolders: - `problem/` - student workspace with TODOs - `solution/` - reference implementation - `explainer/` - conceptual material, no TODOs When stubbing, default to `explainer/` unless the plan specifies otherwise.

原文:Required files

Each subfolder (`problem/`, `solution/`, `explainer/`) needs a `readme.md` that: - Is **not empty** (must have real content, even a single title line works) - Has no broken links When stubbing, create a minimal readme with a title and a description: ```md # Exercise Title Description here ``` If the subfolder has code, it also needs a `main.ts` (>1 line). But for stubs, a readme-only exercise is fine.

工作流程 / Workflow

1. **Parse the plan** - extract section names, exercise names, and variant types 2. **Create directories** - `mkdir -p` for each path 3. **Create stub readmes** - one `readme.md` per variant folder with a title 4. **Run lint** - `pnpm ai-hero-cli internal lint` to validate 5. **Fix any errors** - iterate until lint passes

原文:Lint rules summary

The linter (`pnpm ai-hero-cli internal lint`) checks: - Each exercise has subfolders (`problem/`, `solution/`, `explainer/`) - At least one of `problem/`, `explainer/`, or `explainer.1/` exists - `readme.md` exists and is non-empty in the primary subfolder - No `.gitkeep` files - No `speaker-notes.md` files - No broken links in readmes - No `pnpm run exercise` commands in readmes - `main.ts` required per subfolder unless it's readme-only

文件 SHA256:75f5c9d771606fb9762f16522efc954df11c324f87148d8ff069bce166257de9

仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。

Skills.sh收录简介 · 2026-07-28

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识scaffold-exercises
来源仓库mattpocock/skills
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次164
快照累计安装量164947

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源