giskard-skills — плагин для Claude Code: тесты и ред-тиминг ИИ-агентов
Набор скиллов для работы с продуктами Giskard: генерация состязательных сценариев, оценка RAG, выгрузка результатов сканов в Collibra.
/plugin marketplace add anthropics/claude-plugins-community
/plugin install giskard-skills@claude-communityЧто делает giskard-skills
Плагин ставит пять скиллов. scenario-generator собирает состязательные сценарии и проверки через библиотеку giskard.checks, rag-evaluator оценивает RAG-систему по обоснованности ответов, качеству поиска и галлюцинациям, hub-agent-setup подключает локального или удалённого агента к Giskard Hub через аутентифицированный HTTPS-эндпоинт. Ещё два скилла переносят данные: giskard-to-collibra отправляет результаты сканов Hub в Collibra AI Governance, third-party-to-giskard конвертирует отчёты garak, promptfoo, DeepTeam и PyRIT в один SuiteResult на инструмент.
Перед установкой проверьте рантайм под нужный скилл. Для scenario-generator и rag-evaluator нужен Python 3.12+ и пакет giskard с extra под вашего провайдера, для hub-agent-setup и giskard-to-collibra хватит Python 3.10+. Голый giskard-checks не тянет за собой SDK провайдера, а для LiteLLM придётся явно настроить LiteLLMGenerator с ключами. Зависимости ставьте из корня репозитория в виртуальном окружении.
Секреты держите в переменных окружения или в .env вне git. Для Hub это GISKARD_HUB_BASE_URL и GISKARD_HUB_API_KEY, для Collibra — COLLIBRA_URL, COLLIBRA_USER, COLLIBRA_PASSWORD и COLLIBRA_DOMAIN_ID. Ключ агента AGENT_WRAPPER_API_KEY генерируется отдельно от ключа Hub: Hub получает его как заголовок авторизации зарегистрированного агента, а сам ключ Hub обёртке не передаётся.
Какие задачи решает
- сгенерировать состязательные сценарии под описание своего агента
- оценить RAG-бота на галлюцинации и точность цитат
- подключить локального агента к Giskard Hub через HTTPS-туннель
- перенести отчёт garak или promptfoo в формат Giskard
- выгрузить результаты скана Hub в Collibra AI Governance
Примеры запросов агенту
- Сгенерируй состязательные сценарии для моего чат-бота на основе описания в
agent.md - Оцени мою RAG-систему: обоснованность ответов, качество поиска, отказ от вопросов вне области
- Сконвертируй отчёт garak в
SuiteResultи загрузи его в Giskard Hub
Как установить giskard-skills
Через маркетплейс плагинов
/plugin marketplace add anthropics/claude-plugins-community/plugin install giskard-skills@claude-communityПо шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой
Вопросы о giskard-skills
Как установить giskard-skills в Claude Code?
Через маркетплейс плагинов: сначала /plugin marketplace add anthropics/claude-plugins-community, затем /plugin install giskard-skills@claude-community.
Что делает giskard-skills?
Добавляет скиллы для тестирования и ред-тиминга ИИ-агентов: генерацию сценариев, оценку RAG, подключение агента к Giskard Hub и перенос результатов сканов в Collibra или из сторонних инструментов.
Что нужно для работы скиллов?
Кодинг-агент с поддержкой скиллов, Node.js с npx для установки и Python 3.12+ (для части скиллов 3.10+) с пакетом giskard и extra под вашего провайдера. Для Hub и Collibra понадобятся ключи и доступ к этим сервисам.
Исходный текст
SKILL.md · Apache-2.0
# Giskard Skills
Agent skills to streamline adoption and usage of Giskard products — compatible with any coding agent, including Claude Code, Cursor, and others.
## Prerequisites
- A coding agent that supports skills or plugins.
- Node.js with `npx` for the `npx skills add` installation commands below.
- The runtime and dependencies for the skills you use:
| Skill | Runtime and dependencies | Service access |
| --- | --- | --- |
| `scenario-generator` | Python 3.12+; `pip install "giskard[openai]"`, or the `anthropic`, `google`, `azure`, or `litellm` extra. Add the `scan` extra for automatic vulnerability scans. | The target agent and the configured model provider for generation, simulation, and LLM judges. |
| `rag-evaluator` | Python 3.12+; `pip install "giskard[openai,scan]"`, substituting your provider extra as needed. | The target RAG agent, any documents or retriever used in the evaluation, and the configured generation, judge, and embedding providers. |
| `hub-agent-setup` | Python 3.10+; `giskard-hub`, or the Giskard Hub MCP server when Python is unavailable. Plus dependencies needed to wrap your agent. For a local agent, `cloudflared` or an already configured `ngrok` installation. | A Giskard Hub project and an agent that can be exposed through an authenticated HTTPS endpoint. |
| `giskard-to-collibra` | Python 3.10+; `pip install -r integrations/giskard-to-collibra/requirements.txt` (`giskard-hub>=3.1.1` and `requests`). | Giskard Hub scan access and a Collibra instance with AI Governance and permission to import assets and write metrics to the chosen domain. |
| `third-party-to-giskard` | Python 3.12+. Run `pip install -r integrations/third-party-to-giskard/requirements.txt` (`giskard-checks>=1.0.2` and `giskard-hub>=3.2.0`). The third-party tools are not required. | Result files from garak, promptfoo, DeepTeam, or PyRIT. Optional Giskard Hub access with permission to create evaluations in the chosen project. |
Run dependency installation from the repository root in a Python virtual environment. The bare `giskard-checks` package does not include a model provider SDK.
For LiteLLM, install `giskard[litellm]` (or `giskard[litellm,scan]` for scans) and explicitly configure `LiteLLMGenerator` with your provider's credentials. See the [generator configuration examples](oss/checks/scenario-generator/references/api-reference.md#picking-a-judge-model).
## Available Skills
<table>
<thead>
<tr>
<th width="20%">Skill</th>
<th width="40%">Install Command</th>
<th width="40%">When to Use</th>
</tr>
</thead>
<tbody>
<tr>
<td>hub-agent-setup</td>
<td><code>npx skills add Giskard-AI/giskard-skills --skill hub-agent-setup</code></td>
<td>Use when a user wants to connect a local or remote agent to Giskard Hub. Creates an authenticated HTTPS endpoint with complete, non-streaming Chat or Structured responses, deploys it remotely or opens a local tunnel, and uses the Hub connection test (SDK or MCP) to guide any fixes.</td>
</tr>
<tr>
<td>scenario-generator</td>
<td><code>npx skills add Giskard-AI/giskard-skills --skill scenario-generator</code></td>
<td>Use when a user describes their AI agent and wants to create adversarial test scenarios, red-team their AI, generate evaluation suites, or build checks using the <code>giskard.checks</code> library. Triggers on phrases like "create scenarios", "test my agent", "evaluate my chatbot", "red-team my AI", or "generate checks".</td>
</tr>
<tr>
<td>rag-evaluator</td>
<td><code>npx skills add Giskard-AI/giskard-skills --skill rag-evaluator</code></td>
<td>Use when a user wants to evaluate a RAG (Retrieval-Augmented Generation) system or a Q&A bot grounded in documents. Covers groundedness, answer relevance, retrieval quality, hallucination, citation accuracy, and out-of-scope refusal. Triggers on phrases like "evaluate my RAG", "test my retrieval", "check groundedness", "build a RAG eval suite", or "test if my agent hallucinates". Quality-focused; for adversarial / red-teaming use <code>scenario-generator</code> instead.</td>
</tr>
<tr>
<td>giskard-to-collibra</td>
<td><code>npx skills add Giskard-AI/giskard-skills --skill giskard-to-collibra</code></td>
<td>Use when a user wants to export, push, or sync Giskard Hub scan results into Collibra AI Governance. Creates or updates the AI Agent asset hierarchy in Collibra (re-runs are idempotent) and pushes per-probe pass/fail metrics to the Quality tab. Triggers on phrases like "export my scan to Collibra", "push results to Collibra", or "send the latest scan of this project to Collibra". Requires a Collibra instance with AI Governance.</td>
</tr>
<tr>
<td>third-party-to-giskard</td>
<td><code>npx skills add Giskard-AI/giskard-skills --skill third-party-to-giskard</code></td>
<td>Use when a user has red-teaming or evaluation results from garak, promptfoo, DeepTeam, or PyRIT and wants them in Giskard. Converts the existing result files (it never runs the tools) into one Giskard OSS <code>SuiteResult</code> per tool, keeping prompts, responses, conversations, verdicts, scores, reasons, and categories. Optionally uploads each suite to Giskard Hub as an evaluation. Triggers on phrases like "import my garak report", "convert promptfoo results to Giskard", or "upload my PyRIT results to the Hub".</td>
</tr>
</tbody>
</table>
## Install as a Claude Code Plugin
This repository can also be used as a [Claude Code plugin](https://code.claude.com/docs/en/plugins). Clone the repo and start Claude with the `--plugin-dir` flag pointing at it:
```bash
claude --plugin-dir ./giskard-skills
```
Once Claude Code is running, use the `/giskard-skills` command to list the available skills.
## Credentials and configuration
Configure credentials only for the skills and providers you use. Keep secrets in environment variables, a secret store, or a git-ignored `.env` file; never include them in source code or logs.
| Integration | Configuration |
| --- | --- |
| Giskard Hub | `GISKARD_HUB_BASE_URL` for your Hub instance and `GISKARD_HUB_API_KEY` for SDK or MCP access. Hub setup also needs a project name or ID. |
| Agent wrapper | `AGENT_WRAPPER_API_KEY`, generated separately from the Hub key. Hub receives this key as the registered agent's authentication header so it can call the wrapper. The Hub API key is never sent to the wrapper. |
| Collibra | `COLLIBRA_URL`, `COLLIBRA_USER`, `COLLIBRA_PASSWORD`, and `COLLIBRA_DOMAIN_ID`, in addition to the Hub configuration. See [env.example](integrations/giskard-to-collibra/env.example). The export script loads `.env` from the working directory and its script directory; existing environment variables take precedence. |
| Model providers | The configured provider's credentials, such as `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, or `GOOGLE_API_KEY`. The `azure_ai/...` model prefix uses `AZURE_AI_API_KEY` and `AZURE_AI_ENDPOINT`; `azure/...` uses `AZURE_API_KEY` and `AZURE_API_BASE`. |
Configure embedding models separately when using a provider other than OpenAI. The evaluation examples default to `text-embedding-3-small`; an unprefixed embedding model name routes to OpenAI. Set `GISKARD_CHECKS_DEFAULT_EMBEDDING_MODEL` to an appropriate provider-prefixed model ID when needed.
## Network access and data flows
Depending on the skill, data is shared with:
| Destination | Data and operations |
| --- | --- |
| Giskard Hub (`GISKARD_HUB_BASE_URL`) | Registers agent metadata, schemas, endpoint, and wrapper credentials; reads projects and scan results. Uses the Hub SDK, or the Hub MCP server at `/_api/mcp/` when Python is unavailable. Receives converted third-party results (prompts, responses, verdicts, and metadata) as uploaded evaluations. |
| Your agent's endpoint | Receives test inputs and returns responses during connection tests and evaluations. |
| Collibra (`COLLIBRA_URL`, HTTPS) | Receives agent/probe metadata, endpoint URLs, scan IDs/dates, and pass/fail metrics to create or update governance assets. |
| Configured model and embedding providers | Receive descriptions, prompts, agent outputs, judging criteria, and supplied document text for generation and evaluation. |
| Cloudflare Tunnel or ngrok (optional) | Carries Hub requests and agent responses through a public HTTPS URL protected by the wrapper's API key. |
Installation uses GitHub, package registries, and optional tunnel CLI downloads. Collibra exports also save metadata locally in `import_agents.json`; evaluations may save reports. Third-party conversions read result files locally and save one `SuiteResult` JSON file per tool. They contact the Hub only when you choose to upload. `giskard-checks` sends anonymous usage telemetry (such as scenario and status counts) to PostHog when it writes a suite, and the `giskard-hub` SDK sends usage events (such as client initialization and errors, with an ID derived from the API key) when the skill lists projects or agents or uploads; set `GISKARD_TELEMETRY_DISABLED=1` to turn both off. Your coding agent and target agent retain their own service connections and data-handling settings.
## Usage costs
Scenario generation, simulated conversations, LLM judges, embeddings, automatic scans, and calls to your target agent can incur model-provider or agent-service charges. Costs depend on the selected models, document volume, scenario count, conversation turns, and reruns. Hub, Collibra, deployment, and tunnel services are subject to your existing service plans. Installing the skills does not include service access or API credits.
## Development checks
See [AGENTS.md](AGENTS.md) for the maintenance checklist when changing skills, manifests, or plugin support. The [smoke-test workflow](.github/workflows/plugin-smoke.yml) checks packaging, Claude validation, Grok discovery, and skills CLI installation without model calls or service credentials.
CI uses uv-managed Python 3.14 and Node.js 24 LTS. With `uv`, Node.js, and `npx` installed, run from the repository root (uv installs Python and the smoke-test dependencies as needed):
```bash
uv run --no-project --python 3.14 --with-requirements scripts/requirements-smoke.txt scripts/smoke_plugins.py packaging
npx --yes @anthropic-ai/[email protected] plugin validate .
uv run --no-project --python 3.14 --with-requirements scripts/requirements-smoke.txt scripts/smoke_plugins.py skills
```
For Grok, download the pinned `plugin_catalog.py` using the URL in the workflow, then run:
```bash
uv run --no-project --python 3.14 --with-requirements scripts/requirements-smoke.txt scripts/smoke_plugins.py grok --grok-catalog /path/to/plugin_catalog.py
```
The checks use tracked files with their current working-tree contents, so stage new skills before running them. Installation checks use temporary projects, verify bundled references and scripts, and disable skills CLI telemetry. External tool downloads require network access. These checks do not replace testing a skill's behavior in an agent.
## License
This repository is licensed under [Apache-2.0](LICENSE).
© Giskard-AI · Apache-2.0 · Giskard-AI/giskard-skills