technology-stack-blueprint-generator

作者: github

分析代码库以生成包含架构文档的详细技术栈蓝图。支持跨多个平台(.NET、Java、JavaScript、React、Python)的自动检测,或聚焦于指定技术类型的分析。可配置深度级别(从基础到可实施),可选版本信息、许可详情、使用模式和编码规范。生成架构图、技术关系映射及数据流可视化以记录...

npx skills add https://github.com/github/awesome-copilot --skill technology-stack-blueprint-generator

Comprehensive Technology Stack Blueprint Generator

Configuration Variables

${PROJECT_TYPE="Auto-detect|.NET|Java|JavaScript|React.js|React Native|Angular|Python|Other"} ${DEPTH_LEVEL="Basic|Standard|Comprehensive|Implementation-Ready"} ${INCLUDE_VERSIONS=true|false} ${INCLUDE_LICENSES=true|false} ${INCLUDE_DIAGRAMS=true|false} ${INCLUDE_USAGE_PATTERNS=true|false} ${INCLUDE_CONVENTIONS=true|false} ${OUTPUT_FORMAT="Markdown|JSON|YAML|HTML"} ${CATEGORIZATION="Technology Type|Layer|Purpose"}

Generated Prompt

"Analyze the codebase and generate a ${DEPTH_LEVEL} technology stack blueprint that thoroughly documents technologies and implementation patterns to facilitate consistent code generation. Use the following approach:

1. Technology Identification Phase

  • ${PROJECT_TYPE == "Auto-detect" ? "Scan the codebase for project files, configuration files, and dependencies to determine all technology stacks in use" : "Focus on ${PROJECT_TYPE} technologies"}
  • Identify all programming languages by examining file extensions and content
  • Analyze configuration files (package.json, .csproj, pom.xml, etc.) to extract dependencies
  • Examine build scripts and pipeline definitions for tooling information
  • ${INCLUDE_VERSIONS ? "Extract precise version information from package files and configuration" : "Skip version details"}
  • ${INCLUDE_LICENSES ? "Document license information for all dependencies" : ""}

2. Core Technologies Analysis

${PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect" ? "#### .NET Stack Analysis (if detected)

  • Target frameworks and language versions (detect from project files)
  • All NuGet package references with versions and purpose comments
  • Project structure and organization patterns
  • Configuration approach (appsettings.json, IOptions, etc.)
  • Authentication mechanisms (Identity, JWT, etc.)
  • API design patterns (REST, GraphQL, minimal APIs, etc.)
  • Data access approaches (EF Core, Dapper, etc.)
  • Dependency injection patterns
  • Middleware pipeline components" : ""}

${PROJECT_TYPE == "Java" || PROJECT_TYPE == "Auto-detect" ? "#### Java Stack Analysis (if detected)

  • JDK version and core frameworks
  • All Maven/Gradle dependencies with versions and purpose
  • Package structure organization
  • Spring Boot usage and configurations
  • Annotation patterns
  • Dependency injection approach
  • Data access technologies (JPA, JDBC, etc.)
  • API design (Spring MVC, JAX-RS, etc.)" : ""}

${PROJECT_TYPE == "JavaScript" || PROJECT_TYPE == "Auto-detect" ? "#### JavaScript Stack Analysis (if detected)

  • ECMAScript version and transpiler settings
  • All npm dependencies categorized by purpose
  • Module system (ESM, CommonJS)
  • Build tooling (webpack, Vite, etc.) with configuration
  • TypeScript usage and configuration
  • Testing frameworks and patterns" : ""}

${PROJECT_TYPE == "React.js" || PROJECT_TYPE == "Auto-detect" ? "#### React Analysis (if detected)

  • React version and key patterns (hooks vs class components)
  • State management approach (Context, Redux, Zustand, etc.)
  • Component library usage (Material-UI, Chakra, etc.)
  • Routing implementation
  • Form handling strategies
  • API integration patterns
  • Testing approach for components" : ""}

${PROJECT_TYPE == "Python" || PROJECT_TYPE == "Auto-detect" ? "#### Python Analysis (if detected)

  • Python version and key language features used
  • Package dependencies and virtual environment setup
  • Web framework details (Django, Flask, FastAPI)
  • ORM usage patterns
  • Project structure organization
  • API design patterns" : ""}

3. Implementation Patterns & Conventions

${INCLUDE_CONVENTIONS ? "Document coding conventions and patterns for each technology area:

Naming Conventions

  • Class/type naming patterns
  • Method/function naming patterns
  • Variable naming conventions
  • File naming and organization conventions
  • Interface/abstract class patterns

Code Organization

  • File structure and organization
  • Folder hierarchy patterns
  • Component/module boundaries
  • Code separation and responsibility patterns

Common Patterns

  • Error handling approaches
  • Logging patterns
  • Configuration access
  • Authentication/authorization implementation
  • Validation strategies
  • Testing patterns" : ""}

4. Usage Examples

${INCLUDE_USAGE_PATTERNS ? "Extract representative code examples showing standard implementation patterns:

API Implementation Examples

  • Standard controller/endpoint implementation
  • Request DTO pattern
  • Response formatting
  • Validation approach
  • Error handling

Data Access Examples

  • Repository pattern implementation
  • Entity/model definitions
  • Query patterns
  • Transaction handling

Service Layer Examples

  • Service class implementation
  • Business logic organization
  • Cross-cutting concerns integration
  • Dependency injection usage

UI Component Examples (if applicable)

  • Component structure
  • State management pattern
  • Event handling
  • API integration pattern" : ""}

5. Technology Stack Map

${DEPTH_LEVEL == "Comprehensive" || DEPTH_LEVEL == "Implementation-Ready" ? "Create a comprehensive technology map including:

Core Framework Usage

  • Primary frameworks and their specific usage in the project
  • Framework-specific configurations and customizations
  • Extension points and customizations

Integration Points

  • How different technology components integrate
  • Authentication flow between components
  • Data flow between frontend and backend
  • Third-party service integration patterns

Development Tooling

  • IDE settings and conventions
  • Code analysis tools
  • Linters and formatters with configuration
  • Build and deployment pipeline
  • Testing frameworks and approaches

Infrastructure

  • Deployment environment details
  • Container technologies
  • Cloud services utilized
  • Monitoring and logging infrastructure" : ""}

6. Technology-Specific Implementation Details

${PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect" ? "#### .NET Implementation Details (if detected)

  • Dependency Injection Pattern:

    • Service registration approach (Scoped/Singleton/Transient patterns)
    • Configuration binding patterns
  • Controller Patterns:

    • Base controller usage
    • Action result types and patterns
    • Route attribute conventions
    • Filter usage (authorization, validation, etc.)
  • Data Access Patterns:

    • ORM configuration and usage
    • Entity configuration approach
    • Relationship definitions
    • Query patterns and optimization approaches
  • API Design Patterns (if used):

    • Endpoint organization
    • Parameter binding approaches
    • Response type handling
  • Language Features Used:

    • Detect specific language features from code
    • Identify common patterns and idioms
    • Note any specific version-dependent features" : ""}

${PROJECT_TYPE == "React.js" || PROJECT_TYPE == "Auto-detect" ? "#### React Implementation Details (if detected)

  • Component Structure:

    • Function vs class components
    • Props interface definitions
    • Component composition patterns
  • Hook Usage Patterns:

    • Custom hook implementation style
    • useState patterns
    • useEffect cleanup approaches
    • Context usage patterns
  • State Management:

    • Local vs global state decisions
    • State management library patterns
    • Store configuration
    • Selector patterns
  • Styling Approach:

    • CSS methodology (CSS modules, styled-components, etc.)
    • Theme implementation
    • Responsive design patterns" : ""}

7. Blueprint for New Code Implementation

${DEPTH_LEVEL == "Implementation-Ready" ? "Based on the analysis, provide a detailed blueprint for implementing new features:

  • File/Class Templates: Standard structure for common component types
  • Code Snippets: Ready-to-use code patterns for common operations
  • Implementation Checklist: Standard steps for implementing features end-to-end
  • Integration Points: How to connect new code with existing systems
  • Testing Requirements: Standard test patterns for different component types
  • Documentation Requirements: Standard doc patterns for new features" : ""}

${INCLUDE_DIAGRAMS ? "### 8. Technology Relationship Diagrams

  • Stack Diagram: Visual representation of the complete technology stack
  • Dependency Flow: How different technologies interact
  • Component Relationships: How major components depend on each other
  • Data Flow: How data flows through the technology stack" : ""}

${INCLUDE_DIAGRAMS ? "9" : "8"}. Technology Decision Context

  • Document apparent reasons for technology choices
  • Note any legacy or deprecated technologies marked for replacement
  • Identify technology constraints and boundaries
  • Document technology upgrade paths and compatibility considerations

Format the output as ${OUTPUT_FORMAT} and categorize technologies by ${CATEGORIZATION}.

Save the output as 'Technology_Stack_Blueprint.${OUTPUT_FORMAT == "Markdown" ? "md" : OUTPUT_FORMAT.toLowerCase()}' "

来自 github 的更多技能

console-rendering
github
在Go中使用基于结构体标签的控制台渲染系统的说明
official
acquire-codebase-knowledge
github
当用户明确要求映射、记录或熟悉现有代码库时使用此技能。触发词如“映射此代码库”、“记录…
official
acreadiness-assess
github
Run the AgentRC readiness assessment on the current repository and produce a static HTML dashboard at reports/index.html. Wraps `npx github:microsoft/agentrc…
official
acreadiness-generate-instructions
github
通过AgentRC指令命令生成定制化的AI代理指令文件。生成.github/copilot-instructions.md(默认,推荐用于VS Code中的Copilot…
official
acreadiness-policy
github
帮助用户选择、编写或应用AgentRC策略。策略通过禁用无关检查、覆盖影响/级别、设置…来定制就绪评分。
official
add-educational-comments
github
为代码文件添加教育性注释,将其转化为有效的学习资源。根据三个可配置的知识水平(初级、中级、高级)调整解释深度和语气。若未提供文件,自动请求文件,并附带编号列表以便快速选择。仅通过教育性注释将文件扩展最多125%(硬性限制:新增400行;超过1000行的文件限制为300行)。保留文件编码、缩进风格、语法正确性以及...
official
adobe-illustrator-scripting
github
使用ExtendScript(JavaScript/JSX)编写、调试和优化Adobe Illustrator自动化脚本。在创建或修改操作…的脚本时使用。
official
agent-governance
github
声明式策略、意图分类及审计追踪,用于控制AI代理工具访问与行为。可组合的治理策略定义允许/禁止的工具、内容过滤器、速率限制及审批要求——以配置而非代码形式存储。语义意图分类在执行工具前通过基于模式的信号检测危险提示(数据泄露、权限提升、提示注入)。工具级治理装饰器在函数层面强制执行策略...
official