blueprint-derive-plans
БесплатноБез исполняемых скриптовНе проверенDerive PRDs, ADRs, PRPs from git history, docs, and codebase. Use when onboarding a project to blueprint, generating a PRD or ADRs retroactively, or…
от laurigates★ 61 звезда на GitHubОб этом скилле
/blueprint:derive-plans
Retroactively generate Blueprint documentation (PRDs, ADRs, PRPs) from an existing established project by analyzing git history, codebase structure, and existing documentation.
Use case: Onboarding established projects into the Blueprint Development system when PRD/ADR/PRP documents don't exist but the project has implementation history.
When to Use This Skill
| Use this skill when... | Use alternative when... |
|---|---|
| Project has git history but no PRDs/ADRs/PRPs | Starting a brand new project with no history |
| Onboarding an established project to Blueprint | Creating a fresh PRD from scratch with user guidance |
| Need to extract features from commit history | Project lacks conventional commits and clear history |
| Want to document architecture decisions retroactively | Decisions are already fully documented |
Context
- Git repository: !
git rev-parse --git-dir - Blueprint initialized: !
find . -path '*/docs/blueprint/*' -maxdepth 3 -name 'manifest.json' -type f - Total commits: !
git rev-list --count HEAD - First commit: !
git log --reverse --format=%ai --max-count=1 - Latest commit: !
git log --max-count=1 --format=%ai - Project type: !
find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'go.mod' -o -name 'pom.xml' \) -type f -print -quit - Documentation files: !
find . -maxdepth 2 \( -name "README.md" -o -name "ARCHITECTURE.md" -o -name "DESIGN.md" \)
Parameters
Parse these from $ARGUMENTS:
--quick: Fast scan (last 50 commits only)--since DATE: Analyze commits from specific date (e.g.,--since 2024-01-01)
Default behavior without flags: Standard analysis (last 200 commits with scope estimation).
For detailed templates, manifest format, and report examples, see REFERENCE.md.
Execution
Execute this retroactive documentation generation workflow:
Step 1: Verify prerequisites
Check the values in Context:
- If git repository = "NO" → Error: "This directory is not a git repository. Run from project root."
- If total commits = "0" → Error: "Repository has no commit history"
- If Blueprint initialized = "NO" → Ask user: "Blueprint not initialized. Initialize now (Recommended) or minimal import only?"
- If "Initialize now" → Use Task tool to invoke
/blueprint:init, then continue with this step 1 - If "Minimal import only" → Create minimal directory structure:
mkdir -p docs/prds docs/adrs docs/prps
- If "Initialize now" → Use Task tool to invoke
Step 2: Determine analysis scope
Parse $ARGUMENTS for --quick or --since:
- If
--quickflag present → scope = last 50 commits - If
--since DATEpresent → scope = commits from DATE to now - Otherwise → Present options to user:
- Quick scan (last 50 commits)
- Standard analysis (last 200 commits)
- Full history analysis (all commits)
- Custom date range
Use selected scope for all subsequent git analysis.
Step 3: Analyze git history quality
For commits in scope, calculate:
- Count total commits:
git log --oneline {scope} | wc -l - Count conventional commits:
git log --format="%s" {scope} | grep -cE "^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)\(?.*\)?:" || echo 0 - Calculate percentage and assign quality score (see REFERENCE.md)
Report: "Git history quality: {score}/10 ({percentage}% conventional commits)"
Step 4: Extract features and architecture decisions
Using methods from REFERENCE.md:
- Extract feature boundaries from conventional commit scopes
- Identify architecture decisions (migrations, major dependencies, breaking changes)
- Find issue references and future work items (TODOs, skipped tests)
- Identify release boundaries from git tags
Collect findings in structured format for user confirmation.
Step 5: Analyze codebase and existing documentation
- Use Explore agent to analyze architecture: directory structure, components, frameworks, patterns, entry points, data layer, API layer, testing structure
- Extract dependencies from manifest files (package.json, pyproject.toml, Cargo.toml, go.mod, etc.)
- Read and extract from existing documentation: README.md, docs/, ARCHITECTURE.md, DESIGN.md, CONTRIBUTING.md
- Detect future work: TODOs in code, open GitHub issues, skipped tests
Step 6: Clarify project context with user
Ask for clarifications via AskUserQuestion. For the full question templates
(problem statement, target users, project phase, stakeholder scale), see
REFERENCE.md.
- Project purpose (if not clear from README): present the inferred description for confirmation, or ask the user to provide one
- Target users: developers, end users, or both — steers the PRD's framing
- Project phase: MVP / active development / maintenance / planning major changes — sets feature-vs-stabil
Установить blueprint-derive-plans в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteGlobGrepBash(git rev-parse *)Bash(git rev-list *)Bash(git log *)Bash(find *)Bash(grep *)Bash(sed *)Bash(sort *)Bash(uniq *)Bash(head *)Bash(wc *)Bash(mkdir *)Bash(jq *)Bash(date *)Bash(mv *)Bash(gh issue create *)AskUserQuestionTaskВложенные файлы
FAQ
Что делает скилл blueprint-derive-plans?
Derive PRDs, ADRs, PRPs from git history, docs, and codebase. Use when onboarding a project to blueprint, generating a PRD or ADRs retroactively, or extracting features from conventional commits.
Как установить скилл blueprint-derive-plans?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл blueprint-derive-plans запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic