This skill may not reflect the latest upstream change
Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 26, 2026.
Backend Development
Guidelines for backend development in C++ and Elixir/Phoenix, covering modern language features, best practices, and production-ready patterns.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install mindrally-backend-developmentManual setup by platform
Claude Code
~/.claude/skills/mindrally-backend-development/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
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_ptrfor exclusive ownership - Use
std::shared_ptronly when shared ownership is required - Implement RAII for all resource management
- Avoid unnecessary heap allocations
Modern C++ Features
- Use
autofor type inference where it improves readability - Leverage range-based for loops
- Use
std::optionalfor values that may not exist - Use
std::variantfor type-safe unions - Apply structured bindings for cleaner code
- Use
std::movefor 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
withstatements - Chain operations cleanly with the pipe operator
- Handle all pattern match cases explicitly
Error Handling
- Return tagged tuples (
{:ok, result}or{:error, reason}) - Use
withstatements 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
Security
Reviews (0)
Related skills
Browse all →More from Mindrally Skills
View source →More Build skills
Browse category →Frequently asked questions about backend-development
What does the backend-development skill do?
Guidelines for backend development in C++ and Elixir/Phoenix, covering modern language features, best practices, and production-ready patterns. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the backend-development skill?
Run `npx @skills-hub-ai/cli install mindrally-backend-development` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/mindrally-backend-development/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does backend-development work with?
backend-development runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the backend-development skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use backend-development after installing it?
In Claude Code, type `/mindrally-backend-development` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the backend-development skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.