Add cspy plugin for Cosmic Python architecture patterns - #5
Merged
Merged
Conversation
Add code scaffolding and auditing for DDD patterns from "Architecture Patterns with Python" by Percival & Gregory. Skills: - audit: analyze codebase for pattern coverage - domain: design entities, value objects, aggregates - service-layer: generate service layer functions - uow: implement Unit of Work pattern - events: design domain events and commands - cqrs: analyze and design read models - test-strategy: recommend test levels (high/low gear TDD) - refactor: guide incremental pattern adoption Agent: - architecture-auditor: proactive Python architecture review Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add "pattern coverage" and "DDD adoption" as trigger phrases - Condense search pattern sections to be more concise - Remove redundant code blocks, use inline search patterns Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove "What is a Service Layer?" section (Claude knows this) - Extract common use case patterns to references/use-case-patterns.md - Add "orchestration code" trigger phrase - Keep template + anti-patterns in SKILL.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove "What is Unit of Work?" section (Claude knows this) - Extract async UoW and FastAPI DI to references/async-uow.md - Add "atomic operations" and "transaction boundaries" triggers - Keep sync implementation + fake + tests in SKILL.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove "What is a Domain Model?" section (Claude knows this) - Add "DDD" and "aggregate design" trigger phrases - Trim test examples to representative cases - Extract full test suite to references/domain-tests.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add "event-driven", "CQRS events", "side-effect decoupling" triggers - Extract full messagebus implementation to references/messagebus.md - Trim test section to one representative test - Remove external event consumer (in reference file) - Keep concepts + command/event definitions in SKILL.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add "(Recommended)" label to Option A (Direct SQL Queries) - Add "read vs write" and "denormalized views" trigger phrases - Clarify that Option A is the starting point for most cases Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add "TDD", "unit tests", "integration tests" trigger phrases - Replace ASCII art test pyramid with concise list - Keep all practical guidance and examples Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add "migrate to clean architecture" and "legacy modernization" triggers - Keep philosophy + adoption order diagram in SKILL.md - Keep Step 1 (Service Layer) as example in SKILL.md - Extract Steps 2-6 to references/refactoring-steps.md - Keep migration checklist + common pitfalls in SKILL.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix plugin.json validation errors (move attribution to description, remove unsupported agents field) - Add scripts/validate-plugins.sh for quick plugin validation - Add .githooks/pre-commit to validate modified plugins on commit - Add GitHub Actions workflow for CI validation - Add SessionStart hook to auto-configure git hooks path Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add fetch-depth: 0 to checkout for PR base comparison - Add continue-on-error for informational diff step Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
sodre
added a commit
that referenced
this pull request
Jan 26, 2026
Add template #5 showing a multi-entity single-table design with nested blocks for attribute header/value pairs, modeled after AWS SocialNetwork8. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cspyplugin providing skills, agents, and references for Cosmic Python architecture patternsChanges
New Plugin Structure:
Skills with Reference Files:
references/use-case-patterns.mdreferences/async-uow.mdreferences/domain-tests.mdreferences/messagebus.mdreferences/refactoring-steps.mdTest plan
claude /plugins🤖 Generated with Claude Code