delivery-ready-evolver

Evolve a set of agents through four phases—mandatory hardening → full regression → generation of delivery-grade HTML → archiving into a cumulative memory repository—so they reach a demonstration/trial-ready delivery state and produce a single-file, zero-dependency HTML demo interface. Triggered by user commands such as 'delivery-ready evolver,' 'make system demo-ready,' 'generate a demo page for clients,' or 'harden agents and produce a delivery report.'

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "delivery-ready-evolver" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-56d1de74d79ca7bf23e02bb1ad4b779f7d2a11665f5281b2da8fc652fc697fee. Verify the upstream source and version against https://skillhub.cn/skills/user_11d2869f/delivery-ready-evolver before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Evolve a set of agents through four phases—mandatory hardening → full regression → generation of delivery-grade HTML → archiving into a cumulative memory repository—so they reach a demonstration/trial-ready delivery state and produce a single-file, zero-dependency HTML demo interface. Triggered by user commands such as 'delivery-ready evolver,' 'make system demo-ready,' 'generate a demo page for clients,' or 'harden agents and produce a delivery report.'

0 Downloads

Introduction source: third_party · user_11d2869f · 1.0.5 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 交付就绪进化器
description: 把一组 Agent(如法律AI团队)通过「强制加固→全量回归→生成交付级HTML→归档复利记忆库」四阶段,进化到可向客户演示/试用的交付状态,并产出单文件、零依赖的 HTML 演示界面。当用户说「交付就绪进化器」「让系统达到可演示状态」「生成可发给客户打开的演示页」「对Agent做强制加固并出交付报告」时触发。
agent_created: true
version: 1.0.4

👤 作者名片:本技能由 老登(SkillHub @user_11d2869f)开发维护。 作者作品集:📚 第二大脑操作系统 · 交付就绪进化器 · 技能编排交付 · 调研Master · 多AI协作Loop+Graph · 多智能体社会模拟器 · 招商引资工作台 · 券商研报搜索与解读 · 工作台资源管家 喜欢本技能请点 ⭐ 收藏;欢迎留言反馈与定制需求,作者持续更新中。

交付就绪进化器(Delivery-Ready Evolver)

把一组 Agent 进化到「可向客户演示和试用」的交付态,并自动产出可直接运行的 HTML 演示界面 + 交付就绪报告。

核心机制

四阶段闭环,可迭代(最多 3 轮,通常 1 轮达标):

  1. 阶段1 · 强制加固:无论当前平均分,强制修复三类常见短板——
    • 风险/审查类 Agent:每条结论必标注具体法条/依据;
    • 检索类 Agent:空结果时自动降级检索 + 标注置信度;
    • 质检引擎:收紧「空结果 / 无依据」类输出的评分权重(无依据直接判不通过,不进重试)。 输出:加固确认 + 修复后 Agent 配置摘要表。
  2. 阶段2 · 全量回归验证:用修复后的全部 Agent 对记忆库历史样本重跑,算平均分与一次通过率。 标准:全部 Agent 平均分 ≥ 88 且无一需重试。不满足则针对失败案例定向修复后重测。
  3. 阶段3 · 生成交付级 HTML:输入已加固的 Agent 配置 + 记忆库优秀案例,产出自包含单文件 HTML:
    • 品牌页头(行业配色,如法律业深蓝/金)+ 部署状态指示灯;
    • 6 个功能卡片,点击切换、无刷新;
    • 输入框 + 模拟文件上传 + 执行按钮(2–3 秒处理动画后显示预置案例输出);
    • 历史案例快速填充;卡片底部显示「当前评分 / 已进化轮次」;
    • 底部合规声明 + 部署状态指示器。所有 CSS/JS 内嵌,零外部 CDN,可直接发给客户打开。
  4. 阶段4 · 部署就绪报告:汇总进化记录,写入复利记忆库(history_knowledge.json,task_type="delivery"),产出《交付就绪报告》(各Agent评分/通过率、进化日志、HTML使用说明、商业化建议)。

配套文件(已落地,可直接运行)

本 skill 不再只有文档模板——下列文件已随 skill 一同提供,普通用户无需手抄代码即可运行:

文件 作用 怎么用
QUICKSTART.md 5 分钟上手指南 想最快跑起来先读它
scripts/deliver.py 一键交付编排器(校验→可选自检→生成→归档,一条命令) python scripts/deliver.py spec.json [--test] [--out x.html]
scripts/build_demo.py 阶段3 HTML 生成器(可传参、内置示例、--self-test/--validate) python scripts/build_demo.py [spec.json] [out.html]
scripts/append_delivery_record.py 阶段4 记忆库归档(主库优先、自动降级) python scripts/append_delivery_record.py record.json
examples/legal_team_spec.json 现成可改的规格示例(法律 6 Agent,命名已规范) 复制改名后填自己的 Agent
examples/quant_team_spec.json 量化交易 6 Agent 团队规格(验证 graph+loop 用) python scripts/loop_graph.py examples/quant_team_spec.json --judge llm
examples/spec.schema.json 规格的正式 JSON Schema(机器可校验的格式定义) 供工具/人工核对字段规范
examples/legal_team_demo.html 由示例规格生成好的演示页 直接双击看效果
scripts/loop_graph.py GRAPH 图执行引擎(Node/条件边/回环/熔断/轨迹可视化) python scripts/loop_graph.py spec.json [--judge sim\|llm] [--trace-html t.html]
scripts/graph_judge.py GRAPH 评审团桥接:接入「多AI协作交付」三模型评审团(kimi∥deepseek∥doubao 真并行合议 + outlier 剔除),含离线降级 由 loop_graph 在 --judge llm 时自动调用,无需手动
tests/test_suite.py 零依赖自检测试(含 graph_judge 离线降级) python tests/test_suite.py
references/阈值调参指南.md 阈值调参指南:threshold 含义 + 量化实测锚点 + 分行业推荐阈值表 换场景前先查这张表选阈值

阶段 1/2(强制加固、全量回归)由 AI 在对话中完成(需模型推理);阶段 3/4 是确定的生成/归档动作,已统一收口到 scripts/deliver.py,AI 在对话里一条命令即可跑完,用户无需手动分步、也无需手抄代码。

一键交付(推荐路径)

普通用户/AI 不应分步执行 build_demo + append。统一用编排器一步到位:

# 从对话里阶段1/2 产出的 Agent 配置,写成 spec.json 后:
python scripts/deliver.py spec.json --out my-demo.html --report "均分90.5,一次通过率100%"

可选参数:

  • --test:先跑全套 tests/test_suite.py 自检,通过才生成(交付前把关,CI 友好);
  • --no-archive:只生成演示页、不写记忆库;
  • --out:指定输出文件名(默认 delivery-demo.html)。

编排器内部依次完成:① 校验规格 → ②(可选)自检 → ③ 生成自包含 HTML → ④ 归档记录(自动算均分/通过率,主库优先、不可写则降级)。交付对用户而言就是「说一句需求 → 拿到演示页」。

关键实现要点

  • HTML 用 Python 生成器产出(见下方模板 / scripts/build_demo.py),用 json.dumps(..., ensure_ascii=False) 把 Agent 配置与中文案例安全内嵌进 <script type="application/json">,避免引号/换行转义错误。不要手写大段含中文引号的 HTML。
  • 规格有正式 Schema 与轻量校验:examples/spec.schema.json 定义字段规范;build_demo.py --validate 与 deliver.py 都会校验(缺字段/agent_id 不匹配直接报错)。命名约定:Agent 名称建议统一后缀(如全部「XX员」)、role 与 name 语义对应;avg_score 建议省略,由 Agent 分数自动计算——若写死且与真实均分不符,脚本会自动纠偏并提示,避免演示页显示错误评分。
  • 复利记忆库位置(可降级):优先写入 ~/.workbuddy/skills/多AI协作交付/history_knowledge.json(复利记忆主库);若该 skill 未安装或路径不可写,则降级写入当前工作区的 delivery_history.json,并在报告中注明已降级。追加 {"timestamp","task_type","requirement","spec_summary","review_summary"} 结构,勿破坏已有案例。
  • 真实多模型端到端运行需注入 API Key(千问/DeepSeek/豆包,本机用户环境变量);无 Key 时以「方法论等效执行 + 合规强化」方式交付,并在报告中注明。

触发与上游

  • 通常承接「Agent 设计」类产出(如 6 Agent 团队规格),作为其后处理/交付化阶段。
  • 复用复利记忆库的历史案例作为 HTML 预置演示数据,形成「设计→交付→归档→下次更优」的复利闭环。

GRAPH 工程(LLM 评审团 · 真多模型合议)

loop_graph.py 不再只是「确定性模拟评分」的 LOOP,而是可切换为真多模型评审团驱动的 GRAPH:

  • 复用「多AI协作交付」已验证的评审团能力(graph_engine.JUDGE_PANEL:kimi-k2.6 ∥ deepseek-chat ∥ doubao-seed-2-0-lite-260428 真并行合议,含 outlier 剔除与并行重叠证明),通过 scripts/graph_judge.py 桥接(KEY 走 ~/.workbuddy/secrets/llm_keys.env,与多AI协作交付同源)。
  • 两种评审模式(CLI --judge):
    • --judge sim(默认):纯本地确定性评分(每轮 +6 分),零网络、零 KEY 依赖,适合离线诊断与回归测试。
    • --judge llm:阶段2「全量回归」改为真评审团给「交付就绪度」均分,作为权威 gate;阶段1「强制加固」按评审团指出的弱点(weaknesses + suggestions)调用 LLM(qwen-plus)真实重写并进化 Agent 团队。这就是 graph(并行评审)+ loop(按反馈真回环改进)的闭环。
  • 降级不阻塞:无 KEY / 引擎缺失 → 自动退回 sim;个别裁判失败 → 自动降为 panel_partial / panel_single;improve_team 失败 → 退回确定性加固。
  • 回环 + 熔断与 sim 完全一致:未达标且轮次未满 → 回环 harden;达上限 → 熔断收口进 build。
  • 轨迹可视化:--trace-html t.html 产出自包含轨迹页(含每轮评分、评审团投票、回环标记、Mermaid 源),--mermaid t.mmd 导出图结构。
# 离线确定性(演示回环,秒级)
python scripts/loop_graph.py examples/quant_team_spec.json --judge sim --threshold 88

# 真多模型评审团 + 真进化(需 KEY;量化交易团队验证 graph+loop)
python scripts/loop_graph.py examples/quant_team_spec.json --judge llm --threshold 85 \
       --out quant-demo.html --trace-html quant-trace.html --mermaid quant.mmd

验证结论(量化交易 6 Agent 团队):sim 模式 2 轮回环至均分 89.8/100% 通过;llm 模式三裁判真并行(并行重叠约 4.7s)合议均分 85,阶段1 按弱点重写团队后回环收敛。详见 <本机验证输出目录>/quant/。

阈值调参(换场景前先选好线)

--threshold 是评审团"交付就绪度"均分必须达到的线。阈值越高标准越严、越易触发回环甚至熔断(详见 references/阈值调参指南.md)。分行业推荐阈值:

类型 推荐阈值 适用场景
稳健型 85 金融/法律/医疗/政务/安全攸关、对外正式交付(多模型共识通过即收口)
标准型(默认) 88 通用 B 端交付、企业内部工具(出厂默认;初建团队偏低建议先降到 85)
激进型 90 探索性原型/MVP/内部演示(必配 --max-rounds 4~5 防熔断)
严苛型(可选) 92 安全关键/强合规审计(单靠自动回环难收敛,慎用)

实测锚点:量化交易团队真多模型共识下,阈值 85 → 1 轮达标;阈值 88 → 3 轮最佳 87.7 仍熔断。阈值要匹配团队可达水平,不是越高越好。

第二大脑复利沉淀(deposit_after_run 钩子)

每次运行结束,引擎自动把本次运行沉淀进「第二大脑」复利账本(second-brain-os 的 flywheel.py deposit),形成"每一次运行都是知识资产":

  • 沉淀内容:行业/需求、GRAPH 评审模式(sim/llm)、阈值、回环轮数、终均分、通过率、是否熔断收口、评分。
  • 默认开启:任何一次 loop_graph.py 真实运行(非 --dry)都会自动写入,无需手动。
  • 关闭方式:--no-deposit(显式关闭本次沉淀);--dry 因仅诊断、不产生副作用,自动跳过。
  • 绝不阻塞交付:第二大脑脚本缺失、报错、或超时 → 静默降级跳过,不影响主流程出页与归档。
  • 检索复用:下次启动同类任务前,可在第二大脑跑 python second-brain-os/scripts/flywheel.py search --keyword "<行业>" 命中历史案例,参考其收敛阈值/轮数。
# 默认即沉淀;想关掉本次沉淀:
python scripts/loop_graph.py examples/quant_team_spec.json --judge llm --threshold 85 --no-deposit

# 纯诊断(--dry 自动不沉淀、不归档、不生成 HTML):
python scripts/loop_graph.py examples/quant_team_spec.json --judge sim --dry

输出物(建议落工作区)

  • xxx-demo.html — 自包含演示界面(由 scripts/build_demo.py 生成,见 examples/legal_team_demo.html 范例)
  • 交付就绪报告.md — 报告
  • 记忆库记录 — 由 scripts/append_delivery_record.py 写入复利记忆库(或降级本地 delivery_history.json)

新手请先读 QUICKSTART.md,或直接 python scripts/build_demo.py 跑出第一张演示页。

附录:HTML 生成器模板(Python,对应阶段3)

下方为模板参考版;已固化为可运行脚本 scripts/build_demo.py(支持传参、内置示例、自检),日常使用直接跑脚本即可,无需手抄此模板。

运行时由 AI 把阶段1/2产出的真实 Agent 配置与案例填入 AGENTS / CASES / META,即可生成自包含、零外部 CDN 的演示页。核心要点:用 json.dumps(ensure_ascii=False) 把数据内嵌进 <script type="application/json">,避免手写中文引号转义。

#!/usr/bin/env python3
"""交付级 HTML 演示界面生成器(自包含、零外部依赖)"""
import json, html, sys

# === 输入:Agent 配置 + 预置案例(由阶段1/2产出后填入)===
AGENTS = [
    {"id": "agent-1", "name": "合同审查员", "role": "风险审查", "score": 92, "passed": True},
    # 其余 Agent 同结构,通常 6 个;命名统一后缀、role 与 name 对应
]
CASES = [
    {"id": "case-1", "title": "劳动合同解除合规审查",
     "input": "员工试用期被以'不胜任'为由辞退,是否合法?",
     "output": "结论:需先培训/调岗并证明仍不胜任,否则属违法解除…(含具体法条)",
     "agent_id": "agent-1"},
    # 其余案例同结构
]
META = {"industry": "法律", "theme_color": "#1a3a6b", "evolved_rounds": 1}  # avg_score 建议省略,自动算

def build_html(agents, cases, meta):
    payload = json.dumps({"agents": agents, "cases": cases, "meta": meta}, ensure_ascii=False)
    return f"""<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{html.escape(meta['industry'])}AI · 交付演示</title>
<style>
  :root {{--accent:{meta['theme_color']};}}
  body {{font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;margin:0;background:#f5f6f8;color:#1f2329;}}
  header {{background:var(--accent);color:#fff;padding:20px 24px;display:flex;align-items:center;gap:12px;}}
  .dot {{width:10px;height:10px;border-radius:50%;background:#52c41a;box-shadow:0 0 6px #52c41a;}}
  main {{max-width:960px;margin:24px auto;padding:0 16px;}}
  .cards {{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}}
  .card {{background:#fff;border:1px solid #e5e6eb;border-radius:10px;padding:16px;cursor:pointer;transition:.2s;}}
  .card:hover,.card.active {{border-color:var(--accent);}}
  .card.active {{box-shadow:0 4px 12px rgba(0,0,0,.08);}}
  .card .score {{font-size:12px;color:#86909c;}}
  .panel {{background:#fff;border:1px solid #e5e6eb;border-radius:10px;padding:16px;margin-top:16px;}}
  textarea {{width:100%;min-height:80px;border:1px solid #e5e6eb;border-radius:8px;padding:10px;font:inherit;resize:vertical;}}
  .btn {{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:10px 20px;cursor:pointer;}}
  .btn:disabled {{opacity:.6;}}
  .out {{white-space:pre-wrap;background:#f7f8fa;border-radius:8px;padding:12px;margin-top:12px;min-height:60px;}}
  .hist {{font-size:12px;color:var(--accent);cursor:pointer;margin-right:12px;}}
  footer {{text-align:center;color:#86909c;font-size:12px;padding:24px;}}
</style>
</head>
<body>
<header><span class="dot"></span><h2 style="margin:0;font-size:18px">{html.escape(meta['industry'])}AI · 交付演示</h2>
<span style="margin-left:auto;font-size:12px;opacity:.85">已进化 {meta['evolved_rounds']} 轮 · 均分 {meta['avg_score']}</span></header>
<main>
  <div class="cards" id="cards"></div>
  <div class="panel">
    <div style="margin-bottom:8px"><b>输入</b> <span id="hist"></span></div>
    <textarea id="input" placeholder="输入待处理内容,或点击历史案例快速填充"></textarea>
    <div style="margin:10px 0"><input type="file" id="file"> <button class="btn" id="run">执行</button> <span style="font-size:12px;color:#86909c">(演示模式·模拟上传)</span></div>
    <div class="out" id="output">等待执行…</div>
  </div>
</main>
<footer>本演示为模拟运行,输出取自预置案例,仅供功能与流程展示。© 交付就绪进化器</footer>
<script type="application/json" id="payload">{payload}</script>
<script>
const D = JSON.parse(document.getElementById('payload').textContent);
const cardsEl = document.getElementById('cards'), hist = document.getElementById('hist');
const inp = document.getElementById('input'), out = document.getElementById('output'), run = document.getElementById('run');
let activeAgent = D.agents[0];
D.agents.forEach((a,i)=>{{
  const c = document.createElement('div'); c.className='card'+(i===0?' active':'');
  c.innerHTML = `<b>${{a.name}}</b><br><span class="score">${{a.role}} · ${{a.score}}分</span>`;
  c.onclick=()=>{{document.querySelectorAll('.card').forEach(x=>x.classList.remove('active'));c.classList.add('active');activeAgent=a;loadCases();}};
  cardsEl.appendChild(c);
}});
function loadCases(){{
  hist.innerHTML=''; const my=D.cases.filter(c=>c.agent_id===activeAgent.id);
  my.slice(0,5).forEach(c=>{{const s=document.createElement('span');s.className='hist';s.textContent='📄 '+c.title;s.onclick=()=>{{inp.value=c.input;}};hist.appendChild(s);}});
  return my;
}}
let myCases = loadCases();
const fileEl = document.getElementById('file');
fileEl.addEventListener('change', ()=>{{
  const f = fileEl.files[0];
  if (!f) return;
  hist.innerHTML = '📎 已选文件:' + f.name + ' (' + (f.size/1024).toFixed(1) + 'KB)';
  const reader = new FileReader();
  reader.onload = e => {{ inp.value = String(e.target.result).slice(0, 4000); }};
  reader.readAsText(f);
}});
run.onclick=()=>{{
  run.disabled=true; out.textContent='处理中…(2–3 秒)';
  setTimeout(()=>{{const hit=myCases.find(c=>c.input.trim()===inp.value.trim())||myCases[0];
    out.textContent = hit?hit.output:'(无匹配预置案例,演示仅支持预置输入)'; run.disabled=false;}},2200);
}};
</script>
</body>
</html>"""

if __name__ == "__main__":
    out_path = sys.argv[1] if len(sys.argv) > 1 else "delivery-demo.html"
    with open(out_path, "w", encoding="utf-8") as f:
        f.write(build_html(AGENTS, CASES, META))
    print(f"已生成 {out_path}")

归档逻辑已固化为可运行脚本 scripts/append_delivery_record.py:读取主库路径(优先 ~/.workbuddy/skills/多AI协作交付/history_knowledge.json,不可写则降级本地 delivery_history.json),以追加模式写入一条 {"timestamp","task_type":"delivery","requirement","spec_summary","review_summary"} 记录,勿覆盖已有内容。

Current listing version

1.0.5

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供四阶段闭环交付流程,直接解决 Agent 团队向客户演示/试用的核心痛点
  • 产出单文件、零依赖 HTML 演示界面,具备高频刚需价值
  • 配套完整工具链与示例,普通用户无需手抄代码即可运行
Trigger Precision95/100

Highlights

  • 触发词覆盖多种变体(如「交付就绪进化器」「生成可发给客户打开的演示页」),边界清晰
  • description 位置正确且内容完整
Structure and Standards90/100

Highlights

  • Phase 划分清晰,含出口条件与端到端示例
  • frontmatter 完整,配套文件说明详尽
  • 文档结构完整,逻辑连贯
Execution Reliability88/100

Highlights

  • 工具来源明确,参数正确,覆盖主要异常(降级机制、Schema 校验)
  • 不可逆操作有确认机制(--test 自检)
  • 提供一键交付编排器,降低用户操作复杂度
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Save or modify files

    Confirm the output directory and whether existing files will be replaced. Back up important files and prefer a new output directory.

    Mentioned in main document · lines 246
  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 75

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.