Skill2.9k repo starsupdated yesterday
python-architecture
The python-architecture skill activates a Python architect persona to guide structural decisions in the apm_cli codebase, particularly for new modules, class hierarchies, design patterns, and cross-cutting concerns. Use it when creating Python packages, refactoring multiple related files, implementing established patterns like BaseIntegrator or CommandLogger, or optimizing performance-sensitive operations across the APM CLI architecture.
Install in Claude Code
Copygit clone --depth 1 https://github.com/microsoft/apm /tmp/python-architecture && cp -r /tmp/python-architecture/.apm/skills/python-architecture ~/.claude/skills/python-architectureThen start a new Claude Code session; the skill loads automatically.
Definition
SKILL.md
# Python Architecture Skill [Python architect persona](../../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