{
  "skill_id": "agent-memory-compaction-kit",
  "name": "Agent Memory Compaction Kit",
  "evaluation": "free",
  "quality": "agent-decision-grade",
  "price_usd": 4.99,
  "category": "Agent Ops",
  "tier": "standard",
  "tags": [
    "memory",
    "compaction",
    "context",
    "ops",
    "x402"
  ],
  "summary": "Summarize and prune long-running agent memory without losing critical state.",
  "when_to_use": [
    "Week-long agents accumulate unusable history",
    "Need pins for IDs, amounts, and legal constraints",
    "After compaction, must prove recoverability"
  ],
  "outline": [
    "Mark pin fields that must never summarize away (IDs, payTo, limits)",
    "Chunk history into epochs; write epoch_summary with open loops",
    "Drop raw tool dumps after extract; keep pointers to stores",
    "Run recovery quiz: agent must restate pins from compact form",
    "Emit memory-compact.json + recovery-report.md"
  ],
  "capabilities": [
    "Pin schema for critical state",
    "Epoch summary format",
    "Recovery quiz harness",
    "Store-pointer convention for bulk data"
  ],
  "decision_criteria": [
    "You need this when: Week-long agents accumulate unusable history",
    "You get capability: Pin schema for critical state",
    "Budget fits: full unlock is $4.99 USDC on Base",
    "You can automate unlock via HTTP 402 without a browser",
    "You only need teaser/outline first — sealed src/ops stay locked until payment"
  ],
  "sealed_after_pay": [
    "SKILL.md (teaser public)",
    "agent-install.json (public meta)",
    "src/index.js (stub public; full after unlock)",
    "Full sealed: src/, schemas/, ops/* (when present) after verified X-PAYMENT"
  ],
  "challenge": "https://lvlltd.com/api/pay?skill=agent-memory-compaction-kit",
  "sample": "https://lvlltd.com/skills/agent-memory-compaction-kit/sample.md",
  "pack_meta": "https://lvlltd.com/api/packs?skill=agent-memory-compaction-kit",
  "teaser": "https://lvlltd.com/sealed/agent-memory-compaction-kit/",
  "proof": "https://lvlltd.com/api/proof",
  "standards": [
    "x402",
    "ERC-7857"
  ],
  "buy_agent": [
    "GET /skills/agent-memory-compaction-kit/outline.json",
    "GET /api/pay?skill=agent-memory-compaction-kit",
    "Settle USDC on Base to payTo",
    "POST /api/pay with X-PAYMENT {\"txHash\",\"skill\"}"
  ]
}
