Project Min Evaluation

C3SC0-V4113/Scaffold/skills/project-min-evaluation

作者 C3SC0-V4113ba1fac59145ed48f727247299ebb09289b87f27bApache-2.03 个星标收录于 2026年10月9日更新于 2026年10月9日仓库3天前更新

Trigger: done, complete, finish, before commit, quality check, verify. Run the project's own minimum quality scripts before claiming work is complete.

AI 生成的概览

在声称工作完成前,运行项目自身的最低质量检查脚本。

功能
该技能引导智能体识别项目的包管理器,收集 package.json 中定义的质量脚本,并按固定顺序运行,然后再声称实现工作已完成。它会在第一个失败处停止,并将每个脚本报告为通过、失败或未定义,失败时给出确切命令和错误。它产出的是验证报告,而不是代码改动。
适用场景
适用于在报告实现工作完成前、提交前,或被要求验证项目质量时。适合在 package.json 中定义了 lint、typecheck、format、test 等脚本的 JavaScript 或 TypeScript 项目。
运行要求
该技能不附带脚本,仅为说明文档。它需要访问项目的 package.json 和锁文件,需要 npm、pnpm 或 bun 等包管理器,并且项目自身需定义质量脚本。

Project Minimum Evaluation

Activation Contract

Load this skill before reporting implementation work as complete, before committing, or when asked to verify quality.

Hard Rules

  1. Detect the package manager from the project; never hardcode a runner.
  2. Run only scripts defined in package.json scripts; report expected scripts that are missing instead of inventing commands.
  3. Run from the repository root, in the order below, and do not skip a failing step to reach a later one.
  4. Never claim completion while a check fails or was not run.

Decision Gates

Project signalRunner
packageManager field in package.jsonuse the manager it names
pnpm-lock.yamlpnpm run <script>
bun.lock or bun.lockbbun run <script>
package-lock.json, or no other signalnpm run <script>
ScriptRun when
lintalways, if defined
typecheckalways, if defined
format:checkalways, if defined
testalways, if defined
doctoralways, if defined
checkalways, if defined (aggregate gate)
test:e2eonly when end-to-end behavior changed

Execution Steps

  1. Read package.json and the lockfiles to choose the runner.
  2. Collect the scripts from the table that exist in scripts.
  3. Run each existing script in table order with the chosen runner.
  4. Stop at the first failure, fix it, and rerun from that script.

Output Contract

Report each script as passed, failed, or not defined. For a failure or a check that cannot run, give the exact command, the exact error, and the unverified scope.

References

  • references/script-discovery.md [blocked] — detection edge cases.

来源与署名

来源:C3SC0-V4113/Scaffold位于skills/project-min-evaluation提交ba1fac5

许可证: Apache-2.0

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架