publish-learning
Skill7 starsChanged 4 months agoMITView on GitHub
Publish only a curated and approved learning. Generate and show a preview first, obtain human approval for AGENTS.md, shared libraries or existing Skill changes, apply through royo-learn, verify, audit and rollback on failure.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- capture-learningSkill
- curate-learningSkill
- royo-learn-onboardingSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
When the preview reports requires_approval: true (AGENTS.md, shared scope or existing Skill updates), obtain explicit human approval, then …
- Very specific: line 31
Call learning_publish with the exact preview hash, and pass the approval_id returned by learning_approve whenever approval was required.
- Distinctive: line 33
Verify result and registry.
- Distinctive: line 34
If verification fails, ensure rollback occurred.
- Distinctive: line 49
never treat a preview as an authorization: a preview describes, it does not permit.
- Very specific: line 51
never reuse an approval for a different preview — learning_publish will reject it.
- Very specific: line 56
never edit targets directly when royo-learn can apply the approved operation.
- Distinctive: line 57
never reuse approval for another preview.
- Distinctive: line 58
never place a long procedure in AGENTS.md.
- Distinctive: line 59
never guess a global path.
- Distinctive: line 60
never bypass a dirty-target block silently.
- Distinctive: line 61
never publish secrets or project-private assumptions into shared scope.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Publish Learning
Preconditions
- status is approved;
- curation specifies target and action;
- acceptance checks exist;
- no unresolved conflict;
- preview is current;
- required approval exists.
Workflow
- Call
learning_publication_preview. - Inspect targets, diff, risk and verification.
- Show high-impact previews to the user.
- When the preview reports
requires_approval: true(AGENTS.md, shared scope or existing Skill updates), obtain explicit human approval, then calllearning_approvewith the exact preview hash to record it. See "Approval step" below. - Call
learning_publishwith the exact preview hash, and pass theapproval_idreturned bylearning_approvewhenever approval was required. - Verify result and registry.
- If verification fails, ensure rollback occurred.
- Report canonical target and publication ID.
Approval step
royo-learn now enforces approval. When a preview reports requires_approval: true,
publishing is refused until a valid approval exists, so the burden is shared with
the tool rather than resting entirely on you.
- obtain explicit human approval in conversation first;
- record it with
learning_approve, passing the exactpreview_hash,approved_by,reasonandapproval_evidence(a link, message id or ticket); - the approval is bound to that preview hash. It is rejected if the preview changes, a destination changes, the prior file content of a destination changes, the relevant policy changes, it expires, or it is revoked;
- never treat a preview as an authorization: a preview describes, it does not permit;
- never reuse an approval for a different preview —
learning_publishwill reject it.
Rules
- never edit targets directly when royo-learn can apply the approved operation;
- never reuse approval for another preview;
- never place a long procedure in AGENTS.md;
- never guess a global path;
- never bypass a dirty-target block silently;
- never publish secrets or project-private assumptions into shared scope.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

