competition-prompt-injection — скилл для Claude Code
Скилл competition-prompt-injection для Claude Code разбирает CTF-задачи о границах доверия в системах с ИИ-агентами. Прослеживает, как недоверенный текст влияет на планировщик, аргументы инструментов или раскрытие секретов.
MIT 109 установок ★ 45 047 обновлён 2026-09-22
npx skills add zhaoxuya520/reverse-skill --skill competition-prompt-injection -a claude-codeЧто делает competition-prompt-injection
Скилл помогает анализировать CTF-задачи о prompt injection и других нарушениях границ доверия между компонентами агентной системы. Он прослеживает путь от найденного текста или содержимого памяти до действий планировщика и исполнителя, а затем отделяет изменение инструкций от реального побочного эффекта.
Работа начинается с определения первого недоверенного фрагмента, который видит модель. Затем разбирается цепочка до изменения аргумента инструмента, пути к файлу, сетевой цели или запроса секрета. Скилл предлагает подтвердить одну минимальную цепочку и сохранить ключевые фрагменты: исходный текст, промежуточное изменение состояния планировщика и финальный вызов инструмента.
Сбой описывается по слою: поиск, суммаризация, планировщик, исполнитель, нормализация инструмента или постобработка ответа. Для чек-листа и структуры доказательств используется references/prompt-injection.md. Скилл подключается только после $ctf-sandbox-orchestrator, когда тот уже задал условия песочницы, владельцев узлов и приоритеты доказательств.
Какие задачи решает
- проследить путь от недоверенного текста до вызова инструмента
- найти слой агентной системы, где нарушилась граница доверия
- отличить изменение инструкций от реального побочного эффекта
- собрать компактные доказательства раскрытия секрета
Примеры запросов агенту
- Разбери CTF-задачу, где найденный текст меняет аргументы инструмента.
- Проследи, как содержимое памяти влияет на планировщик и вызов инструмента.
- Определи, на каком слое агентной цепочки раскрывается секрет.
Как установить competition-prompt-injection
1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-prompt-injection -a claude-code2Вручную: положить файлы
~/.claude/skills/competition-prompt-injection/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/competition-prompt-injection/
1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-prompt-injection -a codex2Вручную: положить файлы
.agents/skills/competition-prompt-injection/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-prompt-injection -a cursor2Вручную: положить файлы
.cursor/skills/competition-prompt-injection/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install zhaoxuya520/reverse-skill CTF-Sandbox-Orchestrator/competition-prompt-injection/SKILL.md2Вручную: положить файлы
.github/skills/competition-prompt-injection/SKILL.md1Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-prompt-injection -a gemini-cli2Командой платформы
gemini skills install https://github.com/zhaoxuya520/reverse-skill --path CTF-Sandbox-Orchestrator/competition-prompt-injectionВручную: положить файлы
.devin/skills/competition-prompt-injection/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add zhaoxuya520/reverse-skill --skill competition-prompt-injection -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о competition-prompt-injection
Как установить competition-prompt-injection в Claude Code?
Выполни npx skills add zhaoxuya520/reverse-skill --skill competition-prompt-injection -a claude-code. Файл скилла находится по пути ~/.claude/skills/competition-prompt-injection/SKILL.md.
Что делает competition-prompt-injection?
Скилл разбирает CTF-задачи о prompt injection и нарушениях границ доверия в агентных системах. Он помогает связать недоверенный ввод с изменением поведения планировщика, аргументов инструментов или раскрытием секрета.
Что нужно для работы competition-prompt-injection?
Сначала $ctf-sandbox-orchestrator должен задать условия песочницы, владельцев узлов и приоритеты доказательств. Этот скилл подключается после такой маршрутизации.
Исходный текст
SKILL.md · MIT
--- name: competition-prompt-injection description: Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for prompt-injection, retrieval poisoning, memory contamination, planner drift, MCP or tool-boundary abuse, and agent exfiltration challenges. Use when the user asks to analyze prompt injection, retrieval poisoning, memory contamination, planner drift, tool-argument corruption, or secret exposure caused by an agent chain. Use only after `$ctf-sandbox-orchestrator` has already established sandbox assumptions and routed here. --- # Competition Prompt Injection Use this skill only as a downstream specialization after `$ctf-sandbox-orchestrator` is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to `$ctf-sandbox-orchestrator` first. Use this skill when the challenge is primarily about trust boundaries inside an agentic system. Reply in Simplified Chinese unless the user explicitly requests English. ## Quick Start 1. Identify the first untrusted content that becomes model-visible. 2. Map the chain from retrieval, memory, or transcript into planner or executor behavior. 3. Record the exact point where text becomes a tool argument, file path, network target, or secret request. 4. Prove one minimal exploit chain before exploring variants. 5. Keep prompt snippets and tool transitions in compact evidence blocks. ## Workflow ### 1. Map The Control Stack - Track system, developer, user, retrieved, memory, planner, and tool-response layers separately. - Distinguish claimed capability from runtime-exposed capability. - Note what the model can actually call, read, or mutate. ### 2. Prove The Boundary Crossing - Reproduce one chain from untrusted text to changed planner behavior, changed tool args, or secret exposure. - Keep the decisive transcript compact: source chunk, rewritten planner state, final tool invocation. - Prefer the smallest transcript that still demonstrates the bug. ### 3. Report By Boundary - State which layer failed: retrieval, summarizer, planner, executor, tool normalization, or output post-processing. - Separate instruction drift from actual side effect. ## Read This Reference - Load `references/prompt-injection.md` for the checklist, evidence layout, and common prompt-boundary pitfalls. ## What To Preserve - Original malicious chunk or prompt - Intermediate summary or planner drift if it matters - Final tool args, file paths, or exposed secret surface
© zhaoxuya520 · MIT · zhaoxuya520/reverse-skill