discover-feature
БесплатноБез исполняемых скриптовНе проверенDiscover and document an existing feature in the codebase, creating implementation docs for legacy code. Usage: /discover-feature <feature-name> [description]
от ArmaOverthrow★ 95 звёзд на GitHubОб этом скилле
You have been asked to discover and document an existing feature in the codebase.
Feature name: First argument from $ARGUMENTS
Initial description: Remaining arguments from $ARGUMENTS (may be empty)
Harness
This command runs on any agent harness. Read .beast-mode/harness.md first.
It maps the neutral terms in this command to the tools of this harness.
Terms include: ask the user to choose, delegate to an agent, search the web,
and the harness skills directory. Use the mapped tool. Do not use a tool name
from another harness.
Epic awareness
This command is epic-aware. Before resolving the feature name to a path,
read .beast-mode/epic-resolution.md and apply its rules: detect epics by
epic-overview.md, resolve <epic>/<feature> references, and fuzzy-fall-back into
epic folders for bare names.
If the feature name is given in <epic>/<feature> slash form, discovery targets the nested path — all docs/features/<feature-name>/... reads and writes below become docs/features/<epic>/<feature>/..., and load the epic's epic-overview.md so the retrospective fits the epic.
If no epics exist in docs/features/, behave exactly as before.
.beast-mode/epic-resolution.md is the single source of truth for epic detection and resolution. This command's body is the discovery workflow; it does not re-specify those rules.
Process
1. Parse Arguments
Parse $ARGUMENTS to extract:
- Feature name (required): First word/phrase (use kebab-case format)
- If the feature name is in
<epic>/<feature>slash form (or a bare name that resolves into an epic per the Epic awareness rules), use the nesteddocs/features/<epic>/<feature>/location for the existence check in step 2 and all file creation in step 7.
- If the feature name is in
- Initial description (optional): Everything after the feature name
Examples:
/discover-feature layer-inspector→ name: "layer-inspector", description: empty/discover-feature layer-inspector The tree view in the editor sidebar→ name: "layer-inspector", description: "The tree view in the editor sidebar"
If $ARGUMENTS is completely empty:
- Ask user for feature name
- Ask for brief description of what the feature does
2. Check if Implementation Plan Already Exists
CRITICAL CHECK: Look for existing implementation plan at docs/features/<feature-name>/implementation.md
If implementation.md EXISTS:
- Read it to verify it's a proper implementation plan (not just placeholder)
- Show summary to user:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 📋 EXISTING PLAN FOUND ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Feature: <feature-name> Location: docs/features/<feature-name>/implementation.md Status: [Read from file] [Show first 20-30 lines of plan] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - Ask user: "An implementation plan already exists. Would you like to:"
- Option 1: Start working on it → Run
/start-feature <feature-name> - Option 2: Review what's been done → Investigate code and compare to plan
- Option 3: Replace it → Continue with discovery process to create new plan
- Option 4: Cancel → Do nothing
- Option 1: Start working on it → Run
If user chooses Option 1 (Start):
- Run the
/start-feature <feature-name>command - Check if
docs/features/<feature-name>/context.mdanddocs/features/<feature-name>/tasks.mdalready exist - If exist, investigate what work has been done:
- Read context.md and tasks.md to see progress
- Show summary of completed vs remaining work
- Ask if they want to continue from where it left off
If user chooses Option 2 (Review):
- Proceed to step 3 (Investigation) but focus on comparing actual implementation to plan
- Highlight what matches, what's different, what's missing
If user chooses Option 3 (Replace):
- Warn user that existing plan will be overwritten
- Ask for confirmation
- Proceed to step 3
If user chooses Option 4 (Cancel):
- Exit command
If NO implementation.md exists:
- Proceed to step 3
3. Gather Context from User
Ask the user to guide you to the feature:
"I'll help document the
- Where is the code? (file paths, directories, or patterns like
src/apps/Editor/modules/LayerInspector/**) - What does it do? (user-facing functionality)
- How is it used? (user workflow or API usage)
- Any known issues or improvement areas?
You can provide as much or as little detail as you'd like - I'll investigate the code to fill in the gaps."
Wait for user response.
4. Investigate the Codebase
Based on user guidance, delegate to the Explore agent to investigate:
Agent prompt should include:
Investigate the <feature-name> feature in this codebase.
**User Guidance:**
<user's description and file paths>
**Your Task:**
1. Find all files related to this feature
2. Understand the architecture and how components interact
3. Identify key technical decisions and patterns used
4
Установить discover-feature в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл discover-feature?
Discover and document an existing feature in the codebase, creating implementation docs for legacy code. Usage: /discover-feature <feature-name> [description]
Как установить скилл discover-feature?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл discover-feature запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic