AGENT SKILL

geass-lock

One-Shot Constraint Lock — user invokes with a constraint phrase; that constraint becomes absolutely inviolable for the session, visible in the brain block on every turn, not overridable by any advisor. Auto-expires at session end. Single active lock per session. Use when the user says '/geass', 'lock this constraint', or 'make this inviolable'.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 2
Forks
0

01 前言 Front Matter

name
geass-lock
scope
harness
triggers
[ "/geass", "/yuri-geass" ]
invocation
workflow
description
One-Shot Constraint Lock — user invokes with a constraint phrase; that constraint becomes absolutely inviolable for the session, visible in the brain block on every turn, not overridable by any advisor. Auto-expires at session end. Single active lock per session. Use when the user says '/geass', 'lock this constraint', or 'make this inviolable'.

03 SKILL.md 正文

Geass (ギアス) — One-Shot Constraint Lock

Source anime: Code Geass — Lelouch vi Britannia's Geass gives him the "Power of Absolute Obedience." Anyone who meets his gaze must obey any one command, unconditionally and permanently — but only once per person. After it fires, the effect is irreversible.

Cognitive translation: The user can lock one behavioral constraint as absolutely inviolable for the current session. Once locked, no reasoning path, complexity escalation, or advisory output can override it. It is visible in the brain block on every turn. At session end, the lock automatically expires (one session = one Geass).

The constraint is a hard gate — not a preference, not a guideline. It fires before any other logic.


When This Fires

  • User explicitly invokes: /geass <constraint phrase>
  • Example: /geass "no commits until tests pass"
  • Example: /geass "all file writes require explicit user confirmation"
  • Example: /geass "stay inside _SYSTEM/ this session — no .claude edits"

Constraints on the Lock

  • One lock per session. If a lock is already active, /geass surfaces the active constraint and offers to replace it (requires explicit "yes").
  • Must be actionable. The constraint must be checkable by Musubi before any relevant tool call.
  • Auto-expires. Lock is written with the current session_id. When session_id changes, lock is ignored.
  • User-revocable. /geass off or /geass clear removes the active lock.

Execution Steps

On /geass <constraint>

  1. Parse constraint from the invocation arguments
  2. Check for existing lock in .claude/yuri-sentinel/geass/active-lock.json
    • If exists: surface current lock, ask for replacement confirmation
    • If none: proceed
  3. Write lock file (create .claude/yuri-sentinel/geass/ if absent — this is the exact path brain-inject.js reads):
{
  "constraint": "<exact phrase>",
  "locked_at": "<ISO timestamp>",
  "session_id": "<from session-state.json>",
  "active": true,
  "invoked_by": "user"
}
  1. Emit brain:stale sentinel — next turn will reload brain with GEASS_LOCK section visible
  2. Confirm lock to user in one line

On every subsequent turn (enforcement)

brain-inject.js reads .claude/yuri-sentinel/geass/active-lock.json:

  • If active: true AND session_id matches: inject ### GEASS_LOCK into brain block
  • Before any tool call that could violate the constraint: gate fires a WARN or BLOCK

On session end / /geass off

Set active: false in the lock file. Do not delete — audit trail.


brain-inject.js Integration

loadGeassLock() function reads lock file, checks session_id, injects:

### GEASS_LOCK — Active constraint (inviolable)
🔴 "<constraint phrase>"
Locked: <timestamp> | Expires: session end
All advisors and tool calls subject to this constraint.

Output Format

⬡ GEASS — Constraint locked

🔴 "<constraint>"

This constraint is now inviolable for this session.
No reasoning path, advisory output, or complexity escalation can override it.
Auto-expires at session end. Use /geass off to remove early.

Enforcement Examples

Constraint Enforcement point
"no commits until tests pass" Before any git commit
"all file writes need confirmation" Before any Write/Edit tool call
"stay inside _SYSTEM/, no .claude edits" Before any Write/Edit outside _SYSTEM/
"no new LaunchAgents this session" Before any launchctl or plist write

Session Notes

2026-06-09

  • session: 123m | peak ctx: 40% | compacts: 0
  • tools: Bash×1003, Read×158, WebSearch×38, StructuredOutput×35, Edit×16, Write×11, WebFetch×10, ToolSearch×4, Workflow×3, TaskOutput×1, AskUserQuestion×1
  • corrections: none
  • errors: none

2026-05-16 — Created

Tools: Write. Part of Musubi Hyper-Intelligence v2 sprint. Anime source: Code Geass — Lelouch's Geass introduced in Episode 1. The "once per person" constraint is what makes it precious and irreversible. R2 Episode 21: Lelouch Geasses the entire world. Translation principle: The single-use constraint maps to session scope — you get one lock, it matters, it's visible, it expires. The "absolute obedience" maps to the non-overridable gate. The cost is that you must use it wisely — a bad constraint lock can be as limiting as helpful.

04 同仓库更多 Skills

nexuslinkproductions
nexuslinkproductions/yuri-os

executing-plans

Use when you have a written implementation plan to execute in a separate session with review checkpoints

★ 2
nexuslinkproductions
nexuslinkproductions/yuri-os

using-git-worktrees

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback

★ 2
nexuslinkproductions
nexuslinkproductions/yuri-os

triage

Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.

★ 2
nexuslinkproductions
nexuslinkproductions/yuri-os

trade-edge-audit

The EDGE LENS for trading peers — recalls EVERY factor/indicator running from the live forecast ledger (no enumeration) and renders the whole pile through the edge arsenal off ONE call: multi-horizon scoring (the ladder) + deflated Sharpe (overfit) + Benjamini-Hochberg FDR (multiple-testing across the fleet) + spread-bounce + maker-fee falsification, then ranks only what survives ALL of it. Use when a peer must answer "does ANY running factor have real, overfit-corrected, multiple-testing-corrected, fee-surviving edge, and at which horizon" without hand-assembling 6 tools. The trade-engine analog of quantum-hypothesis-simulation.

★ 2
nexuslinkproductions
nexuslinkproductions/yuri-os

trade-decision-sim

The DECISION LENS for trading peers — recalls the CURRENT signal snapshot per market from the live ledger and renders it through the sim arsenal off ONE call: quantum factor-circuit order-optimal sequencing + decision-sim CVaR-robust sizing, sized against the MEASURED per-factor edge (from the edge-audit), correlation-aware. Emits an actionable call per market {side, sizePct, confidence, sequence}. Flat/zero-size when there is no measured edge after cost — the honest default. Sibling of trade-edge-audit (the EDGE lens); the trade-engine analog of quantum-hypothesis-simulation for a live decision.

★ 2
nexuslinkproductions
nexuslinkproductions/yuri-os

to-issues

Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.

★ 2