技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
pyrit【数据与研究】Use Microsoft PyRIT for generative-AI red teaming, prompt targets, scorers, converters, datasets, attack scenarios, scanner CLI, backend, and troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task names PyRIT, pyrit_scan, pyrit_backend, CoPyRIT, Python Risk Identification Tool, AI red teaming, LLM robustness testing, prompt targets, scorers, converters, seed datasets, attack techniques, or scenario campaigns.
This skill is for operating PyRIT as a package. It does not authorize live red-team execution against external systems; require explicit user scope, target approval, credentials handling, and data rules before sending prompts to live services.
| User need | Read |
|---|---|
Initialize PyRIT, choose InMemory/SQLite/Azure SQL, load config/env files, inspect registries/models/output helpers | setup-memory-core |
| Build converters, converter stacks, message normalization, seed prompts/datasets, and data/YAML schemas | converters-datasets |
| Configure prompt targets, target capabilities, scorers, score aggregation/evaluation, auth/rate-limit/model-service troubleshooting | targets-scorers |
| Choose/configure attacks, executors, attack techniques, scenarios, benchmarks, prompt generators, concurrency/retries/results | attacks-scenarios |
Use pyrit_scan, pyrit_shell, pyrit_backend, backend REST service, scanner workflows, or CoPyRIT GUI operations | cli-backend-scanner |
TextTarget, rule scorers, offline converters, in-memory/temporary SQLite memory) for smoke tests.import pyrit
print(pyrit.__version__)
from pyrit.converter import Base64Converter
from pyrit.prompt_target import TextTarget
from pyrit.score.true_false.substring_scorer import SubStringScorer
For deeper checks, run the bundled scripts in the relevant sub-skill. They are designed to work from any directory where PyRIT is installed and do not depend on the original repository checkout.