Running services and background processes in Flox environments. Use for service configuration, network services, logging, database setup, and service debugging.
The flox-services skill provides a structured approach for running and managing services and background processes within Flox environments. It solves the common problem of configuring, activating, and monitoring multiple services reliably in isolated environments, ensuring that applications, databases, and network services can operate consistently without conflicts. By offering a clear framework for service activation, logging, and network configuration, it streamlines the process of maintaining persistent services across different development and deployment scenarios.
Key features of flox-services include the ability to start, stop, restart, and monitor services using straightforward commands, integration of daemonized background processes, and standardized patterns for network services, logging, and Python virtual environment usage. It supports common database services like PostgreSQL, Redis, and MongoDB, as well as web servers built with Node.js, Flask, FastAPI, or simple HTTP servers. The skill emphasizes environment variable conventions for configurable host and port settings, enabling flexible and reproducible service deployments. Users can override packaged services and customize logging paths for debugging purposes.
Flox-services is particularly suited for developers, DevOps engineers, and system administrators who manage complex service-based applications in development or staging environments. It is ideal for scenarios where multiple interconnected services need to run simultaneously with clear monitoring and debugging capabilities. Use cases include local development setups with web servers and databases, testing multi-service applications, and managing background services in continuous integration or deployment pipelines.
You can start services by running `flox activate --start-services` or `flox activate -s` in an activated Flox environment.
Yes, you can redefine any packaged service by using the same service name in your configuration to override it.
Services must independently activate their Python virtual environments using either a source command to activate the venv or by executing Python directly from the venv path.
Example configurations are provided for PostgreSQL, Redis, and MongoDB, each set up to run in a daemonized mode with configurable host and port settings.
Yes, host and port should be set via environment variables like `*_HOST` and `*_PORT`, which can be overridden at runtime for flexibility.
Quick Setup:
.claude/skills/Repository
flox/flox-agentic