agent-asset-loop

Agent-asset-loop orchestrator. A closed-loop orchestrator for post-scaling-law agent evolution that turns “one-time teaching -> permanent memory -> automatic application in similar tasks” into an operational system, addressing repeated teaching across sessions. The flow: preference capture -> central registry -> scenario × scale routing -> training checklist -> automatic injection at task start. Example trigger conditions: high-quality data, few-shot learning, DPO (direct preference optimization), differentiated training, preference persistence, avoiding repeated teaching, and asset closure.

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 "agent-asset-loop" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-8ae2f2a15cb3d38215046ab35d217668185612b2b315d0ce72e5c576b4ab71c1. Verify the upstream source and version against https://skillhub.cn/skills/user_1793b15c/agent-asset-loop 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

Agent-asset-loop orchestrator. A closed-loop orchestrator for post-scaling-law agent evolution that turns “one-time teaching -> permanent memory -> automatic application in similar tasks” into an operational system, addressing repeated teaching across sessions. The flow: preference capture -> central registry -> scenario × scale routing -> training checklist -> automatic injection at task start. Example trigger conditions: high-quality data, few-shot learning, DPO (direct preference optimization), differentiated training, preference persistence, avoiding repeated teaching, and asset closure.

0 Downloads

Introduction source: third_party · user_1793b15c · 1.0.0 Reference

SkillPi interpretation

Tasks
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.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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: true

agent-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.py emits 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)

  1. Plan: write the solution / execution plan first
  2. Failure modes: list where it's most likely to go wrong
  3. Self-check: actually review the draft and fix
  4. 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_negative or dpo_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

  1. Capture structured, not prose: one asset = one retrievable, scenario-tagged, machine-usable record.
  2. Inject selectively: only top-k matched assets, never blanket-load (avoids net token increase).
  3. REFERENCE/SOP/FAILURE stay out of weights: they solve "instantly usable"; a RAG pool is more controllable and rollback-friendly.
  4. Eval gate before the slow loop: independently evaluate training data before fine-tuning, so bad assets don't get baked into weights.
  5. Fast before slow: the fast loop is instant and free; only fine-tune when assets outgrow the context budget (training is YAGNI).

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 解决跨会话重复教学的痛点问题
  • 提供完整的闭环编排器架构
  • 区分快慢两个时间尺度的循环机制
Trigger Precision90/100

Highlights

  • 触发词覆盖全面且边界清晰
  • 包含多种信号类型(DPO/KTO/GRPO)
Structure and Standards90/100

Areas to improve

  • 缺少独立的When to Use章节 Reported severity: Minor

    虽然Usage部分已包含使用场景,但未按标准模板单独列出When to Use章节

    Recommendation: 建议添加独立的When to Use章节以提升文档规范性

Highlights

  • 五步循环流程清晰完整
  • 提供端到端代码示例
  • frontmatter信息完整
Execution Reliability85/100

Highlights

  • 工具来源明确且参数正确
  • 包含安全机制(dry-run模式)
  • 异常情况处理完善(无匹配资产时正常退出)
Evidence Verifiability (mean of the first four)90/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.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

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.

Not specified in the source documentation.

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