Logotipo de Self Governance

Self Governance

Comunidad
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.

Descripción general

Editordavisjam
Repositoriomodel-based-agentic-software-engineering
Nombre de la habilidadself-governance
Estrellas
27
Forks
1
Archivos incluidos
88
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • 88 archivos incluidos

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por davisjam en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Self Governance en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/davisjam/model-based-agentic-software-engineering/tree/main/plugin/mage/skills/self-governance
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Self Governance en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Self Governance automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Self Governance no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Se ofrecen como archivos de lectura y nunca se ejecutan.

y 28 archivos más.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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...

¿Por qué usar Self Governance en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Self Governance está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Self Governance en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/davisjam/model-based-agentic-software-engineering/tree/main/plugin/mage/skills/self-governance. TypingMind lee su archivo SKILL.md, empaqueta sus archivos y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Self Governance?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Self Governance?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Self Governance con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Self Governance?

Sí. davisjam la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇