agentsclimarketplace

Direnv

Skill ComeOnOliver/skillshub/skills/TerminalSkills/skills/direnv

🧠 The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.From the repository description

Install
npx -y skills add ComeOnOliver/skillshub --skill direnv

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

0.9 KB, 241 tokens by cl100k_base, as published. Nobody here has run it

direnv

Overview

direnv automatically loads/unloads environment variables when you cd into a directory. No more source .env — enter the project folder and variables are set.

Instructions

Step 1: Install

brew install direnv
# Add to .bashrc or .zshrc:
eval "$(direnv hook bash)"

Step 2: Configure

# .envrc — Auto-loaded when entering directory
export DATABASE_URL="postgresql://localhost:5432/myapp"
export API_KEY="sk-dev-key-123"
export NODE_ENV="development"
dotenv .env
PATH_add bin
PATH_add node_modules/.bin
direnv allow    # required first time and after changes

Step 3: Per-Project Layouts

# .envrc — Use specific versions
use nvm 20
layout python3

Guidelines

  • Always add .envrc to .gitignore — it contains secrets.
  • Use .envrc.example (committed) as template.
  • direnv unloads vars when you leave the directory — no env pollution.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.