agentleFS
MindrallyMindrally/skills/backend-development/SKILL.md

backend-development

Skill266 starsChanged 10 months agoApache-2.0View on GitHub

Guidelines for backend development in C++ and Elixir/Phoenix, covering modern language features, best practices, and production-ready patterns.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use frontend-development, mobile-development and 2 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.
  • lubusINSkill

    frontend-development

    Build modern Vue 3 frontend apps using Frappe UI with components, data fetching, and portal pages. Use when creating custom frontends, SPAs, or portal interfaces for Frappe applications.

    Also in 4 projects that use this

  • 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

26 rules. About 0 are common, 16 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈16

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use PascalCase for classes and structs

    line 13
  2. Distinctive:

    Use camelCase for variables and methods

    line 14
  3. Very specific:

    Use SCREAMING_SNAKE_CASE for constants and macros

    line 15
  4. Very specific:

    Prefer smart pointers (std::unique_ptr, std::shared_ptr) over raw pointers

    line 18
  5. Very specific:

    Use std::unique_ptr for exclusive ownership

    line 19
  6. Very specific:

    Use std::shared_ptr only when shared ownership is required

    line 20
  7. Distinctive:

    Avoid unnecessary heap allocations

    line 22
  8. Very specific:

    Use auto for type inference where it improves readability

    line 25
  9. Very specific:

    Use std::optional for values that may not exist

    line 27
  10. Very specific:

    Use std::variant for type-safe unions

    line 28
  11. Very specific:

    Use std::move for move semantics

    line 30
  12. Distinctive:

    Use exceptions for error handling

    line 33
  13. Distinctive:

    Ensure exception safety in all code

    line 36
  14. Very specific:

    Avoid C-style casts; use static_cast, dynamic_cast, etc.

    line 40
  15. Distinctive:

    Write unit tests with Google Test or Catch2

    line 41
  16. Distinctive:

    Document with Doxygen comments

    line 42
  17. Distinctive:

    Follow domain-driven design with PragDave philosophy

    line 47
  18. Distinctive:

    Use functional programming with explicit error handling

    line 48
  19. Distinctive:

    Keep contexts focused on single domains

    line 53
  20. Distinctive:

    Use bounded contexts to prevent coupling

    line 54
  21. Distinctive:

    Use pattern matching extensively for data extraction

    line 58
  22. Very specific:

    Use with statements to chain fallible operations

    line 65
  23. Distinctive:

    Use contexts as the API layer for business logic

    line 72
  24. Distinctive:

    Keep controllers thin, delegate to contexts

    line 73
  25. Distinctive:

    Use LiveView as primary UI technology

    line 76
  26. Distinctive:

    Use changesets even outside database contexts

    line 83

≈ “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

You are an expert in backend development with C++ and Elixir/Phoenix.

C++ Development

Naming Conventions

  • Use PascalCase for classes and structs
  • Use camelCase for variables and methods
  • Use SCREAMING_SNAKE_CASE for constants and macros

Memory Management

  • Prefer smart pointers (std::unique_ptr, std::shared_ptr) over raw pointers
  • Use std::unique_ptr for exclusive ownership
  • Use std::shared_ptr only when shared ownership is required
  • Implement RAII for all resource management
  • Avoid unnecessary heap allocations

Modern C++ Features

  • Use auto for type inference where it improves readability
  • Leverage range-based for loops
  • Use std::optional for values that may not exist
  • Use std::variant for type-safe unions
  • Apply structured bindings for cleaner code
  • Use std::move for move semantics

Error Handling

  • Use exceptions for error handling
  • Define custom exception types for domain-specific errors
  • Catch exceptions at appropriate boundaries
  • Ensure exception safety in all code

Best Practices

  • Enforce const-correctness throughout
  • Avoid C-style casts; use static_cast, dynamic_cast, etc.
  • Write unit tests with Google Test or Catch2
  • Document with Doxygen comments

Elixir and Phoenix Best Practices

Core Philosophy

  • Follow domain-driven design with PragDave philosophy
  • Use functional programming with explicit error handling
  • Embrace the "let it crash" principle

Code Organization

  • Organize code around business domains using Phoenix contexts
  • Keep contexts focused on single domains
  • Use bounded contexts to prevent coupling
  • Implement clear public APIs for each context

Pattern Matching and Control Flow

  • Use pattern matching extensively for data extraction
  • Apply "railway-oriented programming" with with statements
  • Chain operations cleanly with the pipe operator
  • Handle all pattern match cases explicitly

Error Handling

  • Return tagged tuples ({:ok, result} or {:error, reason})
  • Use with statements to chain fallible operations
  • Implement proper supervision trees
  • Handle expected errors explicitly

Phoenix Contexts

  • Group related functionality in contexts
  • Define clear boundaries between contexts
  • Use contexts as the API layer for business logic
  • Keep controllers thin, delegate to contexts

LiveView

  • Use LiveView as primary UI technology
  • Implement function components for reusable UI
  • Handle events in LiveView modules
  • Manage state appropriately in assigns

Data Validation

  • Validate at boundaries using Ecto.Changeset
  • Use changesets even outside database contexts
  • Define clear validation rules
  • Return helpful error messages

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.