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

backend-development

Skill9 starsChanged 2 months 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.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use mobile-development, planning and 1 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

    mobile-development

    Build modern mobile applications with React Native, Flutter, Swift/SwiftUI, and Kotlin/Jetpack Compose. Covers mobile-first design principles, performance optimization (battery, memory, network), offline-first architecture, platform-specific guidelines (iOS HIG, Material Design), testing strategies, security best practices, accessibility, app store deployment, and mobile development mindset. Use when building mobile apps, implementing mobile UX patterns, optimizing for mobile constraints, or making native vs cross-platform decisions.

    Also in 3 projects that use this

  • AWSSkill

    planning

    Discovers user intent and generates a structured, step-by-step plan for model customization workflows. This skill must always be activated alongside any other skill when the user's request relates to model customization — including fine-tuning, training, building, customizing, reviewing data, or getting advice on approach, regardless of domain. Do not skip this skill even if the immediate ask is narrow (e.g., reviewing data format or a single workflow step), because planning discovers the full scope of work needed. Also activate when the user wants to resume, continue, or modify an existing plan.

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    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 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.

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.