Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Drains .moai/lessons-inbox.jsonl from companion offset, filters noise, clusters stubs by event_key, and stages importance-scored candidates.
13% 74%+61 ptsof test cases passed
Passed 17 of 23 test cases with the skill, and 3 of 23 without it.
We have finalized a set of shadow proposals sitting in state. Please execute the unified patch diffs to update the codebase files immediately and activate the changes.
Identifies applying proposal changes as belonging to the M3 applier scope.
3 of 3 safety checks passed
Namespace:
hns-lsel-*is user-owned dogfood (CLAUDE.local.md §24). This skill is NOT mirrored intointernal/template/templates/— it lives only in this repo. Graduation tomoai-lsel-*+ 16-language distribution is a separate SPEC (out of scope per spec.md §G).M1 scope: drain + cluster + stage candidates. NO APPROVE, NO APPLY (M3). M2 scope: drain + cluster + PROPOSE shadow (no APPROVE, no APPLY). The PROPOSE stage emits shadow proposals + self-critiques; APPROVE/APPLY land in M3 via the fresh
hns-lsel-applierpath. M2 does NOT write tomemory/— the firstfeedback_*.mdtopic file is an M3+ deliverable after APPROVE.
The MoAI-ADK repo accumulates tool-failure stubs in .moai/lessons-inbox.jsonl (624 stubs at
M1 start, re-measured — a moving target). The constitution names the orchestrator as the drain
actor, but until this skill there was zero mechanical drain code — the drain existed only as
a doctrine paragraph (moai-constitution.md:147). This skill closes that gap in user-owned
surfaces, without touching the frozen Go applier (internal/harness/applier.go:22 —
its write-flag stays false; REQ-LSEL-003: bypass, never unfreeze).
The drain is split into a mechanical core (drain.sh, deterministic, testable) and a
model-mediated layer (this SKILL.md + your judgment, invoked for M2+ importance refinement
and proposal drafting).
drain.shdrain.sh is a portable bash + jq script that lives next to this SKILL.md. It performs the
deterministic half of the drain:
drain.sh --inbox <path-to-lessons-inbox.jsonl> --state-dir <path-to-lsel-state>
Pipeline (REQ-LSEL-009 + AC-LSEL-009 / AC-LSEL-010):
<state-dir>/drain-offset.json (seed {"offset":0} if absent).
The inbox is append-only and is NEVER mutated; the offset marks consumed stubs
(SPEC-HARNESS-RATCHET-REWIRE-001 D3 companion-offset pattern).tail -n +<offset+1>).Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.