跳到正文
cccskills
免费在 GitHub 公开

artifact-contract

Use when an output artifact, template, schema, example, or handoff field must stay aligned across commands, skills, docs, and validators.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

artifact-contract

Lifecycle stage: VERIFY

Trigger

Use when a command, skill, adapter, template, schema, eval case, or handoff depends on a structured artifact contract that another runtime or maintainer must be able to produce and validate.

This skill keeps artifact boundaries explicit so agents do not invent fields, skip schemas, or hand off prose that cannot be resumed.

When not to use

Do not use when the work only changes free-form explanatory copy and no output artifact, schema, template, example, command output, or handoff field changes.

Inputs

  • Artifact name and intended lifecycle state.
  • Producing command or skill.
  • Consuming command, reviewer, adapter, eval, or runtime.
  • Template path, schema path, example artifact path, and validation command.
  • Required resume fields: status or decision, evidence, blockers, next action, and artifact path.
  • Known compatibility constraints for existing artifacts.

Procedure

  1. Identify the producer and consumer of the artifact before editing fields.
  2. Check whether the command output, skill output artifact, template, schema, example JSON, docs, and eval case all name the same artifact.
  3. Add or remove fields in the smallest compatible slice; avoid renaming fields unless the consumer contract is updated at the same time.
  4. For structured JSON artifacts, validate the schema semantics and keep additionalProperties strict unless the artifact is intentionally extensible.
  5. For markdown templates, list every required schema field with backticks so humans and validators can inspect the contract.
  6. Record how a future agent should resume from the artifact: decision or status, evidence checked, fresh validation proof, blockers, risks, artifact path, and next action.
  7. Run the targeted validator or eval case before claiming the artifact can be trusted.

Anti-Rationalization

ShortcutRebuttal
"The template is only documentation."Templates are runtime contracts; adapters and future agents use them to resume work.
"The schema is enough."Humans need the template and examples to match the schema, not just parse it.
"One missing field is harmless."Missing decision, evidence, blockers, artifact path, or next action breaks handoff reliability.
"The command says what to output."Commands, skills, templates, schemas, examples, and validators must agree.

Verification

  • The producing command or skill names the artifact and cites the template or schema when one exists.
  • The template lists required schema fields and resume-ready fields.
  • Evidence names the checked command, template, schema, example artifact, or validator path.
  • The example artifact validates against the schema when JSON is used.
  • The relevant eval or validator fails when the contract drifts.
  • Fresh validation proof includes the exact command and result.
  • Compatibility risks and migration notes are documented when existing artifacts may break.

Output Artifact

Produce an artifact contract review with status, artifact name, producer, consumers, template path, schema path, example path, field changes, compatibility risks, evidence, blockers, artifact path, and next action.

Failure Modes

  • Adding a field to a schema without updating the template, example, command, or consuming adapter.
  • Trusting free-form prose when a resumable artifact is required.
  • Renaming fields in a way that breaks existing handoff artifacts without a migration note.
  • Letting validators check file existence but not field alignment.
  • Treating adapter output as valid without checking the artifact path and schema.

Example

Trigger: a verification command adds a new required evidence field to a handoff artifact. Action: compare command output, skill output artifact, template field list, schema required fields, example JSON, and validator coverage before accepting the change. Output artifact: artifact contract review with blockers and next action. Verification: cite templates/handoff-report.md, schemas/handoff-report.schema.json, the example artifact path, the validator command, the artifact path, and fresh validation proof.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when the user needs a standup-ready summary of recent project activity from local evidence.

中文简介正在准备中。当前显示原文说明。

rohitg00/agentbrain412026年5月27日 更新

Use when a command, adapter, or runtime smoke depends on proving an agent runtime's capabilities before trusting command routing, writes, shell access, or validation claims.

中文简介正在准备中。当前显示原文说明。

rohitg00/agentbrain412026年5月27日 更新

Use when agent-produced work needs a safety, evidence, and reliability check before handoff, merge, or trust.

中文简介正在准备中。当前显示原文说明。

rohitg00/agentbrain412026年5月27日 更新

Agent Brain /brain-brief: after intake, research, and grill have enough signal.

中文简介正在准备中。当前显示原文说明。

rohitg00/agentbrain412026年5月27日 更新

Agent Brain /brain-build: an implementation plan has a selected task and validation method.

中文简介正在准备中。当前显示原文说明。

rohitg00/agentbrain412026年5月27日 更新

Agent Brain /brain-design: a product brief needs ux or interaction design before planning.

中文简介正在准备中。当前显示原文说明。

rohitg00/agentbrain412026年5月27日 更新

查看 rohitg00 的全部技能

报告此技能的问题