Consolidate Task 标志

Consolidate Task

社区
mcouthon
consolidate-task

Use when you need to consolidate a completed task into an architectural decision record and a proposed instruction delta for future agents, reducing clutter in .tasks/. Triggers on: 'use consolidate-task mode', 'consolidate-task', 'consolidate task', 'summarize task', 'retrospective', 'what did we learn', 'compound learnings'.

Add to TypingMind

概览

发布者mcouthon
代码仓库agents
技能名称consolidate-task
星标数
79
复刻数
11
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 mcouthon 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Consolidate Task AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/mcouthon/agents/tree/main/generated/claude/skills/consolidate-task
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mcouthon/agents.git /tmp/agents
mkdir -p .claude/skills
cp -r /tmp/agents/generated/claude/skills/consolidate-task .claude/skills/consolidate-task
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Consolidate Task,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Consolidate Task。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Consolidate Task 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Consolidate a Completed Task

One pass over .tasks/{task-folder}/ produces up to two outputs:

OutputAudienceQuestionDestination
Architectural recordfuture developersWhat did the code decide?docs/architecture/ADR-NNN-*.md
Instruction deltafuture agentsWhat should agents do differently?routed by scope — see Process Learnings

Each is independently skippable. Most tasks produce one; some produce neither. Read .tasks/{task-folder}/task.md for the architectural record, and the phase plans for the instruction delta.

When to Create an ADR

Not every completed task needs an ADR. ADRs document architectural decisions, not implementation work.

Skip ADR entirely when:

  • Task adds a minor feature within existing patterns
  • Task fixes bugs or refines implementation details
  • Task is routine maintenance or cleanup
  • Changes follow conventions already documented elsewhere

Update existing ADR when:

  • Task extends or modifies patterns documented in a prior ADR
  • Task adds significant new component to an existing architectural area
  • Changes affect how future developers should approach that area

Create new ADR when:

  • Task introduces new architectural patterns
  • Task reverses or significantly modifies a prior decision
  • Task establishes new conventions for the codebase

When updating, add an entry to the "Updates" table and integrate changes into relevant sections.

File Naming

Required format: ADR-NNN-{decision-name}.md

  1. Scan docs/architecture/ for existing ADR-* files
  2. Check if any existing ADR covers the same architectural area (update if so)
  3. For new ADRs: find the highest number (e.g., ADR-003-* → next is 004)
  4. Start at 001 if no ADR files exist
  5. Save to: docs/architecture/ADR-NNN-{decision-name}.md

Example: ADR-004-unified-query-execution.md

Output Format

markdown
# {Decision Title}

**Source:** Task {NNN} ({Month Year})

## Decision

One sentence describing the high-level architectural choice.

## Why

- Bullet points explaining the motivation
- Focus on problems solved, not implementation details

## Problem Statement (if applicable)

What issue prompted this change? What was broken or suboptimal?

## Solution

Brief description with before/after comparison:

### Before

{Old approach - can include diagrams or code}

### After

{New approach - can include diagrams or code}

## Implementation Phases

| Phase     | What Changed       |
| --------- | ------------------ |
| 1. {Name} | {One-line summary} |
| ...       | ...                |

## Key Architectural Patterns

Include 2-3 code snippets showing the most important patterns established.
Only patterns that future developers need to understand and follow.

## Current Structure

```
relevant/directory/
├── file1.py # Brief purpose
├── file2.py # Brief purpose
```

## Deleted

- List of deleted files/code (shows what was replaced)

## Updates (for existing ADRs only)

| Date         | Task  | Summary                              |
| ------------ | ----- | ------------------------------------ |
| {Month Year} | {NNN} | One-line description of what changed |

Process Learnings (Instruction Delta)

The ADR tells future developers what the code decided. This tells future agents what to do differently. Same pass, second audience.

Input — read, don't recall

  1. .tasks/{task-folder}/plan/phase-*.md → every ## Execution Notes section. Primary and preferred evidence — Builder writes these while the friction happens.
  2. .tasks/{task-folder}/task.md → the phase table's Notes column and any deviation notes.
  3. Phase plans whose ## Verification section proved insufficient — a manual-testing finding that no planned check would have caught is itself a learning about how plans get written.

If there are no ## Execution Notes anywhere, output "no process learnings" and stop. Do not reconstruct a retrospective from the diff or from memory. That is fabrication.

Filter — what qualifies

A learning must be generalizable and actionable: one sentence must be able to complete "next time, the instruction should say ___."

QualifiesDoes not
An instruction was ambiguous and cost a retryA one-off bug in this task's code
A convention exists that no instruction statesA preference with no evidence behind it
A verification step is routinely missing from plansAnything already covered by an existing instruction
A recurring shape of mistake across phasesA restatement of the ADR

At most 3 proposals per task. More than three means the filter isn't being applied.

Routing — by scope of the learning, not by a fixed path

Scope of the learningDestinationNotes
A convention or non-obvious dependency of this repositoryAGENTS.md → ## Learned Patterns tableSame sink Explorer's Repository Patterns step uses. Create the section if absent.
Domain terminology / namingCONTEXT.md at workspace rootRead by Explorer and Builder
A gap in how an agent or skill behavesThe instruction file that owns that behaviorIn a framework repo that is the template source of truth (never edit generated output; run its build+install after). In a consuming repo it is the user's own agent/skill files.
A gap in the framework's posture, not one agent'sNote it for docs/research/BACKLOG.mdOut of write scope — propose only

Output — propose, never apply silently

📝 Process learnings from task {NNN}

1. [What happened] → [proposed instruction change]
   Evidence: .tasks/{slug}/plan/phase-N-*.md ## Execution Notes
   Destination: [file] → [section]

Apply these? [All] [Select] [None]
  • Every proposal cites the ## Execution Notes line it came from. No citation, no proposal.
  • Nothing is written without confirmation.
  • On confirmation, if a destination is a template source of truth, run the build and install yourself (in this framework repo: make && ./install.sh) before reporting completion — do not merely state that it is required.
  • "No process learnings this task" is a normal, expected, good outcome. Do not pad to look useful.
  • Fast Path Mode: when the invoking prompt says the task runs under Fast Path Mode, do not block for confirmation here. Return the proposal list unapplied and apply nothing; Conductor folds it into the final Delivery Report, where approval happens once.

Guidelines

  1. High-level only — Skip implementation details that don't affect architecture
  2. Focus on patterns — What should future code follow?
  3. Include deletions — Shows what was replaced, not just what was added
  4. Code examples — Only for patterns that repeat across the codebase
  5. Keep it scannable — Tables and bullets over paragraphs

After Saving

  1. Update docs/architecture/README.md (create if missing with a decisions table)
  2. Delete or archive the original task folder
  3. If updating an existing ADR: add entry to the Updates table at the bottom
  4. Report the instruction delta outcome: which instruction files were changed, or "no process learnings". When a template source of truth was changed on confirmation, confirm the build+install (make && ./install.sh here) was run, quoting its output — not that it is required. Under Fast Path Mode nothing was applied: report the pending proposal count instead, and note that build+install runs only if a template-targeted proposal is approved at the final Delivery Report.

常见问题

Consolidate Task AI 技能有什么作用?

Use when you need to consolidate a completed task into an architectural decision record and a proposed instruction delta for future agents, reducing clutter in .tasks/. Triggers on: 'use consolidate-task mode', 'consolidate-task', 'consolidate task', 'summarize task', 'retrospective', 'what did we learn', 'compound learnings'.

为什么在 TypingMind 中使用 Consolidate Task?

因为您只需安装一次,就能搭配任何模型使用。Consolidate Task 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Consolidate Task?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/mcouthon/agents/tree/main/generated/claude/skills/consolidate-task。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Consolidate Task?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Consolidate Task 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Consolidate Task 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Consolidate Task AI 技能免费吗?

是的。mcouthon 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇