# garrettw

> Open-source publisher. Listings imported from github.com/garrettw — credited to the original author with their license.

- **Listings:** 13
- **Total installs:** 0
- **Profile:** https://agentstack.voostack.com/s/garrettw
- **Website:** https://github.com/garrettw

## Published listings

- [Event Sourcing](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-event-sourcing) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-event-sourcing`
  Use this skill when evaluating or implementing Event Sourcing in a PHP application. Triggers on questions about event stores, aggregates, projections, snapshots, event replay, temporal queries, CQRS with event sourcing, or PHP event-sourcing libraries (Ecotone, Prooph, EventSauce, Patchlevel). Distinguishes Event Sourcing from domain events and guides when the pattern is appropriate versus overki…
- [Dependency Injection](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-dependency-injection) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-dependency-injection`
  Use this skill when wiring dependencies, configuring a DI container, designing plugin/extension points, or migrating away from legacy service locators in PHP. Triggers on questions about constructor injection, interface registration, swapping implementations, or testing without booting the container.
- [Action Domain Responder](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-action-domain-responder) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-action-domain-responder`
  Use this skill when building server-side web/HTTP request handling, controllers, views, or templates in PHP frameworks, or when a framework's "MVC" terminology causes confusion about where logic belongs. Triggers on questions about controllers, the Web MVC pattern, Action-Domain-Responder, view/template separation, or keeping HTTP and framework concerns out of the domain.
- [Domain Modeling](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-domain-modeling) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-domain-modeling`
  Use this skill when deciding whether to use rich domain objects vs lean ORM entities, choosing Transaction Script vs Table Module vs a Domain Model, identifying real business objects, or evaluating the cost-benefit of full DDD vs lean structure in a PHP application.
- [Bounded Contexts](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-bounded-contexts) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-bounded-contexts`
  Use this skill when designing system boundaries, discovering or defining bounded contexts, deciding where code belongs, or defining shared kernel and context map relationships in a PHP monolith.
- [Distribution Patterns](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-distribution-patterns) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-distribution-patterns`
  Use this skill when designing remote interfaces or APIs, deciding how coarse-grained an endpoint or operation should be, or shaping data that crosses a process or network boundary. Covers Remote Facade and DTO (Data Transfer Object). Triggers on questions about REST/GraphQL/gRPC endpoint design, exposing use cases remotely, avoiding chatty APIs, preventing ORM entities from leaking through the AP…
- [Application Layer](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-application-layer) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-application-layer`
  Use this skill when writing controllers, structuring use cases, or implementing Service Layer / Application Layer and Command/Query/Handler (CQRS) patterns in PHP applications. Triggers on questions about thin controllers, handler responsibilities, service definition, or DTO usage.
- [Architecture Migration](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-architecture-migration) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-architecture-migration`
  Use this skill when refactoring legacy PHP code toward a cleaner architecture. Provides guidance on incremental migrations (Strangler Fig), vertical slicing, writing characterization tests, and managing temporary compatibility shims.
- [Persistence Patterns](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-persistence-patterns) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-persistence-patterns`
  Use this skill when implementing database persistence, choosing a data source pattern, managing repository interfaces, writing mappers, or splitting large repositories. Assumes the decision between a rich domain model and a lean ORM model has already been made by the domain-modeling skill.
- [Framework Integration](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-framework-integration) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-framework-integration`
  Use this skill when applying clean-architecture, DDD, or hexagonal patterns inside a specific PHP framework. Provides framework-specific port mapping, adapter patterns, and pitfalls to avoid for Laravel, Symfony, Slim, CakePHP, CodeIgniter, Yii, Laminas, Mezzio, Zend Framework, and legacy/maintenance-mode frameworks. Triggers when a framework is named or when clean-architecture principles need fr…
- [Domain Events](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-domain-events) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-domain-events`
  Use this skill when introducing domain events, deciding how to decouple side-effects, or implementing the record-then-publish pattern in PHP apps. Triggers on questions about event naming, payloads, or cross-context ownership.
- [Testing Strategy](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-testing-strategy) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-testing-strategy`
  Use this skill when writing tests for a PHP application. Provides layer-specific guidance to choose the right testing style (unit, integration, feature) for domain objects, mappers, repositories, handlers, and controllers.
- [Infrastructure Boundaries](https://agentstack.voostack.com/l/skill-garrettw-php-arch-skills-infrastructure-boundaries) — Skill · Free · security-reviewed — `agentstack add skill-garrettw-php-arch-skills-infrastructure-boundaries`
  Use this skill when integrating third-party APIs, SDKs, or infrastructure services (like search engines or email). Provides rules for designing provider adapters/gateways, handling webhooks, and preventing vendor lock-in.

---
Seller on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Install any with `agentstack add <slug>`.
