clojure-aero

Manage EDN configuration files for Clojure applications with profiles and variable injection.

1|Updated Sep 5, 2025
One-click install
npx skills add https://github.com/Ramblurr/nix-devenv --skill clojure-aero
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clojure-aero
Source: https://github.com/Ramblurr/nix-devenv/tree/main/prompts/skills/clojure-aero
Command: npx skills add https://github.com/Ramblurr/nix-devenv --skill clojure-aero

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the management of configuration files in Clojure applications, especially those with complex, environment-specific settings, by leveraging EDN and powerful reader tags.

Core Features & Use Cases

  • Profile-based Configuration: Easily define different settings for development, testing, and production environments.
  • Environment Variable Injection: Seamlessly inject values from environment variables directly into your configuration.
  • Configuration Referencing: Create references between different configuration values for better organization and DRY principles.
  • Modular Configuration: Include other EDN files to break down large configurations into manageable parts.
  • Type Coercion: Automatically convert string values to numbers, booleans, or keywords as needed.
  • Use Case: When deploying a Clojure application, you need to specify database credentials, API keys, and server ports that vary between your local development machine and the production server. Aero allows you to define these in a single config.edn file with profiles and environment variable lookups.

Quick Start

Use the clojure-aero skill to read a configuration file named 'config.edn' with the profile set to ':dev'.

Frequently Asked Questions about clojure-aero

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage environment-specific EDN configuration in Clojure?

You can manage environment-specific EDN configuration in Clojure by using the Aero library to parse a single config.edn file with profile-specific settings and environment variable injection. This allows dynamic configuration loading based on deployment environments like development or production.

What is the best way to inject environment variables into Clojure configuration files?

The best way to inject environment variables into Clojure configuration files is by using Aero reader tags within your EDN configuration. This approach automatically pulls values from system environment variables and can coerce them into required data types like numbers or booleans.

Can I reference other configuration values inside a single EDN file to keep it DRY?

Yes, you can reference other configuration values inside an EDN file to maintain DRY principles by using Aero's configuration referencing features. Aero also supports modular configuration, allowing you to include and resolve cross-file references from other EDN files.

Does Aero support type coercion for environment variables loaded from EDN?

Yes, Aero supports type coercion for environment variables loaded from EDN configuration. It automatically converts string values obtained from the environment into appropriate Clojure data types such as numbers, booleans, or keywords as specified by your reader tags.

Do I need the Aero library to load profile-based settings from an EDN file?

Yes, you need the Aero library to load profile-based settings from an EDN file because it provides the custom reader tags required for parsing and resolving the configuration. Without Aero, the profile-specific resolution and environment variable injection will not function.