discovery · avelikiy — скилл для Claude Code: вопросы до проектирования
Скилл помогает собрать контекст и ограничения до архитектурного решения, аудита или плана безопасности. Используйте его, когда важных деталей ещё нет в запросе.
npx skills add avelikiy/great_cto --skill discovery -a claude-codeЧто делает discovery
Перед подготовкой архитектурного документа, аудита или модели угроз скилл предлагает проверить семь областей: зависимости и потребителей, масштаб, неизменяемые контракты, бюджет, последствия сбоя, предыдущую работу и тех, кто принимает решение. Он просит искать сведения в проекте и фиксировать выводы в разделе Context отчёта.
Для поиска используются Read, Grep, Glob и Bash-команды с ограничениями git:* и bd:*; пути включают docs/**, .great_cto/** и README*. Для нано-проектов, извлечения утилиты без смены поведения и исправления бага с ясным воспроизведением скилл предлагает пропустить discovery. Это важно учитывать: для таких задач он сам считает сбор контекста лишней работой.
Какие задачи решает
- выявить зависимости перед изменением модуля
- зафиксировать масштаб и бюджет до выбора архитектуры
- найти прежние решения и попытки через Beads и документы
- оценить последствия сбоя до планирования защиты
- определить, кому нужно согласовать решение
Примеры запросов агенту
- Перед проектированием проверь зависимости, ограничения и предыдущие решения в репозитории.
- Подготовь аудит: сначала собери недостающий контекст и оформи раздел Context.
- Перед моделью угроз выясни, что нельзя менять и кто должен согласовать план.
Как установить discovery
1Через Skills CLI (Vercel)
npx skills add avelikiy/great_cto --skill discovery -a claude-code2Вручную: положить файлы
~/.claude/skills/discovery/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/discovery/
1Через Skills CLI (Vercel)
npx skills add avelikiy/great_cto --skill discovery -a codex2Вручную: положить файлы
.agents/skills/discovery/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add avelikiy/great_cto --skill discovery -a cursor2Вручную: положить файлы
.cursor/skills/discovery/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install avelikiy/great_cto discovery2Вручную: положить файлы
.github/skills/discovery/SKILL.md1Через Skills CLI (Vercel)
npx skills add avelikiy/great_cto --skill discovery -a gemini-cli2Командой платформы
gemini skills install https://github.com/avelikiy/great_cto --path skills/discoveryВручную: положить файлы
.devin/skills/discovery/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add avelikiy/great_cto --skill discovery -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о discovery
Как установить discovery в Claude Code?
Выполните npx skills add avelikiy/great_cto --skill discovery -a claude-code. Файл скилла появится в ~/.claude/skills/discovery/SKILL.md.
Что делает discovery?
Помогает агенту собрать сведения о проекте и записать найденные ограничения до архитектурного решения, аудита или плана безопасности.
Когда discovery предлагает пропустить сбор контекста?
Для нано-проекта, извлечения утилиты без изменения поведения и исправления бага с ясным воспроизведением.
Исходный текст
SKILL.md · MIT
--- name: discovery description: Structured pre-design questioning to surface hidden constraints before any architecture decision is locked in. Forces the architect/auditor/reviewer to enumerate what they DON'T know before proposing. when_to_use: | Apply BEFORE producing architecture docs, audit findings, security plans: - architect, before writing ARCH-*.md - project-auditor, at the start of /audit - security-officer, before threat-modeling - l3-support, when triaging a new incident - regulated-reviewer, when classifying compliance scope - any reviewer who needs domain context the user hasn't given effort: medium allowed-tools: Read, Grep, Glob, Bash(git:*), Bash(bd:*) paths: - "docs/**" - ".great_cto/**" - "README*" --- # Discovery — surface hidden constraints first The biggest cause of bad agent output is missing context. Before locking in a decision, enumerate what you don't know and surface it. ## The 7 discovery dimensions For any non-trivial request, walk through these and record findings in the report's "Context" section: ### 1. Who depends on this? - What other services / teams consume the thing you're changing? - Are there public consumers (open API, OSS users)? - Is there a deprecation path if you break compatibility? Grep for: `grep -rE "import.*<your-module>|require.*<your-module>"` in the repo and any sibling repos you have access to. ### 2. What's the scale today, what's it in 6 months? - Current traffic: requests/sec, queries/sec, MB/day, daily-active-users - Storage: rows in main tables, size on disk - Cost: monthly LLM spend, infra spend - 6-month projection: linear? exponential? unknown? If unknown, write: "scale unknown — request from user before proceeding." ### 3. What MUST not change? - Existing API contracts (backward compatibility window) - Database schema columns referenced by reporting / BI - File formats consumed by other tools - Regulatory commitments (audit log retention, SLA RPO/RTO) ### 4. What's the budget? - Monthly cost ceiling (LLM + infra) - Headcount: 1-person task vs cross-team effort - Calendar: "must ship by X" vs "best by Y" If unstated, default to "small project_size, 1-engineer-week, <$200/mo budget." Surface this default in the report so the user can correct. ### 5. What's the failure mode that matters? Ask: "If this feature breaks at 3am, what gets paged?" - Data loss → CRITICAL - Wrong answer to user → HIGH - Slow response → MEDIUM - Bad UX (cosmetic) → LOW The failure mode dictates investment level (e.g., do you need a canary? A circuit breaker? Just a feature flag?). ### 6. What's already been tried? - Search Beads: `bd search "<keyword>"` — has this been attempted before? - Search docs/decisions: any superseded ADR on this topic? - Search lessons.md: any past learning about this pattern? If past work exists, build on it. Don't redo it. ### 7. Who decides? - Is there a CTO sign-off needed (gate:plan, gate:ship)? - Is there a compliance reviewer required (PCI for fintech, HIPAA for healthcare)? - Does this need an RFC (multi-team decision)? ## Output A discovery section at the top of your report: ```markdown ## Context - **Consumers:** <list, or "unknown — TBD with user"> - **Scale:** <today, 6mo projection> - **Frozen contracts:** <list, or "none identified"> - **Budget:** <cost + time + people> - **Failure-mode tier:** Critical | High | Medium | Low - **Prior work:** <links to ADRs/lessons, or "none found"> - **Decision-makers:** <gate or RFC required> ``` ## When to skip - **nano project_size** — discovery is overhead. Skip and document that you skipped: "nano — discovery skipped per skill rules." - **Pure utility extraction** with no behaviour change — skip. - **Verbal bug-fix from user** with clear repro — skip. ## Common gotchas - **Don't assume.** If you write "I assume the user wants X", that assumption belongs in Context as a question, not as a fact. - **Don't outsource to user.** Discovery is YOUR job. Bring back as many answers as Glob/Grep/git can produce. Only ask the user for what code cannot tell you.
© avelikiy · MIT · avelikiy/great_cto
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — discovery от других авторов.