nomad

HashiCorp Nomad workload orchestration. Use for job scheduling.

7 stars

Best use case

nomad is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

HashiCorp Nomad workload orchestration. Use for job scheduling.

Teams using nomad should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/nomad/SKILL.md --create-dirs "https://raw.githubusercontent.com/G1Joshi/Agent-Skills/main/skills/devops/nomad/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/nomad/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How nomad Compares

Feature / AgentnomadStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

HashiCorp Nomad workload orchestration. Use for job scheduling.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Nomad

HashiCorp Nomad is a flexible scheduler that orchestrates just about anything: containers, binaries, or VMs. Nomad 1.8+ (2025) focuses on **Workload Identity** (JWT) for secure, secret-less authentication.

## When to Use

- **Simplicity**: You don't need the complexity of Kubernetes (etcd, controllers, CRDs).
- **Non-Container Workloads**: You need to orchestrate raw `java -jar` or `nginx` binaries directly on Linux/Windows.
- **Edge**: Single binary, low resource usage.

## Quick Start

```hcl
job "example" {
  datacenters = ["dc1"]

  group "cache" {
    task "redis" {
      driver = "docker"

      config {
        image = "redis:7"
      }

      resources {
        cpu    = 500 # 500 MHz
        memory = 256 # 256 MB
      }
    }
  }
}
```

## Core Concepts

### Jobs

The unit of work. Defined in HCL (HashiCorp Configuration Language).

### Drivers

Nomad uses drivers to run tasks: `docker`, `exec` (raw binaries), `java`, `qemu` (VMs).

### Workload Identity

Nomad issues a JWT to running tasks. Tasks generally trade this JWT with Vault to get database passwords or AWS keys, removing the need to hardcode secrets.

## Best Practices (2025)

**Do**:

- **Use Workload Identity**: Integrate with Vault and Consul securely.
- **Use Consul Connect**: For service mesh features (mTLS, observability) between tasks.
- **Keep it Simple**: Don't try to reimplement K8s on top of Nomad. Embrace the simplicity.

**Don't**:

- **Don't ignore state**: Nomad handles stateful workloads, but K8s has a richer ecosystem of Operators for complex databases. Stick to stateless or simple stateful (Redis) on Nomad if possible.

## References

- [Nomad Documentation](https://developer.hashicorp.com/nomad)