Command Palette

Search for a command to run...

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

document-detection

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

Detect PRD/ADR/PRP opportunities in conversations and prompt for document creation. Use when the user discusses feature requirements, tech trade-offs, or…

laurigatesот laurigates★ 61 звезда на GitHub

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

Document Detection

Proactively identify when conversations should become structured documents (PRDs, ADRs, or PRPs) and guide users through the documentation workflow.

When to Use This Skill

Use this skill when... Use blueprint-derive-plans instead when...
Mid-conversation cues suggest a PRD/ADR/PRP should be captured You're explicitly deriving plans (PRDs/ADRs/PRPs) from existing README/docs and git history
The user says "I want to build...", "users should be able to..." Use blueprint-derive-plans instead when the cue is a tech-choice decision worth an ADR
The user compares trade-offs ("should we use X or Y?") Use document-linking instead to wire IDs across already-created docs
Implementation scope is being discussed and warrants a PRP Use blueprint-prp-create instead when you've already decided to author a PRP

When This Skill Activates

This skill is loaded when conversation context suggests documentation opportunities:

  • Feature requirements being discussed
  • Architecture decisions being made
  • Implementation planning in progress
  • Technology trade-offs being evaluated

Prerequisites

Document detection requires:

  1. Blueprint initialized in project (docs/blueprint/manifest.json exists)
  2. has_document_detection: true in manifest structure
  3. docs/ directory structure created

Check prerequisites before prompting:

# Verify blueprint is initialized with document detection enabled
jq -r '.structure.has_document_detection // false' docs/blueprint/manifest.json 2>/dev/null

Detection Patterns

PRD Indicators (Product Requirements)

Primary triggers (confidence +0.5 each):

  • Feature descriptions: "I want to build...", "The system should...", "We need a feature that..."
  • User stories: "As a [user], I want...", "Users should be able to..."
  • Requirements enumeration: Lists of features or capabilities
  • Problem/solution framing: "The problem is... the solution is..."

Confidence boosters (+0.1-0.2 each):

  • Multiple features mentioned (+0.2)
  • User personas identified (+0.1)
  • Success criteria discussed (+0.1)
  • Priority levels mentioned (P0, P1, must-have, nice-to-have) (+0.1)
  • Timeline or milestones mentioned (+0.1)

Example triggers: references/example-triggers.md.

ADR Indicators (Architecture Decisions)

Primary triggers (confidence +0.5 each):

  • Technology comparisons: "Should we use X or Y?", "Which is better: X or Y?"
  • Trade-off discussions: "The pros and cons of...", "The trade-offs between..."
  • "Why did we choose..." questions
  • Framework/library selection discussions
  • Design pattern debates

Confidence boosters (+0.1-0.2 each):

  • Multiple options explicitly compared (+0.2)
  • Trade-offs listed with pros/cons (+0.1)
  • Long-term impact discussed (+0.1)
  • Team disagreement on approach (+0.1)
  • Reversibility or commitment discussed (+0.1)

Example triggers: references/example-triggers.md.

PRP Indicators (Implementation Prompts)

Primary triggers (confidence +0.5 each):

  • Implementation intent: "Let's implement...", "How do we build...", "Time to code..."
  • Specific feature scope: "the authentication module", "the payment flow", "the dashboard component"
  • Technical approach discussions: "We'll use X pattern to...", "The implementation will..."
  • File/component planning: "We need to create files for...", "The components are..."

Confidence boosters (+0.1-0.2 each):

  • File paths or component names mentioned (+0.2)
  • Test approach discussed (+0.1)
  • Clear scope boundaries defined (+0.1)
  • Dependencies identified (+0.1)
  • PRD reference made (+0.1)

Example triggers: references/example-triggers.md.

Confidence Calculation

Threshold for prompting: >= 0.7

Base confidence: 0.0
+ Primary trigger matched: +0.5
+ Additional primary trigger: +0.3
+ Each booster matched: +0.1 to +0.2

Total >= 0.7 → Prompt user
Total < 0.7 → Continue without prompting

Examples:

  • "I want authentication" → 0.5 (single trigger, below threshold)
  • "I want to build authentication with OAuth, MFA, and password reset" → 0.5 + 0.2 (multiple features) = 0.7 (meets threshold)
  • "Should we use Postgres?" → 0.5 (single trigger, below threshold)
  • "Should we use Postgres or MongoDB? Postgres has better querying but MongoDB scales easier" → 0.5 + 0.2 (comparison) + 0.1 (trade-offs) = 0.8 (exceeds threshold)

Detection Flow

When confidence >= 0.7, execute this flow:

Step 1: Prompt User

Use AskUserQuestion to confirm document creation:

question: "This looks like a [PRD/ADR/PRP] opportunity. Would you like to document it?"
options:
  - label: "Yes, create [document type]"
    description: "I'll gather context and create the document"
  - label: "Add to backlog"
    description: "Record this topic for later documentation"
  - label: "Not now, remind me later"
    description: "Continue conversation, pr
Полный SKILL.md на GitHub

Установить document-detection в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
Bash(jq *)

Вложенные файлы

references/adr-domains.mdreferences/clarification-prompts.mdreferences/example-triggers.md

FAQ

Что делает скилл document-detection?

Detect PRD/ADR/PRP opportunities in conversations and prompt for document creation. Use when the user discusses feature requirements, tech trade-offs, or implementation plans.

Как установить скилл document-detection?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл document-detection запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить document-detection с