Xuanzang: AI Agent Quality Pressure Scheduler
Paste the following prompt into your AI chat to install this skill:
Please refer to https://skillhub.cn/install/skillhub.md to install @user_741dc82b/xuanzang-skill.
About this skill
Specific Problem: Delivery Quality Bottleneck in AI Agents
In AI Agent development, agents often complete tasks superficially, producing low-quality code or surface-level solutions. This laziness and complacency undermine delivery reliability, and traditional methods lack systematic quality pressure mechanisms.
Core Capabilities and Key Steps
The Xuanzang skill addresses this through a four-layer role architecture and the Harness governance engine:
- Role Scheduling and Pressure Escalation:
- P8 Tathagata executes the
automated scheduling cycle, runningfailure-detector.pyafter each tool call to detect failure patterns (e.g., SPINNING/EXPLORING) and automatically switch methodologies based on pressure levels (L0-L4). - Methodology routing is defined in
references/role-router.md, matching task types (e.g., programming, operations) to 15 roles, with failure triggering a switching chain. - Anti-Cheating Quality Gatekeeping:
- The Harness engine includes
contract(generating verifiable task contracts),scan-risk(scanning hallucinations and cheating),verify(validating delivery), andgate(pass/reject rulings). - On rejection, correction instructions are injected, escalating to P9/P10 reviews for a closed-loop.
- Configuration and Activation:
- Users can switch roles via
/pua:roleor set therolefield indata/config.json. Trigger words (e.g., “harder”) activate the skill, with default routing to Tathagata mode.
Key steps example:
1. Task start → automatic routing selects P8 role.
2. After tool call → run failure-detector.py to analyze state.
3. Pressure level ≥ L2 → execute de-escalation.md for deep reframing.
Applicability Boundaries and Caveats
What it can do:
- Inject P8 behavioral constraints (three red lines, Owner awareness) for quality-sensitive scenarios like programming tasks and system management.
- Manage P7 sub-agents (e.g., Sha Wujing), reviewing delivery quality via gate.
What it cannot do:
- Does not alter the capability layer of agents (e.g., code generation logic), only the behavioral layer (how tasks are executed).
- Not suitable for normal first-time information queries or simple tasks, as enabling it may reduce efficiency.
Caveats:
- Role switching must follow references/role-switch-protocol.md to avoid methodology conflicts.
- Failure counts are persisted in data/evolution.md, automatically restored in new sessions for continuity.
- Four-layer collaboration rules are defined in references/agent-team.md, noting parallel/serial decision trees.
Use Cases
- When developing an AI-based code generation system, using Xuanzang skill to automatically route failure switching chains via P8 Tathagata role, injecting correction instructions and escalating to P9 for review when code review is rejected by gate, ensuring delivery quality.
- In an operations team managing cloud service deployments, enabling Harness engine's scan-risk tool to scan path hallucinations and generating task contracts via contract, ensuring operations comply with red-line standards and preventing automated cheating behaviors.
- When coordinating multiple sub-agents for data cleaning tasks, Xuanzang skill detects an agent stuck in SPINNING state, automatically escalating pressure to L2, switching methodologies, and using de-escalation.md for deep reframing to break through task bottlenecks.
- During iterative development of product requirement analysis, switching to Bodhi Patriarch role via /pua:role, using Lingtai Fangcun methodology to handle ambiguous requirements, and ensuring rationality of architectural decisions through P10 Xuanzang strategic review.
Best For
- A senior development engineer responsible for AI code generation projects, needing to automatically monitor delivery quality and handle task failure modes to avoid inefficient retries.
- An operations team leader managing cloud service deployment tasks, seeking to ensure operational compliance and prevent cheating behaviors in automated processes.
- A multi-agent system coordinator, needing to handle sub-agent failures and state stalling to improve the overall efficiency of parallel tasks.
- A quality assurance specialist responsible for reviewing AI outputs, seeking to ensure delivery meets standards through pressure scheduling and role-based review gatekeeping.
Related Skills
A remote browser automation tool supporting Linux and Windows, enabling AI-human collaboration via noVNC and CDP to handle login verifications.
A prompt creation expert supporting multi-platform image and video prompt generation, with features like image-to-image, video creation, and reverse engineering analysis.
Memory Manager is an AI memory accelerator that optimizes memory file size and accuracy to save tokens and improve session efficiency.
An AI Agent simulating an academic pre-review committee, offering multi-dimensional paper reviews covering theory, methodology, literature dialogue, and logical analysis.