一键导入
primitive-quality-audit
Use when auditing skills, agents, hooks, concepts, plugin manifests, runtime links, promotion readiness, provenance, or cleanup safety.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when auditing skills, agents, hooks, concepts, plugin manifests, runtime links, promotion readiness, provenance, or cleanup safety.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Design OpenAPI component schemas with discriminated variants, constrained primitives, subtype/composition choices, nullability, examples, and invalid-state prevention.
Set up a repository for marketplace-driven AI tooling. Use when onboarding a new repo, refreshing a checked-in marketplace reference, installing core marketplace plugins, or documenting which configured marketplaces should be available by default.
Use when validation, authorization, normalization, or state checks produce facts later code must retain. Replace primitive contracts, flags, sentinel states, string protocols, and call-order conventions with proof-carrying values in any language.
Use when Kotlin work needs type-driven modeling, parse-dont-validate boundaries, semantic package layout, explicit failures, API review, or package cohesion checks.
Pkl engineering for typed configuration contracts, expressions, amendments, evaluation, formatting, tests, projects, dependencies, rendering, and packages. Use when a repository contains `.pkl` modules or `PklProject`, or when configuration behavior should be modeled and enforced with Apple Pkl.
Use when creating or validating referential plugin manifests, marketplace entries, primitive references, or payload-to-reference plugin conversions.
| name | primitive-quality-audit |
| description | Use when auditing skills, agents, hooks, concepts, plugin manifests, runtime links, promotion readiness, provenance, or cleanup safety. |
Use this skill as the local governance gate for AI tooling primitives. The goal is not to score everything abstractly; it is to make defensible decisions about promotion, runtime activation, and later cleanup from evidence.
Define the audit target. Identify primitive type, name, canonical path if it exists, source roots, and the decision being requested.
Refresh evidence. Run or inspect inventory and consolidation outputs before judging overlap. For structured manifests, confirm the validator covers every changed file.
Read the smallest useful source set. Compare the candidate, existing canonical primitive, plugin references, and relevant provenance. Avoid loading unrelated marketplace payloads.
Apply the rubric. Use capability boundary, trigger clarity, independence, progressive disclosure, schema coverage, provenance, executable evidence, and runtime safety as separate checks.
Choose the decision.
Prefer PROMOTE_READY only when the primitive can stand alone, has stable
references, records provenance, validates structured data, and can be
composed by reference. Otherwise choose the smallest useful next action.
Update manifests when the decision is durable.
Use garden/manifests/primitive-audits.json for quality decisions,
garden/manifests/promotions.json for copied canonical primitives,
garden/manifests/runtime-links.json for activation plans, and
garden/manifests/cleanup-ledger.json only when cleanup needs an approval
handoff or rollback plan.
Validate. Regenerate inventory/report outputs when canonical primitives or plugins change, run the source graph gate, and use the audit helper for durable audit entries:
node source/tools/validate-source-graph.mjs
python3 source/skills/primitive-quality-audit/scripts/primitive_audit_record check --audit-id <id>
Use this structure for human-facing audit reports:
## Decision
[Decision and confidence]
## Findings
- [Finding, evidence, consequence]
## Manifest Updates
- [Files changed or entries needed]
## Validation
- [Commands run and result]
## Next Action
[One concrete next step]