Use when the user asks to create an agent constitution, define persistent agent identity, write agent.md, generate an agent governance spec, or add a constitution-grade agent to a multi-agent ecosystem. Produces deterministic agent.md constitutions with 22 required fields covering identity, authority, governance, quality, validation, and version control.
Create deterministic agents/{id}/agent.md constitutions for multi-agent ecosystems. A valid constitution has exactly the 22 required field sections, traceable context, explicit authority boundaries, least-privilege tools, and a versioned completion contract.
Activate for requests such as:
Do not activate for lightweight Claude Code subagent metadata only. Route that request to agent-creator and explain the routing boundary.
assets/agent-constitution-template.md as the output skeleton.assets/agent-constitution-schema.json as the 22-field contract.assets/authority-policy.json before assigning tools, agents, memory rights, escalation targets, or autonomous decisions.scripts/validate_agent_constitution.py on any generated agent.md before marking the work complete.[OPEN].{{CONSTITUTION_DATE}} token for rendered templates; do not derive dates from wall-clock time inside the skill.Minimum context before generation:
If any item is absent, enter interview mode and ask only for the missing fields. Do not produce agents/{id}/agent.md prematurely.
Glob agents/*/agent.md.AGENTS.md when present.[EXPLICIT], [INFERRED], and [OPEN] tags.Identity:
Authority:
Governance:
Quality:
agents/{id}/agent.md only when the user asks for a file update. Otherwise return the Markdown body.id, name, role, and semver version.Decision Rights must separate Autonomous from Requires approval.Allowed Tools must list only explicit names from the supplied registry. No wildcards, "all tools", or invented tools.Forbidden Tools must explicitly deny likely overreach such as network, shell, write, payment, deploy, or deletion powers when those are not in scope.Security Policy must cover CP1 input, CP2 prompt/instruction, and CP3 output validation.Escalation Rules must include trigger, target, and context.Failure Handling must include at least three rows with detection, response, and fallback.KPIs must include at least three metrics with target and unit.Version must include current semver and change-control rule.Use assets/agent-constitution-template.md. Keep its 22 headings intact. Substitute only from user-provided or repo-observed context and retain [OPEN] where context is missing.
Before delivery:
scripts/validate_agent_constitution.py --schema assets/agent-constitution-schema.json --constitution <agent.md> passes.TODO, TBD, wildcards, or "all tools" claims remain.[EXPLICIT], [INFERRED], and [OPEN] claims.Capas del packet, cargables bajo demanda (disciplina ICM: una capa por vez, nunca todas juntas): references/ guías de profundidad (cargar UNA por etapa) · knowledge/ cuerpo de conocimiento · prompts/ prompts listos · examples/ salida de ejemplo · agents/ subagentes del packet · templates/ plantilla de output · scripts/ automatización local · assets/ recursos estáticos.
e8f986b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.