[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B35YWCBZ3FT09CZQ15S34":3,"skill-same:01M69B35YWCBZ3FT09CZQ15S34":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":17,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M69B35YWCBZ3FT09CZQ15S34","business-workflows","业务工作流文档生成","Generate core business workflow documentation with sequence diagram","生成核心业务工作流文档，并附带序列图。","microsoft\u002Fgithub-copilot-modernization","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69B2DAY0HTBHWQN4WF3JDBQ",55,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fbusiness-workflows\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C01H2CAMD3MSHYA84VYCAR","业务流程设计与优化","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C2MZSX0YJXR444XP83VR5N","产品经理","PROFESSION","适用职业",[31,32,33,34,35],"workflows","business workflows","workflow","documentation","diagram","2026-11-10 10:12:30",false,"---\nname: business-workflows\ndescription: Generate core business workflow documentation with sequence diagram\n---\n\n# Core Business Workflows\n\nAnalyze the project to document business processes end-to-end, domain entities, business rules, service-to-domain mapping, cross-service data flows, and decision logic. Generate a Mermaid sequence diagram showing the primary business workflow. Save to `.github\u002Fmodernize\u002Fassessment\u002Fengines\u002Ffacts\u002Fbusiness-workflows.md`.\n\n## Input Parameters\n\n- `workspace-path` (optional): Path to the project to analyze (defaults to current directory)\n\n## ⚠ Mermaid Safety Constraints — read BEFORE you write the ```mermaid block\n\nMermaid sequenceDiagram is unforgiving in a few specific ways: one bad alias or one missing `end` crashes the **whole** diagram with `Syntax error in text`, not just the offending line. Stay strictly inside this subset for the sequence diagram:\n\n1. **Chart kind.** `sequenceDiagram` only. Never `sequence-diagram`, never `sequence`.\n2. **Participants.** Always declare with the alias form `participant \u003CAlphaNumId> as \"Display Label\"`. The id must match `[A-Za-z][A-Za-z0-9_]*`. Never omit the id — even a one-word participant should be `participant Owner as \"Owner\"`. This is the single biggest cause of past failures.\n3. **Arrows.**\n   - `->>` synchronous request\n   - `-->>` synchronous response\n   - `-)` async fire-and-forget\n   - Message text goes after `:` and is plain text — keep it short and on one line.\n4. **Blocks.** `alt` \u002F `else` \u002F `opt` \u002F `loop` \u002F `par` \u002F `critical` MUST be closed by `end` on its own line. Every open block must have a matching `end`. Missing `end` is the #2 cause of past failures.\n5. **No line breaks anywhere.** The escape `\\n` was removed in modern Mermaid. Aliases, message text, and `Note over` content must all be single-line. Split a long note into multiple consecutive `Note over` lines; split a long message into multiple arrows. This is the #1 cause of past failures.\n6. **Banned characters inside participant aliases specifically** (message text is more permissive — only `\\n` is banned there):\n\n   | Banned in alias | Why it breaks | Replacement |\n   |---|---|---|\n   | `\\n` (literal two chars) | escape removed | drop |\n   | `\"` (a second double-quote) | closes the alias early | `'` (single quote) |\n   | `` ` `` (backtick) | breaks alias quoting | drop |\n   | smart quotes `\"` `\"` `'` `'` | not ASCII | regular `\"` and `'` |\n   | `:` | confuses with message delimiter | rephrase, e.g. `\"Order Service (v2)\"` not `\"Order Service: v2\"` |\n   | `\u003Cbr\u002F>` | not interpreted inside aliases | rephrase as shorter alias |\n\n7. **Quote the alias.** `participant Svc as \"Order Service\"` — never `participant Svc as Order Service` (unquoted multi-word aliases break).\n\n### Mandatory self-attestation\n\nImmediately before writing the ` ```mermaid ` opening fence, emit this exact one-line HTML comment in the markdown (it does not render — it is for your own visible attestation):\n\n```\n\u003C!-- mermaid-checked: every participant uses `participant Id as \"Label\"`, no \\n in aliases\u002Fmessages\u002Fnotes, every alt\u002Fopt\u002Floop closed by end, no `:` inside any alias -->\n```\n\nIf you cannot truthfully emit that comment, fix the diagram first.\n\n---\n\n## Scope Boundaries — Avoid Redundancy with Other Skills\n\nThis skill is part of a set of four complementary assessment skills. To avoid content duplication across their output documents, observe these scope rules:\n\n- **Introduction**: Write a 1-2 sentence intro focused on the business domain (what the application does for its users). Do NOT restate the technology stack, database options, or framework versions.\n- **Domain Entities table**: Focus on business meaning — entity description, bounded context, and business relationships. Do NOT reproduce entity field lists, data types, PK\u002FFK annotations, or ORM mapping details (cascade, fetch strategy) — those are owned by the `data-architecture` skill.\n- **Validation rules in workflow steps**: When describing a workflow step that involves validation, reference the rule by name (e.g., \"PetValidator checks name and birthDate\") rather than re-listing every constraint. Enumerate the full validation rules only once in the \"Business Rules & Decision Logic\" section.\n- **Caching behavior**: If caching affects a workflow (e.g., vet list served from cache), mention the business impact (e.g., \"vet data served from cache, reducing load\") but do NOT describe the cache provider, TTL, configuration class, or JMX statistics — those are owned by the `data-architecture` skill.\n- **API endpoint paths and HTTP methods**: Only mention endpoint paths as entry points for workflows (e.g., \"Staff submits POST \u002Fowners\u002Fnew\"). Do NOT create endpoint inventory tables — those are owned by the `api-service-contracts` skill.\n\n## Execution Steps\n\n### Step 1: Generate Domain Entities Section\n\nIdentify the domain model and produce the complete `## Domain Entities` section:\n\n- Identify domain entities and aggregates (DDD patterns if present)\n- Focus on business meaning — entity description, bounded context, and business relationships\n- Do NOT reproduce entity field lists, data types, PK\u002FFK annotations, or ORM mapping details (cascade, fetch strategy) — those are owned by the `data-architecture` skill\n\n### Step 2: Generate Service-to-Domain Mapping Section\n\nMap each service to its bounded context and owned entities, then produce the complete `## Service-to-Domain Mapping` section (applies to microservice or multi-module architectures):\n\n- Service name → bounded context (e.g., `customers-service` → Customer Management, `visits-service` → Appointment Management)\n- Domain entities owned by each service\u002Fcontext\n- Cross-context data exchange patterns: how domains communicate (REST API, events, shared database)\n- Data that spans contexts (e.g., `petId` as a foreign key in visits-service referencing customers-service's Pet entity)\n- Aggregation boundaries: which service is the source of truth for which data\n\n### Step 3: Generate Primary Workflows Section\n\nScan for business process entry points, trace each significant workflow end-to-end, and produce the complete `## Primary Workflows` section:\n\n**Entry points to scan:**\n- Controllers\u002Fendpoints that initiate business processes (not just CRUD — look for multi-step operations)\n- **API Gateway aggregation endpoints** that compose responses from multiple backend services — these are business workflow entry points even though they live in the gateway layer (e.g., fetching owner details combined with visit history)\n- Scheduled tasks (`@Scheduled`, Quartz, Hangfire, cron jobs, `BackgroundService`)\n- Event listeners (`@EventListener`, `@KafkaListener`, `INotificationHandler`, message handlers)\n- CLI commands or batch job entry points\n- Startup\u002Finitialization routines that set up business state\n\n**For each significant entry point, trace the flow:**\n- Entry point → service layer → domain logic → persistence\n- The sequence of operations: validation → business rule check → state mutation → side effects\n- Branching logic (if\u002Felse, switch, strategy pattern) that represents business decisions\n- Orchestration vs choreography patterns in multi-service workflows\n\n### Step 4: Generate Cross-Service Data Flows Section\n\nTrace cross-service data composition flows end-to-end and produce the complete `## Cross-Service Data Flows` section:\n\n- Gateway aggregation patterns: e.g., gateway fetches owner from customers-service → extracts pet IDs → fetches visits from visits-service → merges visits into pet records → returns composite response\n- Which service provides which data and how they are joined\u002Fmerged\n- Circuit breaker fallback behavior that affects business outcomes (e.g., \"when visits-service is unavailable, owner details are returned without visit history\" — this is a business-relevant degradation, not just a technical detail)\n\n### Step 5: Generate Business Workflow Sequence Section\n\nCreate a **Mermaid `sequenceDiagram`** showing the primary business workflow end-to-end and produce the complete `## Business Workflow Sequence` section:\n\n- Show the most important business process (e.g., \"customer places order\", \"owner registers pet and schedules visit\", \"gateway aggregates owner with visit history\")\n- Include actors, services, and domain entities as participants\n- Show business rule checks and decision points\n- Annotate with business-relevant labels (not technical method names)\n- Use `alt`\u002F`else` blocks to show circuit breaker fallback paths that affect business outcomes\n- Show cross-service data aggregation flows\n\nReference example (this block satisfies every Safety Constraint — match its shape):\n\n\u003C!-- mermaid-checked: every participant uses `participant Id as \"Label\"`, no \\n in aliases\u002Fmessages\u002Fnotes, every alt\u002Fopt\u002Floop closed by end, no `:` inside any alias -->\n~~~mermaid\nsequenceDiagram\n    participant Owner as \"Owner\"\n    participant Gateway as \"API Gateway\"\n    participant CustSvc as \"Customer Service\"\n    participant VisitSvc as \"Visit Service\"\n    participant DB as \"Database\"\n\n    Owner->>Gateway: View my pets and visits\n    Gateway->>CustSvc: Get owner details\n    CustSvc->>DB: Find owner with pets\n    DB-->>CustSvc: Owner + Pet list\n    CustSvc-->>Gateway: OwnerDetails(pets)\n\n    Gateway->>Gateway: Extract pet IDs from response\n    Gateway->>VisitSvc: Get visits for pets (batch)\n    alt Visit Service Available\n        VisitSvc->>DB: Find visits by pet IDs\n        DB-->>VisitSvc: Visit records\n        VisitSvc-->>Gateway: Visits per pet\n        Gateway->>Gateway: Merge visits into pet records\n    else Visit Service Unavailable (Circuit Breaker)\n        Note over Gateway: Fallback - return owner without visits\n    end\n    Gateway-->>Owner: Complete owner profile with visits\n~~~\n\n### Step 6: Generate Business Rules & Decision Logic Section\n\nExtract and document business rules and cross-cutting concerns, and produce the complete `## Business Rules & Decision Logic` section:\n\n**Business Rules:**\n- **Validation rules**: Input validation, field constraints, format checks, custom validators\n- **Decision logic**: Conditional business logic, pricing rules, eligibility checks, approval workflows\n- **State transitions**: Entity lifecycle states (e.g., Order: Created → Confirmed → Shipped → Delivered), state machines\n- **Business constraints**: Uniqueness rules, capacity limits, temporal constraints (booking windows, cooldown periods)\n- **Computed values**: Derived fields, calculated totals, aggregated metrics\n- **Data integrity rules**: Bidirectional relationship maintenance (e.g., `owner.addPet(pet)` ensuring both sides of the relationship are set)\n\n**Cross-Cutting Concerns:**\n- **Transactions**: Transaction boundaries, `@Transactional` scope, saga patterns, eventual consistency\n- **Error handling**: Business exception types, compensating actions, dead-letter handling\n- **Audit\u002Flogging**: Business event logging, audit trails, change tracking\n- **Authorization**: Business-level authorization rules (role-based, attribute-based, resource ownership)\n\n### Step 7: Save Output\n\nSave to `.github\u002Fmodernize\u002Fassessment\u002Fengines\u002Ffacts\u002Fbusiness-workflows.md` with this exact structure:\n\n```\n# Core Business Workflows\n\nA brief introduction (1-2 sentences) summarizing the application's business domain.\n\n## Domain Entities\n\n[Table: Entity | Service \u002F Bounded Context | Description | Key Relationships]\n\n## Service-to-Domain Mapping\n\n[Table: Service | Domain Context | Owned Entities | External Dependencies]\n\n## Primary Workflows\n\n### Workflow 1: [Name]\n\n[Description, steps, business rules involved, cross-service interactions]\n\n### Workflow 2: [Name]\n\n[Description, steps, business rules involved]\n\n## Cross-Service Data Flows\n\n[Description of aggregation\u002Fcomposition patterns, which service provides which data, how data is joined, fallback behavior when services are unavailable]\n\n## Business Workflow Sequence\n\n\u003C Mermaid sequenceDiagram here, with alt\u002Felse blocks for fallback paths >\n\n## Business Rules & Decision Logic\n\n[Summary of key business rules, validation rules, state transitions, and decision points]\n```\n\n## Scaling Rules\n\n- If the project has **more than 10 distinct workflows**, focus on the 3-5 most important business processes and summarize the rest in a \"Other Workflows\" section\n- Keep the sequence diagram under **40 participants and messages** to ensure readability and GitHub rendering compatibility\n- For multi-module projects, focus on the primary end-to-end business workflow that spans modules\n- Aggregate minor CRUD operations and show only workflows that involve business logic beyond simple create\u002Fread\u002Fupdate\u002Fdelete\n\n## Common failure patterns observed in past runs\n\nEach row below is something the model actually produced that crashed the diagram. Use the ✅ form.\n\n| ❌ Past mistake | ✅ Safe form | Why the ❌ crashed |\n|---|---|---|\n| `participant Owner` (no alias) | `participant Owner as \"Owner\"` | Bare participants can break when used later with spaces |\n| `participant Tx as \"Transcoding\\nService\"` | `participant Tx as \"Transcoding Service\"` | Literal `\\n` in alias |\n| `participant API as \"REST API: v2\"` | `participant API as \"REST API (v2)\"` | `:` in alias collides with message delimiter |\n| `Note over Client,API: First fact\\nSecond fact` | Two consecutive `Note over Client,API: ...` lines | `\\n` in note text |\n| `alt happy path` ... missing `end` | `alt happy path` ... `end` | Unclosed block |\n| `participant Svc as Order Service` (unquoted) | `participant Svc as \"Order Service\"` | Multi-word alias must be quoted |\n\n## Error Handling\n\n- **Unsupported project type**: Output a single line: `> ERROR: Unsupported project type. This skill supports Java, .NET, JavaScript, and TypeScript projects only.`\n- **No business logic found**: Output: `> ERROR: No recognized business logic or workflows found at workspace-path. The project may be a library or framework without business processes.`\n- **Insufficient info**: Generate a best-effort document from available data. Add a note: `> Note: Some workflows or business rules could not be fully traced.`\n\n## Success Criteria\n\n- Domain entities table lists key entities with their owning service\u002Fbounded context, descriptions, and relationships\n- Service-to-domain mapping table maps each service to its domain context and owned entities\n- At least one primary workflow is documented with steps, business rules, and cross-service interactions\n- Cross-service data flows describe aggregation\u002Fcomposition patterns with fallback behavior\n- Mermaid sequence diagram renders correctly showing end-to-end business workflow with `alt`\u002F`else` blocks for fallbacks\n- Business rules section summarizes validation, decision logic, state transitions, and constraints\n- The ```mermaid block is preceded by the `\u003C!-- mermaid-checked: ... -->` attestation comment\n- File saved to `.github\u002Fmodernize\u002Fassessment\u002Fengines\u002Ffacts\u002Fbusiness-workflows.md`\n","# Core Business Workflows\n\nAnalyze the project to document business processes end-to-end, domain entities, business rules, service-to-domain mapping, cross-service data flows, and decision logic. Generate a Mermaid sequence diagram showing the primary business workflow. Save to `.github\u002Fmodernize\u002Fassessment\u002Fengines\u002Ffacts\u002Fbusiness-workflows.md`.\n\n## Input Parameters\n\n- `workspace-path` (optional): Path to the project to analyze (defaults to current directory)\n\n## ⚠ Mermaid Safety Constraints — read BEFORE you write the ```mermaid block\n\nMermaid sequenceDiagram is unforgiving in a few specific ways: one bad alias or one missing `end` crashes the **whole** diagram with `Syntax error in text`, not just the offending line. Stay strictly inside this subset for the sequence diagram:\n\n1. **Chart kind.** `sequenceDiagram` only. Never `sequence-diagram`, never `sequence`.\n2. **Participants.** Always declare with the alias form `participant \u003CAlphaNumId> as \"Display Label\"`. The id must match `[A-Za-z][A-Za-z0-9_]*`. Never omit the id — even a one-word participant should be `participant Owner as \"Owner\"`. This is the single biggest cause of past failures.\n3. **Arrows.**\n   - `->>` synchronous request\n   - `-->>` synchronous response\n   - `-)` async fire-and-forget\n   - Message text goes after `:` and is plain text — keep it short and on one line.\n4. **Blocks.** `alt` \u002F `else` \u002F `opt` \u002F `loop` \u002F `par` \u002F `critical` MUST be closed by `end` on its own line. Every open block must have a matching `end`. Missing `end` is the #2 cause of past failures.\n5. **No line breaks anywhere.** The escape `\\n` was removed in modern Mermaid. Aliases, message text, and `Note over` content must all be single-line. Split a long note into multiple consecutive `Note over` lines; split a long message into multiple arrows. This is the #1 cause of past failures.\n6. **Banned characters inside participant aliases specifically** (message text is more permissive — only `\\n` is banned there):\n\n   | Banned in alias | Why it breaks | Replacement |\n   |---|---|---|\n   | `\\n` (literal two chars) | escape removed | drop |\n   | `\"` (a second double-quote) | closes the alias early | `'` (single quote) |\n   | `` ` `` (backtick) | breaks alias quoting | drop |\n   | smart quotes `\"` `\"` `'` `'` | not ASCII | regular `\"` and `'` |\n   | `:` | confuses with message delimiter | rephrase, e.g. `\"Order Service (v2)\"` not `\"Order Service: v2\"` |\n   | `\u003Cbr\u002F>` | not interpreted inside aliases | rephrase as shorter alias |\n\n7. **Quote the alias.** `participant Svc as \"Order Service\"` — never `participant Svc as Order Service` (unquoted multi-word aliases break).\n\n### Mandatory self-attestation\n\nImmediately before writing the ` ```mermaid ` opening fence, emit this exact one-line HTML comment in the markdown (it does not render — it is for your own visible attestation):\n\n```\n\u003C!-- mermaid-checked: every participant uses `participant Id as \"Label\"`, no \\n in aliases\u002Fmessages\u002Fnotes, every alt\u002Fopt\u002Floop closed by end, no `:` inside any alias -->\n```\n\nIf you cannot truthfully emit that comment, fix the diagram first.\n\n---\n\n## Scope Boundaries — Avoid Redundancy with Other Skills\n\nThis skill is part of a set of four complementary assessment skills. To avoid content duplication across their output documents, observe these scope rules:\n\n- **Introduction**: Write a 1-2 sentence intro focused on the business domain (what the application does for its users). Do NOT restate the technology stack, database options, or framework versions.\n- **Domain Entities table**: Focus on business meaning — entity description, bounded context, and business relationships. Do NOT reproduce entity field lists, data types, PK\u002FFK annotations, or ORM mapping details (cascade, fetch strategy) — those are owned by the `data-architecture` skill.\n- **Validation rules in workflow steps**: When describing a workflow step that involves validation, reference the rule by name (e.g., \"PetValidator checks name and birthDate\") rather than re-listing every constraint. Enumerate the full validation rules only once in the \"Business Rules & Decision Logic\" section.\n- **Caching behavior**: If caching affects a workflow (e.g., vet list served from cache), mention the business impact (e.g., \"vet data served from cache, reducing load\") but do NOT describe the cache provider, TTL, configuration class, or JMX statistics — those are owned by the `data-architecture` skill.\n- **API endpoint paths and HTTP methods**: Only mention endpoint paths as entry points for workflows (e.g., \"Staff submits POST \u002Fowners\u002Fnew\"). Do NOT create endpoint inventory tables — those are owned by the `api-service-contracts` skill.\n\n## Execution Steps\n\n### Step 1: Generate Domain Entities Section\n\nIdentify the domain model and produce the complete `## Domain Entities` section:\n\n- Identify domain entities and aggregates (DDD patterns if present)\n- Focus on business meaning — entity description, bounded context, and business relationships\n- Do NOT reproduce entity field lists, data types, PK\u002FFK annotations, or ORM mapping details (cascade, fetch strategy) — those are owned by the `data-architecture` skill\n\n### Step 2: Generate Service-to-Domain Mapping Section\n\nMap each service to its bounded context and owned entities, then produce the complete `## Service-to-Domain Mapping` section (applies to microservice or multi-module architectures):\n\n- Service name → bounded context (e.g., `customers-service` → Customer Management, `visits-service` → Appointment Management)\n- Domain entities owned by each service\u002Fcontext\n- Cross-context data exchange patterns: how domains communicate (REST API, events, shared database)\n- Data that spans contexts (e.g., `petId` as a foreign key in visits-service referencing customers-service's Pet entity)\n- Aggregation boundaries: which service is the source of truth for which data\n\n### Step 3: Generate Primary Workflows Section\n\nScan for business process entry points, trace each significant workflow end-to-end, and produce the complete `## Primary Workflows` section:\n\n**Entry points to scan:**\n- Controllers\u002Fendpoints that initiate business processes (not just CRUD — look for multi-step operations)\n- **API Gateway aggregation endpoints** that compose responses from multiple backend services — these are business workflow entry points even though they live in the gateway layer (e.g., fetching owner details combined with visit history)\n- Scheduled tasks (`@Scheduled`, Quartz, Hangfire, cron jobs, `BackgroundService`)\n- Event listeners (`@EventListener`, `@KafkaListener`, `INotificationHandler`, message handlers)\n- CLI commands or batch job entry points\n- Startup\u002Finitialization routines that set up business state\n\n**For each significant entry point, trace the flow:**\n- Entry point → service layer → domain logic → persistence\n- The sequence of operations: validation → business rule check → state mutation → side effects\n- Branching logic (if\u002Felse, switch, strategy pattern) that represents business decisions\n- Orchestration vs choreography patterns in multi-service workflows\n\n### Step 4: Generate Cross-Service Data Flows Section\n\nTrace cross-service data composition flows end-to-end and produce the complete `## Cross-Service Data Flows` section:\n\n- Gateway aggregation patterns: e.g., gateway fetches owner from customers-service → extracts pet IDs → fetches visits from visits-service → merges visits into pet records → returns composite response\n- Which service provides which data and how they are joined\u002Fmerged\n- Circuit breaker fallback behavior that affects business outcomes (e.g., \"when visits-service is unavailable, owner details are returned without visit history\" — this is a business-relevant degradation, not just a technical detail)\n\n### Step 5: Generate Business Workflow Sequence Section\n\nCreate a **Mermaid `sequenceDiagram`** showing the primary business workflow end-to-end and produce the complete `## Business Workflow Sequence` section:\n\n- Show the most important business process (e.g., \"customer places order\", \"owner registers pet and schedules visit\", \"gateway aggregates owner with visit history\")\n- Include actors, services, and domain entities as participants\n- Show business rule checks and decision points\n- Annotate with business-relevant labels (not technical method names)\n- Use `alt`\u002F`else` blocks to show circuit breaker fallback paths that affect business outcomes\n- Show cross-service data aggregation flows\n\nReference example (this block satisfies every Safety Constraint — match its shape):\n\n\u003C!-- mermaid-checked: every participant uses `participant Id as \"Label\"`, no \\n in aliases\u002Fmessages\u002Fnotes, every alt\u002Fopt\u002Floop closed by end, no `:` inside any alias -->\n~~~mermaid\nsequenceDiagram\n    participant Owner as \"Owner\"\n    participant Gateway as \"API Gateway\"\n    participant CustSvc as \"Customer Service\"\n    participant VisitSvc as \"Visit Service\"\n    participant DB as \"Database\"\n\n    Owner->>Gateway: View my pets and visits\n    Gateway->>CustSvc: Get owner details\n    CustSvc->>DB: Find owner with pets\n    DB-->>CustSvc: Owner + Pet list\n    CustSvc-->>Gateway: OwnerDetails(pets)\n\n    Gateway->>Gateway: Extract pet IDs from response\n    Gateway->>VisitSvc: Get visits for pets (batch)\n    alt Visit Service Available\n        VisitSvc->>DB: Find visits by pet IDs\n        DB-->>VisitSvc: Visit records\n        VisitSvc-->>Gateway: Visits per pet\n        Gateway->>Gateway: Merge visits into pet records\n    else Visit Service Unavailable (Circuit Breaker)\n        Note over Gateway: Fallback - return owner without visits\n    end\n    Gateway-->>Owner: Complete owner profile with visits\n~~~\n\n### Step 6: Generate Business Rules & Decision Logic Section\n\nExtract and document business rules and cross-cutting concerns, and produce the complete `## Business Rules & Decision Logic` section:\n\n**Business Rules:**\n- **Validation rules**: Input validation, field constraints, format checks, custom validators\n- **Decision logic**: Conditional business logic, pricing rules, eligibility checks, approval workflows\n- **State transitions**: Entity lifecycle states (e.g., Order: Created → Confirmed → Shipped → Delivered), state machines\n- **Business constraints**: Uniqueness rules, capacity limits, temporal constraints (booking windows, cooldown periods)\n- **Computed values**: Derived fields, calculated totals, aggregated metrics\n- **Data integrity rules**: Bidirectional relationship maintenance (e.g., `owner.addPet(pet)` ensuring both sides of the relationship are set)\n\n**Cross-Cutting Concerns:**\n- **Transactions**: Transaction boundaries, `@Transactional` scope, saga patterns, eventual consistency\n- **Error handling**: Business exception types, compensating actions, dead-letter handling\n- **Audit\u002Flogging**: Business event logging, audit trails, change tracking\n- **Authorization**: Business-level authorization rules (role-based, attribute-based, resource ownership)\n\n### Step 7: Save Output\n\nSave to `.github\u002Fmodernize\u002Fassessment\u002Fengines\u002Ffacts\u002Fbusiness-workflows.md` with this exact structure:\n\n```\n# Core Business Workflows\n\nA brief introduction (1-2 sentences) summarizing the application's business domain.\n\n## Domain Entities\n\n[Table: Entity | Service \u002F Bounded Context | Description | Key Relationships]\n\n## Service-to-Domain Mapping\n\n[Table: Service | Domain Context | Owned Entities | External Dependencies]\n\n## Primary Workflows\n\n### Workflow 1: [Name]\n\n[Description, steps, business rules involved, cross-service interactions]\n\n### Workflow 2: [Name]\n\n[Description, steps, business rules involved]\n\n## Cross-Service Data Flows\n\n[Description of aggregation\u002Fcomposition patterns, which service provides which data, how data is joined, fallback behavior when services are unavailable]\n\n## Business Workflow Sequence\n\n\u003C Mermaid sequenceDiagram here, with alt\u002Felse blocks for fallback paths >\n\n## Business Rules & Decision Logic\n\n[Summary of key business rules, validation rules, state transitions, and decision points]\n```\n\n## Scaling Rules\n\n- If the project has **more than 10 distinct workflows**, focus on the 3-5 most important business processes and summarize the rest in a \"Other Workflows\" section\n- Keep the sequence diagram under **40 participants and messages** to ensure readability and GitHub rendering compatibility\n- For multi-module projects, focus on the primary end-to-end business workflow that spans modules\n- Aggregate minor CRUD operations and show only workflows that involve business logic beyond simple create\u002Fread\u002Fupdate\u002Fdelete\n\n## Common failure patterns observed in past runs\n\nEach row below is something the model actually produced that crashed the diagram. Use the ✅ form.\n\n| ❌ Past mistake | ✅ Safe form | Why the ❌ crashed |\n|---|---|---|\n| `participant Owner` (no alias) | `participant Owner as \"Owner\"` | Bare participants can break when used later with spaces |\n| `participant Tx as \"Transcoding\\nService\"` | `participant Tx as \"Transcoding Service\"` | Literal `\\n` in alias |\n| `participant API as \"REST API: v2\"` | `participant API as \"REST API (v2)\"` | `:` in alias collides with message delimiter |\n| `Note over Client,API: First fact\\nSecond fact` | Two consecutive `Note over Client,API: ...` lines | `\\n` in note text |\n| `alt happy path` ... missing `end` | `alt happy path` ... `end` | Unclosed block |\n| `participant Svc as Order Service` (unquoted) | `participant Svc as \"Order Service\"` | Multi-word alias must be quoted |\n\n## Error Handling\n\n- **Unsupported project type**: Output a single line: `> ERROR: Unsupported project type. This skill supports Java, .NET, JavaScript, and TypeScript projects only.`\n- **No business logic found**: Output: `> ERROR: No recognized business logic or workflows found at workspace-path. The project may be a library or framework without business processes.`\n- **Insufficient info**: Generate a best-effort document from available data. Add a note: `> Note: Some workflows or business rules could not be fully traced.`\n\n## Success Criteria\n\n- Domain entities table lists key entities with their owning service\u002Fbounded context, descriptions, and relationships\n- Service-to-domain mapping table maps each service to its domain context and owned entities\n- At least one primary workflow is documented with steps, business rules, and cross-service interactions\n- Cross-service data flows describe aggregation\u002Fcomposition patterns with fallback behavior\n- Mermaid sequence diagram renders correctly showing end-to-end business workflow with `alt`\u002F`else` blocks for fallbacks\n- Business rules section summarizes validation, decision logic, state transitions, and constraints\n- The ```mermaid block is preceded by the `\u003C!-- mermaid-checked: ... -->` attestation comment\n- File saved to `.github\u002Fmodernize\u002Fassessment\u002Fengines\u002Ffacts\u002Fbusiness-workflows.md`\n",{"name":5,"description":7},"main","a9c9469d86e9dc078018e8fb391abc7744088078","plugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fbusiness-workflows",15,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-09-24 00:17:59",{"source":9,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add microsoft\u002Fgithub-copilot-modernization --skill business-workflows",{"tool":56,"command":57},"bunx","bunx skills add microsoft\u002Fgithub-copilot-modernization --skill business-workflows",{"tool":59,"command":60},"pnpm","pnpm dlx skills add microsoft\u002Fgithub-copilot-modernization --skill business-workflows","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fbusiness-workflows\u002FSKILL.md",true,[],[65,82,99,116,133,145],{"skillNo":66,"name":67,"nameZh":68,"description":69,"descriptionZh":70,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":71,"categories":72,"keywords":79,"publishedAt":36},"01M69B5DBRA354JMQRZP3D1X3X","verify-test-baseline","迁移后基线测试验证","Generate and run post-migration tests from the frozen baseline specification.","根据冻结的基线规范生成并运行迁移后测试。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fverify-test-baseline\u002FSKILL.md",[73,76],{"categoryNo":74,"categoryName":75,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":77,"categoryName":78,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[80,81],"test","verify test baseline",{"skillNo":83,"name":84,"nameZh":85,"description":86,"descriptionZh":87,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":88,"categories":89,"keywords":96,"publishedAt":36},"01M69B5BJWPCN41J5ZAR2XFMBR","team-request","团队连接信息与密钥申请","How team members request infrastructure connection info and handle secrets in team mode","团队成员如何在团队模式下申请基础设施连接信息并处理密钥","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fteam-request\u002FSKILL.md",[90,93],{"categoryNo":91,"categoryName":92,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRK82SYBDNZ3SG8YAH5A3D","凭证与密钥管理",{"categoryNo":94,"categoryName":95,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[97,98],"team request","infrastructure",{"skillNo":100,"name":101,"nameZh":102,"description":103,"descriptionZh":104,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":105,"categories":106,"keywords":113,"publishedAt":36},"01M69B58TZ7SNTPB6C508M5HWX","team-charters","多智能体团队角色章程","Provides role charters (mission, ownership, core principles, quality bar) for a multi-agent coding team. Each charter defines the role's mission, ownership scope, core principle (boundary constraints), and quality bar. Most roles also include communication rules. Consumed by the coordinator during task decomposition to assign work to the correct role.\nTriggers: \"look up role charter\", \"what does the architect own\", \"check role boundaries\", \"find team roles\", \"which role handles X\", \"list agent charters\", \"role responsibilities\".\nNOT for: task decomposition (use breaking-down-tasks), implementation (use implementing-code), architecture analysis (use analyzing-architecture).","为多智能体编码团队提供角色章程（使命、职责范围、核心原则、质量标杆）。每份章程定义该角色的使命、职责范围、核心原则（边界约束）和质量标杆。大多数角色还包含沟通规则。协调者在任务分解时读取这些章程，以将工作分配给正确的角色。\n触发场景：\"查找角色章程\"、\"架构师负责什么\"、\"检查角色边界\"、\"查找团队角色\"、\"哪个角色处理 X\"、\"列出智能体章程\"、\"角色职责\"。\n不适用于：任务分解（使用 breaking-down-tasks）、代码实现（使用 implementing-code）、架构分析（使用 analyzing-architecture）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fteam-charters\u002FSKILL.md",[107,110],{"categoryNo":108,"categoryName":109,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRN0DBCRG4XGJMB6QQEP11","编码任务委派",{"categoryNo":111,"categoryName":112,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[114,115],"team charters","architecture",{"skillNo":117,"name":118,"nameZh":119,"description":120,"descriptionZh":121,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":122,"categories":123,"keywords":130,"publishedAt":36},"01M69B56JVPKCS2WWVSCZXHEZJ","struts-to-spring","Struts 2 至 Spring Boot 迁移","Migration guideline for transforming Apache Struts 2 applications to Spring Boot 3.x and Spring MVC.","将 Apache Struts 2 应用程序迁移到 Spring Boot 3.x 和 Spring MVC 的迁移指南。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fstruts-to-spring\u002FSKILL.md",[124,127],{"categoryNo":125,"categoryName":126,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":128,"categoryName":129,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[131,132],"struts to spring","boot",{"skillNo":134,"name":135,"nameZh":136,"description":137,"descriptionZh":138,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":139,"categories":140,"keywords":143,"publishedAt":36},"01M69B54QQ6K8SDZ8MJYEKBYHJ","spring-boot-scaffolding","Spring Boot 项目脚手架搭建","Reference guide for creating a new Spring Boot project during rewrite migration.","在重写迁移过程中创建新 Spring Boot 项目的参考指南。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fspring-boot-scaffolding\u002FSKILL.md",[141,142],{"categoryNo":125,"categoryName":126,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":128,"categoryName":129,"taxonomyType":28,"taxonomyTypeDesc":29},[132,144],"spring boot scaffolding",{"skillNo":146,"name":147,"nameZh":148,"description":149,"descriptionZh":150,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":151,"categories":152,"keywords":159,"publishedAt":36},"01M69B52T5G9CZWHYXWP22WEKY","sharing-learnings","项目经验教训记录与共享","How to record project learnings so that later-phase workers and future agent runs can consume them.","介绍如何记录项目经验教训，以便后续阶段的工作者和未来的智能体运行能够参考使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fgithub-copilot-modernization\u002Fblob\u002Fmain\u002Fplugins\u002Fgithub-copilot-modernization\u002Fskills\u002Fsharing-learnings\u002FSKILL.md",[153,156],{"categoryNo":154,"categoryName":155,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRFRAYBCBW9WKDY9TCSHY3","知识管理与沉淀",{"categoryNo":157,"categoryName":158,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C31AVFVV99RWJEGF9PS85F","项目经理",[160],"sharing learnings"]