scaffold-exercises
创建包含章节、问题、解答和讲解的练习目录结构,并通过 lint 检查。当用户想要搭建练习脚手架、创建练习桩代码、或设置新的课程章节时使用。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
创建包含章节、问题、解答和讲解的练习目录结构,并通过 lint 检查。当用户想要搭建练习脚手架、创建练习桩代码、或设置新的课程章节时使用。
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Manage git submodules for the learning-open-code mono-repo. Use when the user wants to: (1) Add a new git submodule — auto-detect or specify the category (open-ai-skills/open-sdd/open-ai-agent/open-ai-desktop/open-knowledge/open-productivity/open-java/open-trading/open-data), record the tracking branch in .gitmodules, clone the repo, and update README.md index. (2) Sync all existing submodules to their configured branches (git fetch + checkout branch + pull). (3) Update the root README.md with an up-to-date index of all synced projects grouped by category. (4) Initialize submodules after git clone — when open-*/ directories are empty or git submodule status returns nothing, guide through the full SOP (git submodule update --init --recursive [--remote]). Trigger keywords: submodule, git submodule, 子模块, add submodule, sync submodule, update submodule, submodule branch, README index, 更新索引, clone, init, 初始化子模块, submodule init, 拉取子模块.
对开源项目进行穷尽式教学文档生成——从宏观架构到微观实现的五层分级讲解,使用 Goal Loop 算法自主驱动完整代码覆盖。所有具体教学内容生成必须激活 `.agents/skills/teach/SKILL.md`。触发条件:用户要求"完整学习某个项目"、"生成项目架构文档"、"从入口到落地讲清楚每个功能"、"代码考古"、"源码分析"、或指定一个项目目录/仓库要求全面教学。
使用并行子 agent 为模块生成多个截然不同的接口设计。当用户想要设计 API、探索接口选项、比较模块形态,或提到 "设计两次" 时使用。
交互式 QA 会话,用户以对话方式报告 bug 或问题,agent 将其录入 GitHub Issue。在后台探索代码库以获取上下文和领域语言。当用户想要报告 bug、做 QA、以对话方式录入 issue,或提及 "QA session" 时使用。
通过用户访谈创建包含微小提交的详细重构计划,并将其录入 GitHub Issue。当用户想要规划重构、创建重构 RFC,或将重构分解为安全的渐进步骤时使用。
从当前对话中提取 DDD 风格的通用语言词汇表,标记歧义并提出规范术语。保存到 UBIQUITOUS_LANGUAGE.md。当用户想要定义领域术语、构建词汇表、固化术语、创建通用语言,或提到 "领域模型" 或 "DDD" 时使用。
| name | scaffold-exercises |
| description | 创建包含章节、问题、解答和讲解的练习目录结构,并通过 lint 检查。当用户想要搭建练习脚手架、创建练习桩代码、或设置新的课程章节时使用。 |
创建能通过 pnpm ai-hero-cli internal lint 的练习目录结构,然后用 git commit 提交。
XX-section-name/ 放在 exercises/ 内部(例如 01-retrieval-skill-building)XX.YY-exercise-name/ 放在章节内部(例如 01.03-retrieval-with-bm25)XX,练习编号 = XX.YY每个练习至少需要以下子文件夹之一:
problem/ - 学生工作区,含 TODOsolution/ - 参考实现explainer/ - 概念性材料,无 TODO当搭建桩代码时,默认使用 explainer/,除非计划另有说明。
每个子文件夹(problem/、solution/、explainer/)需要一个 readme.md,要求:
当搭建桩代码时,创建一个带有标题和描述的最小 readme:
# 练习标题
此处写描述
如果子文件夹有代码,还需要一个 main.ts(>1 行)。但对于桩代码,仅 readme 的练习也可以。
mkdir -preadme.md,带标题pnpm ai-hero-cli internal lint 进行验证Linter(pnpm ai-hero-cli internal lint)检查:
problem/、solution/、explainer/)problem/、explainer/ 或 explainer.1/ 中的一个readme.md 且不为空.gitkeep 文件speaker-notes.md 文件pnpm run exercise 命令main.ts,除非是仅 readme 的当重新编号或移动练习时:
git mv(而非 mv)重命名目录——保留 git 历史示例:
git mv exercises/01-retrieval/01.03-embeddings exercises/01-retrieval/01.04-embeddings
给定如下计划:
Section 05: Memory Skill Building
- 05.01 Introduction to Memory
- 05.02 Short-term Memory (explainer + problem + solution)
- 05.03 Long-term Memory
创建:
mkdir -p exercises/05-memory-skill-building/05.01-introduction-to-memory/explainer
mkdir -p exercises/05-memory-skill-building/05.02-short-term-memory/{explainer,problem,solution}
mkdir -p exercises/05-memory-skill-building/05.03-long-term-memory/explainer
然后创建 readme 桩代码:
exercises/05-memory-skill-building/05.01-introduction-to-memory/explainer/readme.md -> "# Introduction to Memory"
exercises/05-memory-skill-building/05.02-short-term-memory/explainer/readme.md -> "# Short-term Memory"
exercises/05-memory-skill-building/05.02-short-term-memory/problem/readme.md -> "# Short-term Memory"
exercises/05-memory-skill-building/05.02-short-term-memory/solution/readme.md -> "# Short-term Memory"
exercises/05-memory-skill-building/05.03-long-term-memory/explainer/readme.md -> "# Long-term Memory"