agentleFS
MicrosoftKnown publishermicrosoft/PyRIT/.github/copilot-instructions.md

PyRIT

Copilot instructions4.6k starsChanged 4 months agoMITView on GitHub

PyRIT (Python Risk Identification Tool for generative AI) is an open-source framework for security professionals to proactively identify risks in generative AI systems. PyRIT uses a modular pluggable-brick design. doc/code/framework.md is the canonical reference for how these pieces fit together. It defines each component's responsibilities — what it owns and, critically, what it does not own — and how scenarios, attack techniques, executors, and the core/shared layers relate. Read it before adding or reviewing components so new code lands in…

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 2 mentionsJun 2026: 3 mentionsJul 2026: 2 mentionsAug 2026: 2 mentionsSep 2026: 5 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/PyRIT repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/PyRIT

The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 16

Talked about on GitHub (16 times).

On GitHub · 16

11 more on GitHub

The file

We split this copilot-instructions.md into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When performing a code review, be selective.

    line 13
  2. Distinctive:

    Do NOT leave comments about:

    line 20
  3. Very specific:

    BEFORE editing or code-reviewing any file, you MUST read the .github/instructions/ files whose applyTo patterns match the files you are …

    line 30
  4. Distinctive:

    Follow every rule in the applicable instruction files.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

PyRIT - Repository Instructions

PyRIT (Python Risk Identification Tool for generative AI) is an open-source framework for security professionals to proactively identify risks in generative AI systems.

Architecture

PyRIT uses a modular pluggable-brick design.

doc/code/framework.md is the canonical reference for how these pieces fit together. It defines each component's responsibilities — what it owns and, critically, what it does not own — and how scenarios, attack techniques, executors, and the core/shared layers relate. Read it before adding or reviewing components so new code lands in the right place.

Code Review Guidelines

When performing a code review, be selective. Only leave comments for issues that genuinely matter:

  • Bugs, correctness, logic errors, or security concerns
  • Component responsibilities — Each component should do its job and only its job, per doc/code/framework.md. Flag responsibility bleed: e.g. an executor assembling prepended/system prompts or role-play framing (that's an attack technique), a converter or target making branching decisions (that's an attack/scorer), a scorer acting on its own result (the attack branches), or business logic living in memory/output. If logic belongs in a different brick, say so.
  • Unclear code that would benefit from refactoring for readability
  • Violations of the critical coding conventions above (async suffix, keyword-only args, type annotations)

Do NOT leave comments about:

  • Style nitpicks that ruff/isort would catch automatically
  • Missing docstrings or comments — we prefer minimal documentation. Code should be self-explanatory.
  • Suggestions to add inline comments, logging, or error handling that isn't clearly needed
  • Minor naming preferences or subjective "improvements"

Aim for fewer, higher-signal comments. A review with 2-3 important comments is better than 15 trivial ones.

Instruction Files

BEFORE editing or code-reviewing any file, you MUST read the .github/instructions/ files whose applyTo patterns match the files you are about to edit. For example:

  • Editing/code-reviewing pyrit/**/*.py → read style-guide.instructions.md and user-custom.instructions.md
  • Editing/code-reviewing database models, Alembic migrations, or memory migration tests → also read database.instructions.md
  • Editing/code-reviewing pyrit/scenario/** → also read scenarios.instructions.md
  • Editing/code-reviewing pyrit/setup/initializers/techniques/** → also read setup-techniques.instructions.md
  • Editing/code-reviewing pyrit/converter/** → also read converters.instructions.md
  • Editing/code-reviewing tests/** → also read test.instructions.md
  • Editing/code-reviewing doc/**/*.py or doc/**/*.ipynb → also read docs.instructions.md
  • Editing/code-reviewing frontend/**/*.{ts,tsx} → also read frontend-style-guide.instructions.md
  • Editing/code-reviewing frontend/**/*.test.{ts,tsx} → also read frontend-test.instructions.md

Follow every rule in the applicable instruction files. Do not skip this step.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.