hos-xrg-loop
Self-Stabilizing Engineering System — Extended Recursive Generation Loop with dynamic goal adjustment, value density control, and reality feedback loop
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Self-Stabilizing Engineering System — Extended Recursive Generation Loop with dynamic goal adjustment, value density control, and reality feedback loop
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
对任意技术对象(GitHub 项目/论文/技术文章/产品方案/License/数据集)执行六维批判式评审:拆解主张、攻击实验与方法漏洞、证据校验、专家评分,输出 Quick/Expert/Academic 报告。触发时机:用户要求点评/批判/审计/毒舌评价/评审/打分任何技术对象,或说「这个项目/论文/方案靠不靠谱」「值不值得学/投/用」「帮我审一下」「毒舌点评一下」,或调用 hos-critic-review。
HOS 自动化工作流 — 基于 Dify 平台的 AI 报告撰写自动化工具
Structured prompt engineering framework with JSON templates for generating standardized, reusable AI prompts across diverse scenarios including articles, exams, projects, security, and operations.
人机验证通行技能 — 安全测试中的人机识别与验证机制研究
方法论驱动的 AI 原生安全测试引擎
AI 原生产品工程技能系统 — 四技能集成,最小化 Token 成本、上下文爆炸和维护负担
| name | HOS-XRG-Loop |
| version | 2.0.0 |
| description | Self-Stabilizing Engineering System — Extended Recursive Generation Loop with dynamic goal adjustment, value density control, and reality feedback loop |
| author | HOS Team |
| tags | ["engineering-loop","goal-management","value-density","self-stabilization","git-workflow"] |
| compatibility | ["claude-code","cursor","windsurf","github-copilot","trae-cn"] |
| license | MIT |
| metadata | {"category":"engineering-workflow","subCategory":"development-loop","risk-level":"low","confidence":0.9} |
Self-Stabilizing Engineering System — Extended Recursive Generation Loop++ (Engineering-Stable Edition) Core Philosophy: Upgrade from rule-driven to goal dynamic adjustment + value density control + reality feedback loop self-stabilizing engineering system.
┌────────────────────┐
│ Goal Tree Layer │ L0: Intent Layer
│ (动态目标树) │
└────────┬───────────┘
↓
┌────────────────────┐
│ Execution Engine │ L1: Execution Layer
│ (CVS Scoring) │ (Commit Value Score)
└────────┬───────────┘
↓
┌────────────────────┐
│ Reality Validator │ L2: Reality Layer
│ (Execution Score) │ (现实反馈闭环)
└────────┬───────────┘
↓
┌────────────────────┐
│ Git Loop Controller │ 迭代控制器
└────────────────────┘
Goals are no longer static — they are a Goal Tree with weights that auto-adjust based on reality feedback:
root — Top-level mission (immutable)branches — Goal branches with adjustable weightsEvery commit must pass CVS (Commit Value Score) evaluation:
CVS = Impact × Clarity × Reversibility ÷ Complexity
CVS < threshold → commit rejected
After each commit, validate three things:
Reality Score continuously declining → automatic rollback
1. Read Goal Tree → Load current goal weights
2. Analyze Git State → Analyze repo state and drift
3. Generate Candidate Patch → Generate candidate changes
4. Compute CVS → Value density scoring
5. If CVS < threshold → Reject, regenerate
6. Apply Patch → Execute changes
7. Run Reality Validator → Reality validation
8. Update Goal Tree weight → Goal weight self-adjustment
9. Check Complexity Debt → Complexity debt check
10. Decide Next Iteration → Continue or enter CLEAN MODE
| Mechanism | Description |
|---|---|
| Anti-Drift Preemption | Predict drift probability before commit, not post-detection |
| Goal Weight Auto-Adjust | Reality Score drives dynamic goal weight adjustment |
| Complexity Debt System | Each commit accumulates complexity debt; force CLEAN MODE when threshold exceeded |
| Reality Rollback | Reality Score continuously declining → automatic rollback |
HOS-XRG-Loop/
├── CLAUDE.md # Skill definition
├── SKILL.md # This file — standardized skill entry
├── README.md # Project overview
├── xrg_loop++.sh # Main entry script
├── config/
│ ├── goal_tree.yaml # Initial goal tree definition
│ └── settings.yaml # System config (thresholds, weights, etc.)
├── lib/
│ ├── intent_layer.sh # L0: Goal tree management
│ ├── execution_layer.sh # L1: CVS scoring
│ ├── reality_layer.sh # L2: Reality validator
│ ├── anti_drift_preempt.sh # Drift prevention engine
│ ├── complexity_debt.sh # Complexity debt tracking
│ └── loop_controller.sh # Git iteration controller
└── state/
├── goal_weights.json # Current goal weights (real-time state)
├── complexity_debt.json # Complexity debt state
├── reality_history.json # Reality Score history
└── cvs_history.json # CVS scoring history
# Start full loop
./xrg_loop++.sh
# Single step execution
./xrg_loop++.sh --step
# Force enter CLEAN MODE
./xrg_loop++.sh --clean
# View current status
./xrg_loop++.sh --status
# View CVS history
./xrg_loop++.sh --cvs-history
# Manual rollback to specific commit
./xrg_loop++.sh --rollback <commit-hash>