backend-review
Skill9 starsChanged 2 months agoApache-2.0View on GitHub
Reviews backend code changes for architectural pattern compliance, type safety, DynamoDB correctness, and test quality. Use after implementing backend changes to catch issues before code review. Produces CRITICAL/IMPORTANT/SUGGESTION findings.
In this repository83 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- about-konductorSkill
- adr-generatorSkill
- adversarial-code-review-pass-integritySkill
- adversarial-code-review-pass-schemaSkill
- adversarial-code-review-pass-securitySkill
- adversarial-code-reviewSkill
- adversarial-design-reviewSkill
- agents-md-authoringSkill
- app-discoverySkill
- architecture-advisorSkill
- architecture-diagram-generationSkill
- argumentation-referenceSkill
- asana-sprint-planningSkill
- asdlc-aspect-reviewSkill
- asdlc-code-simplifierSkill
- aws-service-validatorSkill
- backend-developmentSkill
- claude-teams-behaviorSkill
- cmux-dispatchSkill
- code-reviewSkill
- constraintsSkill
- cost-estimationSkill
- cypress-test-implementationSkill
- decision-researchSkill
- decision-writingSkill
- delegation-protocolSkill
- deliberation-panelSkill
- design-doc-guidelinesSkill
- design-evaluationSkill
- design-impact-reviewSkill
- design-quality-checkSkill
- doc-accuracy-analyzerSkill
- document-formatsSkill
- dom-inspectionSkill
- dynamodb-designSkill
- dynamodb-validationSkill
- e2e-test-strategySkill
- external-researchSkill
- find-aws-skillsSkill
- frontend-developmentSkill
- frontend-reviewSkill
- git-mergeSkill
- git-workflowSkill
- historical-issues-registrySkill
- humanize-writingSkill
- iam-policy-designSkill
- infra-validationSkill
- kiro-design-generationSkill
- kiro-requirements-generationSkill
- kiro-task-generationSkill
- legacy-to-agentic-estimateSkill
- mux-dispatchSkill
- non-functional-requirementsSkill
- persistent-memorySkill
- plan-reviewSkill
- playwright-test-implementationSkill
- policy-validationSkill
- pre-planning-analysisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use this skill when:
- Distinctive: line 78
Test passes only due to test order dependency
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Backend Review
Overview
Reviews backend code with a critical eye across architectural patterns, type safety, DynamoDB operations, error handling, observability, and test coverage. Provides direct, unbiased assessment — calls out over-engineering, KISS/YAGNI/DRY violations, and unnecessary complexity.
Usage
Use this skill when:
- Reviewing backend changes before submitting a code review
- Validating that a fix follows established architectural patterns
- Checking DynamoDB operations for atomicity and efficiency
- Assessing test coverage and quality
Core Concepts
Review Focus Areas
Architectural pattern compliance (layer separation), dead code detection (unused exports after refactoring), type safety (no any, null checks before assertions), DynamoDB correctness (atomicity, conditional writes, no extra queries), error handling (specific catches, structured logging), and test quality (fixture factories, order-independent assertions).
Review Checklist
Architectural Patterns
- Handlers delegate to business facade — no direct business logic in handlers
- Services created via factory — no direct instantiation
- Data access through repository interfaces — no direct database calls
- Proper layer separation maintained
Dead Code
- Deleted or replaced functions have no remaining callers
- No unused imports after refactoring
- Documentation referencing deleted code is updated
Type Safety
- No
anytypes in production code - Null checks present before non-null assertions
- Proper error types (not generic
Error) - TypeScript utility types used correctly (
Partial,Pick,Omit)
DynamoDB Operations
- Multi-item updates use transactions (atomic)
- No extra queries — write return values used where available
- Conditional writes used to prevent race conditions
- Key design follows single-table patterns
Error Handling
- Specific error catching (not catch-all)
- Proper error propagation
- Structured logging with context and correlation IDs
Testing
- Shared fixture factories used (not inline test data)
- Order-independent assertions (
toContainEqual) - Edge cases covered (null, empty arrays, boundaries)
- New code has test coverage
Quality Gate
CRITICAL (blocks approval):
- Race condition risk (non-atomic multi-item update without transaction)
- Direct database connection bypassing repository layer
- Missing null check before non-null assertion that will throw at runtime
- Test passes only due to test order dependency
IMPORTANT (should fix):
anytype in production code- Extra query when write return value could be used
- Catch-all error handler masking specific errors
- Inline test data instead of fixture factory
- Over-engineered solution for a simple problem (call this out directly)
SUGGESTION:
- Could add structured log fields for better observability
- Could strengthen test assertions to check actual values not just existence
- Could extract repeated logic into shared utility
Present findings as: CRITICAL → IMPORTANT → SUGGESTION. Ask: "Fix these issues? [y/n]" — unless scope_confirmed is true, in which case report all the findings and leave fixing to the caller, without asking.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

