Logo vun Self Governance

Self Governance

Communautéit
davisjam
self-governance

Apply MAGE to your own engineering work — the capstone mastery-skill of the method. Recognize the engineering situation, decide what to model and what to make authoritative, choose an engineering move, invoke a capability, act through the governed engineering environment, weigh the evidence, and convert durable lessons into engineering capital. This is the routing layer: it names the eight questions an engineering agent faces and sends each to the facet that owns it (model repertoire, engineering moves, situation recognition, judgment, system model-access, capability selection, alignment mechanisms, governance conversion). Two standing procedures live under it: AUDIT (survey a repo for missing guardrails and propose a prioritized adopt/adapt/skip plan) and INTERPRET-FAILURE (a failure just recurred — classify the class and convert it into a durable control: a constraint, sensor, validator, or gate). Use at DESIGN time — reviewing a new subsystem, state machine, queue, cross-service seam, or data model; or introducing concurrency, a trust boundary, an irreversible operation, or duplicated state/logic — to catch predictive smells whose failure class can be prevented by construction. Use when hardening an agent-collaborative codebase, reducing recurring agent-caused regressions, setting up guardrails / lints / gates / typed seams, reviewing governance posture, or when a failure class just recurred and should be prevented structurally, not only patched.

Iwwersiicht

Editeurdavisjam
Repositorymodel-based-agentic-software-engineering
Skill-Nummself-governance
Stären
27
Forks
1
Matgeliwwert Fichieren
88
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 88 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum davisjam op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Self Governance an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/davisjam/model-based-agentic-software-engineering/tree/main/plugin/mage/skills/self-governance
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/davisjam/model-based-agentic-software-engineering.git /tmp/model-based-agentic-software-engineering
mkdir -p .claude/skills
cp -r /tmp/model-based-agentic-software-engineering/plugin/mage/skills/self-governance .claude/skills/self-governance
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Self Governance an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Self Governance automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Self Governance net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Self-Governance

This skill applies MAGE to the agent's own engineering work. It carries the modeling repertoire, the engineering moves, the Alignment mechanisms, and the judgment to choose among them — and it composes model providers and other skills to act. It is a router, not a manual: each facet below owns one question, and this file sends you to the right one.

The engineering loop

Everything here supports one loop. Run it whenever you engineer.

       recognize the situation
                 |
         what do I need to know?
          /                    \
     MODEL                    ALIGN
   what is missing?        what must hold?
          \                    /
           choose an engineering move
                 |
           choose a capability
                 |
            act through the GEE
                 |
             weigh the evidence
          /                    \
     success                 failure
        |                        |
     continue                 diagnose
                                 |
                          durable lesson?
                           /          \
                          no          yes
                          |            |
                        repair     capitalize

MODEL and ALIGN are the two — and only two — MAGE activities. Modeling makes engineering knowledge explicit; Alignment gives that knowledge authority. Self-Governance is not a third activity beside them; it is the discipline of applying both to your own work.

When failure means a generate-evaluate loop is not converging rather than a single action was wrong, practice/judgment.md ("When search stalls") diagnoses which ingredient — searcher, model, oracle, or target — is missing before you add more of anything.

What this skill establishes

  • Self-Governance applies MAGE to the work. It is the method turned on the agent's own engineering, not a separate practice.
  • Modeling and Alignment remain the two activities. Self-Governance is not a third one.
  • The skill knows the method; model providers know the system. Concrete system truth — what this codebase intends, contains, and guarantees — arrives through providers, never from memory. See system/model-access.md.
  • Specialized capabilities come through other skills. Self-Governance chooses the move; a specialized skill executes it. See skills/repertoire.md.
  • Consequential action stays bounded by the GEE. Self-Governance supplies judgment; the governed engineering environment supplies authority. A move becomes consequential only through that environment — never by the skill asserting its own output is safe.
  • Self-Governance is not Self-Operate. This skill engineers and improves the environment; it does not run operational lifecycles. When the task is to execute or recover one, cross the boundary to the operate skill.
  • Self-Governance is not self-certification. The agent may learn to govern its work; it does not thereby become the authority that certifies that work. Guardrails are proposed and scaffolded, then handed to a human or the harness — never claimed as enforced when only recommended.

Routing table

Name the question you face; go to the facet that owns it. Consult one; it points onward.

QuestionConsult
What situation am I in?practice/situations.md
What kind of model could help?modeling/repertoire.md
How should the representation improve?modeling/moves.md
Which move is warranted among alternatives?practice/judgment.md
What is true of this system?system/model-access.md
What capability performs the move?skills/repertoire.md
How should intent acquire authority?alignment/repertoire.md
What should persist from this event?learning/governance-conversion.md
How do I execute an operational lifecycle?the self-operate skill (you have crossed this skill's boundary)

The last row matters as much as the rest. Self-Governance must recognize when a task is operating the environment rather than engineering it, and hand off. A meaningful operational observation that comes back the other way — a recurring or structural weakness surfaced while operating — re-enters the loop here as a fresh engineering cycle.

Ambient stance

Read principles.md — the portable engineering principles this skill operates by (the generated mirror of the Davis AI-First Engineering Method). It is the standing stance while this skill is loaded: verify rather than trust stale claims, name shapes in types, surface load-bearing calls instead of swallowing them, right-size every fix, and care with irreversible operations. Do not restate it here; the facets cite the specific reflex each relies on.

The two standing procedures

Both live in learning/governance-conversion.md — they are how the loop's capitalize branch runs in practice:

  • AUDIT — survey a repo for missing guardrails and propose a prioritized adopt / adapt / skip plan. Its design-time trait scan is situation-recognition; consult practice/situations.md for the smell catalogue.
  • INTERPRET-FAILURE — a failure recurred; classify the class and convert it into a durable control (constraint / sensor / validator / gate), following alignment/repertoire.md.

Notes

  • Partner skills — three lenses on one environment. Self-Governance engineers the environment; self-operate runs its operational lifecycles and returns evidence when reality exposes a deficiency; self-communicate supplies the craft for the representations both produce. They are orthogonal, not isolated. Each is recorded as a capability in skills/repertoire.md — consult it for when to invoke which.
  • Beware the tower of governance. The primary failure mode of this skill is minting mechanisms faster than they earn their keep. Default to skip; proportion governance to the operation. The tradeoff belongs to practice/judgment.md — a mechanism you cannot attach to a real, recurring failure is one the repo does not need, even when the user asks for more.

Local adapter (plug points)

This skill is installed from its upstream source and refreshed in place (bundle_skill.py --install / --refresh). A refresh overwrites every upstream file, so put your local additions where the refresh never looks. Two adopter-owned surfaces, disjoint from the upstream set by naming alone:

  • File overlays — for a listed upstream file, create the named *.local.md sibling. The agent reads it as an APPEND after the upstream file. There is no override mode — replacing an upstream file wholesale is a fork, out of scope for the adapter. Declared overlays:
    • principles.md → principles.local.md — your house operating principles, appended to the portable method.
  • Directory drop-in — any file you place under local/ is adopter-owned: the agent reads it on the topic it names, and upstream never ships into local/. Use it for a standalone house note this skill does not already carry.

A refresh never reads, writes, or deletes a *.local.md file or anything under local/, so your local tinkering survives every upstream update untouched.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

a weider 28 Fichieren.

Heefeg gestallte Froen

Wat mécht de KI-Skill Self Governance?

Apply MAGE to your own engineering work — the capstone mastery-skill of the method. Recognize the engineering situation, decide what to model and what to make authoritative, choose an engineering move, invoke a capability, act through the governed engineering environment, weigh the evidence, and convert durable lessons into engineering capital. This is the routing layer: it names the eight questions an engineering agent faces and sends each to the facet that owns it (model repertoire, engineering moves, situation recognition, judgment, system model-access, capability selection, alignment me...

Firwat Self Governance op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Self Governance besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Self Governance an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/davisjam/model-based-agentic-software-engineering/tree/main/plugin/mage/skills/self-governance an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Self Governance benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Self Governance benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Self Governance domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Self Governance gratis?

Jo. De Skill gëtt vum davisjam ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇