agent-asset-loop
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "agent-asset-loop":https://skillpi.com/zh/skills/deepskill-8ae2f2a15cb3d38215046ab35d217668185612b2b315d0ce72e5c576b4ab71c1。安装前核对上游来源和版本:https://skillhub.cn/skills/user_1793b15c/agent-asset-loop。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
agent-asset-loop 闭环编排器。用于后缩放定律智能体演化,将“一次教学 -> 永久记忆 -> 在类似任务中自动应用”转化为可运行系统,解决跨会话重复教学问题。流程包括:偏好捕获 -> 中央注册 -> 场景×比例路由 -> 训练清单 -> 任务开始时自动注入。触发条件示例:高质量数据、少样本学习、DPO(直接偏好优化)、差异化训练、偏好持久化、避免重复教学、资产闭环。
介绍来源: third_party · user_1793b15c · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 来源文档未说明。
- 输入和输出
- 来源文档未说明。
- 软件、账号及付费要求
- 来源文档未说明。
- 限制与区别
- 来源文档未说明。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: agent-asset-loop
description: "A closed-loop orchestrator for post-Scaling-Law agent evolution. Turns \"teach once -> remember forever -> auto-apply on similar tasks\" into a runnable system, solving cross-session re-teaching. Pipeline: preference capture -> central registry -> scenario x ratio routing -> training manifest -> auto-injection at task start. Triggers: high-quality data, few-shot, DPO, differentiated training, preference persistence, avoid re-teaching, asset loop."
agent_created: trueagent-asset-loop (meta layer / orchestrator / closed loop)
Core idea
In the post-Scaling-Law era, the scarce resource is not compute but preference data carrying process signals plus differentiated training. This skill is a closed-loop orchestrator: it makes "user teaches once -> remembered forever -> auto-applied on similar tasks" runnable, fixing the cross-session re-teaching problem ("praised last time, drifts next time, exhausting to keep teaching").
The loop has two timescales:
- Fast loop (outside weights): capture preference -> central registry -> auto-retrieve & inject at task start. Zero training, zero forgetting, instant.
- Slow loop (inside weights): registry accumulates ->
build_manifest.pyemits training data -> external fine-tune -> new weights/LoRA. (Optional, YAGNI.)
Loop overview (5 steps)
(1) capture capture_asset.py persist a structured asset on praise/correction (with scenario tag)
|
(2) registry assets.jsonl append-only single source of truth
|
(3) routing build_manifest.py compute ratios by scenario, normalize to SFT/DPO/KTO/GRPO datasets
|
(4) manifest + datasets consumed by external trainer; REFERENCE/SOP/FAILURE -> context_pool (RAG)
|
(5) auto-inject retrieve_assets.py at task start pull top-k assets by scenario into context (selective, no bloat)
back to (1)
Metacognition (default protocol for all tasks)
- Plan: write the solution / execution plan first
- Failure modes: list where it's most likely to go wrong
- Self-check: actually review the draft and fix
- Answer + confidence: give the conclusion with high/medium/low confidence
Asset contract
All assets share one schema (see references/asset-contract.md). In one line:
each asset = {scenario, signal, type, content, tags, provenance, weight},
appended to the central registry. Adding/swapping producers never breaks the
loop, because the orchestrator only reads the registry.
Usage (the agent does this at runtime)
A. Task start: auto-inject preferences (every time, selective)
python scripts/retrieve_assets.py --task "<task description>" --top-k 5
Inject the returned asset blocks into the current prompt. Only inject
matches, never load everything — this is what makes it "cheaper AND closer
to the user". If nothing matches it prints (no matching assets); proceed.
B. Preference capture: persist on praise/correction (teach once)
When you detect "this is good/bad", "I like/dislike this", "do X not Y":
python scripts/capture_asset.py \
--scenario writing --signal DPO --type dpo_pair \
--content '{"prompt":"<scene>","chosen":"<the version the user approved>","rejected":"<the rejected version>"}' \
--source my-agent --tags "tag1,tag2" --provenance "user corrected <date>"
- positive praise ->
--type preference_positive(auto-converts to SFT demo) - negative correction ->
--type preference_negativeordpo_pair - safety refusal ->
--signal KTO --type kto_sample - verifiable code/math ->
--signal GRPO --type grpo_trajectory
C. Periodic training: build a manifest once assets accumulate (slow loop, on demand)
python scripts/build_manifest.py
# or specify scenario ratios: --ratios "writing:0.6,code:0.4"
Produces <registry>/output/manifest.json + per-signal datasets +
context_pool.json. Hand off to an external trainer (GPU lives outside the
sandbox); context_pool never enters weights, kept for RAG.
D. (Optional) trigger external fine-tuning — skeleton only
python scripts/train_stub.py --backend dry-run # safe: prints what WOULD train
train_stub.py shows where to wire HuggingFace TRL (local GPU) or a hosted
fine-tune API. Actual training happens outside; this skill only prepares data
and triggers.
Wiring in your own producers
Any producer (another skill, an agent step, a manual note) becomes part of the
loop the moment it writes assets through capture_asset.py (or appends a
contract-compliant line to assets.jsonl). The orchestrator routes / retrieves
/ trains uniformly — producers never need to know about each other.
Key discipline
- Capture structured, not prose: one asset = one retrievable, scenario-tagged, machine-usable record.
- Inject selectively: only top-k matched assets, never blanket-load (avoids net token increase).
- REFERENCE/SOP/FAILURE stay out of weights: they solve "instantly usable"; a RAG pool is more controllable and rollback-friendly.
- Eval gate before the slow loop: independently evaluate training data before fine-tuning, so bad assets don't get baked into weights.
- Fast before slow: the fast loop is instant and free; only fine-tune when assets outgrow the context budget (training is YAGNI).
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决跨会话重复教学的痛点问题
- 提供完整的闭环编排器架构
- 区分快慢两个时间尺度的循环机制
亮点
- 触发词覆盖全面且边界清晰
- 包含多种信号类型(DPO/KTO/GRPO)
待提升项
-
缺少独立的When to Use章节 原报告严重程度:轻微
虽然Usage部分已包含使用场景,但未按标准模板单独列出When to Use章节
改进建议:建议添加独立的When to Use章节以提升文档规范性
亮点
- 五步循环流程清晰完整
- 提供端到端代码示例
- frontmatter信息完整
亮点
- 工具来源明确且参数正确
- 包含安全机制(dry-run模式)
- 异常情况处理完善(无匹配资产时正常退出)
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
来源文档未说明。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。