code-exemplars-blueprint-generator
Что он делает
Этот генератор создаёт руководство с примерами качественного кода для вашего проекта. Он помогает поддерживать единый стандарт программирования, показывая хорошие примеры написания кода.
Когда использовать
- ✓Когда начинаете новый проект и хотите задать стандарты.
- ✓Когда нужно повысить качество кода.
- ✓Чтобы помочь новым разработчикам освоить лучшие практики.
Ссылка на скилл
https://github.com/github/awesome-copilot/blob/main/skills/code-exemplars-blueprint-generator/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Создай руководство с примерами кода для моего проекта на Python, с акцентом на паттерны проектирования и с фрагментами кода.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Вы указываете тип проекта и то, как инструмент должен анализировать код. Затем он создаёт файл с примерами кода, которые следуют заданным лучшим практикам.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Code Exemplars Blueprint Generator
Configuration Variables
${PROJECT_TYPE="Auto-detect|.NET|Java|JavaScript|TypeScript|React|Angular|Python|Other"} <!-- Primary technology --> ${SCAN_DEPTH="Basic|Standard|Comprehensive"} <!-- How deeply to analyze the codebase --> ${INCLUDE_CODE_SNIPPETS=true|false} <!-- Include actual code snippets in addition to file references --> ${CATEGORIZATION="Pattern Type|Architecture Layer|File Type"} <!-- How to organize exemplars --> ${MAX_EXAMPLES_PER_CATEGORY=3} <!-- Maximum number of examples per category --> ${INCLUDE_COMMENTS=true|false} <!-- Include explanatory comments for each exemplar -->
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
…
Частые вопросы
Что такое «эталонные примеры кода»?
Это фрагменты кода, которые служат образцом того, как писать качественный код и следовать принятым в проекте стандартам.
Что означает «не зависящий от технологии»?
Это значит, что инструмент работает с разными языками программирования и фреймворками, а не только с одним.
Могу ли я выбирать, что включать в примеры?
Да, можно настроить, добавлять ли фрагменты кода и пояснительные комментарии, а также как организовать примеры (по типу паттерна, слою архитектуры и т. д.).
Подробности
Оригинальное описание автора
Technology-agnostic prompt generator that creates customizable AI prompts for scanning codebases and identifying high-quality code exemplars. Supports multiple programming languages (.NET, Java, JavaScript, TypeScript, React, Angular, Python) with configurable analysis depth, categorization methods, and documentation formats to establish coding standards and maintain consistency across development
repo: github/awesome-copilot
Популярность
- Звёзды на GitHub
- 40k
- Место в рейтинге
- #7109
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
acquire-codebase-knowledge
40kПомогает агенту понять и задокументировать существующий проект.
acreadiness-assess
40kАгент оценивает готовность проекта к работе с ИИ и составляет отчёт.
acreadiness-generate-instructions
40kПомогает агенту создать инструкции для ИИ-инструментов по итогам оценки.
acreadiness-policy
40kАгент помогает задавать политики оценки ИИ-готовности проектов.
Похожие скиллы
diffs
394kПозволяет агенту создать настоящее сравнение правок в виде ссылки или файла изображения, которым можно поделиться, вместо ручной сводки.
coding-agent
394kПомогает агенту передать большую задачу по коду в Codex, Claude Code или OpenCode как фоновому исполнителю, а затем проверять ее ход.
gh-issues
394kПомогает агенту находить задачи GitHub, выбирать, над какими работать, и открывать запросы на слияние с исправлениями, включая ответы на комментарии рецензентов.