python-architecture
Activate when creating new modules, refactoring class hierarchies, introducing design patterns, or making changes spanning 3+ files in the APM CLI codebase.
- License 许可
- MIT
- 所属仓库
- microsoft/apm
- 最近更新
- 2026-11-14
- Stars
- ★ 4.4k
- Forks
- 426
01 前言 Front Matter
- 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.
02 资源文件 3
- 参考文档_meta.json128 B
- 参考文档.clawhub/origin.json141 B
- 参考文档README.md2.8 KB
03 SKILL.md 正文
Python Architecture Skill
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
04 同仓库更多 Skills
autopilot-issue-accept
Use this skill to accept ONE microsoft/apm issue with a declared scope. The canvas Accept button, or a maintainer asking to accept an issue, starts it. Draft only from the latest triage proposed scope, get exact-text approval in this chat from a GOVERNANCE roster human, post that comment as that human, then add status/accepted. Do not invent scope, do not accept pull requests, and do not implement the issue.
autopilot-issue-accept
Use this skill to accept ONE microsoft/apm issue with a declared scope. The canvas Accept button, or a maintainer asking to accept an issue, starts it. Draft only from the latest triage proposed scope, get exact-text approval in this chat from a GOVERNANCE roster human, post that comment as that human, then add status/accepted. Do not invent scope, do not accept pull requests, and do not implement the issue.
hello
暂无简介
placeholder
暂无简介
placeholder
暂无简介
placeholder
暂无简介