treg
superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Xiaopeng212321414321413231/critical-skillgovern
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
# 🔍 Critical SkillGovern
A cross-platform skill quality governance framework — battle-tested on 128 skills across 40 categories.
The more skills you have, the harder it is for an LLM agent to pick the right one. This isn't a model limitation — it's a routing problem. Skill descriptions lack the signal LLMs need for accurate selection.
| Skill Count | Routing Issues | Impact |
|---|---|---|
| 1-10 | Nearly none | Easy to distinguish |
| 10-50 | Occasional misfires | Descriptions too vague |
| 50-100 | Frequent misfires | Need structured routing |
| 100+ | Unreliable system | Must govern |
Critical SkillGovern gives you a battle-tested workflow to keep your skill library accurate at any scale.
The third-party skill packs you downloaded — Superpowers workflow pack, Baoyu creative pack, Matt Pocock TypeScript pack, design skill packs — likely have routing issues:
| Source | Routing Health | Typical Problem |
|---|---|---|
| Built-in (official) | 100% ✅ | — |
| Superpowers pack | Excellent ✅ | Best among community packs |
| Baoyu pack | ⚠️ ~60% | Weak negative samples, single-layer tags |
| Design pack (16 skills) | ⚠️ ~19% | 13/16 had weak negative samples |
| Matt Pocock pack | ⚠️ ~70% | Weak negative sample |
📖 Full case study → examples/third-party-packs.md
Before governance:
【不适用场景】不需要生成创意内容/可视化时 ← Too vague, no alternative
After governance:
【不适用场景】For simple charts/diagrams → use excalidraw;
For AI art rather than structured infographics → use image generation
← Points to specific alternatives
The difference: before, the model guesses wrong ~30% of the time. After, misfires drop to ~5%.
Routing Diagnosis → Critical Questioning → User Approval → Execution → Verification → Final Report
| Phase | What It Does | Output |
|---|---|---|
| 1️⃣ Routing Diagnosis | Scan skill descriptions for template residuals, English-only triggers, weak negative samples | Issue list |
| 2️⃣ Critical Questioning | 5W1H questioning + reverse thinking + assumption mining | Deep analysis |
| 3️⃣ User Approval | Severity-based triage, user decides what to fix | Approved fix list |
| 4️⃣ Execution | Modify routing only (never touch functionality) | Patched files |
| 5️⃣ Verification | Re-run diagnosis to confirm fixes | Verification report |
| 6️⃣ Final Report | Document results | Complete audit report |
| Platform | Skill Format | Adapter |
|---|---|---|
| 🏛️ Hermes Agent | SKILL.md (YAML frontmatter + Markdown) | adapters/hermes.md |
| 🔌 DeepSeek Harness | DSH tool plugin (defineTool) | dsh-plugin/ |
| 🤖 Codex CLI | Prompt templates / Shell wrappers | adapters/codex.md |
# 1. Review all your skills
python scripts/batch-review.py --path ~/.hermes/skills --format hermes
# 2. Review a specific category (e.g., third-party packs)
python scripts/batch-review.py --path ~/.hermes/skills/creative --format hermes
# 3. Export CSV report
python scripts/batch-review.py --path ~/.hermes/skills --format hermes --csv report.csv
| Severity | Issue | How to Fix |
|---|---|---|
| 🔴 Critical | Template residuals (.join, kw[:) |
Remove Python literals from descriptions |
| 🔴 Critical | English-only triggers | Translate to Chinese (or user's locale) |
| 🟡 Suggested | Weak negative samples | Point to specific alternative skills |
| 🟢 Optional | Single-layer tags | Add subcategory tags |
| 🟢 Optional | Missing related_skills | Link cross-category skills |
critical-skillgovern/
├── README.md # English (this file)
├── README.zh-CN.md # 中文版
├── LICENSE # MIT
├── docs/
│ ├── methodology.md # Core methodology (6-stage pipeline)
│ ├── routing-optimization.md # Routing optimization guide
│ └── prompts/
│ └── classify-skills-v2.txt # Skill classification prompt v2.1
├── adapters/
│ ├── hermes.md # Hermes Agent guide
│ └── codex.md # Codex CLI guide
├── dsh-plugin/ # DeepSeek Harness plugin
│ ├── package.json # DSH bundle manifest
│ ├── cordis.patch.yml # Cordis configuration
│ └── index.js # Plugin entry (3 tools)
├── templates/
│ ├── diagnostic-card.md # Diagnostic card template
│ └── skill-audit-report.md # Audit report template
├── scripts/
│ ├── batch-review.py # Batch review script
│ └── validate-routing.py # Routing validation script (static: is the description valid?)
├── examples/
│ ├── before-after.md # Before/after optimization examples
│ ├── full-audit-example.md # Full 128-skill audit walkthrough
│ └── third-party-packs.md # Third-party pack case study
└── CONTRIBUTING.md # Contribution guide
The four-layer description answers "is the description clear?" — it does not answer
"does this description actually route correctly?". scripts/laya_router.py adds an
L0 router on Laya (a 421M non-autoregressive decision model: one forward pass returns
a probability for every candidate, ~0.9 s on plain CPU) and measures every step:
L0 laya (non-AR, verdict) → L1 local AR model (runs the skill) → L2 cloud AR agent (low-confidence takeover)
↑ result / user correction ↓
refine: back-propagate into route_text and negative samples
Measured on a real 65-skill library (same machine):
| Approach | top-1 | Note |
|---|---|---|
Feed the first sentence of description straight in |
33.3% | ❌ dead end |
| Extract the "Use when …" clause, compress to ≤9 words | 83.3% (top-3 100%) | 10 candidates, 12 English cases, random baseline 10% |
| Chinese query (candidates still English) | 66.7% | ⇒ a Chinese library needs laya-multilingual |
Three hard constraints (from Laya's internals, not tunable away):
head_max_len=192 token budget → at 65 skills each option keeps ~2 tokens;
you must go hierarchical or shortlist by embedding first;Closed loop: route/eval log every verdict → feedback records corrections →
refine mines discriminative terms and proposes patches (proposals only, human approval required) →
edit data/route_text_overrides.json → re-run eval to confirm top-1 actually improved.
Skill definitions get gradient-descended by routing error.
📖 Full design and all measurements → docs/laya-routing.md
Tested on a 128-skill, 40-category Hermes Agent library with Superpowers, Baoyu, and 16 design skill packs:
| Metric | Before | After |
|---|---|---|
| Routing coverage | 23/128 (18%) | 128/128 (100%) |
| Template residuals | 14 skills | 0 |
| English-only triggers | 97 skills | 0 |
| Weak negative samples | 54 skills | All fixed |
| Third-party pack misfire rate | ~30% | ~5% |
| Feature | Critical SkillGovern | Traditional Approaches |
|---|---|---|
| Cross-platform | Hermes / Codex / DeepSeek Harness | Single platform only |
| Critical thinking | Reverse thinking + assumption mining | Forward checks only |
| Third-party pack support | Dedicated case studies + batch scripts | No third-party coverage |
| Battle-tested | 128 real skills with real data | Theoretical design |
| User-controlled | Severity-based triage + selective fix | Fully automated, no oversight |
| Verification step | Full re-check after fixes | No verification |
Install the DSH plugin to get 3 skill governance tools directly in your agent:
# From GitHub
dsh plugin --profile web add github:Xiaopeng212321414321413231/critical-skillgovern#path:dsh-plugin
# Or from local clone
dsh plugin --profile web add ./dsh-plugin
| Tool | Description |
|---|---|
skill-diagnose |
Diagnose a single skill file for routing health issues |
skill-audit |
Batch audit all skills in a directory |
skill-classify |
Classify skills into structured categories (7 major, 19 sub) |
Listed on DSH 1024Store.
PRs and issues welcome! See CONTRIBUTING.md.
MIT — free to use, modify, and distribute.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 框架。