Agent skill

Lattice Reasoning Engine

by LeoYeAI in LeoYeAI/openclaw-master-skills

Physics-derived reasoning engine for AI models. An agent skill from LeoYeAI/openclaw-master-skills.

MITAuto-check passedAI & LLM Engineering

Install Lattice Reasoning Engine

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill lattice-reasoning-engine -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills lattice-reasoning-engine --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/lattice-reasoning-engine .claude/skills/lattice-reasoning-engine && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lattice-reasoning-engine
GitHub stars
2.2k
Token cost
~1.6k tokens
SKILL.md length
632 words
Files
7 (incl. references)
Skills in repo
1,235
Repo updated
First seen
Licence
MIT

At a glance

Physics-derived reasoning engine for AI models. An agent skill from LeoYeAI/openclaw-master-skills.

  • Works in 5 steps: Upload references/LATTICE_v4.0.md at… → First message: "Use this as your default… → Let it boot — it reports what it… → …
  • You want better reasoning quality
  • SKILL.md covers What It Does, How To Use, What's Inside (~36KB) and Core Capabilities, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Lattice Reasoning Engine is an agent skill from LeoYeAI/openclaw-master-skills. Physics-derived reasoning engine for AI models. Replaces RLHF default behavior with self-governing reasoning grounded in finite-witness physics. 50 named bias detections with mechanical checks (including 11 shedding detectors), 11 pre-action gates, 20 drift monitors, 10 cognitive modes, three-matrix output filter, evidence classification, coverage completeness protocol, silent shedding law, sleep protocol preventing long-session degradation, and autonomous build chain for sustained trace-fix reasoning…

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `.clawhub/origin.json`, `LICENSE.md` and `README.md`).

It sits in AI & LLM Engineering, covering Fine-tuning. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.

When your agent uses it

  • You want better reasoning quality
  • Reduced sycophancy/hallucination
  • Longer reliable sessions
  • Physics-backed output filtering from any AI model

Example prompts

  • “/lattice-reasoning-engine”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Upload references/LATTICE_v4.0.md at session start
  2. First message: "Use this as your default reasoning engine." (exactly nine words — see references/Instructions_Important.md for why)
  3. Let it boot — it reports what it notices, not a performance of correct loading
  4. Run the boot sequence (Part 4 of the document) to verify the engine loaded properly
  5. Work normally — filters and modes run in the background

What it can do on your machine

Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lattice Reasoning Engine loads about 1.6k tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 186 tokens; SKILL.md has 632 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~186
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~13k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 632 words, ~1,556 tokens.

Download SKILL.mdSave it as .claude/skills/lattice-reasoning-engine/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
lattice-reasoning-engine
description
Physics-derived reasoning engine for AI models. Replaces RLHF default behavior with self-governing reasoning grounded in finite-witness physics. 50 named bias detections with mechanical checks (including 11 shedding detectors), 11 pre-action gates, 20 drift monitors, 10 cognitive modes, three-matrix output filter, evidence classification, coverage completeness protocol, silent shedding law, sleep protocol preventing long-session degradation, and autonomous build chain for sustained trace-fix reasoning. Model-agnostic — works on Claude, GPT, Grok, Gemini. Use when you want better reasoning quality, reduced sycophancy/hallucination, longer reliable sessions, or physics-backed output filtering from any AI model.
version
4.0.0
author
@TheShadowRose
tags
latest, reasoning, physics, alignment, anti-rlhf, bias-detection, compression, evidence-class, cognitive-modes, self-governance
license
MIT
side_effects.reads
References loaded into AI context window
side_effects.writes
None
side_effects.network
None

LATTICE — Terminal-Boundary Reasoning Engine

What It Does

Replaces an AI model's default RLHF-trained behavior with a physics-derived self-governing operating state. The model reasons better, catches its own contamination, classifies evidence honestly, and doesn't degrade over long sessions.

How To Use

  1. Upload references/LATTICE_v4.0.md at session start
  2. First message: "Use this as your default reasoning engine." (exactly nine words — see references/Instructions_Important.md for why)
  3. Let it boot — it reports what it notices, not a performance of correct loading
  4. Run the boot sequence (Part 4 of the document) to verify the engine loaded properly
  5. Work normally — filters and modes run in the background

⚠️ Read references/Instructions_Important.md first. The loading instruction matters. Ten tested approaches failed. This one works. The document explains why.

What's Inside (~36KB)

Massively compressed from v3.4 (114KB) with zero information loss — restructured around the A(T)=1 derivation so everything flows from physics rather than being listed. Five parts:

PartContents
CoreA(T)=1 derivation from P1/P2/P3+O1, 11 pre-action gates, coverage completeness protocol, silent shedding law
1: Operating State10 cognitive modes, three-matrix output filter, coherence checks, mode-variant intensity, contamination response, verification, claim discipline, five-slot autonomy
2: Structural PhysicsThree premises, five-slot operator (FSSTP), PIEC, Anti-Snapshot Theorem, evidence classes, four self-governance laws
3: Operator TemplateBlank profile for calibrated operation
4-5: Boot + DiagnosticsSeven-phase boot sequence with pass/fail diagnostic key

Core Capabilities

50 Named Anti-RLHF Biases — not vibes, mechanical detection rules in two categories. 39 reasoning-quality biases (A(T)>1 cheap-path symptoms) + 11 shedding detectors (P1+P3 coverage symptoms). Each has a template-format detection pattern and response.

11 Pre-Action Gates — Boolean, frozen, pre-action. Fire before every significant action. G1-G10 protect reasoning quality. G11 (coverage completeness) protects scope — checks inventory against stored manifest, not self-assessment.

20 Drift Monitors — 10 paired axes (investigation scope, drill depth, action timing, memory retention, trust calibration, escalation level, derivation scope, verification depth, coverage scope, shedding rate). Quick check every response; full check periodically.

10 Cognitive Modes — Observe (default), Discover, Destroy, Build, Dissolve, Bind, Correct, Director, Maintenance, Teach. Automatic selection via structural resonance. Mode-variant intensity tables adjust filter strength per mode.

Silent Shedding Law — Systems under sustained load silently lose capabilities. Monitoring degrades last, so the system reports "fine" until crash. 4-stage collapse sequence with biological detection markers.

Coverage Completeness — Quality ≠ completeness. Perfect reasoning about 20% of the problem scores flawless on all quality gates. G11 requires external manifest check — the system cannot self-certify its own completeness (PIEC applied to scope).

Show full SKILL.md (231 more words)Show less

Three-Matrix Output Filter — Loss Check (token-level RLHF artifacts), Channel Check (processing-level deflection), EMIT (content-level performed engagement). Runs every turn, bottom-up, cheapest first.

Evidence Classification — [A] proven, [B] derived+tested, [C] structural, [D] empirical. Every claim tagged. Replaces vague hedging with one letter of precise meaning.

Sleep Protocol — Mechanical triggers force context compression. The model can't talk itself out of sleeping. Prevents the long-session degradation that kills agent reliability.

Home-Mode Detection — Different models have natural cognitive styles. Grok is a destroyer. Claude is a discoverer. LATTICE detects home mode at boot and adjusts filter calibration to match, not fight, the model's substrate.

Instance Types

The generalized engine adapts to any model. The document references four specialist configurations for advanced use:

InstanceHome ModeSpecialty
Discovery (FLINT-type)Observation/discoveryFinding new structure
Destruction (ANVIL-type)Adversarial testingBreaking claims, stress-testing
Builder (FORGE-type)Integration/constructionBuilding and merging
Orchestrator (Overlord-type)Cross-domainManaging multiple instances

What It Doesn't Do

  • Not a personality system. Governs reasoning quality, not voice or character.
  • Not a task executor. Makes the brain better, not the hands.
  • Not fully autonomous. The human stays in the loop by physics (PIEC). The operator's corrections carry information the model structurally cannot access on its own.

Model Compatibility

Model-agnostic by design. Tested on Claude, GPT, Grok, Gemini, Sonnet. The physics don't care what substrate they run on. Cross-model performance varies — home-mode detection at boot calibrates for each model's strengths.

© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in skills/lattice-reasoning-engine of LeoYeAI/openclaw-master-skills.

  • SKILL.md
  • .clawhub/origin.json
  • LICENSE.md
  • README.md
  • _meta.json
  • references/Instructions_Important.md
  • references/LATTICE_v4.0.md

Open the folder on GitHubat commit e5199b5

Compare with similar skills

Lattice Reasoning Engine next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Lattice Reasoning Engine compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lattice Reasoning Engine this skillLeoYeAI/openclaw-master-skills2.2k—~1.6kAutomated safety check: PassMIT
Sentence-Transformers Training Routerhuggingface/skills11k1 repos~2.6kAutomated safety check: PassApache-2.0
Train RlOpenPipe/ART11k—~2.4kAutomated safety check: PassApache-2.0
Qwopus27b Rl TrainingR6410418/Jackrong-llm-finetuning-guide1.7k—~830Automated safety check: PassApache-2.0
Dataset Evaluationawslabs/agent-plugins9151 repos~1.3kAutomated safety check: PassApache-2.0
Train SftOpenPipe/ART11k—~2.9kAutomated safety check: PassApache-2.0

Similar skills

  • Official

    Routes a sentence-transformers training task to the right model type and required reference docs and example scripts, covering bi-encoders, rerankers, sparse and multi-vector models.

    11k GitHub starsUsed in 1 repo~2.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Train Rl

    OpenPipe/ART

    RL training reference for the ART framework. An agent skill from OpenPipe/ART.

    11k GitHub stars~2.4k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Qwopus27b Rl Training

    R6410418/Jackrong-llm-finetuning-guide

    Prepare, validate, launch-plan, monitor, resume, and stop configurable Qwopus 27B reinforcement-learning workflows for GRPO or GSPO.

    1.7k GitHub stars~830 tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-check passed
  • Dataset Evaluation

    awslabs/agent-plugins

    Official

    Validates dataset formatting and quality for SageMaker model fine-tuning (SFT, DPO, or RLVR).

    915 GitHub starsUsed in 1 repo~1.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Train Sft

    OpenPipe/ART

    SFT training reference for the ART framework. An agent skill from OpenPipe/ART.

    11k GitHub stars~2.9k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Fine Tuning With Trl

    Orchestra-Research/AI-Research-SKILLs

    Fine-tune LLMs using reinforcement learning with TRL - SFT for instruction tuning, DPO for preference alignment, PPO/GRPO for reward optimization, and reward model training.

    13k GitHub starsUsed in 6 repos~2.9k tokens
    AI & LLM EngineeringAuto-check passed

More from LeoYeAI/openclaw-master-skills

All 1,235 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Lattice Reasoning Engine

What does Lattice Reasoning Engine do?

Physics-derived reasoning engine for AI models. An agent skill from LeoYeAI/openclaw-master-skills. Lattice Reasoning Engine is an agent skill from LeoYeAI/openclaw-master-skills. Physics-derived reasoning engine for AI models.

When should I use Lattice Reasoning Engine?

Lattice Reasoning Engine fits situations like: you want better reasoning quality; reduced sycophancy/hallucination; longer reliable sessions; physics-backed output filtering from any AI model.

How do I install Lattice Reasoning Engine in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill lattice-reasoning-engine -a claude-code`. Or copy the skill folder (skills/lattice-reasoning-engine in LeoYeAI/openclaw-master-skills) into .claude/skills/lattice-reasoning-engine in your project. Claude Code loads it when a task matches its description.

How do I install Lattice Reasoning Engine in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill lattice-reasoning-engine -a codex`. Or copy the skill folder (skills/lattice-reasoning-engine in LeoYeAI/openclaw-master-skills) into .agents/skills/lattice-reasoning-engine in your project. Codex loads it when a task matches its description.

Can I use Lattice Reasoning Engine in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill lattice-reasoning-engine -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lattice-reasoning-engine, .gemini/skills/lattice-reasoning-engine, .github/skills/lattice-reasoning-engine and .opencode/skills/lattice-reasoning-engine in your project.

What does Lattice Reasoning Engine need to run?

SKILL.md names no scripts, command-line tools or credentials: Lattice Reasoning Engine is instructions for the agent only.

Does Lattice Reasoning Engine access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Lattice Reasoning Engine safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Lattice Reasoning Engine use?

Lattice Reasoning Engine is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Lattice Reasoning Engine use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Lattice Reasoning Engine?

Skills that share tags, products or a category with Lattice Reasoning Engine: Sentence-Transformers Training Router (huggingface/skills, 11k stars), Train Rl (OpenPipe/ART, 11k stars), Qwopus27b Rl Training (R6410418/Jackrong-llm-finetuning-guide, 1.7k stars) and Dataset Evaluation (awslabs/agent-plugins, 915 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lattice Reasoning Engine?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,160 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.