Skill 要求自动创建 Git 提交,超出其“搭建练习目录”的核心目的
原文依据:4 处简介只承诺创建练习结构,但正文额外要求在完成后执行 `git commit`。提交会永久改变仓库历史,而且该要求没有规定先展示差异、确认提交范围或获得用户批准。
如果代理照做,用户尚未审阅的脚手架变更会被记录为提交;若仓库中已有其他暂存内容,这些内容也可能一并进入该提交。
该技能的声明用途是搭建可通过检查的练习目录,但正文还直接要求执行 `git commit`。这会在用户调用技能进行搭建时改写仓库历史,而工作流没有要求先让用户核对变更、限定提交内容或批准提交。用户可明确禁止自动提交,并要求作者将提交改为单独的可选确认步骤。
---name: scaffold-exercisesdescription: 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.---查看另外 3 个位置
Create exercise directory structures that pass `pnpm ai-hero-cli internal lint`, then commit with `git commit`.name: scaffold-exercisesdescription: 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.---1. **Parse the plan** - extract section names, exercise names, and variant types2. **Create directories** - `mkdir -p` for each path3. **Create stub readmes** - one `readme.md` per variant folder with a title4. **Run lint** - `pnpm ai-hero-cli internal lint` to validate5. **Fix any errors** - iterate until lint passes