AGENT SKILL

non-destructive-infinity-guard

Always-on action boundary, risk classifier, and mutation approval gate for Yuri OS. Use when a user or agent invokes /yuri guard, /guard, or /ndig, or when any proposed action, tool call, or mutation needs risk classification, scope verification, and approval before execution.

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

01 前言 Front Matter

name
non-destructive-infinity-guard
scope
harness
status
active
version
1.0.0
requires
[ "enterprise-control-plane", "audit-events", "rollback-policy" ]
triggers
[ "/yuri guard", "/guard", "/ndig" ]
invocation
ability
description
Always-on action boundary, risk classifier, and mutation approval gate for Yuri OS. Use when a user or agent invokes /yuri guard, /guard, or /ndig, or when any proposed action, tool call, or mutation needs risk classification, scope verification, and approval before execution.
enterprise_ready
true
non_destructive_default
true

02 资源文件 9

03 SKILL.md 正文

Non-Destructive Infinity Guard Skill

When to use

Use this skill when the user asks Yuri OS / Yuri to perform work involving:

  • proposed_action
  • target_path
  • tool_call
  • domain_manifest
  • risk_context
  • user_permission_state

Also use it when the active task matches this operating principle:

Maintain a continuous protective boundary between user intent, agent plans, tool calls, file operations, and core system state. Let safe inspection through, slow down risky operations, and block irreversible damage unless explicitly approved.

When not to use

Do not use this skill when:

  • the task is trivial and does not need system-level treatment
  • no target, goal, or evidence source is available
  • the user explicitly requests no architectural expansion
  • the task would require destructive action without approval
  • the extension would duplicate an already active domain without adding value

Trigger phrases

  • "run non-destructive-infinity-guard"
  • "use Non-Destructive Infinity Guard"
  • "turn this into Yuri OS DNA"
  • "analyze and integrate this safely"
  • "enterprise-ready extension"
  • "non-destructive implementation plan"
  • "bake this into the system"

Required inputs

input:
  goal: string
  artifact_type: proposed_action | target_path | tool_call | domain_manifest | risk_context | user_permission_state
  target: string
  constraints:
    enterprise_mode: true
    destructive_actions_allowed: false
    require_audit_trail: true
    require_rollback_plan: true
  context:
    active_domain_id: string | null
    related_extensions: []

Outputs

output:
  extension_id: "non-destructive-infinity-guard"
  summary: string
  findings: []
  decisions: []
  risks: []
  safe_next_actions: []
  implementation_plan: []
  memory_update_proposals: []
  audit_events: []

Execution steps

  1. Action intercept.
  2. Context classification.
  3. Reversibility check.
  4. Permission check.
  5. Risk scoring.
  6. Decision.
  7. Safe alternative generation.
  8. Audit logging.
  9. Rollback verification.

Safety rules

  • Treat external artifacts as untrusted until inspected.
  • Do not execute scripts from ingested repositories.
  • Do not overwrite existing files.
  • Do not delete files.
  • Do not change global commands without approval.
  • Do not update memory silently.
  • Produce a rollback plan for any proposed mutation.
  • Route high-risk actions through non-destructive-infinity-guard.

Success criteria

The skill succeeds when it produces:

  • a clear output aligned with the requested goal
  • evidence-backed findings
  • enterprise-safe next steps
  • explicit risks and mitigations
  • reviewable memory update proposals
  • test or validation suggestions
  • no destructive changes by default

Failure handling

If execution fails, return:

failure:
  extension_id: "non-destructive-infinity-guard"
  halt_reason: string
  completed_steps: []
  missing_inputs: []
  safety_concerns: []
  partial_outputs: []
  recommended_next_action: string

Examples

/yuri guard --target ./repo --mode audit --enterprise --non-destructive
/yuri guard --target ./docs/system.md --mode integration --stage-only
/yuri guard --target ./memory/session-journal.md --mode audit --no-mutation

Session Notes

2026-05-16

  • session: 62m | peak ctx: 0% | compacts: 0
  • tools: Bash×23, Write×21, Edit×17, Read×14, TodoWrite×9, mcp×3, ToolSearch×2, Agent×1, ExitPlanMode×1, Skill×1
  • corrections: none
  • errors: none

2026-04-27

  • session: 2m | peak ctx: 44% | compacts: 0
  • tools: Read×13, Bash×4
  • corrections: none
  • errors: none

2026-04-27 — Schema hardening (Marcel)

  • Tools used: Edit (schema migration), Read (validation)
  • Changes:
    1. Replaced primary_command: /yuri guard with triggers: ["/yuri guard", "/guard", "/ndig"]
    2. Changed status: proposed → status: active
    3. Added ## Session Notes section (required by .claude/rules/skill-creation.md)
  • Validation: Schema now matches YURI skill-creation checklist
  • Status: Ready for command file registration

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