natureco-cli 5.18.3 → 5.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/package.json +1 -1
- package/skills/a-b-testing/SKILL.md +34 -0
- package/skills/accessibility-audit/SKILL.md +34 -0
- package/skills/agent-memory/SKILL.md +34 -0
- package/skills/agent-orchestration/SKILL.md +34 -0
- package/skills/airunway-aks-setup/SKILL.md +73 -0
- package/skills/algorithmic-art/SKILL.md +405 -0
- package/skills/analytics-setup/SKILL.md +34 -0
- package/skills/api-design/SKILL.md +34 -0
- package/skills/api-versioning/SKILL.md +34 -0
- package/skills/appinsights-instrumentation/SKILL.md +76 -0
- package/skills/audio-transcription/SKILL.md +34 -0
- package/skills/authentication-patterns/SKILL.md +34 -0
- package/skills/authorization-rbac/SKILL.md +34 -0
- package/skills/azure-ai/SKILL.md +71 -0
- package/skills/azure-aigateway/SKILL.md +129 -0
- package/skills/azure-cloud-migrate/SKILL.md +52 -0
- package/skills/azure-compliance/SKILL.md +108 -0
- package/skills/azure-compute/SKILL.md +46 -0
- package/skills/azure-cost/SKILL.md +45 -0
- package/skills/azure-deploy/SKILL.md +97 -0
- package/skills/azure-diagnostics/SKILL.md +151 -0
- package/skills/azure-enterprise-infra-planner/SKILL.md +54 -0
- package/skills/azure-hosted-copilot-sdk/SKILL.md +89 -0
- package/skills/azure-kubernetes/SKILL.md +153 -0
- package/skills/azure-kusto/SKILL.md +231 -0
- package/skills/azure-messaging/SKILL.md +57 -0
- package/skills/azure-prepare/SKILL.md +165 -0
- package/skills/azure-quotas/SKILL.md +276 -0
- package/skills/azure-rbac/SKILL.md +17 -0
- package/skills/azure-reliability/SKILL.md +387 -0
- package/skills/azure-resource-lookup/SKILL.md +108 -0
- package/skills/azure-resource-visualizer/SKILL.md +183 -0
- package/skills/azure-storage/SKILL.md +100 -0
- package/skills/azure-upgrade/SKILL.md +91 -0
- package/skills/azure-validate/SKILL.md +72 -0
- package/skills/backup-strategy/SKILL.md +34 -0
- package/skills/bash-scripting/SKILL.md +34 -0
- package/skills/batch-api-calls/SKILL.md +34 -0
- package/skills/batch-processing/SKILL.md +34 -0
- package/skills/brainstorming/SKILL.md +159 -0
- package/skills/brand-guidelines/SKILL.md +73 -0
- package/skills/brandkit/SKILL.md +798 -0
- package/skills/brutalist-skill/SKILL.md +92 -0
- package/skills/bulk-file-operations/SKILL.md +34 -0
- package/skills/cache-responses/SKILL.md +34 -0
- package/skills/caching-strategy/SKILL.md +34 -0
- package/skills/calendar-optimization/SKILL.md +34 -0
- package/skills/canvas-design/SKILL.md +130 -0
- package/skills/cavecrew/SKILL.md +82 -0
- package/skills/caveman-commit/SKILL.md +65 -0
- package/skills/caveman-help/SKILL.md +63 -0
- package/skills/caveman-review/SKILL.md +55 -0
- package/skills/caveman-stats/SKILL.md +10 -0
- package/skills/changelog-generation/SKILL.md +34 -0
- package/skills/chat-bot-design/SKILL.md +34 -0
- package/skills/chunking-strategy/SKILL.md +34 -0
- package/skills/ci-cd-pipeline/SKILL.md +34 -0
- package/skills/classification-pipeline/SKILL.md +34 -0
- package/skills/claude-api/SKILL.md +356 -0
- package/skills/clipboard-master/SKILL.md +34 -0
- package/skills/code-explanation/SKILL.md +34 -0
- package/skills/code-generation/SKILL.md +34 -0
- package/skills/code-migration/SKILL.md +34 -0
- package/skills/code-review-checklist/SKILL.md +34 -0
- package/skills/composition-patterns/SKILL.md +89 -0
- package/skills/contact-management/SKILL.md +34 -0
- package/skills/content-generation/SKILL.md +34 -0
- package/skills/context-pruning/SKILL.md +34 -0
- package/skills/context-window-management/SKILL.md +34 -0
- package/skills/continuous-improvement/SKILL.md +34 -0
- package/skills/cron-scheduling/SKILL.md +34 -0
- package/skills/cross-platform-compat/SKILL.md +34 -0
- package/skills/csv-processing/SKILL.md +34 -0
- package/skills/daily-journal/SKILL.md +34 -0
- package/skills/data-analysis/SKILL.md +34 -0
- package/skills/data-backup/SKILL.md +34 -0
- package/skills/data-cleaning/SKILL.md +34 -0
- package/skills/data-extraction/SKILL.md +34 -0
- package/skills/data-validation/SKILL.md +34 -0
- package/skills/database-migrations/SKILL.md +34 -0
- package/skills/database-schema-design/SKILL.md +34 -0
- package/skills/decision-mapping/SKILL.md +84 -0
- package/skills/decision-matrix/SKILL.md +34 -0
- package/skills/dependency-management/SKILL.md +34 -0
- package/skills/deploy-to-vercel/SKILL.md +296 -0
- package/skills/design-an-interface/SKILL.md +94 -0
- package/skills/design-doc-mermaid/SKILL.md +498 -0
- package/skills/dev-environment-setup/SKILL.md +34 -0
- package/skills/develop-userscripts/SKILL.md +84 -0
- package/skills/distraction-blocker/SKILL.md +34 -0
- package/skills/doc-coauthoring/SKILL.md +375 -0
- package/skills/docker-optimization/SKILL.md +34 -0
- package/skills/document-template/SKILL.md +34 -0
- package/skills/documentation/SKILL.md +109 -0
- package/skills/documentation-gen/SKILL.md +34 -0
- package/skills/docx/SKILL.md +590 -0
- package/skills/edit-article/SKILL.md +15 -0
- package/skills/efficient-formatting/SKILL.md +34 -0
- package/skills/email-management/SKILL.md +34 -0
- package/skills/email-service/SKILL.md +34 -0
- package/skills/embedding-generation/SKILL.md +34 -0
- package/skills/entity-extraction/SKILL.md +34 -0
- package/skills/entra-agent-id/SKILL.md +356 -0
- package/skills/entra-app-registration/SKILL.md +191 -0
- package/skills/environment-config/SKILL.md +34 -0
- package/skills/error-handling/SKILL.md +34 -0
- package/skills/estimation-techniques/SKILL.md +34 -0
- package/skills/event-driven-architecture/SKILL.md +34 -0
- package/skills/excel-automation/SKILL.md +34 -0
- package/skills/execution-monitoring/SKILL.md +34 -0
- package/skills/expense-tracking/SKILL.md +34 -0
- package/skills/faceless-explainer/SKILL.md +202 -0
- package/skills/fastify/SKILL.md +75 -0
- package/skills/feature-engineering/SKILL.md +34 -0
- package/skills/feature-flags/SKILL.md +34 -0
- package/skills/file-conversion/SKILL.md +34 -0
- package/skills/file-upload-handling/SKILL.md +34 -0
- package/skills/fine-tuning-prep/SKILL.md +34 -0
- package/skills/focus-mode/SKILL.md +34 -0
- package/skills/form-validation/SKILL.md +34 -0
- package/skills/function-calling/SKILL.md +34 -0
- package/skills/general-video/SKILL.md +143 -0
- package/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/skills/git-workflow/SKILL.md +34 -0
- package/skills/github-actions-docs/SKILL.md +98 -0
- package/skills/goal-setting/SKILL.md +34 -0
- package/skills/gpt-tasteskill/SKILL.md +74 -0
- package/skills/graphql-design/SKILL.md +34 -0
- package/skills/grill-me/SKILL.md +7 -0
- package/skills/grilling/SKILL.md +10 -0
- package/skills/habit-tracker/SKILL.md +34 -0
- package/skills/hallucination-detection/SKILL.md +34 -0
- package/skills/handoff/SKILL.md +16 -0
- package/skills/hyperframes/SKILL.md +152 -0
- package/skills/hyperframes-animation/SKILL.md +82 -0
- package/skills/hyperframes-cli/SKILL.md +109 -0
- package/skills/hyperframes-core/SKILL.md +78 -0
- package/skills/hyperframes-creative/SKILL.md +68 -0
- package/skills/hyperframes-media/SKILL.md +97 -0
- package/skills/image-processing/SKILL.md +34 -0
- package/skills/image-to-code-skill/SKILL.md +1228 -0
- package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
- package/skills/imagegen-frontend-web/SKILL.md +987 -0
- package/skills/implement/SKILL.md +15 -0
- package/skills/init/SKILL.md +91 -0
- package/skills/internal-comms/SKILL.md +32 -0
- package/skills/json-transformation/SKILL.md +34 -0
- package/skills/keyboard-shortcuts/SKILL.md +34 -0
- package/skills/knowledge-base/SKILL.md +34 -0
- package/skills/knowledge-graph/SKILL.md +34 -0
- package/skills/kubernetes-deployment/SKILL.md +34 -0
- package/skills/language-translation/SKILL.md +34 -0
- package/skills/lark-approval/SKILL.md +56 -0
- package/skills/lark-base/SKILL.md +157 -0
- package/skills/lark-doc/SKILL.md +81 -0
- package/skills/lark-shared/SKILL.md +168 -0
- package/skills/lark-workflow-meeting-summary/SKILL.md +122 -0
- package/skills/linting-neostandard-eslint9/SKILL.md +64 -0
- package/skills/llm-chaining/SKILL.md +34 -0
- package/skills/localization-i18n/SKILL.md +34 -0
- package/skills/logging-best-practices/SKILL.md +34 -0
- package/skills/loop-me/SKILL.md +32 -0
- package/skills/machine-learning-pipeline/SKILL.md +34 -0
- package/skills/meeting-notes/SKILL.md +34 -0
- package/skills/meeting-scheduler/SKILL.md +34 -0
- package/skills/message-queues/SKILL.md +34 -0
- package/skills/message-summarization/SKILL.md +34 -0
- package/skills/microservices-architecture/SKILL.md +34 -0
- package/skills/microsoft-foundry/SKILL.md +262 -0
- package/skills/migrate-to-shoehorn/SKILL.md +118 -0
- package/skills/milestone-tracking/SKILL.md +34 -0
- package/skills/minimalist-skill/SKILL.md +85 -0
- package/skills/model-deployment/SKILL.md +34 -0
- package/skills/model-evaluation/SKILL.md +34 -0
- package/skills/monitoring-setup/SKILL.md +34 -0
- package/skills/monorepo-setup/SKILL.md +34 -0
- package/skills/motion-graphics/SKILL.md +170 -0
- package/skills/multi-agent-systems/SKILL.md +34 -0
- package/skills/music-to-video/SKILL.md +197 -0
- package/skills/network-troubleshooting/SKILL.md +34 -0
- package/skills/node/SKILL.md +94 -0
- package/skills/nodejs-core/SKILL.md +156 -0
- package/skills/note-organization/SKILL.md +34 -0
- package/skills/oauth/SKILL.md +186 -0
- package/skills/obsidian-vault/SKILL.md +59 -0
- package/skills/octocat/SKILL.md +93 -0
- package/skills/openclaw-secure-linux-cloud/SKILL.md +157 -0
- package/skills/opensource-guide-coach/SKILL.md +218 -0
- package/skills/output-skill/SKILL.md +49 -0
- package/skills/package-publishing/SKILL.md +34 -0
- package/skills/password-generator/SKILL.md +34 -0
- package/skills/pdf/SKILL.md +314 -0
- package/skills/pdf-processing/SKILL.md +34 -0
- package/skills/performance-optimization/SKILL.md +34 -0
- package/skills/pomodoro-timer/SKILL.md +34 -0
- package/skills/powershell-automation/SKILL.md +34 -0
- package/skills/pptx/SKILL.md +232 -0
- package/skills/pr-to-video/SKILL.md +235 -0
- package/skills/priority-filtering/SKILL.md +34 -0
- package/skills/product-launch-video/SKILL.md +205 -0
- package/skills/project-tracking/SKILL.md +34 -0
- package/skills/prompt-compression/SKILL.md +34 -0
- package/skills/prompt-engineering/SKILL.md +34 -0
- package/skills/push-notifications/SKILL.md +34 -0
- package/skills/python-appservice-deploy/SKILL.md +36 -0
- package/skills/qa/SKILL.md +130 -0
- package/skills/rag-implementation/SKILL.md +34 -0
- package/skills/rate-limiting/SKILL.md +34 -0
- package/skills/react-best-practices/SKILL.md +149 -0
- package/skills/react-native-skills/SKILL.md +121 -0
- package/skills/react-view-transitions/SKILL.md +320 -0
- package/skills/readme-i18n/SKILL.md +176 -0
- package/skills/real-time-communication/SKILL.md +34 -0
- package/skills/redesign-skill/SKILL.md +178 -0
- package/skills/refactoring-strategy/SKILL.md +34 -0
- package/skills/regex-mastery/SKILL.md +34 -0
- package/skills/remotion/SKILL.md +364 -0
- package/skills/report-generation/SKILL.md +34 -0
- package/skills/request-refactor-plan/SKILL.md +68 -0
- package/skills/research-compiler/SKILL.md +34 -0
- package/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/skills/responsive-design/SKILL.md +34 -0
- package/skills/rest-api-patterns/SKILL.md +34 -0
- package/skills/retrospectives/SKILL.md +34 -0
- package/skills/risk-assessment/SKILL.md +34 -0
- package/skills/roadmap-creation/SKILL.md +34 -0
- package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
- package/skills/scaffold-exercises/SKILL.md +106 -0
- package/skills/search-implementation/SKILL.md +34 -0
- package/skills/secrets-management/SKILL.md +34 -0
- package/skills/secure-linux-web-hosting/SKILL.md +162 -0
- package/skills/security-audit/SKILL.md +34 -0
- package/skills/selective-memory/SKILL.md +34 -0
- package/skills/semantic-search/SKILL.md +34 -0
- package/skills/semantic-versioning/SKILL.md +34 -0
- package/skills/sentiment-analysis/SKILL.md +34 -0
- package/skills/seo-optimization/SKILL.md +34 -0
- package/skills/setup-pre-commit/SKILL.md +91 -0
- package/skills/shadcn/SKILL.md +267 -0
- package/skills/simple/SKILL.md +52 -0
- package/skills/skill-creator/SKILL.md +485 -0
- package/skills/skill-optimizer/SKILL.md +47 -0
- package/skills/skills-cli/SKILL.md +281 -0
- package/skills/slack-gif-creator/SKILL.md +254 -0
- package/skills/snipgrapher/SKILL.md +58 -0
- package/skills/snippet-manager/SKILL.md +34 -0
- package/skills/soft-skill/SKILL.md +98 -0
- package/skills/sprint-planning/SKILL.md +34 -0
- package/skills/sql-query-optimization/SKILL.md +34 -0
- package/skills/stakeholder-communication/SKILL.md +34 -0
- package/skills/state-management/SKILL.md +34 -0
- package/skills/statistical-analysis/SKILL.md +34 -0
- package/skills/stitch-skill/SKILL.md +184 -0
- package/skills/streaming-responses/SKILL.md +34 -0
- package/skills/structured-output/SKILL.md +34 -0
- package/skills/summarization-techniques/SKILL.md +34 -0
- package/skills/supabase/SKILL.md +135 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/skills/system-diagnostics/SKILL.md +34 -0
- package/skills/systematic-debugging/SKILL.md +296 -0
- package/skills/talking-head-recut/SKILL.md +1191 -0
- package/skills/task-decomposition/SKILL.md +34 -0
- package/skills/task-prioritization/SKILL.md +34 -0
- package/skills/taste-skill/SKILL.md +1206 -0
- package/skills/taste-skill-v1/SKILL.md +226 -0
- package/skills/tdd/SKILL.md +108 -0
- package/skills/teach/SKILL.md +140 -0
- package/skills/template-library/SKILL.md +34 -0
- package/skills/test-driven-development/SKILL.md +371 -0
- package/skills/test-generation/SKILL.md +34 -0
- package/skills/testing-strategy/SKILL.md +34 -0
- package/skills/text-expansion/SKILL.md +34 -0
- package/skills/theme-factory/SKILL.md +59 -0
- package/skills/time-blocking/SKILL.md +34 -0
- package/skills/to-prd/SKILL.md +75 -0
- package/skills/token-budgeting/SKILL.md +34 -0
- package/skills/token-optimization/SKILL.md +34 -0
- package/skills/tool-calling-patterns/SKILL.md +34 -0
- package/skills/typescript-magician/SKILL.md +117 -0
- package/skills/tzst/SKILL.md +68 -0
- package/skills/ubiquitous-language/SKILL.md +93 -0
- package/skills/use-my-browser/SKILL.md +110 -0
- package/skills/using-superpowers/SKILL.md +121 -0
- package/skills/vector-database-setup/SKILL.md +34 -0
- package/skills/vercel-cli-with-tokens/SKILL.md +353 -0
- package/skills/vercel-optimize/SKILL.md +322 -0
- package/skills/video-editing/SKILL.md +34 -0
- package/skills/viral-instagram-reels/SKILL.md +180 -0
- package/skills/viral-short-form/SKILL.md +147 -0
- package/skills/viral-short-form-ideas/SKILL.md +184 -0
- package/skills/viral-tiktok-content/SKILL.md +180 -0
- package/skills/visualization-creation/SKILL.md +34 -0
- package/skills/web-artifacts-builder/SKILL.md +74 -0
- package/skills/web-design-guidelines/SKILL.md +39 -0
- package/skills/web-scraping/SKILL.md +34 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/webhook-handling/SKILL.md +34 -0
- package/skills/website-to-video/SKILL.md +145 -0
- package/skills/weekly-review/SKILL.md +34 -0
- package/skills/workflow-automation/SKILL.md +34 -0
- package/skills/writing-beats/SKILL.md +67 -0
- package/skills/writing-fragments/SKILL.md +79 -0
- package/skills/writing-great-skills/SKILL.md +82 -0
- package/skills/writing-guidelines/SKILL.md +39 -0
- package/skills/writing-plans/SKILL.md +174 -0
- package/skills/writing-shape/SKILL.md +79 -0
- package/skills/xdrop/SKILL.md +78 -0
- package/skills/xget/SKILL.md +87 -0
- package/skills/xlsx/SKILL.md +292 -0
- package/src/commands/code_v5.js +377 -73
- package/src/commands/repl.js +505 -86
- package/src/providers/model/anthropic.js +84 -0
- package/src/providers/model/gemini.js +49 -0
- package/src/providers/model/minimax.js +48 -0
- package/src/providers/model/ollama.js +42 -0
- package/src/providers/model/openai.js +49 -0
- package/src/providers/search/duckduckgo.js +45 -0
- package/src/providers/search/exa.js +52 -0
- package/src/providers/search/searxng.js +51 -0
- package/src/providers/search/tavily.js +47 -0
- package/src/tools/model_provider.js +71 -0
- package/src/tools/parallel_search.js +40 -49
- package/src/tools/search_provider.js +79 -0
- package/src/tools/skills_download.js +217 -0
- package/src/tools/web_search.js +42 -62
- package/src/tools/workflow.js +21 -9
- package/src/utils/cron.js +82 -126
- package/src/utils/effort-levels.js +42 -0
- package/src/utils/fallback-chain.js +72 -0
- package/src/utils/file-history.js +78 -0
- package/src/utils/model-provider.js +113 -0
- package/src/utils/permissions.js +147 -0
- package/src/utils/plan-mode.js +164 -0
- package/src/utils/provider-detect.js +7 -32
- package/src/utils/sandbox.js +60 -0
- package/src/utils/search-provider.js +62 -0
- package/src/utils/session-search.js +66 -0
- package/src/utils/structured-output.js +20 -0
- package/src/utils/system-prompt.js +28 -2
- package/src/utils/tasks.js +132 -0
- package/src/utils/tool-hooks.js +154 -0
- package/src/utils/tools.js +18 -2
- package/src/utils/ultra-review.js +59 -0
- package/src/utils/worktree.js +192 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-kusto
|
|
3
|
+
description: "Query and analyze data in Azure Data Explorer (Kusto/ADX) using KQL for log analytics, telemetry, and time series analysis. WHEN: KQL queries, Kusto database queries, Azure Data Explorer, ADX clusters, log analytics, time series data, IoT telemetry, anomaly detection."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: Microsoft
|
|
7
|
+
version: "1.1.1"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Azure Data Explorer (Kusto) Query & Analytics
|
|
11
|
+
|
|
12
|
+
Execute KQL queries and manage Azure Data Explorer resources for fast, scalable big data analytics on log, telemetry, and time series data.
|
|
13
|
+
|
|
14
|
+
## Skill Activation Triggers
|
|
15
|
+
|
|
16
|
+
**Use this skill immediately when the user asks to:**
|
|
17
|
+
- "Query my Kusto database for [data pattern]"
|
|
18
|
+
- "Show me events in the last hour from Azure Data Explorer"
|
|
19
|
+
- "Analyze logs in my ADX cluster"
|
|
20
|
+
- "Run a KQL query on [database]"
|
|
21
|
+
- "What tables are in my Kusto database?"
|
|
22
|
+
- "Show me the schema for [table]"
|
|
23
|
+
- "List my Azure Data Explorer clusters"
|
|
24
|
+
- "Aggregate telemetry data by [dimension]"
|
|
25
|
+
- "Create a time series chart from my logs"
|
|
26
|
+
|
|
27
|
+
**Key Indicators:**
|
|
28
|
+
- Mentions "Kusto", "Azure Data Explorer", "ADX", or "KQL"
|
|
29
|
+
- Log analytics or telemetry analysis requests
|
|
30
|
+
- Time series data exploration
|
|
31
|
+
- IoT data analysis queries
|
|
32
|
+
- SIEM or security analytics tasks
|
|
33
|
+
- Requests for data aggregation on large datasets
|
|
34
|
+
- Performance monitoring or APM queries
|
|
35
|
+
|
|
36
|
+
## Overview
|
|
37
|
+
|
|
38
|
+
This skill enables querying and managing Azure Data Explorer (Kusto), a fast and highly scalable data exploration service optimized for log and telemetry data. Azure Data Explorer provides sub-second query performance on billions of records using the Kusto Query Language (KQL).
|
|
39
|
+
|
|
40
|
+
Key capabilities:
|
|
41
|
+
- **Query Execution**: Run KQL queries against massive datasets
|
|
42
|
+
- **Schema Exploration**: Discover tables, columns, and data types
|
|
43
|
+
- **Resource Management**: List clusters and databases
|
|
44
|
+
- **Analytics**: Aggregations, time series, anomaly detection, machine learning
|
|
45
|
+
|
|
46
|
+
## Core Workflow
|
|
47
|
+
|
|
48
|
+
1. **Discover Resources**: List available clusters and databases in subscription
|
|
49
|
+
2. **Explore Schema**: Retrieve table structures to understand data model
|
|
50
|
+
3. **Query Data**: Execute KQL queries for analysis, filtering, aggregation
|
|
51
|
+
4. **Analyze Results**: Process query output for insights and reporting
|
|
52
|
+
|
|
53
|
+
## Query Patterns
|
|
54
|
+
|
|
55
|
+
### Pattern 1: Basic Data Retrieval
|
|
56
|
+
Fetch recent records from a table with simple filtering.
|
|
57
|
+
|
|
58
|
+
**Example KQL**:
|
|
59
|
+
```kql
|
|
60
|
+
Events
|
|
61
|
+
| where Timestamp > ago(1h)
|
|
62
|
+
| take 100
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Use for**: Quick data inspection, recent event retrieval
|
|
66
|
+
|
|
67
|
+
### Pattern 2: Aggregation Analysis
|
|
68
|
+
Summarize data by dimensions for insights and reporting.
|
|
69
|
+
|
|
70
|
+
**Example KQL**:
|
|
71
|
+
```kql
|
|
72
|
+
Events
|
|
73
|
+
| summarize count() by EventType, bin(Timestamp, 1h)
|
|
74
|
+
| order by count_ desc
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Use for**: Event counting, distribution analysis, top-N queries
|
|
78
|
+
|
|
79
|
+
### Pattern 3: Time Series Analytics
|
|
80
|
+
Analyze data over time windows for trends and patterns.
|
|
81
|
+
|
|
82
|
+
**Example KQL**:
|
|
83
|
+
```kql
|
|
84
|
+
Telemetry
|
|
85
|
+
| where Timestamp > ago(24h)
|
|
86
|
+
| summarize avg(ResponseTime), percentiles(ResponseTime, 50, 95, 99) by bin(Timestamp, 5m)
|
|
87
|
+
| render timechart
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Use for**: Performance monitoring, trend analysis, anomaly detection
|
|
91
|
+
|
|
92
|
+
### Pattern 4: Join and Correlation
|
|
93
|
+
Combine multiple tables for cross-dataset analysis.
|
|
94
|
+
|
|
95
|
+
**Example KQL**:
|
|
96
|
+
```kql
|
|
97
|
+
Events
|
|
98
|
+
| where EventType == "Error"
|
|
99
|
+
| join kind=inner (
|
|
100
|
+
Logs
|
|
101
|
+
| where Severity == "Critical"
|
|
102
|
+
) on CorrelationId
|
|
103
|
+
| project Timestamp, EventType, LogMessage, Severity
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Use for**: Root cause analysis, correlated event tracking
|
|
107
|
+
|
|
108
|
+
### Pattern 5: Schema Discovery
|
|
109
|
+
Explore table structure before querying.
|
|
110
|
+
|
|
111
|
+
**Tools**: `kusto_table_schema_get`
|
|
112
|
+
|
|
113
|
+
**Use for**: Understanding data model, query planning
|
|
114
|
+
|
|
115
|
+
## Key Data Fields
|
|
116
|
+
|
|
117
|
+
When executing queries, common field patterns:
|
|
118
|
+
- **Timestamp**: Time of event (datetime) - use `ago()`, `between()`, `bin()` for time filtering
|
|
119
|
+
- **EventType/Category**: Classification field for grouping
|
|
120
|
+
- **CorrelationId/SessionId**: For tracing related events
|
|
121
|
+
- **Severity/Level**: For filtering by importance
|
|
122
|
+
- **Dimensions**: Custom properties for grouping and filtering
|
|
123
|
+
|
|
124
|
+
## Result Format
|
|
125
|
+
|
|
126
|
+
Query results include:
|
|
127
|
+
- **Columns**: Field names and data types
|
|
128
|
+
- **Rows**: Data records matching query
|
|
129
|
+
- **Statistics**: Row count, execution time, resource utilization
|
|
130
|
+
- **Visualization**: Chart rendering hints (timechart, barchart, etc.)
|
|
131
|
+
|
|
132
|
+
## KQL Best Practices
|
|
133
|
+
|
|
134
|
+
**🟢 Performance Optimized:**
|
|
135
|
+
- Filter early: Use `where` before joins and aggregations
|
|
136
|
+
- Limit result size: Use `take` or `limit` to reduce data transfer
|
|
137
|
+
- Time filters: Always filter by time range for time series data
|
|
138
|
+
- Indexed columns: Filter on indexed columns first
|
|
139
|
+
|
|
140
|
+
**🔵 Query Patterns:**
|
|
141
|
+
- Use `summarize` for aggregations instead of `count()` alone
|
|
142
|
+
- Use `bin()` for time bucketing in time series
|
|
143
|
+
- Use `project` to select only needed columns
|
|
144
|
+
- Use `extend` to add calculated fields
|
|
145
|
+
|
|
146
|
+
**🟡 Common Functions:**
|
|
147
|
+
- `ago(timespan)`: Relative time (ago(1h), ago(7d))
|
|
148
|
+
- `between(start .. end)`: Range filtering
|
|
149
|
+
- `startswith()`, `contains()`, `matches regex`: String filtering
|
|
150
|
+
- `parse`, `extract`: Extract values from strings
|
|
151
|
+
- `percentiles()`, `avg()`, `sum()`, `max()`, `min()`: Aggregations
|
|
152
|
+
|
|
153
|
+
## Best Practices
|
|
154
|
+
|
|
155
|
+
- Always include time range filters to optimize query performance
|
|
156
|
+
- Use `take` or `limit` for exploratory queries to avoid large result sets
|
|
157
|
+
- Leverage `summarize` for aggregations instead of client-side processing
|
|
158
|
+
- Store frequently-used queries as functions in the database
|
|
159
|
+
- Use materialized views for repeated aggregations
|
|
160
|
+
- Monitor query performance and resource consumption
|
|
161
|
+
- Apply data retention policies to manage storage costs
|
|
162
|
+
- Use streaming ingestion for real-time analytics (< 1 second latency)
|
|
163
|
+
- Integrate with Azure Monitor for operational insights
|
|
164
|
+
|
|
165
|
+
## MCP Tools Used
|
|
166
|
+
|
|
167
|
+
| Tool | Purpose |
|
|
168
|
+
|------|---------|
|
|
169
|
+
| `kusto_cluster_list` | List all Azure Data Explorer clusters in a subscription |
|
|
170
|
+
| `kusto_database_list` | List all databases in a specific Kusto cluster |
|
|
171
|
+
| `kusto_query` | Execute KQL queries against a Kusto database |
|
|
172
|
+
| `kusto_table_schema_get` | Retrieve schema information for a specific table |
|
|
173
|
+
|
|
174
|
+
**Required Parameters**:
|
|
175
|
+
- `subscription`: Azure subscription ID or display name
|
|
176
|
+
- `cluster`: Kusto cluster name (e.g., "mycluster")
|
|
177
|
+
- `database`: Database name
|
|
178
|
+
- `query`: KQL query string (for query operations)
|
|
179
|
+
- `table`: Table name (for schema operations)
|
|
180
|
+
|
|
181
|
+
**Optional Parameters**:
|
|
182
|
+
- `resource-group`: Resource group name (for listing operations)
|
|
183
|
+
- `tenant`: Azure AD tenant ID
|
|
184
|
+
|
|
185
|
+
## Fallback Strategy: Azure CLI Commands
|
|
186
|
+
|
|
187
|
+
If Azure MCP Kusto tools fail, timeout, or are unavailable, use Azure CLI commands as fallback.
|
|
188
|
+
|
|
189
|
+
### CLI Command Reference
|
|
190
|
+
|
|
191
|
+
| Operation | Azure CLI Command |
|
|
192
|
+
|-----------|-------------------|
|
|
193
|
+
| List clusters | `az kusto cluster list --resource-group <rg-name>` |
|
|
194
|
+
| List databases | `az kusto database list --cluster-name <cluster> --resource-group <rg-name>` |
|
|
195
|
+
| Show cluster | `az kusto cluster show --name <cluster> --resource-group <rg-name>` |
|
|
196
|
+
| Show database | `az kusto database show --cluster-name <cluster> --database-name <db> --resource-group <rg-name>` |
|
|
197
|
+
|
|
198
|
+
### KQL Query via Azure CLI
|
|
199
|
+
|
|
200
|
+
For queries, use the Kusto REST API or direct cluster URL:
|
|
201
|
+
```bash
|
|
202
|
+
az rest --method post \
|
|
203
|
+
--url "https://<cluster>.<region>.kusto.windows.net/v1/rest/query" \
|
|
204
|
+
--body "{ \"db\": \"<database>\", \"csl\": \"<kql-query>\" }"
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### When to Fallback
|
|
208
|
+
|
|
209
|
+
Switch to Azure CLI when:
|
|
210
|
+
- MCP tool returns timeout error (queries > 60 seconds)
|
|
211
|
+
- MCP tool returns "service unavailable" or connection errors
|
|
212
|
+
- Authentication failures with MCP tools
|
|
213
|
+
- Empty response when database is known to have data
|
|
214
|
+
|
|
215
|
+
## Common Issues
|
|
216
|
+
|
|
217
|
+
- **Access Denied**: Verify database permissions (Viewer role minimum for queries)
|
|
218
|
+
- **Query Timeout**: Optimize query with time filters, reduce result set, or increase timeout
|
|
219
|
+
- **Syntax Error**: Validate KQL syntax - common issues: missing pipes, incorrect operators
|
|
220
|
+
- **Empty Results**: Check time range filters (may be too restrictive), verify table name
|
|
221
|
+
- **Cluster Not Found**: Check cluster name format (exclude ".kusto.windows.net" suffix)
|
|
222
|
+
- **High CPU Usage**: Query too broad - add filters, reduce time range, limit aggregations
|
|
223
|
+
- **Ingestion Lag**: Streaming data may have 1-30 second delay depending on ingestion method
|
|
224
|
+
|
|
225
|
+
## Use Cases
|
|
226
|
+
|
|
227
|
+
- **Log Analytics**: Application logs, system logs, audit logs
|
|
228
|
+
- **IoT Analytics**: Sensor data, device telemetry, real-time monitoring
|
|
229
|
+
- **Security Analytics**: SIEM data, threat detection, security event correlation
|
|
230
|
+
- **APM**: Application performance metrics, user behavior, error tracking
|
|
231
|
+
- **Business Intelligence**: Clickstream analysis, user analytics, operational KPIs
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-messaging
|
|
3
|
+
description: "Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, service bus queue issue, topic subscription error, enable logging event hub, service bus logging, eventhub python, servicebus java, eventhub javascript, servicebus dotnet, event hub checkpoint, event hub not receiving messages, service bus dead letter, batch processing lock, session lock expired, idle timeout, connection inactive, link detach, slow reconnect, session error, duplicate events, offset reset, receive batch."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: Microsoft
|
|
7
|
+
version: "1.1.2"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Azure Messaging SDK Troubleshooting
|
|
11
|
+
|
|
12
|
+
## Quick Reference
|
|
13
|
+
|
|
14
|
+
| Property | Value |
|
|
15
|
+
|----------|-------|
|
|
16
|
+
| **Services** | Azure Event Hubs, Azure Service Bus |
|
|
17
|
+
| **MCP Tools** | `mcp_azure_mcp_eventhubs`, `mcp_azure_mcp_servicebus` |
|
|
18
|
+
| **Best For** | Diagnosing SDK connection, auth, and message processing issues |
|
|
19
|
+
|
|
20
|
+
## When to Use This Skill
|
|
21
|
+
|
|
22
|
+
- SDK connection failures, auth errors, or AMQP link errors
|
|
23
|
+
- Idle timeout, connection inactivity, or slow reconnection after disconnect
|
|
24
|
+
- AMQP link detach or detach-forced errors
|
|
25
|
+
- Message lock lost, message lock expired, lock renewal failures, or batch lock timeouts
|
|
26
|
+
- Session lock lost, session lock expired, or session receiver errors
|
|
27
|
+
- Event processor or message handler stops processing
|
|
28
|
+
- Duplicate events or checkpoint offset resets
|
|
29
|
+
- SDK configuration questions (retry, prefetch, batch size, receive batch behavior)
|
|
30
|
+
|
|
31
|
+
## MCP Tools
|
|
32
|
+
|
|
33
|
+
| Tool | Command | Use |
|
|
34
|
+
|------|---------|-----|
|
|
35
|
+
| `mcp_azure_mcp_eventhubs` | Namespace/hub ops | List namespaces, hubs, consumer groups |
|
|
36
|
+
| `mcp_azure_mcp_servicebus` | Queue/topic ops | List namespaces, queues, topics, subscriptions |
|
|
37
|
+
| `mcp_azure_mcp_monitor` | `logs_query` | Query diagnostic logs with KQL |
|
|
38
|
+
| `mcp_azure_mcp_resourcehealth` | `get` | Check service health status |
|
|
39
|
+
| `mcp_azure_mcp_documentation` | Doc search | Search Microsoft Learn for troubleshooting docs |
|
|
40
|
+
|
|
41
|
+
## Diagnosis Workflow
|
|
42
|
+
|
|
43
|
+
1. **Identify the SDK and version** — Check the prompt for SDK and version clues; if not stated, proceed with diagnosis and ask later if needed
|
|
44
|
+
2. **Check resource health** — Use `mcp_azure_mcp_resourcehealth` to verify the namespace is healthy
|
|
45
|
+
3. **Review the error message** — Match against language-specific troubleshooting guide
|
|
46
|
+
4. **Look up documentation** — Use `mcp_azure_mcp_documentation` to search Microsoft Learn for the error or topic
|
|
47
|
+
5. **Check configuration** — Verify connection string, entity name, consumer group
|
|
48
|
+
6. **Recommend fix** — Apply remediation, citing documentation found
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## Troubleshooting Guides
|
|
52
|
+
|
|
53
|
+
Connectivity, SDK, and auth troubleshooting guides are located in the azure-diagnostics skill under `troubleshooting/messaging/`.
|
|
54
|
+
|
|
55
|
+
## References
|
|
56
|
+
|
|
57
|
+
- Use `mcp_azure_mcp_documentation` to search Microsoft Learn for latest guidance.
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-prepare
|
|
3
|
+
description: "Prepare Azure apps for deployment (infra Bicep/Terraform, azure.yaml, Dockerfiles). Use for create/modernize or create+deploy; not cross-cloud migration (use azure-cloud-migrate). DO NOT USE FOR: copilot-sdk apps (use azure-hosted-copilot-sdk), or Python code-only App Service deploys (use python-appservice-deploy). WHEN: \"create app\", \"build web app\", \"create API\", \"modernize application\", \"host on Azure\", \"deploy to Azure\", \"deploy to Azure using Terraform\", \"deploy to Azure App Service\", \"deploy to Azure App Service using Terraform\", \"deploy to Azure Container Apps\", \"generate Terraform\", \"generate Bicep\", \"function app\", \"timer trigger\", \"service bus trigger\", \"event-driven function\", \"managed identity\"."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: Microsoft
|
|
7
|
+
version: "1.2.14"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Azure Prepare
|
|
11
|
+
|
|
12
|
+
> **AUTHORITATIVE GUIDANCE — MANDATORY COMPLIANCE**
|
|
13
|
+
>
|
|
14
|
+
> This document is the **official, canonical source** for preparing applications for Azure deployment. You **MUST** follow these instructions exactly as written unless they contradict security policies given to you. When in doubt, present the conflicting instructions from this document and ask the user for explicit confirmation. Do not improvise, infer, or substitute steps.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Triggers
|
|
19
|
+
|
|
20
|
+
Activate this skill when user wants to:
|
|
21
|
+
- Create a new application
|
|
22
|
+
- Add services or components to an existing app
|
|
23
|
+
- Make updates or changes to existing application
|
|
24
|
+
- Modernize or migrate an application
|
|
25
|
+
- Set up Azure infrastructure
|
|
26
|
+
- Deploy to Azure or host on Azure
|
|
27
|
+
- Create and deploy to Azure (including Terraform-based deployment requests)
|
|
28
|
+
|
|
29
|
+
## Rules
|
|
30
|
+
|
|
31
|
+
1. **Plan first — MANDATORY** — You MUST physically write an initial `.azure/deployment-plan.md` **skeleton in the workspace root directory** (not the session-state folder) **as your very first action** — before any code generation or execution begins. Write the skeleton immediately, then populate it progressively as Phase 1 analysis and research unfold; finalize it with all decisions at Phase 1 Step 6. This file must exist on disk throughout. azure-validate and azure-deploy depend on it and will fail without it. Do not skip or defer this step.
|
|
32
|
+
2. **Get approval** — Present plan to user before execution
|
|
33
|
+
3. **Research before generating** — Load references and invoke related skills
|
|
34
|
+
4. **Update plan progressively** — Mark steps complete as you go
|
|
35
|
+
5. **Validate before deploy** — Invoke azure-validate before azure-deploy
|
|
36
|
+
6. **Confirm Azure context** — Use `ask_user` for subscription and location per [Azure Context](references/azure-context.md)
|
|
37
|
+
7. ❌ **Destructive actions require `ask_user`** — [Global Rules](references/global-rules.md)
|
|
38
|
+
8. ⛔ **NEVER delete user project or workspace directories** — When adding features to an existing project, MODIFY existing files. `azd init -t <template>` is for NEW projects only; do NOT run `azd init -t` in an existing workspace. Plain `azd init` (without a template argument) may be used in existing workspaces when appropriate. File deletions within a project (e.g., removing build artifacts or temp files) are permitted when appropriate, but NEVER delete the user's project or workspace directory itself. See [Global Rules](references/global-rules.md).
|
|
39
|
+
9. **Scope: preparation only** — This skill generates infrastructure code and configuration files. Deployment execution (`azd up`, `azd deploy`, `terraform apply`) is handled by the **azure-deploy** skill, which provides built-in error recovery and deployment verification.
|
|
40
|
+
10. ⛔ **SQL Server Bicep: NEVER generate `administratorLogin` or `administratorLoginPassword`** — not in direct properties, not in conditional/ternary branches, not anywhere in the file. Always use Entra-only authentication (`azureADOnlyAuthentication: true`) unconditionally. See [references/services/sql-database/bicep.md](references/services/sql-database/bicep.md).
|
|
41
|
+
11. **Remove stale template IaC after conversion** — If you converted Bicep templates from the selected `azd` template into Terraform templates, remove the Bicep templates that were introduced by that `azd` template and are now fully replaced by Terraform equivalents. Do not remove user-authored Bicep files. Only remove those template-provided Bicep files after the Terraform IaC is complete and Terraform has been selected as the deployment path. Before handing off to azure-validate skill, keep only the IaC templates required by the chosen deployment path.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## ❌ PLAN-FIRST WORKFLOW — MANDATORY
|
|
46
|
+
|
|
47
|
+
> **YOU MUST CREATE A PLAN BEFORE DOING ANY WORK**
|
|
48
|
+
>
|
|
49
|
+
> 1. **STOP** — Do not generate any code, infrastructure, or configuration yet
|
|
50
|
+
> 2. **CREATE SKELETON** - Write an initial `.azure/deployment-plan.md` skeleton to disk **immediately** (before any code generation or execution begins), then populate it progressively as Phase 1 steps 1-5 reveal details; finalize it at Step 6
|
|
51
|
+
> 3. **CONFIRM** — Present the completed plan to the user and get approval
|
|
52
|
+
> 4. **EXECUTE** — Only after approval, execute the plan step by step
|
|
53
|
+
>
|
|
54
|
+
> The `.azure/deployment-plan.md` file is the **source of truth** for this workflow and for azure-validate and azure-deploy skills. Without it, those skills will fail.
|
|
55
|
+
>
|
|
56
|
+
> ⚠️ **CRITICAL: `.azure/deployment-plan.md` must be WRITTEN TO DISK inside the workspace root** (e.g., `/tmp/my-project/.azure/deployment-plan.md`), not in the session-state folder. Use a file-write tool to create this file. This is the deployment plan artifact read by azure-validate and azure-deploy. **You MUST create this file — do not proceed without it.**
|
|
57
|
+
> ⚠️ **CRITICAL: You must create the file with the name `.azure/deployment-plan.md` as is**. You must not use other names such as `.azure/plan.md`.
|
|
58
|
+
>
|
|
59
|
+
> ⛔ **Critical:** Skipping the plan file creation will cause azure-validate and azure-deploy to fail. This requirement has no exceptions.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## ❌ STEP 0: Specialized Technology Check — MANDATORY FIRST ACTION
|
|
64
|
+
|
|
65
|
+
**BEFORE starting Phase 1**, check if the user's prompt OR workspace codebase matches a specialized technology that has a dedicated skill with tested templates. If matched, **invoke that skill FIRST** — then resume azure-prepare for validation and deployment.
|
|
66
|
+
|
|
67
|
+
### Check 1: Prompt keywords
|
|
68
|
+
|
|
69
|
+
| Prompt keywords | Invoke FIRST |
|
|
70
|
+
|----------------|-------------|
|
|
71
|
+
| Python + App Service (e.g., "deploy Python to App Service", "Flask on Azure App Service", "publish Python web app to App Service") | **python-appservice-deploy** |
|
|
72
|
+
| Lambda, AWS Lambda, migrate AWS, migrate GCP, Lambda to Functions, migrate from AWS, migrate from GCP | **azure-cloud-migrate** |
|
|
73
|
+
| copilot SDK, copilot app, copilot-powered, @github/copilot-sdk, CopilotClient | **azure-hosted-copilot-sdk** |
|
|
74
|
+
| Azure Functions, function app, serverless function, timer trigger, HTTP trigger, func new | Stay in **azure-prepare** — prefer Azure Functions templates in Step 4 |
|
|
75
|
+
| APIM, API Management, API gateway, deploy APIM | Stay in **azure-prepare** — see [APIM Deployment Guide](references/apim.md) |
|
|
76
|
+
| AI gateway, AI gateway policy, AI gateway backend, AI gateway configuration | **azure-aigateway** |
|
|
77
|
+
| workflow, orchestration, multi-step, pipeline, fan-out/fan-in, saga, long-running process, durable, order processing | Stay in **azure-prepare** — select **durable** recipe in Step 4. **MUST** load [durable.md](references/services/functions/durable.md), [DTS reference](references/services/durable-task-scheduler/README.md), and [DTS Bicep patterns](references/services/durable-task-scheduler/bicep.md). |
|
|
78
|
+
|
|
79
|
+
### Check 2: Codebase markers (even if prompt is generic like "deploy to Azure")
|
|
80
|
+
|
|
81
|
+
| Codebase marker | Where | Invoke FIRST |
|
|
82
|
+
|----------------|-------|-------------|
|
|
83
|
+
| `@github/copilot-sdk` in dependencies | `package.json` | **azure-hosted-copilot-sdk** |
|
|
84
|
+
| `copilot-sdk` in name or dependencies | `package.json` | **azure-hosted-copilot-sdk** |
|
|
85
|
+
| `CopilotClient` import | `.ts`/`.js` source files | **azure-hosted-copilot-sdk** |
|
|
86
|
+
| `createSession` + `sendAndWait` calls | `.ts`/`.js` source files | **azure-hosted-copilot-sdk** |
|
|
87
|
+
|
|
88
|
+
> ⚠️ Check the user's **prompt text** — not just existing code. Critical for greenfield projects with no codebase to scan. See [full routing table](references/specialized-routing.md).
|
|
89
|
+
|
|
90
|
+
After the specialized skill completes, **resume azure-prepare** at Phase 1 Step 4 (Select Recipe) for remaining infrastructure, validation, and deployment.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Phase 1: Planning (BLOCKING — Complete Before Any Execution)
|
|
95
|
+
|
|
96
|
+
Create `.azure/deployment-plan.md` by completing these steps. Do NOT generate any artifacts until the plan is approved.
|
|
97
|
+
|
|
98
|
+
| # | Action | Reference |
|
|
99
|
+
|---|--------|-----------|
|
|
100
|
+
| 0 | **❌ Check Prompt AND Codebase for Specialized Tech** — If user mentions copilot SDK, Azure Functions, etc., OR codebase contains `@github/copilot-sdk`, invoke that skill first | [specialized-routing.md](references/specialized-routing.md) |
|
|
101
|
+
| 1 | **Analyze Workspace** — Determine mode: NEW, MODIFY, or MODERNIZE | [analyze.md](references/analyze.md) |
|
|
102
|
+
| 2 | **Gather Requirements** — Classification, scale, budget | [requirements.md](references/requirements.md) |
|
|
103
|
+
| 3 | **Scan Codebase** — Identify components, technologies, dependencies | [scan.md](references/scan.md) |
|
|
104
|
+
| 4 | **Select Recipe** — Choose AZD (default), AZCLI, Bicep, or Terraform | [recipe-selection.md](references/recipe-selection.md) |
|
|
105
|
+
| 5 | **Plan Architecture** — Select stack + map components to Azure services | [architecture.md](references/architecture.md) |
|
|
106
|
+
| 6 | **Finalize Plan (MANDATORY)** - Use a file-write tool to finalize `.azure/deployment-plan.md` with all decisions from steps 1-5. Update the skeleton written at the start of Phase 1 with the complete content. The file must be fully populated before you present the plan to the user. | [plan-template.md](references/plan-template.md) |
|
|
107
|
+
| 7 | **Present Plan** — Show plan to user and ask for approval | `.azure/deployment-plan.md` |
|
|
108
|
+
| 8 | **Destructive actions require `ask_user`** | [Global Rules](references/global-rules.md) |
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
> **❌ STOP HERE** — Do NOT proceed to Phase 2 until the user approves the plan.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Phase 2: Execution (Only After Plan Approval)
|
|
117
|
+
|
|
118
|
+
Execute the approved plan. Update `.azure/deployment-plan.md` status after each step.
|
|
119
|
+
|
|
120
|
+
| # | Action | Reference |
|
|
121
|
+
|---|--------|-----------|
|
|
122
|
+
| 1 | **Research Components** — Load service references + invoke related skills | [research.md](references/research.md) |
|
|
123
|
+
| 2 | **Confirm Azure Context** — Detect and confirm subscription + location and check the resource provisioning limit | [Azure Context](references/azure-context.md) |
|
|
124
|
+
| 3 | **Generate Artifacts** — Create infrastructure and configuration files | [generate.md](references/generate.md) |
|
|
125
|
+
| 4 | **Harden Security** — Apply security best practices | [security.md](references/security.md) |
|
|
126
|
+
| 5 | **Functional Verification** — Verify the app works (UI + backend), locally if possible | [functional-verification.md](references/functional-verification.md) |
|
|
127
|
+
| 6 | **⛔ Update Plan (MANDATORY before hand-off)** — Use the `edit` tool to change the Status in `.azure/deployment-plan.md` to `Ready for Validation`. You **MUST** complete this edit **BEFORE** invoking azure-validate. Do NOT skip this step. | `.azure/deployment-plan.md` |
|
|
128
|
+
| 7 | **⛔ MANDATORY Hand Off** — Invoke **azure-validate** skill. Your preparation work is done. Do NOT run `azd up`, `azd deploy`, or any deployment command directly — all deployment execution is handled by azure-deploy after azure-validate completes. **PREREQUISITE:** Step 6 must be completed first — `.azure/deployment-plan.md` status must say `Ready for Validation`. | — |
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Outputs
|
|
133
|
+
|
|
134
|
+
| Artifact | Location |
|
|
135
|
+
|----------|----------|
|
|
136
|
+
| **Plan** | `.azure/deployment-plan.md` |
|
|
137
|
+
| Infrastructure | `./infra/` |
|
|
138
|
+
| AZD Config | `azure.yaml` (AZD only) |
|
|
139
|
+
| Dockerfiles | `src/<component>/Dockerfile` |
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## SDK Quick References
|
|
144
|
+
|
|
145
|
+
- **Azure Developer CLI**: [azd](references/sdk/azd-deployment.md)
|
|
146
|
+
- **Azure Identity**: [Python](references/sdk/azure-identity-py.md) | [.NET](references/sdk/azure-identity-dotnet.md) | [TypeScript](references/sdk/azure-identity-ts.md) | [Java](references/sdk/azure-identity-java.md)
|
|
147
|
+
- **App Configuration**: [Python](references/sdk/azure-appconfiguration-py.md) | [TypeScript](references/sdk/azure-appconfiguration-ts.md) | [Java](references/sdk/azure-appconfiguration-java.md)
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Next
|
|
152
|
+
|
|
153
|
+
> **⛔ MANDATORY NEXT STEP — DO NOT SKIP**
|
|
154
|
+
>
|
|
155
|
+
> After completing preparation, you **MUST** invoke **azure-validate** before any deployment attempt. Do NOT skip validation. Do NOT go directly to azure-deploy. Do NOT run `azd up` or any deployment command directly. The workflow is:
|
|
156
|
+
>
|
|
157
|
+
> `azure-prepare` → `azure-validate` → `azure-deploy`
|
|
158
|
+
>
|
|
159
|
+
> **⛔ BEFORE invoking azure-validate**, you MUST use the `edit` tool to update `.azure/deployment-plan.md` status to `Ready for Validation`. If the plan status has not been updated, the validation will fail.
|
|
160
|
+
>
|
|
161
|
+
> This applies to ALL deployment scenarios including containerized apps, Container Apps, App Service, Azure Functions, static sites, and any other Azure target. No exceptions.
|
|
162
|
+
>
|
|
163
|
+
> Skipping validation leads to deployment failures. Be patient and follow the complete workflow for the highest success outcome.
|
|
164
|
+
|
|
165
|
+
**→ Update plan status to `Ready for Validation`, then invoke azure-validate**
|