pm7y-api-migration-analyzer
# SKILL: API Migration Analyser
What this skill does
# SKILL: API Migration Analyser
## Overview
Analyses an API codebase for Azure subscription migration, producing a structured
summary document. Designed for parallel execution across analysis domains.
## Trigger
When user asks to analyse an API for migration, or references this skill.
## Prerequisites
- Working directory is the API repository root
- User has provided any context about the target environment
## Execution Strategy
### Phase 1: Discovery (Sequential - Required First)
Single agent establishes codebase structure before parallel analysis.
**Tasks:**
1. Identify solution/project structure (`find . -name "*.csproj" -o -name "*.sln"`)
2. Locate entry points (Program.cs, Startup.cs, Function triggers)
3. Identify configuration files (appsettings*.json, *.bicep, *.tf)
4. Check for /readiness or /health endpoints
5. Identify dependency injection registrations
6. Detect job schedulers (Hangfire, HostedService, Timer triggers)
**Output:** `_discovery.json` with file paths and initial classification
---
### Phase 2: Parallel Analysis (5 Concurrent Agents)
#### Agent A: Core Identity
**Focus:** What is this API and what does it own?
**Analyse:**
- Purpose and business context (README, XML docs, namespace structure)
- Azure resources required (from bicep/terraform/ARM templates)
- Data persistence (DbContext, repositories, storage clients)
- PII/PHI classification
**Output sections:** 1 (Overview), 6 (Data Persistence), 10 (PII/PHI)
---
#### Agent B: Integration Surface
**Focus:** How does this API connect to the outside world?
**Analyse:**
- HTTP clients and their base URLs
- Service bus/queue connections
- Database connection strings
- Third-party SDKs (SendGrid, Twilio, AWS, etc.)
- gRPC/REST client registrations
**Output sections:** 2 (Dependencies)
---
#### Agent C: API Contract
**Focus:** What does this API expose?
**Analyse:**
- Controller routes and HTTP methods
- Authentication attributes ([Authorize], API key middleware)
- Request/response models
- OpenAPI/Swagger definitions if present
- Deprecation markers
**Output sections:** 3 (Endpoints) - summarised, not exhaustive code paths
---
#### Agent D: Messaging & Jobs
**Focus:** Asynchronous behaviour
**Analyse:**
- Message handlers (IHandleMessages, Functions with triggers)
- Event publishers (IPublishEndpoint, ITopicClient)
- Background jobs and schedules
- Hosted services
**Output sections:** 4 (Messages Consumed), 5 (Messages Published), 7 (Background Jobs)
---
#### Agent E: Infrastructure & Security
**Focus:** Deployment and access requirements
**Analyse:**
- Configuration settings and their sources
- Key Vault references
- Managed identity usage
- Required Azure roles/permissions
- CI/CD workflows
- Outbound network requirements (URLs, ports)
**Output sections:** 8 (Configuration), 9 (Permissions), 11 (Workflows), 12 (Packages)
---
### Phase 3: Consolidation (Sequential)
#### Consolidation Tasks:
1. **Cross-validate:** Compare declared dependencies (Agent B) against actual usage (Agents C, D)
2. **Risk synthesis:** Identify migration risks from all agent outputs
3. **Diagram generation:** Create C4 context diagram using **pm7y-mermaid-diagram skill** (see below)
4. **Gap detection:** Flag sections marked "Not determinable" for dev team questions
5. **Priority ranking:** Order risks by migration impact
**Output sections:** 13 (Diagram), 14 (Risks), 15 (Appendix), 16 (Questions)
#### Diagram Generation (using pm7y-mermaid-diagram skill)
When creating the C4 context diagram for Section 13, **invoke the pm7y-mermaid-diagram skill** to ensure syntactically correct output. Use `flowchart TD` for the C4 context diagram with:
- **External systems** as nodes outside subgraphs
- **The API** in a central subgraph
- **Dependencies** (databases, queues, external APIs) as connected nodes
- **Labels** showing the relationship (e.g., "reads from", "publishes to")
**Example structure:**
```mermaid
flowchart TD
subgraph System["API Name"]
API[API Service]
end
DB[(Database)]
Queue[Service Bus]
ExtAPI[External API]
API -->|reads/writes| DB
API -->|publishes| Queue
API -->|calls| ExtAPI
```
Follow all pm7y-mermaid-diagram rules:
- Use double quotes for labels with special characters
- Use `subgraph ID["Title"]` syntax
- Avoid lowercase "end" as node names
- No `Note` keyword in flowcharts
---
## Output Format
### File: `API_Summary.md`
```markdown
# {API Name} Migration Summary
> Generated: {date}
> Repository: {repo path}
> Confidence: {High|Medium|Low} - based on code coverage of analysis
## Quick Reference
| Attribute | Value |
|-----------|-------|
| Critical Dependencies | {count} |
| PII/PHI Present | Y/N |
| Background Jobs | {count} |
| Migration Risk Level | {High|Medium|Low} |
## Migration Blockers (Review First)
{Top 3 critical risks that could prevent migration}
---
{Sections 1-16 as per original spec, but with validated cross-references}
```
---
## Section Specifications
### Tables - Standard Columns
All tables include a **Confidence** column:
- ✅ Verified in code
- ⚠️ Inferred from patterns
- ❓ Not determinable
### Section Modifications from Original
| Section | Change | Rationale |
|---------|--------|-----------|
| 3 (Endpoints) | Summarise by controller, not exhaustive code paths | Performance; full paths rarely needed for migration |
| 10 (PII/PHI) | Add "Encryption at Rest" column | Critical for HIPAA compliance verification |
| 13 (Diagram) | Remove "Microsoft Loop compatible" requirement | Too vague; standard Mermaid is sufficient |
| 14 (Risks) | Move to top of document as "Migration Blockers" | Visibility for decision-makers |
| 15 (Appendix) | Replace with structured "Migration Notes" checklist | Prevents rambling |
---
## Validation Rules
Before finalising output, verify:
- [ ] Every dependency in Section 2 appears in at least one endpoint/job/handler
- [ ] Every external URL has a corresponding firewall rule suggestion
- [ ] PII/PHI classification aligns with data persistence entries
- [ ] Background jobs that "Send Communications" have corresponding dependencies
- [ ] Questions for dev team are specific and actionable (not generic)
---
## Error Handling
| Condition | Action |
|-----------|--------|
| No .csproj found | Abort with "Not a .NET repository" message |
| No configuration files | Warn and continue; note in Appendix |
| Circular dependencies detected | Flag as Critical risk |
| Analysis timeout on large codebase | Complete available sections; note incomplete areas |Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.