unharness
Skill927 starsChanged 16 days agoMITView on GitHub
Safely leave Citadel using the active adoption receipt. Produces a no-write, reviewable plan, preserves a portable archive, removes only exact owned material, and reports modified or externally registered surfaces as retained or unknown. Legacy installs must be imported before exact leave is claimed.
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Use this skill when the user wants Citadel removed from a project.
- Very specific: line 29
Do not infer ownership from familiar paths.
- Very specific: line 37
Read .citadel/plugin-root.txt when present.
- Very specific: line 61
If the result is NOT_ADOPTED, stop.
- Distinctive: line 100
When the user explicitly wants a human-readable export without leaving:
- Very specific: line 110
If .planning/ does not exist, treat it as an empty portable-state set and show the setup/import hint.
- Very specific: line 117
If the Citadel root cannot be located, stop with the exact missing path.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
/unharness - Receipt-owned exit from Citadel
Orientation
Use this skill when the user wants Citadel removed from a project. Exit is a two-step, receipt-owned operation. A plan never mutates the project. Apply requires the exact saved plan and its confirmation token.
Do not infer ownership from familiar paths. Do not delete .planning/,
.citadel/, runtime settings, hooks, skills, or registrations merely because
they look Citadel-related.
Protocol
1. Locate Citadel and inspect adoption authority
Read .citadel/plugin-root.txt when present. Otherwise use the directory
containing this skill. Check for .citadel/adoption/active.json; the adoption
planner also checks the private recovery ledger.
2. Create a no-write leave plan
Choose a plan path inside the project, such as
.planning/adoption/leave.plan.json, and run:
node {citadelRoot}/scripts/adopt.js leave plan \
--target {projectRoot} \
--out {planPath} \
--jsonShow the user:
- exact files that will be removed or restored;
- modified or ambiguous footprint entries that will be retained;
- portable archive path;
- runtime registrations whose removal evidence is
unknown; - the plan digest and confirmation token.
If the result is NOT_ADOPTED, stop. Create a conservative legacy inventory:
node {citadelRoot}/scripts/adopt.js import plan {citadelRoot} \
--target {projectRoot} \
--out {importPlanPath} \
--jsonApply that import only after its own explicit approval. Then create a new leave plan from the resulting receipt. Never describe legacy cleanup as exact removal.
3. Obtain explicit approval
Leaving is destructive. Ask the user to approve the displayed plan and exact confirmation token. Do not apply from an unsaved or regenerated plan.
4. Apply and verify
After approval:
node {citadelRoot}/scripts/adopt.js leave apply {planPath} \
--confirm {confirmationToken} \
--json
node {citadelRoot}/scripts/adopt.js doctor \
--target {projectRoot} \
--jsonDoctor may report not_adopted after a clean leave. Report the leave receipt,
archive path, removed entries, retained conflicts, and every unknown
unregistration observation. “Citadel removed” is permitted only when the
receipt proves every required local and external removal.
Export-only compatibility
When the user explicitly wants a human-readable export without leaving:
node {citadelRoot}/scripts/unharness.js {projectRoot} --export-onlyThis writes the legacy Markdown archive but does not remove harness material.
Fringe Cases
- If
.planning/does not exist, treat it as an empty portable-state set and show the setup/import hint; do not create it merely to leave. - Missing or invalid adoption authority blocks leave. Use
import planor private-ledger recovery; never guess ownership. - A changed saved plan, source, target, or pre-image requires a fresh plan.
- An unavailable runtime unregister API stays
unknown; report the manual observation required. - If the Citadel root cannot be located, stop with the exact missing path.
Quality gates
- Planning is read-only unless the user explicitly requests
--out. - Apply consumes the exact saved plan and revalidates source, target, and pre-images.
- Modified owned material is retained with an explicit conflict.
- Shared runtime files restore exact pre-images only while installed bytes remain exact.
- Missing receipts, malformed receipts, and unenumerable registrations are
unknownor blocked, never successful. - The portable archive and private receipt ledger remain available for restore and recovery.
Exit Protocol
Return the leave operation ID and receipt digest, portable archive path, exact removed/restored counts, retained conflicts, and unknown external removals. State plainly whether exact exit was proved. Do not claim success from a completed command when required removal evidence is missing.
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- mayankjain1815-commits/CITADEL★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectSkill
- archonSkill
- ascii-diagramSkill
- autopilotSkill
- costSkill
- create-appSkill
- create-skillSkill
- daemonSkill
- dashboardSkill
- decision-mapSkill
- deploy-stewardSkill
- designSkill
- doc-genSkill
- doSkill
- evolveSkill
- experimentSkill
- fleetSkill
- grillSkill
- housecleanSkill
- improveSkill
- infra-auditSkill
- learnSkill
- live-previewSkill
- loopSkill
- mapSkill
- marshalSkill
- merge-reviewSkill
- organizeSkill
- postmortemSkill
- prdSkill
- pr-watchSkill
- qaSkill
- refactorSkill
- researchSkill
- reviewSkill
- scaffoldSkill
- scheduleSkill
- session-handoffSkill
- setupSkill
- systematic-debuggingSkill
- telemetrySkill
- test-genSkill
- triageSkill
- verifySkill
- watchSkill
- wikiSkill
- workspaceSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

