Skills, plugins and prompt governance
Treat agent instructions and tools as governed dependencies, with selective loading, token budgets, permission boundaries and measurable routing quality.
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.
Visual map
Progressive skill loading
Discovery metadata routes the request. One focused skill loads next. Only the references needed for the task enter context.
- 1Catalogue
Short names and distinctive descriptions.
- 2Routing
Choose one task skill and reject near misses.
- 3Skill instructions
Load the focused procedure and output contract.
- 4Selected references
Read only the evidence needed for this task.
- 5Governed tools
Use approved scripts, tools and permissions.
- 6Observed result
Measure quality, tokens, latency and false activation.
Separate the loading stages
Concept explained
Progressive disclosure protects the working context
Load enough information to choose well, then retrieve only what the task needs.
- 1Discover
Expose concise names, descriptions and routing conditions.
Output: Candidate skills
- 2Activate
Load the selected skill's complete operating instructions.
Output: Task method
- 3Retrieve
Bring in only relevant references, examples and templates.
Output: Focused context
- 4Execute
Call approved tools within identity, sandbox and policy boundaries.
Output: Controlled result
- Discovery loads short names and descriptions.
- Activation loads one focused instruction file.
- Reference loading retrieves only the material required for the task.
- 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
Concept explained
Budget the complete context envelope
Prompt complexity accumulates across instructions, references, tools, history and retries.
- 1Fixed context
System rules, enterprise policy and application constraints.
Output: Mandatory base
- 2Selected method
Activated skills, task references and tool schemas.
Output: Working instructions
- 3Task state
User material, repository context, memory and tool results.
Output: Current evidence
- 4Execution reserve
Reasoning, generated artefacts, retries and compaction recovery.
Output: Completion capacity
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
Concept explained
Manage instruction packages through a supply-chain lifecycle
A skill can change decisions and execute code, so provenance and removal matter.
- 1Intake
Identify source, owner, licence, contents, requested tools and update path.
Output: Dependency record
- 2Review
Inspect instructions, scripts, references, permissions and data movement.
Output: Approved scope
- 3Pin
Use a known version and digest in the active configuration.
Output: Reproducible load
- 4Monitor and remove
Detect change, vulnerabilities and misuse; support disablement and rollback.
Output: Controlled lifecycle
- 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
Concept explained
Routing tests include success, restraint and disagreement
A skill is reliable only when it activates for the right work and stays absent elsewhere.
- 1Positive
Representative tasks should select the skill and complete its required workflow.
Output: Recall
- 2Near miss
Similar but excluded tasks should not select it.
Output: Precision
- 3Multi-intent
Tasks needing several capabilities should load them in a coherent order.
Output: Composition
- 4Conflict
Overlapping instructions should resolve through explicit precedence or removal.
Output: Stable behaviour
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
Concept explained
Instructions propose; deterministic services authorize
Important authority is checked at the boundary where an action becomes real.
- 1Prompt
Explain the task, method, limits and evidence to prepare.
Output: Proposed behaviour
- 2Tool gateway
Authenticate identity, validate parameters and apply policy.
Output: Permitted request
- 3System of record
Enforce transaction rules, approvals and authoritative state.
Output: Committed action
- 4Evidence
Record the proposal, enforcement decision and resulting outcome.
Output: Auditable chain
A skill cannot grant production access, approve a release or enforce segregation of duties. These belong in identity, the policy enforcement path, 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 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.
Cite this page
Written by Murali Sid, Founder and AI Systems Architect, last updated 2 November 2026. Licensed CC BY-SA 4.0, so quote it freely with attribution.
Murali Sid (2026). Skills, plugins and prompt governance. Agentic Architecture Skills. https://www.agenticarchitectureskills.com/factory/skills-governanceMachine-readable version of this page: /factory/skills-governance.md
Delivery methods and tool adapters
Where Spec Kit, OpenSpec, BMAD, Superpowers, GSD, Task Master, Agent OS and SuperClaude fit inside the Software Factory.
Measure and improve the Software Factory
A balanced set of flow, quality, assurance, reliability, context, supervision and value measures for the Factory.