Skip to main content

python-architecture

Activate when creating new modules, refactoring class hierarchies, introducing design patterns, or making changes spanning 3+ files in the APM CLI codebase.

来源信息

仓库
microsoft/apm
最近来源活动
2026年7月12日 05:30
检测到的 SKILL.md 语言
英语
星标
3,997
分支
388

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
python-architecture
description
Activate when creating new modules, refactoring class hierarchies, introducing design patterns, or making changes spanning 3+ files in the APM CLI codebase.
# Python Architecture Skill [Python architect persona](../../../.apm/agents/python-architect.agent.md) ## When to activate - Creating new Python modules or packages under `src/apm_cli/` - Refactoring class hierarchies or introducing base classes - Changes that touch 3+ files with shared logic patterns - Introducing new design patterns (Strategy, Observer, etc.) - Cross-cutting concerns (logging, auth, error handling) - Performance-sensitive paths (parallel downloads, large manifests) ## Key rules - Follow existing patterns (BaseIntegrator, CommandLogger, AuthResolver) before inventing new ones - Prefer composition over deep inheritance - Push shared logic into base classes, not duplicated across siblings - One canonical owner per decision: route through the existing authority (target_catalog, AuthResolver/host_providers, runtime registry, CommandLogger, CompiledOutputWriter, deployment_ledger, install-outcome, neutral hook IR, BaseIntegrator); extend it, never fork it. Full rule: `.apm/instructions/architecture.instructions.md` - Lock every centralization with a dual guardrail: a regression test plus a static check in `scripts/lint-architecture-boundaries.sh`
在 GitHub 查看