/fullstack-skills:backend-architecturefrom fullstack-skills
Use this skill for backend feature work, API design, service layer creation, business logic, architecture review, and scalability planning. Triggers on requests involving controllers, services, jobs, queues, events, caching, database queries, API endpoints, request validation, authorization logic, or backend performance. Covers Laravel, Node.js, and Next.js patterns.
Ships in fullstack-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill for backend feature work, refactoring, API design, service layer creation, business logic cleanup, architecture review, and scalability planning.
../../../RULES.md when available and apply it as the behavior, safety, validation, and communication baseline.Request → Middleware → Controller → Service/Action → Repository/Model → Database
→ Events/Jobs → External Services
| Signal | Action |
|---|---|
| Controller > 30 lines per method | Extract to Service/Action |
| Same logic in 2+ controllers | Extract to shared Service |
| Complex conditional logic | Extract to Policy/Strategy class |
| External API call | Extract to dedicated Client class |
| Data transformation | Extract to Transformer/Resource |
| Scheduled/async work | Extract to Job/Command |
The "When to Extract" table above is for reviewing existing code. When creating a
feature, do not wait for extraction thresholds — start split, per the RULES.md
Structure Before Code HARD GATE:
<Product>ApiController holding every endpoint. How many actions it has does not
decide this; what they are actions on does.<Product>Module class; split
by bounded context (Billing, Media, Publishing, Analytics, …).For every backend task, verify:
/api/users, /api/orders./api/users/{id}/orders.?status=active&sort=-created_at&page=2.Content-Type: application/json for all mutation endpoints./api/v1/ or header-based.| Status | Usage |
|---|---|
| 200 | Success with data |
| 201 | Created successfully |
| 204 | Deleted successfully (no content) |
| 400 | Bad request / validation error |
| 401 | Unauthenticated |
| 403 | Forbidden / unauthorized |
| 404 | Resource not found |
| 409 | Conflict / duplicate |
| 422 | Validation failed (Laravel convention) |
| 429 | Rate limited |
| 500 | Server error |
?include= parameter or always-loaded defaults.OrderPlaced, UserRegistered.failed() method or dead-letter handling.Concrete Laravel and Node.js/Next.js backend rule sets are in
references/framework-backend.md — load it when working in one of those stacks. The
framework-agnostic architecture rules above remain the source of truth.
| Anti-Pattern | Why It's Bad | Fix |
|---|---|---|
| Fat controller | Untestable, mixed concerns | Extract to service |
| God service | Does everything, hard to maintain | Split by domain |
| Implicit authorization | Security holes | Add explicit policy checks |
| Silent failures | Bugs go undetected | Log + alert on failure |
| N+1 queries | Performance killer | Eager load relationships |
| Unbounded queries | Memory/timeout issues | Always paginate |
| Hard-coded config | Inflexible, env-specific bugs | Use config/env vars |
| String-based status | Typo-prone, no IDE support | Use enums/constants |
| Sync external calls | Slow responses, timeout risk | Use queues/async |
| Missing transactions | Partial data corruption | Wrap in transaction |
When completing a backend task or review, structure the response as:
# Backend Review
## Architecture Assessment
Brief overview of current architecture health and patterns used.
## Critical Issues
Issues that must be fixed before production — security, data integrity, or correctness.
## Performance Issues
N+1 queries, missing indexes, unbounded queries, sync bottlenecks.
## Design Issues
Architecture violations, coupling, missing abstractions, code organization.
## Recommended Changes
Specific, actionable changes ordered by priority.
## Implementation Notes
Technical details, migration steps, backward compatibility considerations.
frontend-ux-engineering instead.database-performance for deep schema/query work.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (korwlik23/ai-skills) — no native marketplace selected
npx claudepluginhub p/korwlik23-fullstack-skills81 skills in this plugin
/ab-testingWhen the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program," or "experiment playbook." Use this whenever someone is comparing two approaches and wants to measure which performs better, or when they want to build a systematic experimentation practice. For tracking implementation, see analytics. For page-level conversion optimization, see cro./ad-creativeWhen the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see ads. For landing page copy, see copywriting.