safety/mutation-approval
Skill10 starsChanged 2 months agoMITView on GitHub
Require explicit user confirmation before any Claw mutates user files outside ~/.starlight/. Produces a plan first; mutations are never the default. Fires on all Claws with filesystem:write_user permission. Default skill for Starlight Sentinel and Bootstrap Claw.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- frankxai/Starlight-Intelligence-Systemword for word, first seen Sep 6, 2026
Other versions1 project uses a version of this.
Word for word · 1
- frankxai/Starlight-Intelligence-System★ 10100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
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
- site/AGENTS.mdAGENTS.md
- .claude/hooks/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- site/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/editorial.mdcCursor rule
- .cursor/rules/starlight-agents.mdcCursor rule
- .cursor/rules/starlight-core.mdcCursor rule
- .cursor/rules/starlight-memory.mdcCursor rule
- .cursor/rules/starlight-voice.mdcCursor rule
- frank-brand-editorSkill
- agent-hygieneSkill
- estate-guardSkill
- SKILL.mdSkill
- crypto-intelligenceSkill
- agent-forgeSkill
- skill-forgeSkill
- system-forgeSkill
- taste-engineSkill
- integration/ecosystem-syncSkill
- integration/repo-bridgeSkill
- integration/transmission-protocolSkill
- integration/universal-adapterSkill
- intelligence/decision-frameworkSkill
- intelligence/hermes-searchSkill
- intelligence/pattern-recognitionSkill
- intelligence/strategic-reasoningSkill
- intelligence/systems-thinkingSkill
- heartSkill
- storageSkill
- memory/capture-disciplineSkill
- memory/context-preservationSkill
- memory/insight-distillationSkill
- memory/knowledge-synthesisSkill
- memory/memory-consolidationSkill
- sis-memory-orchestratorSkill
- memory/vault-managementSkill
- agent-creatorSkill
- orchestration/context-engineeringSkill
- orchestration/gencreator-stackSkill
- orchestration/hermes-swarmSkill
- orchestration/multi-agent-coordinationSkill
- orchestration/parallel-executionSkill
- orchestration/workflow-designSkill
- workflow-skill-creatorSkill
- safety/permission-gateSkill
- safety/private-public-splitSkill
- safety/secret-detectorSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Default for: Starlight Sentinel
- Distinctive: line 41
Wait for user response — no timeout, no auto-proceed
- Distinctive: line 42
If "I confirm" (case-insensitive): log approval, return APPROVED
- Distinctive: line 43
If anything else: log cancellation, return DENIED
- Distinctive: line 57
Add extra confirmation layer:
- Distinctive: line 69
If a mutation batch fails mid-execution:
- Very specific: line 74
Write full rollback log to ~/.starlight/logs/mutation-rollback.jsonl
- Distinctive: line 78
Vaults: No direct vault access — operates on mutation proposals only
- Distinctive: line 87
Every approval is logged with timestamp, claw, operation count, and user phrase
≈ “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
Mutation Approval
Plans are free. Changes cost a confirmation. That's the contract.
When This Skill Activates
- Any Claw with
mutation_default: falseis about to execute a file operation - A destructive or irreversible operation is about to run (delete, overwrite, move)
- Keywords: "move", "delete", "overwrite", "rename", "apply changes", "execute plan"
- Default for: Starlight Sentinel
- Activated by: Reclamation Claw, Bootstrap Claw, Memory Claw (on decay), Architect Claw
What This Skill Does
Intercepts mutations before they execute. Presents a clear human-readable summary of what will change, requires explicit confirmation, records the approval, and passes control back to the requesting Claw. No mutation is silent. No mutation is irreversible without a logged confirmation.
Procedures
Procedure 1: Pre-Mutation Briefing
- Receive mutation plan from requesting Claw:
{ claw_id, operation_type, targets: [{ path, action, description }], reversible: bool } - Render a human-readable summary:
Reclamation Claw wants to make 14 changes: - Move 8 files from ~/Documents/old/ to ~/Documents/projects/ - Move 3 files to ~/Documents/archive/ - Import 3 items into SIS vaults Reversible: Yes (move log will be saved) Type "I confirm" to proceed, or "cancel" to abort. - Wait for user response — no timeout, no auto-proceed
- If "I confirm" (case-insensitive): log approval, return APPROVED
- If anything else: log cancellation, return DENIED
Procedure 2: Partial Approval
- User wants to approve some operations but not others
- Present individual operations for line-by-line approval
- Mark each as APPROVED or SKIPPED
- Return approved subset to Claw for execution
- Log all decisions
Procedure 3: Irreversible Operation Gate
For operations flagged reversible: false (e.g., permanent deletes):
- Add extra confirmation layer:
⚠️ This action cannot be undone. Memory Claw wants to permanently delete 4 archived vault entries. Type the exact phrase "delete permanently" to confirm, or "cancel" to abort. - Accept only the exact confirmation phrase
- Log with full entry content in the audit trail before executing
Procedure 4: Batch Rollback
If a mutation batch fails mid-execution:
- Halt remaining operations
- Execute rollback for completed operations in reverse order
- Report: what succeeded, what failed, what was rolled back
- Write full rollback log to
~/.starlight/logs/mutation-rollback.jsonl
Integration Points
- Vaults: No direct vault access — operates on mutation proposals only
- Agents: Starlight Sentinel (primary)
- Skills: Composes with
permission-gate(authorization check runs first) - Claws: Reclamation (file moves), Bootstrap (directory creation), Memory (decay), Architect (scaffolding)
Quality Criteria
- User always reads a plain-language summary before confirming
- Confirmation phrase must be explicit — no ambiguous Y/n prompts for destructive ops
- Every approval is logged with timestamp, claw, operation count, and user phrase
- Rollback is always attempted on failure — never leave a half-executed plan
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.

