/codebase-blueprints:code-exemplars-blueprint-generatorfrom codebase-blueprints
Generates a configurable prompt blueprint for scanning a codebase and producing an exemplars.md catalog of real code examples. Use when users request code exemplars, pattern catalogs, or coding standard examples.
Ships in codebase-blueprints. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn the user's exemplar-generation settings into a complete prompt that instructs GitHub Copilot to scan real repository files, choose representative code patterns, and create an actionable exemplars.md document.
Use $ARGUMENTS as optional configuration text. Accept explicit values for PROJECT_TYPE, SCAN_DEPTH, INCLUDE_CODE_SNIPPETS, CATEGORIZATION, MAX_EXAMPLES_PER_CATEGORY, and INCLUDE_COMMENTS; otherwise use the defaults in the configuration table.
| Variable | Allowed values | Default | Controls |
|---|---|---|---|
PROJECT_TYPE | Auto-detect, .NET, Java, JavaScript, TypeScript, React, Angular, Python, Other | Auto-detect | Which languages and frameworks the generated prompt emphasizes. |
SCAN_DEPTH | Basic, Standard, Comprehensive | Standard | How much project-wide convention and architecture analysis to request. |
INCLUDE_CODE_SNIPPETS | true, false | true | Whether exemplars.md includes short snippets as well as file paths. |
CATEGORIZATION | Pattern Type, Architecture Layer, File Type | Pattern Type | How examples are grouped. |
MAX_EXAMPLES_PER_CATEGORY | Positive integer | 3 | Maximum exemplars in each category. |
INCLUDE_COMMENTS | true, false | true | Whether each exemplar explains key implementation details and principles. |
Render these settings in the generated prompt as literal configuration assignments when useful:
${PROJECT_TYPE="Auto-detect|.NET|Java|JavaScript|TypeScript|React|Angular|Python|Other"}
${SCAN_DEPTH="Basic|Standard|Comprehensive"}
${INCLUDE_CODE_SNIPPETS=true|false}
${CATEGORIZATION="Pattern Type|Architecture Layer|File Type"}
${MAX_EXAMPLES_PER_CATEGORY=3}
${INCLUDE_COMMENTS=true|false}
Only include actual files that exist in the codebase. Never invent hypothetical examples.
| Criterion | What to look for | Reject when |
|---|---|---|
| Readability | Clear naming, small units, visible intent | Clever but opaque implementation. |
| Documentation | Helpful comments, docstrings, or README-backed usage | Comments repeat syntax without explaining why. |
| Error handling | Explicit validation, typed errors, recoverable failure paths | Exceptions swallowed or converted to vague messages. |
| Architecture fit | Separation of concerns, dependency direction, conventional boundaries | Feature code bypasses layers or central conventions. |
| Tests | Representative unit, integration, or component tests | Tests only assert imports or snapshots with no behavior. |
| Maintainability | Low duplication, simple control flow, standard patterns | Code smell is present even if the file is common. |
Include only categories relevant to the detected or requested stack.
| Stack | Candidate categories |
|---|---|
.NET | Domain Models, Repository Implementations, Service Layer Components, Controller Patterns, Dependency Injection Usage, Middleware Components, Unit Test Patterns. |
Frontend (JavaScript, TypeScript, React, Angular) | Component Structure, State Management, API Integration, Form Handling, Routing Implementation, UI Components, Unit Test Examples. |
Java | Entity Classes, Service Implementations, Repository Patterns, Controller/Resource Classes, Configuration Classes, Unit Tests. |
Python | Class Definitions, API Routes/Views, Data Models, Service Functions, Utility Modules, Test Cases. |
| Architecture layer grouping | Presentation Layer, Business Logic Layer, Data Access Layer, Cross-Cutting Concerns such as logging, error handling, authentication/authorization, and validation. |
When SCAN_DEPTH is Comprehensive, ask the downstream scan to add Consistency Patterns, Architecture Observations, Implementation Conventions, and Anti-patterns to Avoid.
The generated prompt must instruct GitHub Copilot to:
PROJECT_TYPE is Auto-detect; otherwise focus on the requested stack.exemplars.md with an introduction, table of contents, organized sections based on CATEGORIZATION, no more than MAX_EXAMPLES_PER_CATEGORY examples per category, and maintenance recommendations.The generated prompt may include exact conditional language such as Focus on ${PROJECT_TYPE} code files when PROJECT_TYPE is not Auto-detect. Preserve stack category labels including Controllers/API, Routes/Views**, models/DTOs, and Authentication/authorization when the target repository uses those layers. Prefer the phrase well-structured for exemplar quality because the downstream artifact should distinguish representative files from merely functional files.
## Code exemplars blueprint
**Status:** ready
**Configuration:** `PROJECT_TYPE=<value>`, `SCAN_DEPTH=<value>`, `INCLUDE_CODE_SNIPPETS=<true/false>`, `CATEGORIZATION=<value>`, `MAX_EXAMPLES_PER_CATEGORY=<n>`, `INCLUDE_COMMENTS=<true/false>`
### Generated prompt
```text
Scan this codebase and generate an exemplars.md file that identifies high-quality, representative code examples. The exemplars should demonstrate our coding standards and patterns to help maintain consistency.
Configuration:
- PROJECT_TYPE: <value>
- SCAN_DEPTH: <value>
- INCLUDE_CODE_SNIPPETS: <true/false>
- CATEGORIZATION: <value>
- MAX_EXAMPLES_PER_CATEGORY: <n>
- INCLUDE_COMMENTS: <true/false>
<complete scan instructions, stack categories, documentation format, and verification rules>
exemplars.md containing real repository file references, organized categories, and actionable guidance for developers implementing new features consistently.
## Quality gate
- [ ] All six configuration variables are present and resolved to allowed values.
- [ ] The generated prompt requires real existing file paths and bans hypothetical examples.
- [ ] Stack-specific categories match `PROJECT_TYPE` or auto-detection.
- [ ] `SCAN_DEPTH=Comprehensive` includes consistency patterns, architecture observations, implementation conventions, and anti-patterns.
- [ ] The output artifact is literally named `exemplars.md`.
- [ ] The prompt caps each category at `MAX_EXAMPLES_PER_CATEGORY`.
What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/acquire-codebase-knowledgeMap, document, and onboard into an existing codebase by producing seven evidence-backed docs in docs/codebase/. Use when the user explicitly asks to map this codebase, document this architecture, onboard me to this repo, create codebase docs, or perform repository-level discovery; do not use for routine feature work or narrow edits./architecture-blueprint-generatorGenerate a comprehensive Project_Architecture_Blueprint.md by analyzing a codebase, detecting technology stacks and architectural patterns, documenting components, dependencies, diagrams, implementation patterns, testing, deployment, and governance. Use when asked to create an architecture blueprint, document project architecture, map layers, produce C4/UML/component diagrams, or guide new development consistency./copilot-instructions-blueprint-generatorGenerate technology-agnostic blueprints for comprehensive copilot-instructions.md files that make GitHub Copilot follow exact project versions, architecture, code quality, documentation, testing, and versioning conventions discovered from the codebase. Use this skill when the user asks for configuration variables, wants to create copilot-instructions.md, or needs repository-specific GitHub Copilot coding guidance./folder-structure-blueprint-generatorAnalyze a repository and generate Project_Folders_Structure_Blueprint.md with detected technologies, folder purposes, naming conventions, file placement patterns, navigation guidance, build outputs, and optional structure templates. Use this skill when the user asks for a project folder structure blueprint, repository organization map, architecture directory guide, monorepo or microservices structure analysis, or file placement conventions./project-workflow-analysis-blueprint-generatorGenerate technology-agnostic project workflow analysis blueprints that document end-to-end application flows, files, classes, entry points, service layers, data access, error handling, async processing, sequence diagrams, testing patterns, and implementation templates. Use this skill when the user asks to list all files/classes in a workflow, document representative workflows, map an API-to-database flow, or create an implementation-ready workflow blueprint./readme-blueprint-generatorGenerate a comprehensive README.md blueprint by analyzing repository documentation, .github/copilot files, copilot-instructions.md, architecture notes, technology stack, workflow, standards, tests, and exemplars. Use when asked to create or refresh a developer-focused README.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin codebase-blueprintsOther plugins' skills for the same job