shuangquanshou

Validate persona and memory rewrites against core DNA constraints.

10|1|Updated May 4, 2026
One-click install
npx skills add https://github.com/isLinXu/under-one --skill shuangquanshou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shuangquanshou
Source: https://github.com/isLinXu/under-one/tree/main/underone/skills/shuangquanshou
Command: npx skills add https://github.com/isLinXu/under-one --skill shuangquanshou

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Double-Entire-Hands (双全手) prevents identity/persona corruption by validating whether a requested memory/persona/emotion/perception rewrite is safe, consistent, and aligned with the agent’s core DNA.

Core Features & Use Cases

  • Deviation calculation (4D style drift): Computes how far current style diverges from DNA expectations using tone/formality/detail_level/structure.
  • DNA violation detection: Blocks or flags requests that contradict core principles (e.g., integrity, respect, and capability boundaries) with configurable forbidden semantics and negation prefixes.
  • Split/persona wobble protection: Detects excessive style switching across recent rounds and marks risk for human review.
  • Surgery plan + patch preview: Produces a domain-scoped, reversible patch preview with rollback token and an approval/safety contract.

Quick Start

Run the DNA validation by providing a JSON profile containing current_style, dna_expectation, dna_core, requested_change, and history, and then read the generated dna_report.json for whether the rewrite is allowed and what to patch.

Frequently Asked Questions about shuangquanshou

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent persona style drift when rewriting agent memory across multi-turn histories?

You can prevent persona style drift by validating requested memory rewrites against the agent's core DNA. This process calculates 4D style deviations and generates a structured safety report with a reversible patch preview to ensure consistency.

What is DNA validation for controlling agent identity contamination?

DNA validation is a mechanism that blocks or flags memory and perception rewrites contradicting core agent principles. It uses configurable forbidden semantics with negation handling to safeguard the original persona from corruption.

How do I generate a reversible patch plan for a controlled persona rewrite?

You generate a reversible patch plan by providing a JSON profile of the current style and DNA expectations. The system then outputs a domain-scoped patch preview complete with a rollback token and an approval safety contract.

Can I detect split persona wobble and excessive style switching in recent context rounds?

Yes, you can detect split persona wobble by analyzing recent context rounds for excessive style switching. The system assesses drift and split risks, automatically flagging high-risk deviations for human review to maintain persona stability.

Does agent context-drift recovery require deviation scoring and forbidden-principle detection?

Yes, agent context-drift recovery requires deviation scoring and forbidden-principle detection to safely enforce persona consistency. These mechanisms evaluate style drift and block DNA violations using configurable semantics with negation prefixes.

When should I not use automated memory rewriting for agent persona consistency?

You should avoid automated memory rewriting when split risk assessment detects excessive style switching or flags core DNA violations. In these high-risk cases, the system marks the requested changes for human review instead of applying the patch.