dykyi-roman/awesome-claude-code/grasp-knowledge
- community
Checking that the SKILL.md file is still in the repository.
GRASP principles knowledge base for PHP 8.4 projects. Provides quick reference for 9 responsibility assignment patterns (Information Expert, Creator, Controller, Low Coupling, High Cohesion, Polymorphism, Pure Fabrication, Indirection, Protected Variations). Use for architecture audits and design decisions.
Install
npx vskill@latest install dykyi-roman/awesome-claude-code/grasp-knowledgeSKILL.md
GRASP Principles Knowledge Base
Overview
GRASP (General Responsibility Assignment Software Patterns) provides guidelines for assigning responsibilities to classes and objects in object-oriented design.
| Principle | Core Question | Goal | |
|---|---|---|---|
| Information Expert | Who has the data? | Assign to class with information | |
| Creator | Who creates objects? | Assign creation responsibility | |
| Controller | Who handles system events? | Coordinate use case flow | |
| Low Coupling | How to reduce dependencies? | Minimize interconnections | |
| High Cohesion | How to focus responsibilities? | Keep related things together | |
| Polymorphism | How to handle type variations? | Use polymorphic operations | |
| Pure Fabrication | What if no domain class fits? | Create artificial class | |
| Indirection | How to decouple? | Add intermediate object | |
| Protected Variations | How to handle change? | Hide variation points |
Quick Detection Patterns
Information Expert Violations
Signs: Method accesses other object's data extensively, data and behavior separated.
Creator Violations
Signs: Objects created in unexpected places, no clear creation ownership.
Controller Violations
Signs: Controller has >100 lines, business logic in controller.
Low Coupling Violations
Signs: Class has >7 dependencies, depends on concrete classes.
High Cohesion Violations
Signs: Methods don't relate to each other, class does many unrelated things.
Quick PHP 8.4 Examples
Information Expert
Low Coupling
High Cohesion
GRASP & DDD Integration
| GRASP | DDD Application | |
|---|---|---|
| Information Expert | Entities contain their behavior | |
| Creator | Aggregates create their entities | |
| Controller | Application Services / Use Cases | |
| Low Coupling | Bounded Context boundaries | |
| High Cohesion | Aggregate consistency boundary | |
| Polymorphism | Domain Services, Strategies | |
| Pure Fabrication | Repositories, Factories, Specifications | |
| Indirection | Anti-Corruption Layer, Adapters | |
| Protected Variations | Ports & Adapters, Domain Events |
References
For detailed patterns and examples, see references/:
information-expert.md— Tell Don't Ask, calculations in ownercreator.md— Factory patterns, aggregation rulescontroller.md— Use case handlers, thin controllerslow-coupling.md— Dependency injection, abstractionshigh-cohesion.md— Focused responsibilitiespolymorphism.md— Strategy pattern, type variationspure-fabrication.md— Repositories, specificationsindirection.md— Adapters, mediatorsprotected-variations.md— Stable interfacesantipatterns.md— Common GRASP violations
Assets
assets/report-template.md— GRASP audit report format
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/grasp-knowledge/SKILL.md
Popularity
- Repository stars
- 96
- Repository forks
- 25
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dykyi-roman/awesome-claude-code/grasp-knowledge)