review-loop

Iterative review loop using any lens agent against any target (plan, code, design). Use when you want to run a focused review cycle: spawn a fresh reviewer…

npx skills add https://github.com/microsoft/trieste --skill review-loop

Review Loop

Use this skill to run an iterative review cycle against any target using any lens agent.

Inputs

The user specifies:

  1. Lens — which lens/reviewer to use (e.g., adversarial-lens, security-lens, conservative-lens, speed-lens, usability-lens).
  2. Target — what to review (a plan, file(s), module, design document, diff, etc.).

If either is ambiguous, ask the user before proceeding.

Procedure

Step 1 — Gather Context

Read the target material and any surrounding context needed for a meaningful review. This includes:

  • The target itself (plan text, file contents, etc.)
  • Relevant WF specs, token definitions, and pass pipeline context
  • Relevant tests or prior review findings

Step 2 — Spawn Reviewer Subagent

Spawn a fresh subagent with the specified lens. Provide it:

  • The full target material (verbatim — do not summarize)
  • Sufficient surrounding context for the reviewer to assess the target meaningfully
  • Instructions to produce structured findings per the lens's Expected Output format
  • Instructions to explicitly state if the target is clean (no findings)

The subagent must be a fresh instance with no prior context from this conversation.

Step 3 — Present Results

Present the reviewer's findings to the user along with a proposed remediation plan:

  • List each finding with its severity/likelihood
  • For each finding, propose a specific remediation (code change, plan amendment, verification step, etc.)
  • If the reviewer found no issues, report that the target passed review cleanly

Step 4 — Apply Remediations

With the user's guidance:

  • Apply agreed-upon remediations (edit files, amend plans, add tests, etc.)
  • Skip or defer any remediations the user rejects
  • If the user modifies a remediation, apply their version

Step 5 — Loop or Exit

Ask the user whether to:

  • Loop — go back to Step 2 and run the review again on the updated target with a fresh subagent
  • Exit — the review cycle is complete

Guardrails

  • Every review iteration uses a fresh subagent — no context contamination between iterations.
  • Do not summarize or filter the target material before passing it to the reviewer. Provide it verbatim.
  • Do not apply remediations without user confirmation.
  • The loop exits only when the user says so, not when the reviewer returns clean. The user may want to run additional iterations even after a clean pass.

More skills from microsoft

oss-growth
microsoft
OSS growth hacker persona
agent-framework-azure-ai-py
microsoft
Build Azure AI Foundry agents using the Microsoft Agent Framework Python SDK (agent-framework-azure-ai). Use when creating persistent agents with AzureAIAgentsProvider, using hosted tools (code interpreter, file search, web search), integrating MCP servers, managing conversation threads, or implementing streaming responses. Covers function tools, structured outputs, and multi-tool agents.
development
airunway-aks-setup
microsoft
Set up AI Runway on AKS — from bare cluster to running model. Covers cluster verification, controller install, GPU assessment, provider setup, and first deployment. WHEN: "setup AI Runway", "onboard AKS cluster", "install AI Runway", "airunway setup", "deploy model to AKS", "GPU inference on AKS", "KAITO setup on AKS", "run LLM on AKS", "vLLM on AKS", "set up model serving on AKS", "AI Runway controller".
devops
appinsights-instrumentation
microsoft
Guidance for instrumenting webapps with Azure Application Insights. Provides telemetry patterns, SDK setup, and configuration references. WHEN: how to instrument app, App Insights SDK, telemetry patterns, what is App Insights, Application Insights guidance, instrumentation examples, APM best practices.
devops
applicationinsights-web-ts
microsoft
Instrument browser/web apps with the Application Insights JavaScript SDK (@microsoft/applicationinsights-web). Use for Real User Monitoring (RUM) — page views, clicks, AJAX/fetch dependencies, exceptions, custom events, and browser-side GenAI agent traces correlated to backend OpenTelemetry traces. Covers SDK Loader Script and npm setup, framework extensions (React, React Native, Angular), Click Analytics, telemetry initializers, and OTel GenAI semantic conventions for agent/tool/model spans emitted from the browser.
devops
azure-ai-anomalydetector-java
microsoft
Build anomaly detection applications with Azure AI Anomaly Detector SDK for Java. Use when implementing univariate/multivariate anomaly detection, time-series analysis, or AI-powered monitoring.
development
azure-ai-language-conversations-py
microsoft
Implement Conversational Language Understanding (CLU) using the azure-ai-language-conversations Python SDK. Use when working with ConversationAnalysisClient to analyze conversation intent and entities, building NLP features, or integrating language understanding into applications.
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 for Python. Use for ML workspaces, jobs, models, datasets, compute, and pipelines. Triggers: "azure-ai-ml", "MLClient", "workspace", "model registry", "training jobs", "datasets".
development