project-workflow-analysis-blueprint-generator by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill project-workflow-analysis-blueprint-generator${PROJECT_TYPE="Auto-detect|.NET|Java|Spring|Node.js|Python|React|Angular|Microservices|Other"}
<!-- 主要技术栈 -->
${ENTRY_POINT="API|GraphQL|Frontend|CLI|Message Consumer|Scheduled Job|Custom"}
<!-- 流程的起始点 -->
${PERSISTENCE_TYPE="Auto-detect|SQL Database|NoSQL Database|File System|External API|Message Queue|Cache|None"}
<!-- 数据存储类型 -->
${ARCHITECTURE_PATTERN="Auto-detect|Layered|Clean|CQRS|Microservices|MVC|MVVM|Serverless|Event-Driven|Other"}
<!-- 主要架构模式 -->
${WORKFLOW_COUNT=1-5}
<!-- 需要文档化的工作流数量 -->
${DETAIL_LEVEL="Standard|Implementation-Ready"}
<!-- 包含的实现细节级别 -->
${INCLUDE_SEQUENCE_DIAGRAM=true|false}
<!-- 生成序列图 -->
${INCLUDE_TEST_PATTERNS=true|false}
<!-- 包含测试方法 -->
"分析代码库并文档化 ${WORKFLOW_COUNT} 个具有代表性的端到端工作流,这些工作流可以作为类似功能的实现模板。请使用以下方法:
${PROJECT_TYPE == "Auto-detect" ?
"首先检查代码库结构以识别技术:
- 检查 .NET 解决方案/项目、Spring 配置、Node.js/Express 文件等。
- 识别使用的主要编程语言和框架
- 根据文件夹结构和关键组件确定架构模式"
: "专注于 ${PROJECT_TYPE} 模式和约定"}
${ENTRY_POINT == "Auto-detect" ?
"通过查找以下内容识别典型入口点:
- API 控制器或路由定义
- GraphQL 解析器
- 发起网络请求的 UI 组件
- 消息处理器或事件订阅者
- 定时任务定义"
: "专注于 ${ENTRY_POINT} 入口点"}
${PERSISTENCE_TYPE == "Auto-detect" ?
"通过检查以下内容确定持久化机制:
- 数据库上下文/连接配置
- 仓储实现
- ORM 映射
- 外部 API 客户端
- 文件系统交互"
: "专注于 ${PERSISTENCE_TYPE} 交互"}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
对于系统中 ${WORKFLOW_COUNT} 个最具代表性的工作流中的每一个:
API 入口点:
${ENTRY_POINT == "API" || ENTRY_POINT == "Auto-detect" ?
"- 文档化接收请求的 API 控制器类和方法
- 展示完整的方法签名,包括属性/注解
- 包含完整的请求 DTO/模型类定义
- 文档化验证属性和自定义验证器
- 展示身份验证/授权属性和检查" : ""}
GraphQL 入口点:
${ENTRY_POINT == "GraphQL" || ENTRY_POINT == "Auto-detect" ?
"- 文档化 GraphQL 解析器类和方法
- 展示查询/变更的完整模式定义
- 包含输入类型定义
- 展示带有参数处理的解析器方法实现" : ""}
前端入口点:
${ENTRY_POINT == "Frontend" || ENTRY_POINT == "Auto-detect" ?
"- 文档化发起 API 调用的组件
- 展示触发请求的事件处理器
- 包含 API 客户端服务方法
- 展示与请求相关的状态管理代码" : ""}
消息消费者入口点:
${ENTRY_POINT == "Message Consumer" || ENTRY_POINT == "Auto-detect" ?
"- 文档化消息处理器类和方法
- 展示消息订阅配置
- 包含完整的消息模型定义
- 展示反序列化和验证逻辑" : ""}
CQRS 模式:
${ARCHITECTURE_PATTERN == "CQRS" || ARCHITECTURE_PATTERN == "Auto-detect" ?
"- 包含完整的命令/查询处理器实现" : ""}
简洁架构模式:
${ARCHITECTURE_PATTERN == "Clean" || ARCHITECTURE_PATTERN == "Auto-detect" ?
"- 展示用例/交互器实现" : ""}
SQL 数据库模式:
${PERSISTENCE_TYPE == "SQL Database" || PERSISTENCE_TYPE == "Auto-detect" ?
"- 包含 ORM 配置、注解或 Fluent API 用法
- 展示实际的 SQL 查询或 ORM 语句" : ""}
NoSQL 数据库模式:
${PERSISTENCE_TYPE == "NoSQL Database" || PERSISTENCE_TYPE == "Auto-detect" ?
"- 展示文档结构定义
- 包含文档查询/更新操作" : ""}
测试方法(可选):
${INCLUDE_TEST_PATTERNS ?
"9. **测试方法**
- 文档化每一层的单元测试实现
- 展示模拟模式和测试夹具设置
- 包含集成测试实现
- 文档化测试数据生成方法
- 展示 API/控制器测试实现" : ""}
序列图(可选):
${INCLUDE_SEQUENCE_DIAGRAM ?
"10. **序列图**
- 生成显示所有组件的详细序列图
- 包含带有参数类型的方法调用
- 展示组件间的返回值
- 文档化条件流和错误路径" : ""}
文档化以下一致的模式:
EntityNameController)EntityNameService)IEntityNameRepository)EntityNameRequest、EntityNameResponse)提供可重用的代码模板,用于:
.NET 实现模式(如果检测到):
${PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect" ?
"- 包含属性、过滤器和依赖注入的完整控制器类
- Startup.cs 或 Program.cs 中的服务注册
- Entity Framework DbContext 配置
- 使用 EF Core 或 Dapper 的仓储实现
- AutoMapper 配置文件
- 用于横切关注点的中间件实现
- 扩展方法模式
- 配置的选项模式实现
- 使用 ILogger 的日志记录实现
- 身份验证/授权过滤器或策略实现" : ""}
Spring 实现模式(如果检测到):
${PROJECT_TYPE == "Java" || PROJECT_TYPE == "Spring" || PROJECT_TYPE == "Auto-detect" ?
"- 包含注解和依赖注入的完整控制器类
- 带有事务边界的服务实现
- 仓储接口和实现
- 包含关系的 JPA 实体定义
- DTO 类实现
- Bean 配置和组件扫描
- 异常处理器实现
- 自定义验证器实现" : ""}
React 实现模式(如果检测到):
${PROJECT_TYPE == "React" || PROJECT_TYPE == "Auto-detect" ?
"- 包含 props 和 state 的组件结构
- Hook 实现模式(useState, useEffect, 自定义 hooks)
- API 服务实现
- 状态管理模式(Context, Redux)
- 表单处理实现
- 路由配置" : ""}
基于已文档化的工作流,为实施新功能提供具体指导:
结论: 总结在实现新功能时应遵循的最重要模式,以保持与代码库的一致性。"
每周安装量
7.5K
仓库
GitHub 星标数
27.0K
首次出现
2026年2月25日
安全审计
安装于
codex7.4K
gemini-cli7.4K
opencode7.4K
github-copilot7.4K
cursor7.4K
kimi-cli7.4K
${PROJECT_TYPE="Auto-detect|.NET|Java|Spring|Node.js|Python|React|Angular|Microservices|Other"}
<!-- Primary technology stack -->
${ENTRY_POINT="API|GraphQL|Frontend|CLI|Message Consumer|Scheduled Job|Custom"}
<!-- Starting point for the flow -->
${PERSISTENCE_TYPE="Auto-detect|SQL Database|NoSQL Database|File System|External API|Message Queue|Cache|None"}
<!-- Data storage type -->
${ARCHITECTURE_PATTERN="Auto-detect|Layered|Clean|CQRS|Microservices|MVC|MVVM|Serverless|Event-Driven|Other"}
<!-- Primary architecture pattern -->
${WORKFLOW_COUNT=1-5}
<!-- Number of workflows to document -->
${DETAIL_LEVEL="Standard|Implementation-Ready"}
<!-- Level of implementation detail to include -->
${INCLUDE_SEQUENCE_DIAGRAM=true|false}
<!-- Generate sequence diagram -->
${INCLUDE_TEST_PATTERNS=true|false}
<!-- Include testing approach -->
"Analyze the codebase and document ${WORKFLOW_COUNT} representative end-to-end workflows
that can serve as implementation templates for similar features. Use the following approach:
${PROJECT_TYPE == "Auto-detect" ?
"Begin by examining the codebase structure to identify technologies:
- Check for .NET solutions/projects, Spring configurations, Node.js/Express files, etc.
- Identify the primary programming language(s) and frameworks in use
- Determine the architectural patterns based on folder structure and key components"
: "Focus on ${PROJECT_TYPE} patterns and conventions"}
${ENTRY_POINT == "Auto-detect" ?
"Identify typical entry points by looking for:
- API controllers or route definitions
- GraphQL resolvers
- UI components that initiate network requests
- Message handlers or event subscribers
- Scheduled job definitions"
: "Focus on ${ENTRY_POINT} entry points"}
${PERSISTENCE_TYPE == "Auto-detect" ?
"Determine persistence mechanisms by examining:
- Database context/connection configurations
- Repository implementations
- ORM mappings
- External API clients
- File system interactions"
: "Focus on ${PERSISTENCE_TYPE} interactions"}
For each of the ${WORKFLOW_COUNT} most representative workflow(s) in the system:
API Entry Points:
${ENTRY_POINT == "API" || ENTRY_POINT == "Auto-detect" ?
"- Document the API controller class and method that receives the request
- Show the complete method signature including attributes/annotations
- Include the full request DTO/model class definition
- Document validation attributes and custom validators
- Show authentication/authorization attributes and checks" : ""}
GraphQL Entry Points:
${ENTRY_POINT == "GraphQL" || ENTRY_POINT == "Auto-detect" ?
"- Document the GraphQL resolver class and method
- Show the complete schema definition for the query/mutation
- Include input type definitions
- Show resolver method implementation with parameter handling" : ""}
Frontend Entry Points:
${ENTRY_POINT == "Frontend" || ENTRY_POINT == "Auto-detect" ?
"- Document the component that initiates the API call
- Show the event handler that triggers the request
- Include the API client service method
- Show state management code related to the request" : ""}
Message Consumer Entry Points:
${ENTRY_POINT == "Message Consumer" || ENTRY_POINT == "Auto-detect" ?
"- Document the message handler class and method
- Show message subscription configuration
- Include the complete message model definition
- Show deserialization and validation logic" : ""}
CQRS Patterns:
${ARCHITECTURE_PATTERN == "CQRS" || ARCHITECTURE_PATTERN == "Auto-detect" ?
"- Include complete command/query handler implementations" : ""}
Clean Architecture Patterns:
${ARCHITECTURE_PATTERN == "Clean" || ARCHITECTURE_PATTERN == "Auto-detect" ?
"- Show use case/interactor implementations" : ""}
SQL Database Patterns:
${PERSISTENCE_TYPE == "SQL Database" || PERSISTENCE_TYPE == "Auto-detect" ?
"- Include ORM configurations, annotations, or Fluent API usage
- Show actual SQL queries or ORM statements" : ""}
NoSQL Database Patterns:
${PERSISTENCE_TYPE == "NoSQL Database" || PERSISTENCE_TYPE == "Auto-detect" ?
"- Show document structure definitions
- Include document query/update operations" : ""}
Testing Approach (Optional):
${INCLUDE_TEST_PATTERNS ?
"9. **Testing Approach**
- Document unit test implementations for each layer
- Show mocking patterns and test fixture setup
- Include integration test implementations
- Document test data generation approaches
- Show API/controller test implementations" : ""}
Sequence Diagram (Optional):
${INCLUDE_SEQUENCE_DIAGRAM ?
"10. **Sequence Diagram**
- Generate a detailed sequence diagram showing all components
- Include method calls with parameter types
- Show return values between components
- Document conditional flows and error paths" : ""}
Document consistent patterns for:
EntityNameController)EntityNameService)IEntityNameRepository)EntityNameRequest, EntityNameResponse)Provide reusable code templates for:
.NET Implementation Patterns (if detected):
${PROJECT_TYPE == ".NET" || PROJECT_TYPE == "Auto-detect" ?
"- Complete controller class with attributes, filters, and dependency injection
- Service registration in Startup.cs or Program.cs
- Entity Framework DbContext configuration
- Repository implementation with EF Core or Dapper
- AutoMapper profile configurations
- Middleware implementations for cross-cutting concerns
- Extension method patterns
- Options pattern implementation for configuration
- Logging implementation with ILogger
- Authentication/authorization filter or policy implementations" : ""}
Spring Implementation Patterns (if detected):
${PROJECT_TYPE == "Java" || PROJECT_TYPE == "Spring" || PROJECT_TYPE == "Auto-detect" ?
"- Complete controller class with annotations and dependency injection
- Service implementation with transaction boundaries
- Repository interface and implementation
- JPA entity definitions with relationships
- DTO class implementations
- Bean configuration and component scanning
- Exception handler implementations
- Custom validator implementations" : ""}
React Implementation Patterns (if detected):
${PROJECT_TYPE == "React" || PROJECT_TYPE == "Auto-detect" ?
"- Component structure with props and state
- Hook implementation patterns (useState, useEffect, custom hooks)
- API service implementation
- State management patterns (Context, Redux)
- Form handling implementations
- Route configuration" : ""}
Based on the documented workflows, provide specific guidance for implementing new features:
Conclusion: Conclude with a summary of the most important patterns that should be followed when implementing new features to maintain consistency with the codebase."
Weekly Installs
7.5K
Repository
GitHub Stars
27.0K
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
codex7.4K
gemini-cli7.4K
opencode7.4K
github-copilot7.4K
cursor7.4K
kimi-cli7.4K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装