AgentSkillsCN

run-knowledge-lint

为Factory运行执行知识Lint检查,并在通过之前阻止阶段A的执行;将输出持久化至运行根目录。

SKILL.md
--- frontmatter
name: run-knowledge-lint
description: Run knowledge lint for a Factory run and block Stage A until PASS; persist output to run root.

Run knowledge lint (Factory pre–Stage A)

Trigger

User wants to start or prepare a Factory run, or explicitly asks to run knowledge lint before Stage A.

Workflow

  1. Confirm run ID (e.g. from docs/Factory/runs/<RUN_ID>/). If none, create run root per ORCHESTRATION (run init).
  2. Run: bash scripts/knowledge_lint.sh.
  3. Write output to docs/Factory/runs/<RUN_ID>/KNOWLEDGE_LINT.txt.
  4. If the script does not pass, do not start Stage A; report failures and fix context drift first (per AGENTS.md and ORCHESTRATION §2.3).
  5. If PASS, Stage A may proceed; remind user that handoff must include Model tier, Contradiction status, Applicable hard rules.

Guardrails

  • Do not start Stage A without KNOWLEDGE_LINT.txt in run root with a passing result.
  • Keep artifact path exactly as above for traceability.

Output

  • KNOWLEDGE_LINT.txt in run root.
  • Clear PASS/FAIL and any next-step message.