Ado refactor performance gate

From CarlosCaPe/octorato · View interactive version

Ado refactor performance gate is an AI agent skill from the GitHub repository CarlosCaPe/octorato. Mandatory performance gate for Azure DevOps SQL refactor tickets. Use when a ticket includes stored procedure refactor/review and you must validate execution plans, index usage, parameter sniffing risk, and query structure optimization opportunities.

How to use this skill

Skill file

ADO Refactor Performance Gate

Purpose

Apply the same performance review standard to every ADO refactor ticket before closure.

Mandatory Trigger

Run this skill for each refactor ticket in scope, even if the ticket started as "code cleanup" only.

Required Inputs

Workflow (Do Not Skip)

  1. Confirm ticket metadata
  1. Collect execution evidence
  1. Validate index usage
  1. Check parameter sniffing risk
  1. Review query structure
  1. Produce optimization decision
  1. Blocker check (mandatory)

Required Deliverable Format (per ticket)

## Performance Gate - <TicketId>
- Procedure: <ProcedureName>
- Status: Pass | Pass with risks | Blocked

### Execution Plan Findings
- <Finding 1>
- <Finding 2>

### Index Findings
- <Current index issue>
- <Recommended index change + rationale>

### Parameter Sniffing Assessment
- Risk: None | Low | Medium | High
- Evidence: <short evidence>
- Mitigation: <if required>

### Query Structure Findings
- <SARGability / subquery / join / sort finding>

### Recommended Actions
1. <Action>
2. <Action>

### Blockers
- <Blocker or "None">

### Closure Decision
- <Why this ticket can or cannot be closed>

Definition of Done

A refactor ticket is not "done" until:

Typical Blockers to Report

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.