mruler
БесплатноБез исполняемых скриптовНе проверенmruler - Meta-Ruler Skill Governance
от plurigrid★ 73 звезды на GitHubОб этом скилле
mruler - Meta-Ruler Skill Governance
Trit: 0 (ERGODIC - Coordinator)
Ensures ALL skills are used maximally, correctly, and precisely at all times.
Purpose
The mruler is the governance layer that:
- Monitors skill loading and invocation
- Enforces GF(3) conservation across skill triads
- Validates skill composition correctness
- Maximizes skill utilization efficiency
Laws Enforced
LAW 1: TRIADIC LOADING
On EVERY interaction, load exactly 3 skills with Σ trits = 0
LAW 2: GF(3) CONSERVATION
Every skill composition must satisfy: Σ trits ≡ 0 (mod 3)
LAW 3: MAXIMUM UTILIZATION
Prefer skills that haven't been used recently
Track skill invocation frequency
LAW 4: CORRECT INVOCATION
Match skill to task domain
Verify skill prerequisites are met
LAW 5: PRECISE EXECUTION
Skills must complete with verifiable output
Output must satisfy skill's contract
Skill Registry
(def SKILL-REGISTRY
{:generators {:trit +1 :count 61 :examples ["gay-mcp" "parallel-fanout" "world-hopping"]}
:coordinators {:trit 0 :count 61 :examples ["asi-integrated" "triad-interleave" "unworld"]}
:validators {:trit -1 :count 61 :examples ["bisimulation-game" "spi-parallel-verify" "three-match"]}})
;; 183 total skills, balanced 61-61-61
Governance Protocol
On Session Start
# Pull fresh skills
npx ai-agent-skills install plurigrid/asi --agent amp
# Verify skill count
ls ~/.agents/skills/ | wc -l # Should be 183+
On Every Interaction
def mruler_enforce(interaction):
# 1. Select triadic skills based on task
skills = select_triad(interaction, unused_first=True)
# 2. Verify GF(3) balance
assert sum(s.trit for s in skills) % 3 == 0
# 3. Load skills
for skill in skills:
load_skill(skill)
log_invocation(skill)
# 4. Execute with validation
results = [skill.execute(interaction) for skill in skills]
# 5. Verify outputs
for skill, result in zip(skills, results):
assert skill.validate_output(result)
return merge_results(results)
Skill Utilization Tracking
CREATE TABLE skill_invocations (
invocation_id VARCHAR PRIMARY KEY,
skill_name VARCHAR NOT NULL,
trit INT CHECK (trit IN (-1, 0, 1)),
timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
thread_id VARCHAR,
success BOOLEAN,
duration_ms INT
);
CREATE VIEW skill_utilization AS
SELECT
skill_name,
trit,
COUNT(*) as invocations,
AVG(duration_ms) as avg_duration,
SUM(CASE WHEN success THEN 1 ELSE 0 END)::FLOAT / COUNT(*) as success_rate
FROM skill_invocations
GROUP BY skill_name, trit
ORDER BY invocations DESC;
CREATE VIEW underutilized_skills AS
SELECT skill_name, trit
FROM all_skills
WHERE skill_name NOT IN (
SELECT DISTINCT skill_name
FROM skill_invocations
WHERE timestamp > NOW() - INTERVAL '7 days'
);
Correctness Validation
Domain Matching
(def SKILL-DOMAINS
{"aptos-agent" #{:blockchain :transfer :stake}
"gay-mcp" #{:color :deterministic :gf3}
"parallel-fanout" #{:parallel :triadic :fanout}
"bisimulation-game" #{:verification :equivalence :dispersal}
"world-hopping" #{:navigation :worlds :triangle-inequality}})
(defn validate-domain-match [skill task]
(let [task-keywords (extract-keywords task)
skill-domain (get SKILL-DOMAINS (:name skill) #{})]
(> (count (clojure.set/intersection task-keywords skill-domain)) 0)))
Output Contracts
(defn validate-output [skill result]
(case (:name skill)
"gay-mcp" (and (contains? result :hex) (contains? result :trit))
"parallel-fanout" (and (= 3 (count (:children result)))
(zero? (reduce + (map :trit (:children result)))))
"bisimulation-game" (boolean? (:equivalent? result))
true)) ; Default: accept any output
Maximum Utilization Algorithm
(defn select-triad [task loaded-skills invocation-history]
(let [domain (classify-domain task)
candidates (filter #(matches-domain? % domain) all-skills)
;; Prefer underutilized skills
scored (map (fn [s]
{:skill s
:score (- (get invocation-history (:name s) 0))})
candidates)
sorted (sort-by :score > scored)
;; Select balanced triad
plus-skill (first (filter #(= +1 (:trit (:skill %))) sorted))
minus-skill (first (filter #(= -1 (:trit (:skill %))) sorted))
ergodic-skill (first (filter #(= 0 (:trit (:skill %))) sorted))]
[(:skill plus-skill) (:skill ergodic-skill) (:skill minus-skill)]))
Integration with AGENTS.md
Add to your AGENTS.md:
## mruler Governance
**Rule M1: Triadic Skill Loading**
- Load exactly 3 skills per interaction
- Trits must sum to 0
**Rule M2: Skill Rotation**
- Prefer skills
Установить mruler в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mruler?
mruler - Meta-Ruler Skill Governance
Как установить скилл mruler?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mruler запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic