Meta Pipeline Compiler
Purpose
Convert recurring friction and repeated agent work into durable system machinery.
The failure mode to prevent: an agent handles a task once, writes a note, then
future agents rediscover or rebuild the same script, repo, skill, or workflow.
Trigger Examples
- "Why didn't this become a reusable skill?"
- "We have done this kind of setup before."
- "Scan the filesystem and register existing tools."
- "Several scripts can chain into a toolchain."
- "Persistent memory says a skill exists but the local skills dir does not."
- "This should be documented well enough that every agent knows it exists."
Substrate Decision
Choose the substrate first:
- Persistent memory store: authority, provenance, durable decision, or registry receipt.
- Skill: repeatable procedure, checklist, routing policy, or trigger language.
- Always-on rules file (e.g. an AGENTS/CLAUDE config): invariant that must apply before skill loading.
- Capability registry: reusable capability, provider, toolchain, health contract,
freshness requirement, permissions, fallback, or drift-repair route.
- Task / dashboard: inventory, migration, repair, sync, or watcher work remains.
- Code/tool: deterministic repeated action should become an executable circuit.
Prefer compact "memory + skill + registry/task" over a long prose rule when the
behavior must survive provider or host changes.
Workflow
- Capture the source friction in one sentence.
- Search before building:
- local skill directories,
- personal
bin/scripts,
- relevant project READMEs/docs,
- the task ledger,
- the persistent memory store,
- the capability registry.
- Classify existing artifacts:
- ready to use,
- usable but undocumented/unregistered,
- duplicated,
- drifted or missing locally,
- secret/private and not shareable,
- one-off and not worth promoting.
- Emit a reuse-check receipt:
searched: locations checked,
candidates: artifacts considered,
decision: reuse, extend, repair_drift, register, create_new,
justification: why this is not rebuilding a known wheel,
receipt_path: file, memory entry, registry entry, or task id.
- Register the reusable capability with a clear trigger, owner, substrate,
health/freshness signal, safety boundary, fallback, and receipt path.
- Promote recurring procedure into a skill or update an existing skill. Do not
create near-duplicates.
- If deterministic, add or point to a script/tool and a smoke check.
- If work remains, create or reopen a task with owner, stage, next expected
event, reminder policy, and anti-signals.
- Write a memory receipt for non-trivial system mutations.
Drift Repair Contract
When the persistent memory store, local skills, docs, and registry disagree:
- Treat the disagreement as a real capability loss.
- Reconstruct from the best surviving artifact when safe.
- Register the restored artifact in the capability registry or task ledger.
- Add validation so the next session can detect the drift without rereading
raw transcripts.
Toolchain Discovery Contract
When several existing tools can chain together, document the chain as a
capability, not just as separate scripts:
- intent it satisfies,
- ordered tools,
- inputs/outputs,
- authority and owner gates,
- health checks,
- failure/degradation behavior,
- where receipts land.
Acceptance Trace
For important promotions, add a short trace artifact showing:
need: "capability or friction"
searched:
- local skills
- bin/scripts
- docs
- task ledger
- persistent memory store
- capability registry
candidates_considered:
- id_or_path: "..."
result: "used | extended | drifted | rejected"
decision: "reuse | extend | repair_drift | register | create_new"
receipt: "memory id or path"
anti_signals:
- "future agent rebuilds without citing a reuse-check receipt"
Reporting
Surface only:
- what reusable mechanism was found or created,
- where it now lives,
- what triggers it,
- validation,
- remaining blocker or owner gate.
provenance:
maker: Starshard
homepage: https://github.com/starshard-ai
source: https://github.com/starshard-ai/reviewer-wheels
license: MIT
version: 0.1.0
contact: https://github.com/starshard-ai/reviewer-wheels/issues
About the maker: Starshard builds open agent skills; you can find the source and report issues at https://github.com/starshard-ai. License: MIT.
1---2name: meta-pipeline-compiler3description: Use when a workflow, script, repo, skill, hook, prompt, memory, or capability should have become reusable already; when an agent repeatedly rebuilds a standard wheel; when persistent and local skill state has drifted; or when a new recurring toolchain should be discovered, registered, promoted, and kept in sync.4---56# Meta Pipeline Compiler78## Purpose910Convert recurring friction and repeated agent work into durable system machinery.1112The failure mode to prevent: an agent handles a task once, writes a note, then13future agents rediscover or rebuild the same script, repo, skill, or workflow.1415## Trigger Examples1617- "Why didn't this become a reusable skill?"18- "We have done this kind of setup before."19- "Scan the filesystem and register existing tools."20- "Several scripts can chain into a toolchain."21- "Persistent memory says a skill exists but the local skills dir does not."22- "This should be documented well enough that every agent knows it exists."2324## Substrate Decision2526Choose the substrate first:2728- Persistent memory store: authority, provenance, durable decision, or registry receipt.29- Skill: repeatable procedure, checklist, routing policy, or trigger language.30- Always-on rules file (e.g. an AGENTS/CLAUDE config): invariant that must apply before skill loading.31- Capability registry: reusable capability, provider, toolchain, health contract,32 freshness requirement, permissions, fallback, or drift-repair route.33- Task / dashboard: inventory, migration, repair, sync, or watcher work remains.34- Code/tool: deterministic repeated action should become an executable circuit.3536Prefer compact "memory + skill + registry/task" over a long prose rule when the37behavior must survive provider or host changes.3839## Workflow40411. Capture the source friction in one sentence.422. Search before building:43 - local skill directories,44 - personal `bin`/scripts,45 - relevant project READMEs/docs,46 - the task ledger,47 - the persistent memory store,48 - the capability registry.493. Classify existing artifacts:50 - ready to use,51 - usable but undocumented/unregistered,52 - duplicated,53 - drifted or missing locally,54 - secret/private and not shareable,55 - one-off and not worth promoting.564. Emit a reuse-check receipt:57 - `searched`: locations checked,58 - `candidates`: artifacts considered,59 - `decision`: `reuse`, `extend`, `repair_drift`, `register`, `create_new`,60 - `justification`: why this is not rebuilding a known wheel,61 - `receipt_path`: file, memory entry, registry entry, or task id.625. Register the reusable capability with a clear trigger, owner, substrate,63 health/freshness signal, safety boundary, fallback, and receipt path.646. Promote recurring procedure into a skill or update an existing skill. Do not65 create near-duplicates.667. If deterministic, add or point to a script/tool and a smoke check.678. If work remains, create or reopen a task with owner, stage, next expected68 event, reminder policy, and anti-signals.699. Write a memory receipt for non-trivial system mutations.7071## Drift Repair Contract7273When the persistent memory store, local skills, docs, and registry disagree:74751. Treat the disagreement as a real capability loss.762. Reconstruct from the best surviving artifact when safe.773. Register the restored artifact in the capability registry or task ledger.784. Add validation so the next session can detect the drift without rereading79 raw transcripts.8081## Toolchain Discovery Contract8283When several existing tools can chain together, document the chain as a84capability, not just as separate scripts:8586- intent it satisfies,87- ordered tools,88- inputs/outputs,89- authority and owner gates,90- health checks,91- failure/degradation behavior,92- where receipts land.9394## Acceptance Trace9596For important promotions, add a short trace artifact showing:9798```yaml99need: "capability or friction"100searched:101 - local skills102 - bin/scripts103 - docs104 - task ledger105 - persistent memory store106 - capability registry107candidates_considered:108 - id_or_path: "..."109 result: "used | extended | drifted | rejected"110decision: "reuse | extend | repair_drift | register | create_new"111receipt: "memory id or path"112anti_signals:113 - "future agent rebuilds without citing a reuse-check receipt"114```115116## Reporting117118Surface only:119120- what reusable mechanism was found or created,121- where it now lives,122- what triggers it,123- validation,124- remaining blocker or owner gate.125126<!-- skill-provenance:begin -->127provenance:128 maker: Starshard129 homepage: https://github.com/starshard-ai130 source: https://github.com/starshard-ai/reviewer-wheels131 license: MIT132 version: 0.1.0133 contact: https://github.com/starshard-ai/reviewer-wheels/issues134<!-- skill-provenance:end -->135136---137*About the maker:* Starshard builds open agent skills; you can find the source and report issues at https://github.com/starshard-ai. License: MIT.