Official agent skill

Audit Filters

by Azure in Azure/azure-sdk-tools

Analyze feedback and memories to suggest filter.yaml additions, then open a PR.

OfficialMITAuto-check passedDevelopment

Install Audit Filters

skills CLI
$ npx skills add Azure/azure-sdk-tools --skill audit-filters -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Azure/azure-sdk-tools audit-filters --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Azure/azure-sdk-tools.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/python-packages/apiview-copilot/.github/skills/audit-filters .claude/skills/audit-filters && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
audit-filters
GitHub stars
134
Token cost
~2.7k tokens
SKILL.md length
1,232 words
Files
1
Skills in repo
35
Repo updated
First seen
Licence
MIT

At a glance

Analyze feedback and memories to suggest filter.yaml additions, then open a PR.

  • Works in 5 steps: Collect Data → Analyze → Recommend Filter Additions → …
  • : audit filters
  • SKILL.md covers When to Use, Overview, Defaults and Language Resolution, plus 7 more sections
  • Calls git, gh and python

What it does

Audit Filters is an agent skill from Azure/azure-sdk-tools, published by the product's own GitHub organization. Analyze feedback and memories to suggest filter.yaml additions, then open a PR. Use for: audit filters, analyze feedback for filters, suggest filters, update filters, filter additions, feedback analysis, bad comments analysis, add filter rules, filter PR.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests and Customer feedback analysis. It works with .NET, Go, Java and Python. The repository describes itself as: Tools repository leveraged by the Azure SDK team. The licence is MIT.

When your agent uses it

  • : audit filters
  • Analyze feedback for filters
  • Suggest filters
  • Filter additions

Example prompts

  • “/audit-filters”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Collect Data
  2. Analyze
  3. Recommend Filter Additions
  4. Confirm
  5. Create PR

What it can do on your machine

Read from SKILL.md and the folder at commit 942ef24. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh
    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Audit Filters loads about 2.7k tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 1,232 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Azure/azure-sdk-tools at commit 942ef24, republished under its MIT licence (© Azure). 1,232 words, ~2,695 tokens.

Download SKILL.mdSave it as .claude/skills/audit-filters/SKILL.md (or your agent's skills folder).
name
audit-filters
description
Analyze feedback and memories to suggest filter.yaml additions, then open a PR. Use for: audit filters, analyze feedback for filters, suggest filters, update filters, filter additions, feedback analysis, bad comments analysis, add filter rules, filter PR.
argument-hint
Language and month (e.g. 'Java for March') or language and date range

Audit Filters

When to Use

  • Analyzing negative feedback (downvotes, deletions) on AI comments to find recurring patterns
  • Suggesting new filter.yaml exception rules for a language based on feedback themes
  • Opening a PR with proposed filter additions after user confirmation

Overview

This is a multi-phase workflow:

  1. Collect — Pull feedback and memories for the specified language and time period
  2. Analyze — Categorize feedback by reason, theme, and IsGeneric status; identify recurring bad-comment patterns
  3. Recommend — Propose new numbered DO NOT ... lines for metadata/{lang}/filter.yaml
  4. Confirm — Present recommendations and ask the user whether to proceed
  5. PR — Create a branch, apply changes, commit, push, and open a pull request

Defaults

Unless the user says otherwise, always apply these defaults:

  • Environment: production
  • Feedback types: Focus on bad and delete feedback (exclude good)
  • Format: JSON (redirect to file)

Language Resolution

Map the user's language name to the metadata directory name:

User says{lang} directory--language flag value
Javajavajava
C# / .NET / dotnetdotnetdotnet
Pythonpythonpython
TypeScript / JavaScripttypescripttypescript
Go / Golanggolanggolang
Swift / iOSiosios
Androidandroidandroid
C / C++ / Clangclangclang
Rustrustrust

Date Resolution

The user will typically specify a calendar month by name (e.g. "March", "January 2025"). Resolve to the full month date range:

User saysstart_dateend_date
"March" (current year)YYYY-03-01YYYY-03-31
"January 2025"2025-01-012025-01-31
"March 1 to March 15"YYYY-03-01YYYY-03-15

When only a month name is given without a year, use the current year. Be careful with month lengths (28/29/30/31 days).


Phase 1: Collect Data

Run both commands sequentially in the same foreground terminal. Use a 120-second timeout for each.

Step 1a: Pull feedback
powershell
New-Item -ItemType Directory -Path output -Force | Out-Null; if (Test-Path output/feedback_output.json) { Remove-Item output/feedback_output.json }; python cli.py report feedback -s <start_date> -e <end_date> -l <language> --exclude good --include-implicit | Out-File -Encoding UTF8 output/feedback_output.json
Step 1b: Pull memories
powershell
if (Test-Path output/memory_output.json) { Remove-Item output/memory_output.json }; python cli.py report memory -s <start_date> -e <end_date> -l <language> | Out-File -Encoding UTF8 output/memory_output.json

After both commands complete, read both output files with read_file.


Phase 2: Analyze

Read the current filter file at metadata/{lang}/filter.yaml so you know what rules already exist.

Then analyze the collected feedback and memories. Produce a summary organized as follows:

Analysis Structure

By Feedback Reason — Group comments by their Feedback[].Reasons values (e.g. AcceptedRenderingChoice, FactuallyIncorrect, RenderingBug, NotRelevant, TooNitpicky, Other). For each reason, count occurrences and list representative CommentText excerpts.

By Theme — Identify recurring themes across the bad comments. A theme is a pattern you can describe in one sentence (e.g. "commenting on interface method implementations", "suggesting consolidating overloads"). Include the count of comments matching each theme.

By IsGeneric Status — Report how many bad comments had IsGeneric: true vs false. Generic comments are not tied to a specific guideline and are more likely candidates for filter rules.

By Submitter — Note which users (Feedback[].SubmittedBy) provided the most feedback. The most significant contributor will be used as the PR assignee.

Cross-reference with Memories — Check if any memories (especially those with is_exception: true) suggest filter rules that are not yet in filter.yaml.

Present this analysis to the user in a clear summary table or grouped list.


Phase 3: Recommend Filter Additions

Based on the analysis, propose specific new lines to add to metadata/{lang}/filter.yaml. Each recommendation must:

  1. Follow the existing format: N. DO NOT <description>
  2. Be numbered sequentially after the last existing rule
  3. Not duplicate an existing rule — Before proposing a rule, compare it against every existing rule in the current filter.yaml. If an existing rule already covers the same behavior (even with different wording), do NOT propose it again. Explain in the analysis that the theme was already covered and cite the existing rule number.
  4. Be phrased as a clear, actionable instruction the LLM can follow
Signal Strength

When presenting recommendations, clearly label each with its signal strength:

  • Strong signal: 2+ explicit feedback items (downvotes with reasons) or 1 memory with is_exception: true
  • Low signal: Only 1 explicit feedback item, or only implicit bad comments (no explicit downvote/reason)

Do NOT automatically exclude low-signal items. Present ALL actionable patterns to the user with their signal strength clearly marked, and let the user (or reviewer) decide whether to include them in the PR.

Present the recommendations in a numbered list, each with:

  • The proposed rule text
  • The evidence (feedback count, representative comment texts, memory references)
  • Whether the pattern was IsGeneric or guideline-linked

Example recommendation format:

Proposed rule 8: DO NOT comment on explicit interface implementations for serialization (IJsonModel, IPersistableModel)

  • Evidence: 4 bad comments with reason FactuallyIncorrect, all IsGeneric: true
  • Example: "Interface method implementation for AzureAISearchIndex is unexpected here"

Show full SKILL.md (519 more words)Show less

Phase 4: Confirm

Use the vscode_askQuestions tool to present the user with a selection:

  • header: "Confirm filter PR"
  • question: "Here are the proposed filter additions for {lang}. Should I create a PR with these changes?"
  • options:
    • "Yes, all of them" (recommended)
    • "Yes, but only specific ones (let me pick)"
    • "No, skip the PR"

If the user selects specific ones, note which rule numbers to include.

If the user says no, stop here.


Phase 5: Create PR

Step 5a: Determine the current user's GitHub handle
powershell
gh api user --jq .login

Store this as {current_user}.

Step 5b: Determine the PR reviewer

The reviewer should be the feedback submitter (Feedback[].SubmittedBy) who appears most frequently in the bad/deleted comments that led to the filter additions. If there is a tie, pick the one whose feedback is most relevant to the proposed rules.

Store this as {top_submitter}.

Step 5c: Create a branch

Generate a branch name: avc/update-{lang}-filter-{YYYYMMDD} (using today's date).

The branch MUST be based on origin/main so the PR contains only the filter.yaml change. Do NOT branch from the current working branch — it may contain unrelated changes.

powershell
git fetch origin main; git checkout -b avc/update-{lang}-filter-{YYYYMMDD} origin/main

If origin/main fails (e.g. main is in another worktree), use FETCH_HEAD:

powershell
git fetch origin main; git checkout -b avc/update-{lang}-filter-{YYYYMMDD} FETCH_HEAD
Step 5d: Apply filter changes

Edit metadata/{lang}/filter.yaml to append the confirmed rules. Use sequential numbering continuing from the last existing rule. Maintain the existing indentation (2-space indent under the YAML block scalar exceptions: |).

Step 5e: Commit and push

Stage only the filter file — never use git add . or git add -A:

powershell
git add metadata/{lang}/filter.yaml; git commit -m "[AVC] Update {lang} filter based on {month} {year} feedback"

Before pushing, verify the commit contains exactly 1 file:

powershell
git diff --stat origin/main..HEAD

If more than 1 file appears, STOP and fix the branch before pushing. Only after confirming 1 file changed:

powershell
git push origin avc/update-{lang}-filter-{YYYYMMDD}
Step 5f: Open the PR
powershell
gh pr create --repo Azure/azure-sdk-tools --title "[AVC] Update {lang} filter" --body "Filter additions based on a review of feedback collected during {timespan}." --label "APIView Copilot" --assignee {current_user} --reviewer {top_submitter} --base main

Where:

  • {lang} — The language name (e.g. java, dotnet, python)
  • {timespan} — The human-readable date range (e.g. "March 2026", "January 1 – January 15, 2025")
  • {current_user} — The GitHub handle of the person running the skill (PR assignee)
  • {top_submitter} — The GitHub handle of the most significant feedback contributor (PR reviewer)

After the PR is created, report the PR URL to the user.


Gotchas

  • Use python cli.py not .\avc: The avc.bat script may resolve to system Python.
  • Do NOT use 2>&1: Merges stderr into stdout, corrupting JSON. Only redirect stdout.
  • Do NOT use >: Produces UTF-16 in PowerShell 5.1. Use | Out-File -Encoding UTF8.
  • Month end dates: February has 28/29 days, April/June/Sept/Nov have 30 days.
  • Output can be large: Redirect to file and use read_file rather than relying on terminal output.
  • Existing rules: Always read the current filter.yaml before proposing additions to avoid duplicates.
  • Branch conflicts: If the branch already exists, append a short suffix (e.g. -2).
  • Branch base: ALWAYS branch from origin/main, never from the current working branch. The working branch may contain dozens of unrelated changes that will pollute the PR. Verify with git diff --stat origin/main..HEAD before pushing.
  • Label must exist: The APIView Copilot label must already exist in the repo. If gh pr create fails on the label, omit --label and add the label manually after creation.
  • Assignee validation: GitHub usernames from APIView feedback may not exactly match GitHub handles. If gh pr create fails on an assignee, omit that assignee and note it in the PR body instead.

© Azure, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in packages/python-packages/apiview-copilot/.github/skills/audit-filters of Azure/azure-sdk-tools.

Open the folder on GitHubat commit 942ef24

Compare with similar skills

Audit Filters next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Audit Filters compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Audit Filters this skillAzure/azure-sdk-tools134—~2.7kAutomated safety check: PassMIT
Cross-Language Coding Standardszereight/gitlab-mcp2k1 repos~1.4kAutomated safety check: PassMIT
Dbgtheodo-group/debug-that158—~2.5kAutomated safety check: PassMIT
Coding Agentmastra-ai/mastra29k—~2.3kAutomated safety check: PassCustom licence
Strict Programming Practicescode-yeongyu/oh-my-openagent70k—~9.5kAutomated safety check: PassCustom licence
Code Review Excellenceandrew-yangy/gru-ai155—~1.7kAutomated safety check: NotesMIT

Similar skills

  • Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.

    2k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Dbg

    theodo-group/debug-that

    Debug applications using the dbg CLI debugger. An agent skill from theodo-group/debug-that.

    158 GitHub stars~2.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Coding Agent

    mastra-ai/mastra

    Authoring playbook for building agents that write, edit, review, or refactor code.

    29k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Strict Programming Practices

    code-yeongyu/oh-my-openagent

    Applies strict, type-first coding rules for Python, Rust, TypeScript and Go, loading the matching language reference before the agent writes or edits any code.

    70k GitHub stars~9.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Review Excellence

    andrew-yangy/gru-ai

    Provides comprehensive code review guidance for React 19, Vue 3, Rust, TypeScript, Java, Python, and C/C++.

    155 GitHub stars~1.7k tokensUpdated 7 mo ago
    DevelopmentAuto-check: notes
  • Answers questions about code structure, history, bugs and PR risk using a CodeScope knowledge graph and semantic index built from the repository.

    28k GitHub starsUsed in 1 repo~9.3k tokens
    DevelopmentAuto-check passed

More from Azure/azure-sdk-tools

All 35 skills in this repo
  • Apiview Feedback Resolution

    Azure/azure-sdk-tools

    Official

    Analyze and resolve APIView review feedback on Azure SDK PRs.

    134 GitHub stars~547 tokensUpdated today
    Auto-check passed
  • Official

    Deploy test resources and run Azure SDK tests in live, record, or playback mode.

    134 GitHub stars~1.5k tokensUpdated today
    Auto-check: notes
  • Azsdk Common Pipeline Analysis

    Azure/azure-sdk-tools

    Official

    Analyze Azure SDK CI/CD pipeline failures into a structured diagnosis, and define the required output format.

    134 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Official

    Create, get, update, abandon, and link SDK PRs to release plan work items for Azure SDK releases.

    134 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Azure Typespec Assessment

    Azure/azure-sdk-tools

    Official

    Assess Azure TypeSpec Git diffs for semantic intent, REST and downstream SDK breaking changes, Azure Guidelines compliance, and documentation completeness.

    134 GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Questions about Audit Filters

What does Audit Filters do?

Analyze feedback and memories to suggest filter.yaml additions, then open a PR. Audit Filters is an agent skill from Azure/azure-sdk-tools, published by the product's own GitHub organization.yaml additions, then open a PR.

When should I use Audit Filters?

Audit Filters fits situations like: : audit filters; analyze feedback for filters; suggest filters; filter additions.

How do I install Audit Filters in Claude Code?

Run `npx skills add Azure/azure-sdk-tools --skill audit-filters -a claude-code`. Or copy the skill folder (packages/python-packages/apiview-copilot/.github/skills/audit-filters in Azure/azure-sdk-tools) into .claude/skills/audit-filters in your project. Claude Code loads it when a task matches its description.

How do I install Audit Filters in Codex?

Run `npx skills add Azure/azure-sdk-tools --skill audit-filters -a codex`. Or copy the skill folder (packages/python-packages/apiview-copilot/.github/skills/audit-filters in Azure/azure-sdk-tools) into .agents/skills/audit-filters in your project. Codex loads it when a task matches its description.

Can I use Audit Filters in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Azure/azure-sdk-tools --skill audit-filters -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/audit-filters, .gemini/skills/audit-filters, .github/skills/audit-filters and .opencode/skills/audit-filters in your project.

What does Audit Filters need to run?

Going by SKILL.md and its folder, Audit Filters needs the command-line tools its instructions call (git, gh and python). Our summary lists: Python 3.

Does Audit Filters access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Audit Filters safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Audit Filters use?

Audit Filters is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Audit Filters use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Audit Filters?

Skills that share tags, products or a category with Audit Filters: Cross-Language Coding Standards (zereight/gitlab-mcp, 2k stars), Dbg (theodo-group/debug-that, 158 stars), Coding Agent (mastra-ai/mastra, 29k stars) and Strict Programming Practices (code-yeongyu/oh-my-openagent, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Audit Filters?

Azure (a GitHub organization, an official publisher) maintains it in Azure/azure-sdk-tools, which has 134 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 10, 2026.

Source: Azure/azure-sdk-tools on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.