Agent skill
agentic_architecture
Enforces high-level architectural thinking, separation of concerns, and scalability checks before coding.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/agentic-architecture-cityfish91159-maihouses
SKILL.md
Agentic Architecture Protocol
1. Think Before You Code
Before implementing any feature that spans multiple files:
- Analyze Data Flow: Where does data come from? Where does it go?
- Define Interfaces: creating
types/*.tsis often the best first step. - Check Boundaries: Ensure API logic stays in
api/, UI incomponents/, and business logic inservices/orhooks/.
2. Scalability & Performance Checks
- Database:
- Are we fetching 1000 items to filter 10? (Use DB filters instead).
- Is RLS (Row Level Security) compatible with this query?
- Frontend:
- Are we causing unnecessary re-renders? (Use
React.memo,useCallbackappropriately). - Is this component becoming a "God Component"? (Break it down).
- Are we causing unnecessary re-renders? (Use
3. The "Three-Tier" Rule
For any non-trivial feature, verify you have these three layers:
- Data Layer: Types + API/Service (e.g.,
user.types.ts,userService.ts) - State Layer: Hook or Store (e.g.,
useUser.ts) - View Layer: Components (e.g.,
UserProfile.tsx)
4. Architecture Checklist
- Have I defined the types first?
- Is the business logic separated from the UI?
- Did I consider how this scales to 10,000 users/items?
- Is the database schema validated (if changing DB)?
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?