devenv-migration
Migrate from nix-shell to devenv or create new devenv projects. Use when users mention converting shell.nix/default.nix to devenv, setting up devenv environments, or need help with devenv configuration for languages (Python, Elm, Node, etc), services (PostgreSQL, Redis, MySQL), or processes.
What this skill does
# devenv Migration Skill
Convert nix-shell projects to devenv or create new devenv environments with declarative configuration for languages, services, and processes.
**Official devenv.nix Options Reference**: https://github.com/cachix/devenv/blob/main/docs/src/reference/options.md
## What is devenv?
**devenv** is a declarative development environment tool built on Nix that provides:
- **Integrated service management**: PostgreSQL, Redis, MySQL run as managed processes
- **Process orchestration**: Dev servers, watchers, and workers in one configuration
- **Better isolation**: Services use project-local data directories
- **Simplified setup**: Single `devenv.nix` replaces multiple configuration files
- **Pre-commit integration**: Declarative git hooks (170+ built-in)
- **Task system**: Define build, test, and deployment tasks
## When to Use This Skill
Trigger this skill when users:
- Want to migrate from nix-shell to devenv
- Need help configuring devenv.nix
- Ask about setting up languages (Python, JavaScript, Elm, Go, Rust)
- Need service configuration (PostgreSQL, Redis, MySQL, etc.)
- Want to configure processes or tasks
- Have issues with devenv setup
- Ask about converting process-compose.yml to devenv
- Need help with platform-specific issues (Linux patchelf, macOS frameworks)
## Quick Start
### New Project
```bash
# Install devenv
nix profile install nixpkgs#devenv
# Initialize in project directory
cd your-project
devenv init
# Enter environment
devenv shell
# Start services and processes
devenv up
```
### Migration from nix-shell
See [Migration Guide](./references/migration-guide.md) for detailed conversion patterns.
**Quick conversion:**
1. Read existing shell.nix/default.nix
2. Map buildInputs to languages.* and packages
3. Convert shellHook to enterShell
4. Replace manual service setup with services.*
5. Convert process-compose.yml to processes
6. Test with `devenv shell` and `devenv up`
## Core Concepts
### Configuration Structure
```nix
{ pkgs, ... }:
{
# Tools and utilities
packages = [ pkgs.git pkgs.jq ];
# Language runtimes
languages.python.enable = true;
languages.javascript.enable = true;
# Managed services
services.postgres.enable = true;
services.redis.enable = true;
# Long-running processes
processes.backend.exec = "uvicorn app:app --reload";
# One-time tasks
scripts.test.exec = "pytest";
# Git hooks (171 built-in hooks available)
git-hooks.hooks = {
ruff-format.enable = true;
prettier.enable = true;
};
# Environment variables
env.DATABASE_URL = "postgresql:///mydb?host=$PGHOST";
# Shell initialization
enterShell = ''
echo "Environment ready!"
'';
}
```
### Key Differences from nix-shell
| nix-shell | devenv |
|-----------|--------|
| `buildInputs` | `packages` + `languages.*` |
| `shellHook` | `enterShell` |
| Manual service setup | `services.*` (auto-managed) |
| process-compose.yml | `processes` |
| Makefile tasks | `scripts` |
| .pre-commit-config.yaml | `git-hooks.hooks.*` (170+ built-in) |
## Reference Documentation
### Quick Reference
**[devenv.nix Options](./references/devenv-options.md)** - Common configuration patterns and official options reference
### Detailed Guides
**By Topic:**
- **[Migration Guide](./references/migration-guide.md)** - Converting from nix-shell to devenv
- Basic patterns (mkShell → devenv.nix), flakes integration, complex migrations
- **[Language Configurations](./references/language-configs.md)** - Language-specific setup
- Python (venv, uv, poetry), JavaScript/Node, Elm, Go, Rust, multi-language projects
- **[Services Guide](./references/services-guide.md)** - Database and service configuration
- PostgreSQL, Redis, MySQL, MongoDB, Elasticsearch - setup and management
- **[Processes and Tasks](./references/processes-tasks.md)** - Process orchestration
- Dependencies, health checks, restart policies, common patterns
- **[Git Hooks Guide](./references/git-hooks-guide.md)** - Pre-commit integration
- 170+ built-in hooks, custom hooks, language-specific configurations
- **[Advanced Patterns](./references/advanced-patterns.md)** - Production patterns
- One-time init, custom health checks, complex dependencies, gotchas
- **[Troubleshooting](./references/troubleshooting.md)** - Common issues and solutions
- Platform-specific problems, service failures, debugging tips
### Templates
Ready-to-use devenv configurations:
- **[basic-devenv.nix](./assets/templates/basic-devenv.nix)** - Minimal starter template
- **[python-backend.nix](./assets/templates/python-backend.nix)** - Python + uv + PostgreSQL + Redis
- **[fullstack.nix](./assets/templates/fullstack.nix)** - Backend (Python) + Frontend (Elm) + services
- **[multi-language.nix](./assets/templates/multi-language.nix)** - Python + JavaScript + Go
- **[devenv.yaml](./assets/templates/devenv.yaml)** - Nixpkgs inputs configuration
## Common Use Cases
### 1. Migrate Existing Project
**User has:** shell.nix or default.nix with buildInputs
**Steps:**
1. Read [Migration Guide](./references/migration-guide.md)
2. Analyze current setup (languages, services, shellHook)
3. Create devenv.nix using appropriate template
4. Convert buildInputs → packages/languages
5. Convert shellHook → enterShell
6. Test with `devenv shell`
### 2. Setup Python Backend
**User wants:** Python + PostgreSQL + Redis
**Steps:**
1. Use [python-backend.nix](./assets/templates/python-backend.nix) template
2. Customize database names, ports
3. Configure Python version and uv settings
4. Add project-specific scripts
5. Reference [Language Configurations](./references/language-configs.md) for Python details
### 3. Setup Fullstack Application
**User wants:** Backend + Frontend + services
**Steps:**
1. Use [fullstack.nix](./assets/templates/fullstack.nix) template
2. Customize for specific frontend framework
3. Configure API client generation if needed
4. Set up process dependencies
5. Reference [Processes and Tasks](./references/processes-tasks.md) for orchestration
### 4. Add Service to Existing Setup
**User wants:** Add PostgreSQL to existing devenv.nix
**Steps:**
1. Read [Services Guide](./references/services-guide.md) for PostgreSQL
2. Add service configuration to devenv.nix
3. Add environment variables for connection
4. Update process dependencies
5. Test with `devenv up`
### 5. Setup Git Hooks
**User wants:** Pre-commit hooks for code quality
**Steps:**
1. Read [Git Hooks Guide](./references/git-hooks-guide.md)
2. Add `git-hooks.hooks.*` to devenv.nix
3. Choose from 171 available built-in hooks
4. Configure stages (pre-commit vs pre-push)
5. Test with `devenv shell --command "pre-commit run --all-files"`
### 6. Troubleshoot Issues
**User has:** Errors or unexpected behavior
**Steps:**
1. Check [Troubleshooting](./references/troubleshooting.md) for common issues
2. Verify service logs in `.devenv/state/`
3. Use verbose mode: `devenv shell -vvv`
4. Isolate with minimal configuration
## How to Use This Skill
### 1. Understand User Intent
- **New project** → Use templates
- **Migration** → Read their config, apply patterns from Migration Guide
- **Add feature** → Reference specific guide (Languages, Services, Processes)
- **Debug** → Check Troubleshooting guide
### 2. Gather Context
**For migrations:**
- Read shell.nix/default.nix/process-compose.yml
- Identify languages, services, processes, platform-specific logic
- Use `search_packages` to find devenv equivalents for nix packages
**For new projects:**
- Confirm requirements (languages, services, processes)
- Use `search_packages` to verify package availability
- Use `search_options` to discover configuration options
- Select appropriate template
### 3. Provide Guidance
- Point to specific reference sections, don't repeat verbatim
- Use templates as starting points, customize for user's needs
- Include test instructions (`devenv shell`, `devenv up`)
- **Query the MCP server** (https://mcp.devenv.sh/) for theRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.