agentleFS
aws-solutionsaws-solutions/konductor/skills/backend-development/SKILL.md

backend-development

Skill11 starsChanged 49 days agoApache-2.0View on GitHub

Implements backend code changes for Lambda handlers, service layers, and DynamoDB operations. Use when fixing code quality issues, adding features, or optimizing backend logic. Follows KISS/YAGNI/DRY principles with minimal, surgical changes.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use Problem-Solving Techniques, llm-application-dev and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • truongtv22Skill

    Problem-Solving Techniques

    Apply systematic problem-solving techniques for complexity spirals (simplification cascades), innovation blocks (collision-zone thinking), recurring patterns (meta-pattern recognition), assumption constraints (inversion exercise), scale uncertainty (scale game), and dispatch when stuck. Techniques derived from Microsoft Amplifier project patterns adapted for immediate application.

    Also in 5 projects that use this

  • pepebot-spaceSkill

    llm-application-dev

    Building applications with Large Language Models - prompt engineering, RAG patterns, and LLM integration. Use for AI-powered features, chatbots, or LLM-based automation.

    Also in 4 projects that use this

  • MoizIbnYousafSkill

    audit-library-health

    Use when checking the overall health of a skills library. Run doctor, validate, check for stale skills, and verify generated docs are in sync.

    Also in 3 projects that use this

  • MoizIbnYousafSkill

    browse-and-evaluate

    Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing. Always use --fields to limit output size and --dry-run before committing to an install.

    Also in 3 projects that use this

  • OpenAnalystIncSkill

    markdown-novel-viewer

    Also in 3 projects that use this

  • +7 more from MoizIbnYousaf

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 11 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when:

    line 16
  2. Distinctive:

    Prefer simple, minimal solutions.

    line 32
  3. Distinctive:

    Prefer simple solutions over design patterns: Only introduce patterns (Strategy, Observer) when they solve a real, existing problem — not …

    line 38
  4. Distinctive:

    Use return values from store operations to avoid extra queries

    line 47
  5. Very specific:

    Use utility types: Partial<T>, Pick<T, K>, Omit<T, K>

    line 52
  6. Very specific:

    Use ?? for null/undefined checks, not ||

    line 54
  7. Distinctive:

    Use conditional writes to prevent race conditions

    line 59
  8. Distinctive:

    No extra queries — use return values from write operations

    line 60
  9. Distinctive:

    Follow single-table design patterns (PK/SK)

    line 61
  10. Very specific:

    Use specific error types, not generic Error

    line 65
  11. Distinctive:

    Create shared fixture factories for test data — not inline objects

    line 72
  12. Very specific:

    Use toContainEqual for order-independent assertions

    line 73
  13. Distinctive:

    Add tests for new code before marking complete

    line 74
  14. Distinctive:

    Test edge cases: null values, empty arrays, boundary conditions

    line 75
  15. Distinctive:

    Test data constructed inline instead of using fixture factory

    line 103

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Backend Development

Overview

Implements backend changes with surgical precision — only the specific issue, nothing more. Covers Lambda handler patterns, service layer architecture, DynamoDB operations, type safety, error handling, and test improvements.

Usage

Use this skill when:

  • Fixing code quality issues from code review feedback
  • Implementing new Lambda handlers or service methods
  • Optimizing DynamoDB operations (atomicity, efficiency)
  • Improving type safety (removing any, adding null checks)
  • Adding or improving test coverage

Core Concepts

Architectural Layers

Handlers (entry point, delegates to facade) → Business Facade (orchestrates service calls) → Services (created via factory, contain business logic) → Repositories (data access through interfaces). No layer should bypass the one below it.

KISS/YAGNI/DRY

Prefer simple, minimal solutions. Only add abstractions that solve a real, existing problem — not hypothetical future needs.

Core Principles

Always read the complete file before making changes. Make minimal changes — only fix the specific issue. Follow established patterns in the codebase. Maintain backward compatibility.

Prefer simple solutions over design patterns. Only introduce patterns (Strategy, Observer) when they solve a real, existing problem — not hypothetical future needs. Call out over-engineering directly.

Implementation Standards

Handler Patterns

  • Handlers delegate to a business facade — no direct business logic in handlers
  • Services created via factory pattern — no direct instantiation
  • Data access through repository interfaces — no direct database calls
  • Use return values from store operations to avoid extra queries

Type Safety

  • No any types in production code (test mocks are the only exception)
  • Use utility types: Partial<T>, Pick<T, K>, Omit<T, K>
  • Validate before non-null assertions (!)
  • Use ?? for null/undefined checks, not ||

DynamoDB Operations

  • Atomic operations use transactions for multi-item updates
  • Use conditional writes to prevent race conditions
  • No extra queries — use return values from write operations
  • Follow single-table design patterns (PK/SK)

Error Handling

  • Use specific error types, not generic Error
  • Catch specific errors, not catch-all handlers
  • Structured logging with correlation IDs and context
  • Log diffs with structured fields showing before/after state

Testing

  • Create shared fixture factories for test data — not inline objects
  • Use toContainEqual for order-independent assertions
  • Add tests for new code before marking complete
  • Test edge cases: null values, empty arrays, boundary conditions

Output Format

For each change, provide:

  1. File path
  2. Issue (with line numbers)
  3. Exact code changes
  4. How to verify the fix
  5. What else might be affected

Quality Gate

CRITICAL (must fix before done):

  • TypeScript compilation fails
  • Tests fail
  • Breaking change introduced without migration path
  • Direct database connection bypassing repository layer
  • Race condition introduced (non-atomic multi-item update)

IMPORTANT (should fix):

  • any type used in production code
  • Missing null check before non-null assertion
  • Extra query when return value from write operation could be used
  • Catch-all error handler masking specific errors
  • Test data constructed inline instead of using fixture factory

SUGGESTION:

  • Could extract repeated logic into shared utility
  • Could add structured log fields for better observability
  • Could strengthen test assertions to check actual values

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.