Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

discover-feature

БесплатноБез исполняемых скриптовНе проверен

Discover and document an existing feature in the codebase, creating implementation docs for legacy code. Usage: /discover-feature <feature-name> [description]

ArmaOverthrowот ArmaOverthrow★ 95 звёзд на GitHub

Об этом скилле

Arguments on this harness. This harness does not substitute $ARGUMENTS. Read the text that follows /discover-feature in the same user message, and use that text wherever this skill writes $ARGUMENTS. When another skill loads this skill, use the arguments that the caller states. When no such text exists, treat $ARGUMENTS as empty.

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 nested docs/features/<epic>/<feature>/ location for the existence check in step 2 and all file creation in step 7.
  • 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

If user chooses Option 1 (Start):

  • Run the /start-feature <feature-name> command
  • Check if docs/features/<feature-name>/context.md and docs/features/<feature-name>/tasks.md already 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 feature. To understand how it works, please tell me:

  1. Where is the code? (file paths, directories, or patterns like src/apps/Editor/modules/LayerInspector/**)
  2. What does it do? (user-facing functionality)
  3. How is it used? (user workflow or API usage)
  4. 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 `

Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить discover-feature с