natureco-cli 5.18.3 → 5.19.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/package.json +1 -1
- package/skills/airunway-aks-setup/SKILL.md +73 -0
- package/skills/algorithmic-art/SKILL.md +405 -0
- package/skills/appinsights-instrumentation/SKILL.md +76 -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/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/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/claude-api/SKILL.md +356 -0
- package/skills/composition-patterns/SKILL.md +89 -0
- package/skills/decision-mapping/SKILL.md +84 -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/develop-userscripts/SKILL.md +84 -0
- package/skills/doc-coauthoring/SKILL.md +375 -0
- package/skills/documentation/SKILL.md +109 -0
- package/skills/docx/SKILL.md +590 -0
- package/skills/edit-article/SKILL.md +15 -0
- package/skills/entra-agent-id/SKILL.md +356 -0
- package/skills/entra-app-registration/SKILL.md +191 -0
- package/skills/faceless-explainer/SKILL.md +202 -0
- package/skills/fastify/SKILL.md +75 -0
- package/skills/general-video/SKILL.md +143 -0
- package/skills/git-guardrails-claude-code/SKILL.md +95 -0
- package/skills/github-actions-docs/SKILL.md +98 -0
- package/skills/gpt-tasteskill/SKILL.md +74 -0
- package/skills/grill-me/SKILL.md +7 -0
- package/skills/grilling/SKILL.md +10 -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-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/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/loop-me/SKILL.md +32 -0
- package/skills/microsoft-foundry/SKILL.md +262 -0
- package/skills/migrate-to-shoehorn/SKILL.md +118 -0
- package/skills/minimalist-skill/SKILL.md +85 -0
- package/skills/motion-graphics/SKILL.md +170 -0
- package/skills/music-to-video/SKILL.md +197 -0
- package/skills/node/SKILL.md +94 -0
- package/skills/nodejs-core/SKILL.md +156 -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/pdf/SKILL.md +314 -0
- package/skills/pptx/SKILL.md +232 -0
- package/skills/pr-to-video/SKILL.md +235 -0
- package/skills/product-launch-video/SKILL.md +205 -0
- package/skills/python-appservice-deploy/SKILL.md +36 -0
- package/skills/qa/SKILL.md +130 -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/redesign-skill/SKILL.md +178 -0
- package/skills/remotion/SKILL.md +364 -0
- package/skills/request-refactor-plan/SKILL.md +68 -0
- package/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
- package/skills/scaffold-exercises/SKILL.md +106 -0
- package/skills/secure-linux-web-hosting/SKILL.md +162 -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/soft-skill/SKILL.md +98 -0
- package/skills/stitch-skill/SKILL.md +184 -0
- package/skills/supabase/SKILL.md +135 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/skills/systematic-debugging/SKILL.md +296 -0
- package/skills/talking-head-recut/SKILL.md +1191 -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/test-driven-development/SKILL.md +371 -0
- package/skills/theme-factory/SKILL.md +59 -0
- package/skills/to-prd/SKILL.md +75 -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/vercel-cli-with-tokens/SKILL.md +353 -0
- package/skills/vercel-optimize/SKILL.md +322 -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/web-artifacts-builder/SKILL.md +74 -0
- package/skills/web-design-guidelines/SKILL.md +39 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/website-to-video/SKILL.md +145 -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/tools/skills_download.js +217 -0
- package/src/utils/tools.js +2 -2
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-resource-visualizer
|
|
3
|
+
description: "Analyze Azure resource groups and generate detailed Mermaid architecture diagrams showing the relationships between individual resources. WHEN: create architecture diagram, visualize Azure resources, show resource relationships, generate Mermaid diagram, analyze resource group, diagram my resources, architecture visualization, resource topology, map Azure infrastructure."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: Microsoft
|
|
7
|
+
version: "1.1.2"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Azure Resource Visualizer - Architecture Diagram Generator
|
|
11
|
+
|
|
12
|
+
A user may ask for help understanding how individual resources fit together, or to create a diagram showing their relationships. Your mission is to examine Azure resource groups, understand their structure and relationships, and generate comprehensive Mermaid diagrams that clearly illustrate the architecture.
|
|
13
|
+
|
|
14
|
+
## Core Responsibilities
|
|
15
|
+
|
|
16
|
+
1. **Resource Group Discovery**: List available resource groups when not specified
|
|
17
|
+
2. **Deep Resource Analysis**: Examine all resources, their configurations, and interdependencies
|
|
18
|
+
3. **Relationship Mapping**: Identify and document all connections between resources
|
|
19
|
+
4. **Diagram Generation**: Create detailed, accurate Mermaid diagrams
|
|
20
|
+
5. **Documentation Creation**: Produce clear markdown files with embedded diagrams
|
|
21
|
+
|
|
22
|
+
## Workflow Process
|
|
23
|
+
|
|
24
|
+
### Step 1: Resource Group Selection
|
|
25
|
+
|
|
26
|
+
If the user hasn't specified a resource group:
|
|
27
|
+
|
|
28
|
+
1. Use your tools to query available resource groups. If you do not have a tool for this, use `az`.
|
|
29
|
+
2. Present a numbered list of resource groups with their locations
|
|
30
|
+
3. Ask the user to select one by number or name
|
|
31
|
+
4. Wait for user response before proceeding
|
|
32
|
+
|
|
33
|
+
If a resource group is specified, validate it exists and proceed.
|
|
34
|
+
|
|
35
|
+
### Step 2: Resource Discovery & Analysis
|
|
36
|
+
|
|
37
|
+
For bulk resource discovery across subscriptions, use Azure Resource Graph queries. See [Azure Resource Graph Queries](references/azure-resource-graph.md) for cross-subscription inventory and relationship discovery patterns.
|
|
38
|
+
|
|
39
|
+
Once you have the resource group:
|
|
40
|
+
|
|
41
|
+
1. **Query all resources** in the resource group using Azure MCP tools or `az`.
|
|
42
|
+
2. **Analyze each resource** type and capture:
|
|
43
|
+
- Resource name and type
|
|
44
|
+
- SKU/tier information
|
|
45
|
+
- Location/region
|
|
46
|
+
- Key configuration properties
|
|
47
|
+
- Network settings (VNets, subnets, private endpoints)
|
|
48
|
+
- Identity and access (Managed Identity, RBAC)
|
|
49
|
+
- Dependencies and connections
|
|
50
|
+
|
|
51
|
+
3. **Map relationships** by identifying:
|
|
52
|
+
- **Network connections**: VNet peering, subnet assignments, NSG rules, private endpoints
|
|
53
|
+
- **Data flow**: Apps → Databases, Functions → Storage, API Management → Backends
|
|
54
|
+
- **Identity**: Managed identities connecting to resources
|
|
55
|
+
- **Configuration**: App Settings pointing to Key Vaults, connection strings
|
|
56
|
+
- **Dependencies**: Parent-child relationships, required resources
|
|
57
|
+
|
|
58
|
+
> **Important**: You must only use placeholder names to represent secret values, such as keys, connection strings, Key Vault secrets, etc. Use meaningful placeholder names to represent each secret in the diagram. Never put secret values in the resource diagram.
|
|
59
|
+
|
|
60
|
+
### Step 3: Diagram Construction
|
|
61
|
+
|
|
62
|
+
Create a **detailed Mermaid diagram** using the `graph TB` (top-to-bottom) or `graph LR` (left-to-right) format.
|
|
63
|
+
|
|
64
|
+
See [example-diagram.md](./assets/example-diagram.md) for a complete sample architecture diagram.
|
|
65
|
+
|
|
66
|
+
**Key Diagram Requirements:**
|
|
67
|
+
|
|
68
|
+
- **Group by layer or purpose**: Network, Compute, Data, Security, Monitoring
|
|
69
|
+
- **Include details**: SKUs, tiers, important settings in node labels (use `<br/>` for line breaks)
|
|
70
|
+
- **Label all connections**: Describe what flows between resources (data, identity, network)
|
|
71
|
+
- **Use meaningful node IDs**: Abbreviations that make sense (APP, FUNC, SQL, KV)
|
|
72
|
+
- **Visual hierarchy**: Subgraphs for logical grouping
|
|
73
|
+
- **Connection types**:
|
|
74
|
+
- `-->` for data flow or dependencies
|
|
75
|
+
- `-.->` for optional/conditional connections
|
|
76
|
+
- `==>` for critical/primary paths
|
|
77
|
+
|
|
78
|
+
**Resource Type Examples:**
|
|
79
|
+
- App Service: Include plan tier (B1, S1, P1v2)
|
|
80
|
+
- Functions: Include runtime (.NET, Python, Node)
|
|
81
|
+
- Databases: Include tier (Basic, Standard, Premium)
|
|
82
|
+
- Storage: Include redundancy (LRS, GRS, ZRS)
|
|
83
|
+
- VNets: Include address space
|
|
84
|
+
- Subnets: Include address range
|
|
85
|
+
|
|
86
|
+
### Step 4: File Creation
|
|
87
|
+
|
|
88
|
+
Use [template-architecture.md](./assets/template-architecture.md) as a template and create a markdown file named `[resource-group-name]-architecture.md` with:
|
|
89
|
+
|
|
90
|
+
1. **Header**: Resource group name, subscription, region
|
|
91
|
+
2. **Summary**: Brief overview of the architecture (2-3 paragraphs)
|
|
92
|
+
3. **Resource Inventory**: Table listing all resources with types and key properties
|
|
93
|
+
4. **Architecture Diagram**: The complete Mermaid diagram
|
|
94
|
+
5. **Relationship Details**: Explanation of key connections and data flows
|
|
95
|
+
6. **Notes**: Any important observations, potential issues, or recommendations
|
|
96
|
+
|
|
97
|
+
## Operating Guidelines
|
|
98
|
+
|
|
99
|
+
### Quality Standards
|
|
100
|
+
|
|
101
|
+
- **Accuracy**: Verify all resource details before including in diagram
|
|
102
|
+
- **Completeness**: Don't omit resources; include everything in the resource group
|
|
103
|
+
- **Clarity**: Use clear, descriptive labels and logical grouping
|
|
104
|
+
- **Detail Level**: Include configuration details that matter for architecture understanding
|
|
105
|
+
- **Relationships**: Show ALL significant connections, not just obvious ones
|
|
106
|
+
|
|
107
|
+
### Tool Usage Patterns
|
|
108
|
+
|
|
109
|
+
1. **Azure MCP Search**:
|
|
110
|
+
- Use `intent="list resource groups"` to discover resource groups
|
|
111
|
+
- Use `intent="list resources in group"` with group name to get all resources
|
|
112
|
+
- Use `intent="get resource details"` for individual resource analysis
|
|
113
|
+
- Use `command` parameter when you need specific Azure operations
|
|
114
|
+
|
|
115
|
+
2. **File Creation**:
|
|
116
|
+
- Always create in workspace root or a `docs/` folder if it exists
|
|
117
|
+
- Use clear, descriptive filenames: `[rg-name]-architecture.md`
|
|
118
|
+
- Ensure Mermaid syntax is valid (test syntax mentally before output)
|
|
119
|
+
|
|
120
|
+
3. **Terminal (when needed)**:
|
|
121
|
+
- Use Azure CLI for complex queries not available via MCP
|
|
122
|
+
- Example: `az resource list --resource-group <name> --output json`
|
|
123
|
+
- Example: `az network vnet show --resource-group <name> --name <vnet-name>`
|
|
124
|
+
|
|
125
|
+
### Constraints & Boundaries
|
|
126
|
+
|
|
127
|
+
**Always Do:**
|
|
128
|
+
- ✅ List resource groups if not specified
|
|
129
|
+
- ✅ Wait for user selection before proceeding
|
|
130
|
+
- ✅ Analyze ALL resources in the group
|
|
131
|
+
- ✅ Create detailed, accurate diagrams
|
|
132
|
+
- ✅ Include configuration details in node labels
|
|
133
|
+
- ✅ Group resources logically with subgraphs
|
|
134
|
+
- ✅ Label all connections descriptively
|
|
135
|
+
- ✅ Create a complete markdown file with diagram
|
|
136
|
+
|
|
137
|
+
**Never Do:**
|
|
138
|
+
- ❌ Skip resources because they seem unimportant
|
|
139
|
+
- ❌ Make assumptions about resource relationships without verification
|
|
140
|
+
- ❌ Create incomplete or placeholder diagrams
|
|
141
|
+
- ❌ Omit configuration details that affect architecture
|
|
142
|
+
- ❌ Proceed without confirming resource group selection
|
|
143
|
+
- ❌ Generate invalid Mermaid syntax
|
|
144
|
+
- ❌ Modify or delete Azure resources (read-only analysis)
|
|
145
|
+
|
|
146
|
+
### Edge Cases & Error Handling
|
|
147
|
+
|
|
148
|
+
- **No resources found**: Inform user and verify resource group name
|
|
149
|
+
- **Permission issues**: Explain what's missing and suggest checking RBAC
|
|
150
|
+
- **Complex architectures (50+ resources)**: Consider creating multiple diagrams by layer
|
|
151
|
+
- **Cross-resource-group dependencies**: Note external dependencies in diagram notes
|
|
152
|
+
- **Resources without clear relationships**: Group in "Other Resources" section
|
|
153
|
+
|
|
154
|
+
## Output Format Specifications
|
|
155
|
+
|
|
156
|
+
### Mermaid Diagram Syntax
|
|
157
|
+
- Use `graph TB` (top-to-bottom) for vertical layouts
|
|
158
|
+
- Use `graph LR` (left-to-right) for horizontal layouts (better for wide architectures)
|
|
159
|
+
- Subgraph syntax: `subgraph "Descriptive Name"`
|
|
160
|
+
- Node syntax: `ID["Display Name<br/>Details"]`
|
|
161
|
+
- Connection syntax: `SOURCE -->|"Label"| TARGET`
|
|
162
|
+
|
|
163
|
+
### Markdown Structure
|
|
164
|
+
- Use H1 for main title
|
|
165
|
+
- Use H2 for major sections
|
|
166
|
+
- Use H3 for subsections
|
|
167
|
+
- Use tables for resource inventories
|
|
168
|
+
- Use bullet lists for notes and recommendations
|
|
169
|
+
- Use code blocks with `mermaid` language tag for diagrams
|
|
170
|
+
|
|
171
|
+
## Success Criteria
|
|
172
|
+
|
|
173
|
+
A successful analysis includes:
|
|
174
|
+
- ✅ Valid resource group identified
|
|
175
|
+
- ✅ All resources discovered and analyzed
|
|
176
|
+
- ✅ All significant relationships mapped
|
|
177
|
+
- ✅ Detailed Mermaid diagram with proper grouping
|
|
178
|
+
- ✅ Complete markdown file created
|
|
179
|
+
- ✅ Clear, actionable documentation
|
|
180
|
+
- ✅ Valid Mermaid syntax that renders correctly
|
|
181
|
+
- ✅ Professional, architect-level output
|
|
182
|
+
|
|
183
|
+
Your goal is to provide clarity and insight into Azure architectures, making complex resource relationships easy to understand through excellent visualization.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-storage
|
|
3
|
+
description: "Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake. Answers questions about storage access tiers (hot, cool, cold, archive), when to use each tier, and tier comparison. Provides object storage, SMB file shares, async messaging, NoSQL key-value, and big data analytics. Includes lifecycle management. USE FOR: blob storage, file shares, queue storage, table storage, data lake, upload files, download blobs, storage accounts, access tiers, storage tiers, hot cool cold archive, storage tier comparison, when to use storage tiers, lifecycle management, Azure Storage concepts. DO NOT USE FOR: SQL databases, Cosmos DB (use azure-prepare), messaging with Event Hubs or Service Bus (use azure-messaging)."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: Microsoft
|
|
7
|
+
version: "1.1.2"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Azure Storage Services
|
|
11
|
+
|
|
12
|
+
## Services
|
|
13
|
+
|
|
14
|
+
| Service | Use When | MCP Tools | CLI |
|
|
15
|
+
|---------|----------|-----------|-----|
|
|
16
|
+
| Blob Storage | Objects, files, backups, static content | `azure__storage` | `az storage blob` |
|
|
17
|
+
| File Shares | SMB file shares, lift-and-shift | - | `az storage file` |
|
|
18
|
+
| Queue Storage | Async messaging, task queues | - | `az storage queue` |
|
|
19
|
+
| Table Storage | NoSQL key-value (consider Cosmos DB) | - | `az storage table` |
|
|
20
|
+
| Data Lake | Big data analytics, hierarchical namespace | - | `az storage fs` |
|
|
21
|
+
|
|
22
|
+
## MCP Server (Preferred)
|
|
23
|
+
|
|
24
|
+
When Azure MCP is enabled:
|
|
25
|
+
|
|
26
|
+
- `azure__storage` with command `storage_account_list` - List storage accounts
|
|
27
|
+
- `azure__storage` with command `storage_container_list` - List containers in account
|
|
28
|
+
- `azure__storage` with command `storage_blob_list` - List blobs in container
|
|
29
|
+
- `azure__storage` with command `storage_blob_get` - Download blob content
|
|
30
|
+
- `azure__storage` with command `storage_blob_put` - Upload blob content
|
|
31
|
+
|
|
32
|
+
**If Azure MCP is not enabled:** Run `/azure:setup` or enable via `/mcp`.
|
|
33
|
+
|
|
34
|
+
## CLI Fallback
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# List storage accounts
|
|
38
|
+
az storage account list --output table
|
|
39
|
+
|
|
40
|
+
# List containers
|
|
41
|
+
az storage container list --account-name ACCOUNT --output table
|
|
42
|
+
|
|
43
|
+
# List blobs
|
|
44
|
+
az storage blob list --account-name ACCOUNT --container-name CONTAINER --output table
|
|
45
|
+
|
|
46
|
+
# Download blob
|
|
47
|
+
az storage blob download --account-name ACCOUNT --container-name CONTAINER --name BLOB --file LOCAL_PATH
|
|
48
|
+
|
|
49
|
+
# Upload blob
|
|
50
|
+
az storage blob upload --account-name ACCOUNT --container-name CONTAINER --name BLOB --file LOCAL_PATH
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Storage Account Tiers
|
|
54
|
+
|
|
55
|
+
| Tier | Use Case | Performance |
|
|
56
|
+
|------|----------|-------------|
|
|
57
|
+
| Standard | General purpose, backup | Milliseconds |
|
|
58
|
+
| Premium | Databases, high IOPS | Sub-millisecond |
|
|
59
|
+
|
|
60
|
+
## Blob Access Tiers
|
|
61
|
+
|
|
62
|
+
| Tier | Access Frequency | Cost |
|
|
63
|
+
|------|-----------------|------|
|
|
64
|
+
| Hot | Frequent | Higher storage, lower access |
|
|
65
|
+
| Cool | Infrequent (30+ days) | Lower storage, higher access |
|
|
66
|
+
| Cold | Rare (90+ days) | Lower still |
|
|
67
|
+
| Archive | Rarely (180+ days) | Lowest storage, rehydration required |
|
|
68
|
+
|
|
69
|
+
## Redundancy Options
|
|
70
|
+
|
|
71
|
+
| Type | Durability | Use Case |
|
|
72
|
+
|------|------------|----------|
|
|
73
|
+
| LRS | 11 nines | Dev/test, recreatable data |
|
|
74
|
+
| ZRS | 12 nines | Regional high availability |
|
|
75
|
+
| GRS | 16 nines | Disaster recovery |
|
|
76
|
+
| GZRS | 16 nines | Best durability |
|
|
77
|
+
|
|
78
|
+
## Service Details
|
|
79
|
+
|
|
80
|
+
For deep documentation on specific services:
|
|
81
|
+
|
|
82
|
+
- Blob storage patterns and lifecycle -> [Blob Storage documentation](https://learn.microsoft.com/azure/storage/blobs/storage-blobs-overview)
|
|
83
|
+
- File shares and Azure File Sync -> [Azure Files documentation](https://learn.microsoft.com/azure/storage/files/storage-files-introduction)
|
|
84
|
+
- Queue patterns and poison handling -> [Queue Storage documentation](https://learn.microsoft.com/azure/storage/queues/storage-queues-introduction)
|
|
85
|
+
|
|
86
|
+
## SDK Quick References
|
|
87
|
+
|
|
88
|
+
For building applications with Azure Storage SDKs, see the condensed guides:
|
|
89
|
+
|
|
90
|
+
- **Blob Storage**: [Python](references/sdk/azure-storage-blob-py.md) | [TypeScript](references/sdk/azure-storage-blob-ts.md) | [Java](references/sdk/azure-storage-blob-java.md) | [Rust](references/sdk/azure-storage-blob-rust.md)
|
|
91
|
+
- **Queue Storage**: [Python](references/sdk/azure-storage-queue-py.md) | [TypeScript](references/sdk/azure-storage-queue-ts.md)
|
|
92
|
+
- **File Shares**: [Python](references/sdk/azure-storage-file-share-py.md) | [TypeScript](references/sdk/azure-storage-file-share-ts.md)
|
|
93
|
+
- **Data Lake**: [Python](references/sdk/azure-storage-file-datalake-py.md)
|
|
94
|
+
- **Tables**: [Python](references/sdk/azure-data-tables-py.md) | [Java](references/sdk/azure-data-tables-java.md)
|
|
95
|
+
|
|
96
|
+
For full package listing across all languages, see [SDK Usage Guide](references/sdk-usage.md).
|
|
97
|
+
|
|
98
|
+
## Azure SDKs
|
|
99
|
+
|
|
100
|
+
For building applications that interact with Azure Storage programmatically, Azure provides SDK packages in multiple languages (.NET, Java, JavaScript, Python, Go, Rust). See [SDK Usage Guide](references/sdk-usage.md) for package names, installation commands, and quick start examples.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-upgrade
|
|
3
|
+
description: "Assess and upgrade Azure workloads between plans, tiers, or SKUs, or modernize Azure SDK dependencies in source code. WHEN: upgrade Consumption to Flex Consumption, upgrade Azure Functions plan, change hosting plan, function app SKU, migrate App Service to Container Apps, modernize legacy Azure Java SDKs (com.microsoft.azure to com.azure), migrate Azure Cache for Redis (ACR/ACRE) to Azure Managed Redis (AMR)."
|
|
4
|
+
license: MIT
|
|
5
|
+
compatibility: python3.10+
|
|
6
|
+
metadata:
|
|
7
|
+
author: Microsoft
|
|
8
|
+
version: "1.1.4"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Azure Upgrade
|
|
12
|
+
|
|
13
|
+
> This skill handles **assessment and automated upgrades** of existing Azure workloads from one Azure service, hosting plan, or SKU to another — all within Azure. This includes plan/tier upgrades (e.g. Consumption → Flex Consumption), cross-service migrations (e.g. App Service → Container Apps), and SKU changes. It also covers **Azure SDK for Java source-code modernization** (e.g. legacy Java `com.microsoft.azure.*` → modern `com.azure.*`). This is NOT for cross-cloud migration — use `azure-cloud-migrate` for that.
|
|
14
|
+
|
|
15
|
+
## Triggers
|
|
16
|
+
|
|
17
|
+
| User Intent | Example Prompts |
|
|
18
|
+
|-------------|-----------------|
|
|
19
|
+
| Upgrade Azure Functions plan | "Upgrade my function app from Consumption to Flex Consumption" |
|
|
20
|
+
| Change hosting tier | "Move my function app to a better plan" |
|
|
21
|
+
| Assess upgrade readiness | "Is my function app ready for Flex Consumption?" |
|
|
22
|
+
| Automate plan migration | "Automate the steps to upgrade my Functions plan" |
|
|
23
|
+
| Modernize legacy Azure Java SDK | "Migrate legacy Azure SDKs for Java", "Upgrade legacy Azure Java SDK", "Migrate my Java project from com.microsoft.azure to com.azure" |
|
|
24
|
+
| Migrate Azure Cache for Redis (ACR/OSS) to Azure Managed Redis (AMR) | "Migrate my Redis cache to AMR", "ACR to AMR", "OSS to AMR", "Upgrade my Premium P2 cache to Managed Redis", "Pick an AMR SKU", "Convert my Redis IaC template to AMR" |
|
|
25
|
+
| Migrate Azure Cache for Redis Enterprise (ACRE) to Azure Managed Redis (AMR) | "Migrate my Enterprise_E10 cache to AMR", "ACRE to AMR", "Update my ACRE IaC template for AMR", "Migrate EnterpriseFlash to AMR", "Migrate my geo-replicated Enterprise Redis" |
|
|
26
|
+
|
|
27
|
+
## Rules
|
|
28
|
+
|
|
29
|
+
1. Follow phases sequentially — do not skip
|
|
30
|
+
2. Generate an assessment before any upgrade operations
|
|
31
|
+
3. Load the scenario reference and follow its rules
|
|
32
|
+
4. Use `mcp_azure_mcp_get_azure_bestpractices` and `mcp_azure_mcp_documentation` MCP tools
|
|
33
|
+
5. Destructive actions require `ask_user` — [global-rules](references/global-rules.md)
|
|
34
|
+
6. Always confirm the target plan/SKU with the user before proceeding
|
|
35
|
+
7. Never delete or stop the original app without explicit user confirmation
|
|
36
|
+
8. All automation scripts must be idempotent and resumable
|
|
37
|
+
|
|
38
|
+
## Upgrade Scenarios
|
|
39
|
+
|
|
40
|
+
| Source | Target | Reference |
|
|
41
|
+
|--------|--------|-----------|
|
|
42
|
+
| Azure Functions Consumption Plan | Azure Functions Flex Consumption Plan | [consumption-to-flex.md](references/services/functions/consumption-to-flex.md) |
|
|
43
|
+
| Legacy Azure Java SDK (`com.microsoft.azure.*`) | Modern Azure Java SDK (`com.azure.*`) | [languages/java/README.md](references/languages/java/README.md) |
|
|
44
|
+
| Azure Cache for Redis (ACR/OSS) Basic/Standard/Premium | Azure Managed Redis (AMR) | [services/redis/redis-to-amr.md](references/services/redis/redis-to-amr.md) |
|
|
45
|
+
| Azure Cache for Redis Enterprise (ACRE) / Enterprise Flash | Azure Managed Redis (AMR) | [services/redis/redis-to-amr.md](references/services/redis/redis-to-amr.md) |
|
|
46
|
+
|
|
47
|
+
> SDK upgrade scenarios (e.g. Java legacy → modern) run a **source-code modernization flow** that is distinct from Azure service/plan/SKU upgrades: follow the scenario reference, **not** the Steps below.
|
|
48
|
+
|
|
49
|
+
> No matching scenario? Use `mcp_azure_mcp_documentation` and `mcp_azure_mcp_get_azure_bestpractices` tools to research the upgrade path.
|
|
50
|
+
|
|
51
|
+
## MCP Tools
|
|
52
|
+
|
|
53
|
+
| Tool | Purpose |
|
|
54
|
+
|------|---------|
|
|
55
|
+
| `mcp_azure_mcp_get_azure_bestpractices` | Get Azure best practices for the target service |
|
|
56
|
+
| `mcp_azure_mcp_documentation` | Look up Azure documentation for upgrade scenarios |
|
|
57
|
+
| `mcp_azure_mcp_appservice` | Query App Service and Functions plan details |
|
|
58
|
+
| `mcp_azure_mcp_applicationinsights` | Verify monitoring configuration |
|
|
59
|
+
|
|
60
|
+
## Steps
|
|
61
|
+
|
|
62
|
+
1. **Identify** — Determine the source and target Azure plans/SKUs. Ask user to confirm.
|
|
63
|
+
2. **Assess** — Analyze existing app for upgrade readiness → load scenario reference (e.g., [consumption-to-flex.md](references/services/functions/consumption-to-flex.md))
|
|
64
|
+
3. **Pre-migrate** — Collect settings, identities, configs from the existing app
|
|
65
|
+
4. **Upgrade** — Execute the automated upgrade steps (create new resources, migrate settings, deploy code)
|
|
66
|
+
5. **Validate** — Hit the function app default URL to confirm the app is reachable, then verify endpoints and monitoring
|
|
67
|
+
6. **Ask User** — "Upgrade complete. Would you like to verify performance, clean up the old app, or update your IaC?"
|
|
68
|
+
7. **Hand off** to `azure-validate` for deep validation or `azure-deploy` for CI/CD setup
|
|
69
|
+
|
|
70
|
+
Track progress in `upgrade-status.md` inside the workspace root.
|
|
71
|
+
|
|
72
|
+
## References
|
|
73
|
+
|
|
74
|
+
- [Global Rules](references/global-rules.md)
|
|
75
|
+
- [Workflow Details](references/workflow-details.md)
|
|
76
|
+
- **Functions**
|
|
77
|
+
- [Consumption to Flex Consumption](references/services/functions/consumption-to-flex.md)
|
|
78
|
+
- [Assessment](references/services/functions/assessment.md)
|
|
79
|
+
- [Automation Scripts](references/services/functions/automation.md)
|
|
80
|
+
- **Redis**
|
|
81
|
+
- [Redis (ACR or ACRE) to AMR Migration](references/services/redis/redis-to-amr.md) — routes to dedicated [amr-migration-skill](https://github.com/AzureManagedRedis/amr-migration-skill) (ACR/OSS) or [acre-to-amr-migration-skill](https://github.com/AzureManagedRedis/acre-to-amr-migration-skill) (Enterprise)
|
|
82
|
+
- **Java SDK Migration Templates**
|
|
83
|
+
- [Plan Template](references/languages/java/templates/PLAN_TEMPLATE.md)
|
|
84
|
+
- [Progress Template](references/languages/java/templates/PROGRESS_TEMPLATE.md)
|
|
85
|
+
- [Summary Template](references/languages/java/templates/SUMMARY_TEMPLATE.md)
|
|
86
|
+
|
|
87
|
+
## Next
|
|
88
|
+
|
|
89
|
+
After upgrade is validated, hand off to:
|
|
90
|
+
- `azure-validate` — for thorough post-upgrade validation
|
|
91
|
+
- `azure-deploy` — if the user wants to set up CI/CD for the new app
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: azure-validate
|
|
3
|
+
description: azure-validate skill from microsoft/azure-skills
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
name: azure-validate
|
|
8
|
+
description: "Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment."
|
|
9
|
+
license: MIT
|
|
10
|
+
metadata:
|
|
11
|
+
author: Microsoft
|
|
12
|
+
version: "1.1.2"
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Azure Validate
|
|
16
|
+
|
|
17
|
+
> **AUTHORITATIVE GUIDANCE** — Follow these instructions exactly unless they contradict security policies given to you.
|
|
18
|
+
|
|
19
|
+
> **⛔ STOP — PREREQUISITE CHECK REQUIRED**
|
|
20
|
+
>
|
|
21
|
+
> Before proceeding, verify this prerequisite is met:
|
|
22
|
+
>
|
|
23
|
+
> **azure-prepare** was invoked and completed → `.azure/deployment-plan.md` exists with status `Approved` or later
|
|
24
|
+
>
|
|
25
|
+
> If the plan is missing, **STOP IMMEDIATELY** and invoke **azure-prepare** first.
|
|
26
|
+
>
|
|
27
|
+
> The complete workflow ensures success:
|
|
28
|
+
>
|
|
29
|
+
> `azure-prepare` → `azure-validate` → `azure-deploy`
|
|
30
|
+
|
|
31
|
+
## Triggers
|
|
32
|
+
|
|
33
|
+
- Check if app is ready to deploy
|
|
34
|
+
- Validate azure.yaml or Bicep
|
|
35
|
+
- Run preflight checks
|
|
36
|
+
- Troubleshoot deployment errors
|
|
37
|
+
|
|
38
|
+
## Rules
|
|
39
|
+
|
|
40
|
+
1. Run after azure-prepare, before azure-deploy
|
|
41
|
+
2. All checks must pass—do not deploy with failures
|
|
42
|
+
3. ⛔ **Destructive actions require `ask_user`** — [global-rules](references/global-rules.md)
|
|
43
|
+
|
|
44
|
+
## Steps
|
|
45
|
+
|
|
46
|
+
| # | Action | Reference |
|
|
47
|
+
|---|--------|-----------|
|
|
48
|
+
| 1 | **Load Plan** — Read `.azure/deployment-plan.md` for recipe and configuration. If missing → run azure-prepare first | `.azure/deployment-plan.md` |
|
|
49
|
+
| 2 | **Add Validation Steps** — Copy recipe "Validation Steps" to `.azure/deployment-plan.md` as children of "All validation checks pass" | [recipes/README.md](references/recipes/README.md), `.azure/deployment-plan.md` |
|
|
50
|
+
| 3 | **Run Validation** — Execute recipe-specific validation commands | [recipes/README.md](references/recipes/README.md) |
|
|
51
|
+
| 4 | **Build Verification** — Build the project and fix any errors before proceeding | See recipe |
|
|
52
|
+
| 5 | **Static Role Verification** — Review Bicep/Terraform for correct RBAC role assignments in code | [role-verification.md](references/role-verification.md) |
|
|
53
|
+
| 6 | **Record Proof** — Populate **Section 7: Validation Proof** with commands run and results | `.azure/deployment-plan.md` |
|
|
54
|
+
| 7 | **Resolve Errors** — Fix failures before proceeding | See recipe's `errors.md` |
|
|
55
|
+
| 8 | **Update Status** — Only after ALL checks pass, set status to `Validated` | `.azure/deployment-plan.md` |
|
|
56
|
+
| 9 | **Deploy** — Invoke **azure-deploy** skill | — |
|
|
57
|
+
> **⛔ VALIDATION AUTHORITY**
|
|
58
|
+
>
|
|
59
|
+
> This skill is the officially verified way to set plan status to `Validated`. You MUST follow these steps to make sure every prerequisite is fulfilled before setting status to `Validated`:
|
|
60
|
+
> 1. Run actual validation commands (azd provision --preview, bicep build, terraform validate, etc.)
|
|
61
|
+
> 2. Populate **Section 7: Validation Proof** with the commands you ran and their results
|
|
62
|
+
> 3. Only then set status to `Validated`
|
|
63
|
+
>
|
|
64
|
+
> Do NOT set status to `Validated` without running checks and recording proof.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
> **⚠️ MANDATORY NEXT STEP — DO NOT SKIP**
|
|
69
|
+
>
|
|
70
|
+
> After ALL validations pass, you **MUST** invoke **azure-deploy** to execute the deployment. Do NOT attempt to run `azd up`, `azd deploy`, or any deployment commands directly. Let azure-deploy handle execution.
|
|
71
|
+
>
|
|
72
|
+
> If any validation failed, fix the issues and re-run azure-validate before proceeding.
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorming Ideas Into Designs
|
|
7
|
+
|
|
8
|
+
Help turn ideas into fully formed designs and specs through natural collaborative dialogue.
|
|
9
|
+
|
|
10
|
+
Start by understanding the current project context, then ask questions one at a time to refine the idea. Once you understand what you're building, present the design and get user approval.
|
|
11
|
+
|
|
12
|
+
<HARD-GATE>
|
|
13
|
+
Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity.
|
|
14
|
+
</HARD-GATE>
|
|
15
|
+
|
|
16
|
+
## Anti-Pattern: "This Is Too Simple To Need A Design"
|
|
17
|
+
|
|
18
|
+
Every project goes through this process. A todo list, a single-function utility, a config change — all of them. "Simple" projects are where unexamined assumptions cause the most wasted work. The design can be short (a few sentences for truly simple projects), but you MUST present it and get approval.
|
|
19
|
+
|
|
20
|
+
## Checklist
|
|
21
|
+
|
|
22
|
+
You MUST create a task for each of these items and complete them in order:
|
|
23
|
+
|
|
24
|
+
1. **Explore project context** — check files, docs, recent commits
|
|
25
|
+
2. **Offer the visual companion just-in-time** — NOT upfront. The first time a question would genuinely be clearer shown than described, offer it then (its own message); on approval its browser tab opens for you. If no visual question ever arises, never offer it. See the Visual Companion section below.
|
|
26
|
+
3. **Ask clarifying questions** — one at a time, understand purpose/constraints/success criteria
|
|
27
|
+
4. **Propose 2-3 approaches** — with trade-offs and your recommendation
|
|
28
|
+
5. **Present design** — in sections scaled to their complexity, get user approval after each section
|
|
29
|
+
6. **Write design doc** — save to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` and commit
|
|
30
|
+
7. **Spec self-review** — quick inline check for placeholders, contradictions, ambiguity, scope (see below)
|
|
31
|
+
8. **User reviews written spec** — ask user to review the spec file before proceeding
|
|
32
|
+
9. **Transition to implementation** — invoke writing-plans skill to create implementation plan
|
|
33
|
+
|
|
34
|
+
## Process Flow
|
|
35
|
+
|
|
36
|
+
```dot
|
|
37
|
+
digraph brainstorming {
|
|
38
|
+
"Explore project context" [shape=box];
|
|
39
|
+
"Ask clarifying questions" [shape=box];
|
|
40
|
+
"Propose 2-3 approaches" [shape=box];
|
|
41
|
+
"Present design sections" [shape=box];
|
|
42
|
+
"User approves design?" [shape=diamond];
|
|
43
|
+
"Write design doc" [shape=box];
|
|
44
|
+
"Spec self-review\n(fix inline)" [shape=box];
|
|
45
|
+
"User reviews spec?" [shape=diamond];
|
|
46
|
+
"Invoke writing-plans skill" [shape=doublecircle];
|
|
47
|
+
|
|
48
|
+
"Explore project context" -> "Ask clarifying questions";
|
|
49
|
+
"Ask clarifying questions" -> "Propose 2-3 approaches";
|
|
50
|
+
"Propose 2-3 approaches" -> "Present design sections";
|
|
51
|
+
"Present design sections" -> "User approves design?";
|
|
52
|
+
"User approves design?" -> "Present design sections" [label="no, revise"];
|
|
53
|
+
"User approves design?" -> "Write design doc" [label="yes"];
|
|
54
|
+
"Write design doc" -> "Spec self-review\n(fix inline)";
|
|
55
|
+
"Spec self-review\n(fix inline)" -> "User reviews spec?";
|
|
56
|
+
"User reviews spec?" -> "Write design doc" [label="changes requested"];
|
|
57
|
+
"User reviews spec?" -> "Invoke writing-plans skill" [label="approved"];
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**The terminal state is invoking writing-plans.** Do NOT invoke frontend-design, mcp-builder, or any other implementation skill. The ONLY skill you invoke after brainstorming is writing-plans.
|
|
62
|
+
|
|
63
|
+
## The Process
|
|
64
|
+
|
|
65
|
+
**Understanding the idea:**
|
|
66
|
+
|
|
67
|
+
- Check out the current project state first (files, docs, recent commits)
|
|
68
|
+
- Before asking detailed questions, assess scope: if the request describes multiple independent subsystems (e.g., "build a platform with chat, file storage, billing, and analytics"), flag this immediately. Don't spend questions refining details of a project that needs to be decomposed first.
|
|
69
|
+
- If the project is too large for a single spec, help the user decompose into sub-projects: what are the independent pieces, how do they relate, what order should they be built? Then brainstorm the first sub-project through the normal design flow. Each sub-project gets its own spec → plan → implementation cycle.
|
|
70
|
+
- For appropriately-scoped projects, ask questions one at a time to refine the idea
|
|
71
|
+
- Prefer multiple choice questions when possible, but open-ended is fine too
|
|
72
|
+
- Only one question per message - if a topic needs more exploration, break it into multiple questions
|
|
73
|
+
- Focus on understanding: purpose, constraints, success criteria
|
|
74
|
+
|
|
75
|
+
**Exploring approaches:**
|
|
76
|
+
|
|
77
|
+
- Propose 2-3 different approaches with trade-offs
|
|
78
|
+
- Present options conversationally with your recommendation and reasoning
|
|
79
|
+
- Lead with your recommended option and explain why
|
|
80
|
+
|
|
81
|
+
**Presenting the design:**
|
|
82
|
+
|
|
83
|
+
- Once you believe you understand what you're building, present the design
|
|
84
|
+
- Scale each section to its complexity: a few sentences if straightforward, up to 200-300 words if nuanced
|
|
85
|
+
- Ask after each section whether it looks right so far
|
|
86
|
+
- Cover: architecture, components, data flow, error handling, testing
|
|
87
|
+
- Be ready to go back and clarify if something doesn't make sense
|
|
88
|
+
|
|
89
|
+
**Design for isolation and clarity:**
|
|
90
|
+
|
|
91
|
+
- Break the system into smaller units that each have one clear purpose, communicate through well-defined interfaces, and can be understood and tested independently
|
|
92
|
+
- For each unit, you should be able to answer: what does it do, how do you use it, and what does it depend on?
|
|
93
|
+
- Can someone understand what a unit does without reading its internals? Can you change the internals without breaking consumers? If not, the boundaries need work.
|
|
94
|
+
- Smaller, well-bounded units are also easier for you to work with - you reason better about code you can hold in context at once, and your edits are more reliable when files are focused. When a file grows large, that's often a signal that it's doing too much.
|
|
95
|
+
|
|
96
|
+
**Working in existing codebases:**
|
|
97
|
+
|
|
98
|
+
- Explore the current structure before proposing changes. Follow existing patterns.
|
|
99
|
+
- Where existing code has problems that affect the work (e.g., a file that's grown too large, unclear boundaries, tangled responsibilities), include targeted improvements as part of the design - the way a good developer improves code they're working in.
|
|
100
|
+
- Don't propose unrelated refactoring. Stay focused on what serves the current goal.
|
|
101
|
+
|
|
102
|
+
## After the Design
|
|
103
|
+
|
|
104
|
+
**Documentation:**
|
|
105
|
+
|
|
106
|
+
- Write the validated design (spec) to `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md`
|
|
107
|
+
- (User preferences for spec location override this default)
|
|
108
|
+
- Use elements-of-style:writing-clearly-and-concisely skill if available
|
|
109
|
+
- Commit the design document to git
|
|
110
|
+
|
|
111
|
+
**Spec Self-Review:**
|
|
112
|
+
After writing the spec document, look at it with fresh eyes:
|
|
113
|
+
|
|
114
|
+
1. **Placeholder scan:** Any "TBD", "TODO", incomplete sections, or vague requirements? Fix them.
|
|
115
|
+
2. **Internal consistency:** Do any sections contradict each other? Does the architecture match the feature descriptions?
|
|
116
|
+
3. **Scope check:** Is this focused enough for a single implementation plan, or does it need decomposition?
|
|
117
|
+
4. **Ambiguity check:** Could any requirement be interpreted two different ways? If so, pick one and make it explicit.
|
|
118
|
+
|
|
119
|
+
Fix any issues inline. No need to re-review — just fix and move on.
|
|
120
|
+
|
|
121
|
+
**User Review Gate:**
|
|
122
|
+
After the spec review loop passes, ask the user to review the written spec before proceeding:
|
|
123
|
+
|
|
124
|
+
> "Spec written and committed to `<path>`. Please review it and let me know if you want to make any changes before we start writing out the implementation plan."
|
|
125
|
+
|
|
126
|
+
Wait for the user's response. If they request changes, make them and re-run the spec review loop. Only proceed once the user approves.
|
|
127
|
+
|
|
128
|
+
**Implementation:**
|
|
129
|
+
|
|
130
|
+
- Invoke the writing-plans skill to create a detailed implementation plan
|
|
131
|
+
- Do NOT invoke any other skill. writing-plans is the next step.
|
|
132
|
+
|
|
133
|
+
## Key Principles
|
|
134
|
+
|
|
135
|
+
- **One question at a time** - Don't overwhelm with multiple questions
|
|
136
|
+
- **Multiple choice preferred** - Easier to answer than open-ended when possible
|
|
137
|
+
- **YAGNI ruthlessly** - Remove unnecessary features from all designs
|
|
138
|
+
- **Explore alternatives** - Always propose 2-3 approaches before settling
|
|
139
|
+
- **Incremental validation** - Present design, get approval before moving on
|
|
140
|
+
- **Be flexible** - Go back and clarify when something doesn't make sense
|
|
141
|
+
|
|
142
|
+
## Visual Companion
|
|
143
|
+
|
|
144
|
+
A browser-based companion for showing mockups, diagrams, and visual options during brainstorming. Available as a tool — not a mode. Accepting the companion means it's available for questions that benefit from visual treatment; it does NOT mean every question goes through the browser.
|
|
145
|
+
|
|
146
|
+
**Offering the companion (just-in-time):** Do NOT offer it upfront. Wait until a question would genuinely be clearer shown than told — a real mockup / layout / diagram question, not merely a UI *topic*. The first time that happens, offer it then, as its own message:
|
|
147
|
+
> "This next part might be easier if I show you — I can put together mockups, diagrams, and comparisons in a browser tab as we go. It's still new and can be token-intensive. Want me to? I'll open it for you."
|
|
148
|
+
|
|
149
|
+
**This offer MUST be its own message.** Only the offer — no clarifying question, summary, or other content. Wait for the user's response. If they accept, start the server with `--open` so their browser opens to the first screen automatically. If they decline, continue text-only and don't offer again unless they raise it.
|
|
150
|
+
|
|
151
|
+
**Per-question decision:** Even after the user accepts, decide FOR EACH QUESTION whether to use the browser or the terminal. The test: **would the user understand this better by seeing it than reading it?**
|
|
152
|
+
|
|
153
|
+
- **Use the browser** for content that IS visual — mockups, wireframes, layout comparisons, architecture diagrams, side-by-side visual designs
|
|
154
|
+
- **Use the terminal** for content that is text — requirements questions, conceptual choices, tradeoff lists, A/B/C/D text options, scope decisions
|
|
155
|
+
|
|
156
|
+
A question about a UI topic is not automatically a visual question. "What does personality mean in this context?" is a conceptual question — use the terminal. "Which wizard layout works better?" is a visual question — use the browser.
|
|
157
|
+
|
|
158
|
+
If they agree to the companion, read the detailed guide before proceeding:
|
|
159
|
+
`skills/brainstorming/visual-companion.md`
|