devenv

Activate flake-based development environments with packages, variables, and shell commands.

3|Updated Jul 17, 2024
One-click install
npx skills add https://github.com/Castrozan/.dotfiles --skill devenv-castrozan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devenv
Source: https://github.com/Castrozan/.dotfiles/tree/main/agents/skills/devenv
Command: npx skills add https://github.com/Castrozan/.dotfiles --skill devenv-castrozan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Devenv automates the creation and activation of development environments for AI agents, unifying package loads, environment variables, and shell behavior.

Core Features & Use Cases

  • Automated environment activation: Load packages, variables, and shell commands to provide a consistent workspace.
  • Deterministic shells for agents: EnterShell-like behavior that keeps the shell active for interactive work and CI tasks.
  • Use Case: When an AI agent needs a reproducible dev setup across multiple projects, invoke devenv to initialize the environment and run commands in a controlled shell.

Quick Start

Use the devenv skill to activate a development environment and run commands within a controlled shell. Example: devenv shell -- yarn install

Frequently Asked Questions about devenv

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

FAQPage Schema
How do I automate development environment activation for AI agents?

Automating development environment activation for AI agents involves loading required packages, environment variables, and shell commands into a reproducible state. This ensures deterministic, isolated shells for development, testing, and CI tasks.

How do I run shell commands in an isolated Nix flake environment?

Running shell commands in an isolated Nix flake environment requires a deterministic state management tool. It applies a devenv configuration with enterShell commands to keep the shell active for interactive work and CI tasks.

What is the best way to provide reproducible dev setups across multiple projects?

Reproducible dev setups across multiple projects are achieved by unifying package loads, environment variables, and shell behavior. This approach streamlines workspaces for AI agents, ensuring consistent and controlled execution.

Does shell caching work with deterministic state management in flake-based environments?

Shell caching works with deterministic state management in flake-based environments to maintain reproducible dev setups. It supports a devenv configuration with enterShell commands to keep the shell active for interactive work and CI tasks.

Can I use devenv shell to run yarn install in a controlled workspace?

You can use devenv shell to run commands like yarn install in a controlled workspace. It activates the development environment by loading packages and variables, providing a consistent and isolated shell for AI agent workflows.