Генерирует настраиваемые AI-промпты для сканирования кодовой базы и поиска качественных примеров кода для формирования стандартов разработки.
- Звёзды на GitHub
- 41 038
- Файлы
- 1
- Последний коммит
- 11 нояб. 2026 г.
- Лицензия
- MIT
- Разрешённые инструменты
- —
Что делает навык code-exemplars-blueprint-generator?
code-exemplars-blueprint-generator — это Agent Skill. Генерирует настраиваемые AI-промпты для сканирования кодовой базы и поиска качественных примеров кода для формирования стандартов разработки.
Сводка сгенерирована из SKILL.md навыка.
О skill code-exemplars-blueprint-generator
Основная функция этого инструмента — создание стандартизированных руководств по разработке путем поиска качественного кода в существующих репозиториях. Он генерирует специализированные AI-промпты, которые инструктируют агента просканировать кодовую базу и создать файл exemplars.md. Этот файл служит справочником для разработчиков, помогая поддерживать консистентность за счет следования установленным паттернам и архитектурным принципам, уже реализованным в их собственных проектах.
Разработчики могут настраивать процесс генерации, выбирая конкретные языки программирования, такие как Python, Java, TypeScript или .NET. Инструмент позволяет регулировать глубину анализа — от базовой до исчерпывающей, а также дает возможность выбрать, включать ли в итоговый результат фрагменты реального кода или только пояснительные комментарии. Результаты можно группировать по типам паттернов, уровням архитектуры или типам файлов, что гарантирует соответствие документации организационным потребностям команды. Этот подход опирается на способность агента анализировать расширения файлов, конфигурационные файлы и структуру директорий для поиска реальных реализаций, а не гипотетических примеров.
Что агент может делать с ним
- 1Установление стандартов кодированияСгенерируйте промпт для поиска репрезентативных примеров кода, которые демонстрируют специфические стандарты и паттерны вашей команды.
- 2Документирование архитектурных слоевСоздайте руководство, которое классифицирует качественный код по уровням представления (presentation), бизнес-логики (business logic) и доступа к данным (data access).
- 3Автоматизация анализа кодовой базыСоздавайте подробные markdown-файлы, содержащие каталогизацию реальных путей к файлам и деталей реализации для конкретных технологических стеков.
- 4Поиск паттернов реализацииСканируйте репозиторий для поиска конкретных примеров внедрения зависимостей (dependency injection), паттернов репозитория (repository patterns) или структур компонентов.
Написано на основе skill SKILL.md. Каждый сценарий использования проверен по цитате из него.
Как установить навык code-exemplars-blueprint-generator
Каждая команда копирует папку навыка в каталог навыков клиента. Перезапустите клиент или начните новую сессию, чтобы загрузить его.Установка навыка code-exemplars-blueprint-generator в Claude Code
~/.claude/skills/code-exemplars-blueprint-generator/SKILL.md
$ npx degit github/awesome-copilot/skills/code-exemplars-blueprint-generator ~/.claude/skills/code-exemplars-blueprint-generatorУстановка навыка code-exemplars-blueprint-generator в Claude Code (project)
.claude/skills/code-exemplars-blueprint-generator/SKILL.md
$ npx degit github/awesome-copilot/skills/code-exemplars-blueprint-generator .claude/skills/code-exemplars-blueprint-generatorУстановка навыка code-exemplars-blueprint-generator в Codex
~/.agents/skills/code-exemplars-blueprint-generator/SKILL.md
$ npx degit github/awesome-copilot/skills/code-exemplars-blueprint-generator ~/.agents/skills/code-exemplars-blueprint-generatorУстановка навыка code-exemplars-blueprint-generator в Gemini CLI
~/.gemini/skills/code-exemplars-blueprint-generator/SKILL.md
$ npx degit github/awesome-copilot/skills/code-exemplars-blueprint-generator ~/.gemini/skills/code-exemplars-blueprint-generatorУстановка навыка code-exemplars-blueprint-generator в Claude.ai
npx degit github/awesome-copilot/skills/code-exemplars-blueprint-generator code-exemplars-blueprint-generator && zip -r code-exemplars-blueprint-generator.zip code-exemplars-blueprint-generator # claude.ai → Customize → Skills → + → Create skill → Upload a skill → code-exemplars-blueprint-generator.zip
Автоматические проверки
Запущено 15 нояб. 2026 г.Полный отчёт →Прошёл наши автоматические проверки. Это не аудит безопасности: прочитайте скрипты, прежде чем агент их запустит. Как работают проверки · Что исправить, чтобы получить больше баллов
- Связанный и доступный исходный репозиторийgithub/awesome-copilot/skills/code-exemplars-blueprint-generator is public and reachablegithub.com/github/awesome-copilot/tree/HEAD/skills/code-exem ↗Пройдено
- Open source лицензия (OSI)MITspdx.org/licenses/MIT.html ↗Пройдено
- Коммит или релиз за последний годLast commit 2026-11-11github.com/github/awesome-copilot/commits ↗Пройдено
- В скриптах нет загрузки с запуском и кражи учётных данныхNo scripts in the skill folderПройдено
- В SKILL.md нет скрытых инструкцийNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/github/awesome-copilot/blob/HEAD/skills/code-exem ↗Пройдено
- Заранее разрешённые инструменты ограниченыNo pre-approved tools; the agent asks before using onegithub.com/github/awesome-copilot/blob/HEAD/skills/code-exem ↗Пройдено
- SKILL.md соответствует формату Agent Skillsthe description does not say when to use the skillgithub.com/github/awesome-copilot/blob/HEAD/skills/code-exem ↗Проблема
SKILL.md
Открыть на GitHubCode Exemplars Blueprint Generator
Configuration Variables
${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}
Generated Prompt
"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. Use the following approach:
1. Codebase Analysis Phase
- ${PROJECT_TYPE == "Auto-detect" ? "Automatically detect primary programming languages and frameworks by scanning file extensions and configuration files" :
Focus on ${PROJECT_TYPE} code files} - Identify files with high-quality implementation, good documentation, and clear structure
- Look for commonly used patterns, architecture components, and well-structured implementations
- Prioritize files that demonstrate best practices for our technology stack
- Only reference actual files that exist in the codebase - no hypothetical examples
2. Exemplar Identification Criteria
- Well-structured, readable code with clear naming conventions
- Comprehensive comments and documentation
- Proper error handling and validation
- Adherence to design patterns and architectural principles
- Separation of concerns and single responsibility principle
- Efficient implementation without code smells
- Representative of our standard approaches
3. Core Pattern Categories
${PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect" ? `#### .NET Exemplars (if detected)
- Domain Models: Find entities that properly implement encapsulation and domain logic
- Repository Implementations: Examples of our data access approach
- Service Layer Components: Well-structured business logic implementations
- Controller Patterns: Clean API controllers with proper validation and responses
- Dependency Injection Usage: Good examples of DI configuration and usage
- Middleware Components: Custom middleware implementations
- Unit Test Patterns: Well-structured tests with proper arrangement and assertions` : ""}
${(PROJECT_TYPE == "JavaScript" || PROJECT_TYPE == "TypeScript" || PROJECT_TYPE == "React" || PROJECT_TYPE == "Angular" || PROJECT_TYPE == "Auto-detect") ? `#### Frontend Exemplars (if detected)
- Component Structure: Clean, well-structured components
- State Management: Good examples of state handling
- API Integration: Well-implemented service calls and data handling
- Form Handling: Validation and submission patterns
- Routing Implementation: Navigation and route configuration
- UI Components: Reusable, well-structured UI elements
- Unit Test Examples: Component and service tests` : ""}
${PROJECT_TYPE == "Java" || PROJECT_TYPE == "Auto-detect" ? `#### Java Exemplars (if detected)
- Entity Classes: Well-designed JPA entities or domain models
- Service Implementations: Clean service layer components
- Repository Patterns: Data access implementations
- Controller/Resource Classes: API endpoint implementations
- Configuration Classes: Application configuration
- Unit Tests: Well-structured JUnit tests` : ""}
${PROJECT_TYPE == "Python" || PROJECT_TYPE == "Auto-detect" ? `#### Python Exemplars (if detected)
- Class Definitions: Well-structured classes with proper documentation
- API Routes/Views: Clean API implementations
- Data Models: ORM model definitions
- Service Functions: Business logic implementations
- Utility Modules: Helper and utility functions
- Test Cases: Well-structured unit tests` : ""}
4. Architecture Layer Exemplars
-
Presentation Layer:
- User interface components
- Controllers/API endpoints
- View models/DTOs
-
Business Logic Layer:
- Service implementations
- Business logic components
- Workflow orchestration
-
Data Access Layer:
- Repository implementations
- Data models
- Query patterns
-
Cross-Cutting Concerns:
- Logging implementations
- Error handling
- Authentication/authorization
- Validation
5. Exemplar Documentation Format
For each identified exemplar, document:
- File path (relative to repository root)
- Brief description of what makes it exemplary
- Pattern or component type it represents ${INCLUDE_COMMENTS ? "- Key implementation details and coding principles demonstrated" : ""} ${INCLUDE_CODE_SNIPPETS ? "- Small, representative code snippet (if applicable)" : ""}
${SCAN_DEPTH == "Comprehensive" ? `### 6. Additional Documentation
- Consistency Patterns: Note consistent patterns observed across the codebase
- Architecture Observations: Document architectural patterns evident in the code
- Implementation Conventions: Identify naming and structural conventions
- Anti-patterns to Avoid: Note any areas where the codebase deviates from best practices` : ""}
${SCAN_DEPTH == "Comprehensive" ? "7" : "6"}. Output Format
Create exemplars.md with:
- Introduction explaining the purpose of the document
- Table of contents with links to categories
- Organized sections based on ${CATEGORIZATION}
- Up to ${MAX_EXAMPLES_PER_CATEGORY} exemplars per category
- Conclusion with recommendations for maintaining code quality
The document should be actionable for developers needing guidance on implementing new features consistent with existing patterns.
Important: Only include actual files from the codebase. Verify all file paths exist. Do not include placeholder or hypothetical examples. "
Expected Output
Upon running this prompt, GitHub Copilot will scan your codebase and generate an exemplars.md file containing real references to high-quality code examples in your repository, organized according to your selected parameters.
Файлы в этом навыке
1Вопросы о навыке code-exemplars-blueprint-generator
Как установить навык code-exemplars-blueprint-generator в Claude Code?
Выполните npx degit github/awesome-copilot/skills/code-exemplars-blueprint-generator ~/.claude/skills/code-exemplars-blueprint-generator. Claude Code загружает навыки из ~/.claude/skills (все проекты) или .claude/skills (один проект) и использует навык, когда его описание соответствует задаче.
Какие клиенты могут использовать навык code-exemplars-blueprint-generator?
Любой клиент, который читает формат Agent Skills: Claude Code, Codex, Gemini CLI и claude.ai (загрузить как ZIP). Скрипты в навыке выполняются только там, где клиент разрешает выполнение кода.
Какие языки программирования поддерживаются?
Генератор поддерживает .NET, Java, JavaScript, TypeScript, React, Angular и Python.
Для чего нужен создаваемый файл exemplars.md?
Этот файл содержит отобранные качественные и репрезентативные примеры кода, которые демонстрируют стандарты и паттерны написания кода для поддержания единообразия в проекте.