360 Secure SkillHub
360 安全技能中心

Task Finish Contract

该 Skill 提供一套任务完成契约:要求多步骤任务逐段输出目标、进度和下一步,给出 DONE_CHECKLIST 与 EVIDENCE 格式,规定规划型回复最多一次、后续须附执行证据,并列出可执行的完成判据、反停滞规则与隐私安全注意点。

dalomeve
dalomeve
热度 85.36
最近更新 2026-05-17 13:02:37
分类:自动化依赖:纯提示词应用场景:工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add task-finish-contract
Metadata
name
task-finish-contract
description
Enforce task completion with explicit Goal/Progress/Next state. Prevent mid-task stalls and ensure evidence-based completion.

Task Finish Contract

Prevent mid-task stalls. Every task must finish with explicit state and evidence.

Problem

Agents often:

  • Stop mid-task without explanation
  • Output plans without execution
  • Lack clear completion criteria
  • Missing evidence artifacts

Workflow

1. State Output (Each Substantial Step)

**Goal**: What finished looks like
**Progress**: What has been done
**Next**: One concrete action executing now

2. Completion Proof Format

For tasks with 2+ steps, include:

**DONE_CHECKLIST**:
- [ ] Item 1 completed
- [ ] Item 2 completed

**EVIDENCE**:
- Executed: command/action summary
- Artifact: path/URL/id
- Verified: check command result

**NEXT_AUTONOMOUS_STEP**:
- One follow-up that runs without user input

3. Anti-Stall Rule

  • Planning-only replies: max 1
  • Next reply MUST contain execution evidence
  • Never end with "I will now..." without tool result

Executable Completion Criteria

Criteria Verification
Goal stated Select-String "Goal" memory/{date}.md matches
Progress tracked Select-String "Progress" memory/{date}.md matches
Next action defined Select-String "Next" memory/{date}.md matches
Evidence present Artifact path/URL exists
No unresolved markers `Select-String "TODO

Privacy/Safety

  • No sensitive data in completion evidence
  • Artifact paths use relative or workspace paths
  • No credentials in task logs

Self-Use Trigger

Use when:

  • Starting any multi-step task
  • Resuming after interruption
  • Handoff to another agent

Finish what you start. Prove it with evidence.