python-primitives-architecture
OfficialPrimitives-first design for robust Python apps.
Software Engineering#architecture#interfaces#python#dataclasses#dependency-injection#clean-code#primitives
Authorco-labs-co
Version1.0.0
Installs0
System Documentation
What problem does it solve?
ContextHarness's primitives-first architecture guide helps teams design Python applications with clear separation between domain primitives, services, and interfaces, improving testability, scalability, and maintainability.
Core Features & Use Cases
- Primitives-first design: Pure dataclasses with immutable primitives and clearly defined entities.
- Layered architecture guidance: Distinct PRIMITIVES, SERVICES, and INTERFACES with dependency injection via Protocols.
- Use cases: Ideal when building CLI, SDK, or Web components that require strong type safety and clean boundaries between layers.
Quick Start
Start by creating a Python package following the documented layout, implement a pure primitive, a service that returns a Result, and a thin interface that exposes the service.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: python-primitives-architecture Download link: https://github.com/co-labs-co/context-harness/archive/main.zip#python-primitives-architecture Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.