一键导入
add-feature
Standard workflow for adding a new Anvil feature that spans shared contracts, IPC, preload, services, persistence, and renderer UI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Standard workflow for adding a new Anvil feature that spans shared contracts, IPC, preload, services, persistence, and renderer UI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new top-level renderer screen to Anvil and wire it into routing, navigation, and the existing workspace-gated shell.
Process model, data flow, and feature placement guide for Anvil so agents can modify the right layer with minimal thrash.
Use for Azure cost analysis, right-sizing, FinOps, SKU selection, reserved instances, and detecting over-engineering. Grounded in Well-Architected Cost Optimisation pillar.
Use when designing a new Azure workload from scratch. Covers gold-standard architecture patterns, Landing Zones, service selection, IaC, observability, and DR. Avoids over-engineering.
Use when evaluating migration of existing systems to Azure. Covers lift-and-shift vs rearchitect decisions, the 5 Rs, phased migration planning, and Azure Migrate tooling.
Use for Azure architecture review, service selection, design decisions, and Well-Architected Framework guidance. Interactive consultant that challenges assumptions and cites Microsoft docs.
| name | add-feature |
| description | Standard workflow for adding a new Anvil feature that spans shared contracts, IPC, preload, services, persistence, and renderer UI. |
Use this skill when the new behavior is more than a cosmetic UI tweak and crosses process boundaries.
src/shared/types.ts if the feature introduces new domain objects.src/shared/ipc-api.d.ts.src/main/services/.src/main/ipc/.src/main/index.ts if this is a new IPC module.window.anvil in src/preload/index.ts.src/main/services/<feature>.service.ts.src/main/ipc/security.ipc.ts and src/main/ipc/workspace.ipc.ts.src/shared/types.ts for cross-process entities instead of re-declaring view-local copies.*View.tsx component under the relevant feature folder in src/renderer/components/.src/renderer/contexts/WorkspaceContext.tsxsrc/main/ipc/workspace.ipc.tssrc/main/services/workspace.service.tssrc/main/services/onboard.service.tssrc/main/ipc/onboard.ipc.tssrc/renderer/components/onboard/src/main/services/terminal.service.tssrc/main/ipc/terminal.ipc.tssrc/renderer/components/terminal/If the feature needs persistence:
src/main/db/schema.ts.MIGRATIONS in src/main/db/schema.ts.Do not edit old migration SQL in place.
src/renderer/App.tsx if the feature is screen-level.src/renderer/components/layout/Sidebar.tsx if the screen should be globally reachable.src/renderer/components/shared/ or nearby feature folders before inventing new primitives.Choose the narrowest useful verification:
pnpm testpnpm test and pnpm buildpnpm lint, plus manual dev verification in pnpm dev