dsh-meta-theory: Define Methodology Before Starting, Validate Quality After Completion

Introduction

The core philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” Developers can combine capabilities into workflows as easily as stacking building blocks. The problem is that having the tools alone isn’t enough — models interpret tasks literally and deliver results that are neatly formatted but, to a domain expert, fail to meet established standards.

Consider the same request: “Help me figure out which team is more likely to win.” A casual prompt yields an intuitive guess. But if you model goal counts with a Poisson distribution, handle the non-integrable parts with Monte Carlo sampling, and run a sensitivity check, you get a probability distribution that can be verified, re-computed, and used to pinpoint where assumptions break down. The difference isn’t a smarter model — it’s a more professional question.

Most people don’t name the method, and if they don’t know that a domain has mature approaches, they won’t mention them at all. wangbulinxi/dsh-meta-theory fills exactly this gap: before starting work, it maps the task onto the methodological framework of the relevant domain; after the work is done, it checks back to verify whether those methods were actually applied or whether a few buzzwords were just dropped at the top.

What It Is

This is a workflow plugin developed by maintainer wangbulinxi, currently at 0 stars. Its core value: before the AI starts working, it translates your request into the mature methodology of the relevant domain. Before kickoff, it defines the primary and auxiliary theories and lays out their combination chain. After the output is written, it validates the result against 8 failure modes, item by item.

The plugin is named dsh-meta-theory. Its directory page matches the GitHub repository URL. Category: workflow.

Core Functions

It does three things for you.

Deciding Whether Methodology Should Be Invoked

Casual chat, translating a paragraph, fixing a typo, or when you explicitly say “just execute it” — all of these are skipped. Tasks that genuinely require judgment (evaluation, creation, decision-making, planning, solution design, diagnosis) proceed to the next step. There are only four exemption conditions; everything else goes through the process regardless of how the model is feeling that day.

Skeleton, Not Platitudes

The output consists of three elements:

  • Three identification questions for the primary theory (which one most directly describes the core object, which can stand independently, which determines the overall structure)
  • Three gates for each auxiliary theory (which gap it fills, which step it changes, what gets missed if it’s removed)
  • A directly usable output template

At most two auxiliary theories. If one covers the full scope, a second isn’t added.

Verifying Quality After Writing

It turns the skill’s self-check list into executable validation. Is the primary theory missing? Do the auxiliary theories have only names without passing the three gates? Are two or more theories actually linked into a chain? Are the preconditions and constraints stated? Each item is judged, scored, and flagged with mandatory fixes. The evaluation criteria are written into the code — it doesn’t rely on the model’s self-awareness.

Tools

Tool Purpose Key Parameters
meta_theory_brief Pre-kickoff: determine exemptions; if not skipped, produce the skeleton task, domain, followUp
meta_theory_check Validate a theory tree against 8 failure modes main, aux, linkage, limits
meta_theory_status Actual placement status across plugin / skill / rules —
meta_theory_rule Output rule text; write:true writes into AGENTS.md write

aux accepts two formats. The pipe-delimited string is the most concise. Field order is “name | which gap it fills | before/during/after the primary theory | what’s missed without it”:

Monte Carlo|use sampling to obtain distribution when the model has no closed-form solution|after the primary model|cannot obtain distribution when direct integration is not possible

A real validation return (poor tree): ok:false, score:35, with itemized findings — “Monte Carlo: missing ‘which gap it fills’,” “missing ‘before/during/after the primary theory’,” “missing ‘what’s missed without it’,” plus “missing preconditions/constraints.” After filling in all three gaps, the same input returns ok:true, score:100.

Commands

Command Purpose
/meta Overview of placement status across all three locations
/meta-skill Reinstall skill files (backs up manually modified versions before overwriting)
/meta-rule Write rules into ~/.dsh/AGENTS.md; backs up first, doesn’t append duplicates if already present

Installation & Activation

Local directory (development):

dsh plugin --profile desktop add link:D:/DeepSeek-Work/dsh-meta-theory

tgz from Releases:

dsh plugin --profile desktop add https://github.com/<owner>/dsh-meta-theory/releases/download/v0.1.0/dsh-meta-theory-0.1.0.tgz

npm (after publishing):

dsh plugin --profile desktop add dsh-meta-theory

After installation, restart DSH. The tools appear in the session, and the commands appear in the input box.

Placement & Idempotency

  • Skill file: On apply, the bundled assets/SKILL.md is idempotently placed at ~/.dsh/skills/meta-theory/SKILL.md. If the target doesn’t exist, it’s installed. If the content hash matches a known version of this plugin, it’s upgraded. If the hash doesn’t match (you’ve manually edited it), it’s skipped and reported in the status — never overwritten.
  • AGENTS.md: If ## 11. Theory Preflight already exists, it’s skipped. On first write, a .bak-<timestamp> backup is generated.
  • Data directory ~/.dsh/meta-theory/: state.json plus a bounded log.jsonl (auto-truncated to 300 lines when exceeding 500).

Validation Criteria

Errors (ok=false, must be fixed):

  • E_MAIN_MISSING — Primary theory is missing
  • E_AUX_NAME_MISSING — Auxiliary theory has no name
  • E_AUX_MISSING_GAP — Missing “which gap it fills”; fails the gap test
  • E_AUX_MISSING_WHEN — Missing “before/during/after”; cannot establish a chain
  • E_AUX_MISSING_LOSS — Missing “what’s missed without it”; fails the removal test
  • E_LINKAGE_MISSING — Two or more theories but no combination chain

Warnings (non-blocking, but flagged):

  • W_AUX_OVER_BUDGET — More than 2 auxiliary theories
  • W_AUX_DUPLICATE / W_AUX_SAME_AS_MAIN — Duplicates within the same layer
  • W_LINKAGE_NO_ORDER — Chain missing an ordering indicator
  • W_LIMITS_MISSING — Missing preconditions/constraints

Having only a primary theory with zero auxiliary theories is valid. The skill itself permits zero auxiliary theories, so it won’t be flagged as a failure. This is intentional: no padding just to look complete.

Plugin Contract

  1. Tools must include output { schema, render }. Otherwise tools.register() throws an exception that gets silently swallowed, and the symptom is “plugin loaded successfully but zero tools.”
  2. During apply(), the tools service may not yet be ready: listen for internal/service with a 1.5-second retry timer, giving up after 12 attempts.
  3. Tool return values must be lossless JSON: undefined/BigInt/circular references will fail the entire call. Everything goes through toLossless().
  4. Do not declare dsh.client, so exports["./client"] is not needed. Missing this paired contract triggers host self-healing and clears the plugin layer in the profile.
  5. On Windows, all file writes must be UTF-8 without BOM: a BOM will cause the profile’s package.json to fail parsing.

Relationship to Skills

The skill defines “how to write”; the plugin defines “whether to write it, whether the output meets the bar, and whether it’s actually installed.” If the machine also has theory-term-injection (post-hoc prompt rewriting by terminology) and meta-knowledge-lookup (term lookup) installed, the priority is stated in the skill body under the section “Division of Labor with Installed Skills”: pre-kickoff navigation goes through this skill; only if the output still falls short after production is the injection method used; term lookup is demoted to an internal action.

Applicable Scenarios

Suited for evaluation, creation, decision-making, planning, solution design, and diagnosis tasks where requirements need to be translated into a standardized methodology. The plugin runs with the current DSH process privileges. Check the source code and license before installing.

Short Closing

Let the AI translate your requirements into the mature methodology of the relevant domain before it starts working. After writing, validate against 8 failure modes item by item to prevent piling up theoretical jargon without changing the actual approach. Directory page: https://www.skillhub.cn/plugins/wangbulinxi/dsh-meta-theory, GitHub: https://github.com/wangbulinxi/dsh-meta-theory.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye