AgentSkillsCN

flow-plan-consolidator

将冲突的输入(计划与笔记)整合为统一的解决方案。适用于用户要求汇聚计划、化解分歧,或根据笔记更新主计划的场景。

SKILL.md
--- frontmatter
name: flow-plan-consolidator
description: Consolidate conflicting inputs (Plan vs Notes) into a resolved state. Use when asked to converge plans, resolve discrepancies, or update the master plan from notes.
allowed-tools: Read, Grep, Glob

Flow Plan Consolidator

Description

This skill takes multiple input artifacts (Plan, User Notes), detects discrepancies, and deterministically resolves them into a consolidated state and manifest.

Usage

javascript
const Consolidator = require('./index');
const skill = new Consolidator();
const result = await skill.run(['path/to/PLAN.md', 'path/to/USER_NOTES.md']);

Logic

  1. Inventory: Load files and compute SHA-256 hashes.
  2. Extract: Parse PLAN.md (Tasks, Goals) and USER_NOTES.md (Decisions, Action Items).
  3. Detect: Identify conflicts (Status Mismatch, Scope Conflict).
  4. Resolve: Apply precedence rules (Notes Status > Plan Status).
  5. Output: Generate plan_consolidation_manifest.json.