askill
ia-quality-gates

ia-quality-gatesSafety 100Repository

Quality gate validation for agentic design artifacts (agents, subagents, prompts, skills). Apply when creating, reviewing, or validating .agent.md, .sub.agent.md, .prompt.md, or SKILL.md files. Covers A1-A9 (agent gates), SA1-SA7 (subagent addendum), P1-P6 (prompt gates), and S1-S5 (skill gates) with fail conditions and remediation actions.

1 stars
1.2k downloads
Updated 2/7/2026

Package Files

Loading files...
SKILL.md

IA Quality Gates

Systematic validation framework for agentic design artifacts. Ensures structural integrity, boundary compliance, and design consistency across agents, subagents, prompts, and skills.


When to Use This Skill

  • Creating a new agent, subagent, prompt, or skill — run applicable gates before output
  • Validating an existing artifact — run all gates and report findings
  • Reviewing a PR that modifies .agent.md, .sub.agent.md, .prompt.md, or SKILL.md files
  • Self-checking — any agent verifying its own compliance after modifications

Methodology

Phase 1: Select Gate Set

Determine which gates apply based on artifact type:

Artifact TypeGate SetTotal Gates
User-facing agent (.agent.md)A1–A99
Subagent (.sub.agent.md)A1–A9 + SA1–SA716
Prompt (.prompt.md)P1–P66
Skill (SKILL.md)S1–S55

Subagent detection: File has .sub.agent.md extension OR frontmatter contains user-invokable: false.

Phase 2: Run Gates

Execute every gate in the applicable set. If ANY gate fails, fix and re-run.

Agent Gates (A1–A9)

GateCheckFail ConditionFail Action
A1: StructureValid YAML frontmatter with tools, model, descriptionMissing required fields or invalid YAML syntaxAdd missing fields
A2: Role ScopeRole defines generic capability, not task-specific contextHardcoded task context in role definitionGeneralize role
A3: Model SelectionModel has (copilot) suffix; choice justified for complexity tierNo suffix or unjustified model tierAdd suffix; justify
A4: Tool AliasesUses canonical tool group names; tools justified for roleWrong aliases (e.g., bash instead of execute) or unneeded toolsFix aliases
A5: Constraint HierarchyConstraints use CRITICAL/IMPORTANT/GUIDELINES tiersMissing tiers or flat constraint listRestructure
A6: Phased MethodologyMethodology uses phases, not flat instruction listsFlat list without phase structureRestructure into phases
A7: Skill ReferencesSkills referenced, not inlined (>30 lines = extract)Inline procedural knowledge exceeds 30 linesExtract to skill
A8: Delegation & HandoffsSubagents use .sub.agent.md; handoff targets validMissing visibility flags, invalid references, or wrong namingFix naming/refs
A9: Catalog SyncUser-invokable agents registered in Section 9 of copilot-instructions.mdNew agent missing from catalogUpdate catalog

Subagent Addendum (SA1–SA7)

Apply on top of A1–A9 when artifact is a subagent:

GateCheckFail ConditionFail Action
SA-1: Naming & VisibilityFile is {name}.sub.agent.md; user-invokable: false in frontmatterMissing flag (defaults visible) or wrong file extensionRename file; add flag
SA-2: Model DowngradeModel is one tier below intended parent, or same tier with documented rationaleSame tier as parent without justificationDowngrade model or document rationale
SA-3: Minimal ToolsTools follow least-privilege for roleWrite tools on read-only subagentRemove excess tools
SA-4: Caller ProtocolHas <caller_protocol> section with invocation examplesNo interface contract for parentAdd section
SA-5: Output ContractHas <output_format> section with response templateUnstructured, unpredictable responsesAdd section
SA-6: No HandoffsNo handoffs: in frontmatterSubagent trying to interact with usersRemove handoffs
SA-7: No NestingNo agents: in frontmatter; no sub-subagent spawningCascading delegation (cost + debug risk)Remove agents list

SA-3 tool privilege reference:

Subagent RoleAllowed ToolsRationale
Read-only research['read', 'search']No write access needed
Web research['read', 'search', 'web/fetch']Adds web for info gathering
Implementation worker['read', 'search', 'edit', 'execute']Full set only when writing code
Analysis / extraction['read', 'search']Analyze and report, never modify

Prompt Gates (P1–P6)

GateCheckFail ConditionFail Action
P1: Thinness≤ 50 lines totalPrompt exceeds recommended sizeExtract methodology to agent
P2: No MethodologyNo phase/step workflows or constraint blocksContains "Phase 1", "Step 1", CRITICAL/IMPORTANTMove to agent
P3: No Tool ConfigNo tools array or tool-specific instructionsMentions or specifies toolsRemove (agent owns tools)
P4: Uses VariablesHas ${input:} or ${file:} placeholdersNo variable placeholders for reusabilityAdd variables
P5: Context OnlyContains only task context + deliverable specContains behavioral rules, role definitions, or methodologyStrip non-context
P6: No Duplication<70% content overlap with corresponding agent>70% overlap with agentDeduplicate

Skill Gates (S1–S5)

GateCheckFail ConditionFail Action
S1: Agent-AgnosticNo references to specific agentsReferences "the implement agent" or similarRemove references
S2: Tool-AgnosticNo tool-specific instructionsMentions specific tools or CLI commandsRemove tool refs
S3: Method-FocusedContains step-by-step proceduresDescribes concepts without actionable stepsAdd methodology
S4: PortableNo project-specific paths or structuresReferences project-specific pathsGeneralize
S5: Progressive DisclosureDescription in <skill> tag; SKILL.md loads on demandMissing description in parent agent's skill referenceAdd description

Phase 3: Report Results

Present gate results using this format:

### Quality Gates
- ✅ A1: Structure valid
- ✅ A2: Role scope generic
- ❌ A4: **FAIL** — Uses `bash` instead of `execute`
  - **Fix**: Replace `bash` with `execute` in tools array
- ✅ A9: Catalog synced

### Summary
- **Passed**: 8/9
- **Failed**: 1 (A4)
- **Status**: ❌ REQUIRES FIX

For subagents, append SA gates after A gates. Only show the applicable gate set.


Anti-Patterns

Common gate-skipping behaviors to avoid:

  • Selective checking — Running only A1-A3 and skipping A7-A9 because they seem less important. ALL gates must pass.
  • Assumed compliance — Marking gates as passed without actually verifying (e.g., assuming model has (copilot) suffix without checking).
  • SA gate amnesia — Forgetting SA1-SA7 exist when creating a subagent. If user-invokable: false, SA gates are mandatory.
  • Prompt free pass — Treating prompts as "just text" and skipping P1-P6. Prompts that absorb methodology (P2 violation) are the most common boundary failure.
  • Soft failures — Noting a gate failure but proceeding to output without fixing. Every failure must be resolved before output.
  • Systematic sweep — Run every gate, report every result, fix every failure, then output.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

95/100Analyzed 2/10/2026

A comprehensive and highly actionable quality gate framework for agentic design. It features structured validation phases, detailed failure/remediation tables for various artifact types, and clear reporting templates.

100
100
85
95
100

Metadata

Licenseunknown
Version-
Updated2/7/2026
PublisherfaroukBakari

Tags

prompting