跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 code-exemplars-blueprint-generator

Code Exemplars Blueprint Generator

技术-不可知能创建自定义的AI快取器,用于扫描代码库并识别高质量的代码实例. 支持多种编程语言(.NET,Java,JavaScript,TypeScript,React,Angular,Python)可配置分析深度,分类方法和文档格式,以建立编码标准并保持开发团队的一致性.

8917 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

技术-不可知能创建自定义的AI快取器,用于扫描代码库并识别高质量的代码实例. 支持多种编程语言(.NET,Java,JavaScript,TypeScript,React,Angular,Python)可配置分析深度,分类方法和文档格式,以建立编码标准并保持开发团队的一致性.

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Code Exemplars Blueprint Generator、Configuration Variables、Generated Prompt、1. Codebase Analysis Phase、2. Exemplar Identification Criteria、3. Core Pattern Categories。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

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 teams.

Code Exemplars Blueprint GeneratorConfiguration VariablesGenerated Prompt1. Codebase Analysis Phase2. Exemplar Identification Criteria3. Core Pattern Categories4. Architecture Layer Exemplars5. Exemplar Documentation Format${SCAN_DEPTH == "Comprehensive" ? "7" : "6"}. Output FormatExpected Output

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
code-exemplars-blueprint-generator
description
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 teams.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「code-exemplars-blueprint-generator」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-c888e899e751ddf1-Code-Exemplars-Blueprint-Generator.html
请存为 .cursor/skills/code-exemplars-blueprint-generator/SKILL.md 或 .claude/skills/code-exemplars-blueprint-generator/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/github/awesome-copilot' --list

npx skills add 'https://github.com/github/awesome-copilot' --skill 'code-exemplars-blueprint-generator'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: code-exemplars-blueprint-generator description: '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 teams.' --- # Code 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: 1. Introduction explaining the purpose of the document 2. Table of contents with links to categories 3. Organized sections based on ${CATEGORIZATION} 4. Up to ${MAX_EXAMPLES_PER_CATEGORY} exemplars per category 5. 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.

相关技能

文档办公

Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

Nano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

Word / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不…

文档办公

Baidu Search

使用Baidu AI搜索引擎(BDSE)搜索网页. 用于实时信息、文件或研究专题.