# Skills, plugins and prompt governance

Treat agent instructions and tools as governed dependencies, with selective loading, token budgets, permission boundaries and measurable routing quality.

Author: Murali Sid (https://linkedin.com/in/muralisid)
Source: https://www.agenticarchitectureskills.com/factory/skills-governance
Published: 2026-11-02
Updated: 2026-11-02
Licence: CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/
Cite as: Murali Sid. Skills, plugins and prompt governance. Agentic Architecture Skills. https://www.agenticarchitectureskills.com/factory/skills-governance

---


Skills and plugins improve repeatability by supplying instructions, references, scripts and tools. They also add instruction load, context competition, executable behaviour and a software supply chain.

<ConceptVisual variant="skills" />

## Separate the loading stages [#separate-the-loading-stages]

<SectionVisual
  title="Progressive disclosure protects the working context"
  caption="Load enough information to choose well, then retrieve only what the task needs."
  layout="flow"
  items="[
  { label: &#x22;Discover&#x22;, detail: &#x22;Expose concise names, descriptions and routing conditions.&#x22;, output: &#x22;Candidate skills&#x22; },
  { label: &#x22;Activate&#x22;, detail: &#x22;Load the selected skill's complete operating instructions.&#x22;, output: &#x22;Task method&#x22; },
  { label: &#x22;Retrieve&#x22;, detail: &#x22;Bring in only relevant references, examples and templates.&#x22;, output: &#x22;Focused context&#x22; },
  { label: &#x22;Execute&#x22;, detail: &#x22;Call approved tools within identity, sandbox and policy boundaries.&#x22;, output: &#x22;Controlled result&#x22; }
]"
/>

1. Discovery loads short names and descriptions.
2. Activation loads one focused instruction file.
3. Reference loading retrieves only the material required for the task.
4. Tool use occurs through approved permissions and sandboxes.

Installing a library does not require every skill body or reference to enter each model call. Broad descriptions, overlapping triggers and instructions that demand early activation defeat progressive disclosure.

Treat routing metadata as a designed interface. A description should state what the skill does, when it applies and important exclusions. Test it against neighbouring skills before publication. Activation then loads one coherent method, not fragments from several approaches that disagree about planning, review or completion.

For a document task, discovery might expose document, spreadsheet and presentation skills. The document skill activates only after the file type and requested outcome match. It then retrieves the rendering reference because visual verification is needed, without loading unrelated material.

## Set explicit budgets [#set-explicit-budgets]

<SectionVisual
  title="Budget the complete context envelope"
  caption="Prompt complexity accumulates across instructions, references, tools, history and retries."
  layout="stack"
  items="[
  { label: &#x22;Fixed context&#x22;, detail: &#x22;System rules, enterprise policy and application constraints.&#x22;, output: &#x22;Mandatory base&#x22; },
  { label: &#x22;Selected method&#x22;, detail: &#x22;Activated skills, task references and tool schemas.&#x22;, output: &#x22;Working instructions&#x22; },
  { label: &#x22;Task state&#x22;, detail: &#x22;User material, repository context, memory and tool results.&#x22;, output: &#x22;Current evidence&#x22; },
  { label: &#x22;Execution reserve&#x22;, detail: &#x22;Reasoning, generated artefacts, retries and compaction recovery.&#x22;, output: &#x22;Completion capacity&#x22; }
]"
/>

Budget and observe:

* Discovery tokens
* Activated skill instructions
* Reference and repository context
* Tool-schema descriptions
* Conversation and tool results
* Generated specifications, plans and reviews
* Subagent calls, retries and compaction

Prompt caching can reduce repeated compute. It does not remove instructions from context or resolve conflicting directions.

Set budgets by workload and measure actual use. Reserve enough capacity for the work product and verification before loading optional guidance. When the envelope is exceeded, prefer better routing, summarized stable state, smaller references or a clean task restart. Silently truncating the oldest context can remove decisions and create an apparently coherent but incorrect result.

Track tokens alongside quality, latency and cost per resolved outcome. A smaller prompt that produces more retries or human repair is not more efficient. A larger, focused context may be justified when it materially improves a consequential decision.

## Treat skills as dependencies [#treat-skills-as-dependencies]

<SectionVisual
  title="Manage instruction packages through a supply-chain lifecycle"
  caption="A skill can change decisions and execute code, so provenance and removal matter."
  layout="flow"
  items="[
  { label: &#x22;Intake&#x22;, detail: &#x22;Identify source, owner, licence, contents, requested tools and update path.&#x22;, output: &#x22;Dependency record&#x22; },
  { label: &#x22;Review&#x22;, detail: &#x22;Inspect instructions, scripts, references, permissions and data movement.&#x22;, output: &#x22;Approved scope&#x22; },
  { label: &#x22;Pin&#x22;, detail: &#x22;Use a known version and digest in the active configuration.&#x22;, output: &#x22;Reproducible load&#x22; },
  { label: &#x22;Monitor and remove&#x22;, detail: &#x22;Detect change, vulnerabilities and misuse; support disablement and rollback.&#x22;, output: &#x22;Controlled lifecycle&#x22; }
]"
/>

* Use an approved internal catalogue.
* Pin versions and digests.
* Review instructions, references, scripts, tools and network use.
* Keep a bill of materials for the active agent configuration.
* Record which skills and references activated during a run.
* Sandbox scripts and apply least privilege.
* Provide removal, rollback and emergency disablement.

The review depth follows capability. A prose-only style guide needs different assurance from a skill that runs scripts, reads credentials or sends network requests. Transitive dependencies and installation hooks are part of the review. Catalogue approval should name allowed environments and data classes, not imply unrestricted enterprise use.

At runtime, record the active skill versions and important references alongside the task evidence. When an incident or regression appears, operators can identify affected runs, disable the package and reproduce the configuration. Updating a package re-enters testing when routing, instructions, scripts or permissions change.

## Test routing and conflict [#test-routing-and-conflict]

<SectionVisual
  title="Routing tests include success, restraint and disagreement"
  caption="A skill is reliable only when it activates for the right work and stays absent elsewhere."
  layout="grid"
  items="[
  { label: &#x22;Positive&#x22;, detail: &#x22;Representative tasks should select the skill and complete its required workflow.&#x22;, output: &#x22;Recall&#x22; },
  { label: &#x22;Near miss&#x22;, detail: &#x22;Similar but excluded tasks should not select it.&#x22;, output: &#x22;Precision&#x22; },
  { label: &#x22;Multi-intent&#x22;, detail: &#x22;Tasks needing several capabilities should load them in a coherent order.&#x22;, output: &#x22;Composition&#x22; },
  { label: &#x22;Conflict&#x22;, detail: &#x22;Overlapping instructions should resolve through explicit precedence or removal.&#x22;, output: &#x22;Stable behaviour&#x22; }
]"
/>

Use positive tasks, near-miss negatives and multi-intent prompts. Measure activation precision, false activation, reference files loaded, context size, task quality, latency and total tokens. Test likely conflict pairs together and compare the result with no skill.

Keep a versioned routing suite drawn from real requests and known failures. A method skill that activates for every coding task may force unnecessary plans; two review skills may disagree about whether they can edit. The expected result should include both the selected skill and the actions it must not take.

Re-run the suite when descriptions, model versions, tool availability or neighbouring skills change. Monitor production activation patterns for unexpected combinations, but do not use sensitive task text as an evaluation dataset without appropriate controls.

## Keep control outside prompts [#keep-control-outside-prompts]

<SectionVisual
  title="Instructions propose; deterministic services authorize"
  caption="Important authority is checked at the boundary where an action becomes real."
  layout="flow"
  items="[
  { label: &#x22;Prompt&#x22;, detail: &#x22;Explain the task, method, limits and evidence to prepare.&#x22;, output: &#x22;Proposed behaviour&#x22; },
  { label: &#x22;Tool gateway&#x22;, detail: &#x22;Authenticate identity, validate parameters and apply policy.&#x22;, output: &#x22;Permitted request&#x22; },
  { label: &#x22;System of record&#x22;, detail: &#x22;Enforce transaction rules, approvals and authoritative state.&#x22;, output: &#x22;Committed action&#x22; },
  { label: &#x22;Evidence&#x22;, detail: &#x22;Record the proposal, enforcement decision and resulting outcome.&#x22;, output: &#x22;Auditable chain&#x22; }
]"
/>

A skill cannot grant production access, approve a release or enforce segregation of duties. These belong in identity, the [policy enforcement path](/architecture/enforcement), CI/CD and production authorization. Skills can explain the control and prepare evidence for it.

Assume instructions can be misunderstood, overridden by untrusted content or become stale. Enforce allowed tools, data scope, transaction limits and approval requirements independently. For example, a release skill may assemble the evidence package, but a protected pipeline verifies it and an accountable approver authorizes production.

The boundary also protects the model. A retrieved document that instructs the agent to export data has no authority to change gateway policy. Record denied requests as signals for attack, design error or missing capability, then improve the appropriate layer rather than weakening the boundary inside the prompt.

The site's [installable skills](/skills) are generated from canonical pages so the skill bundle does not become another source of truth.

**Next step:** measure the [Factory as a business and engineering capability](/factory/measurement).
