hack-cli — community hack-cli, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Containerization Agents requiring seamless local development orchestration without port conflicts. Opinionated local-dev orchestration for running multiple projects at the same time without port conflicts.

hack-dance hack-dance
[0]
[0]
Updated: 3/4/2026

Agent Capability Analysis

The hack-cli skill by hack-dance is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Ideal for Containerization Agents requiring seamless local development orchestration without port conflicts.

Core Value

Empowers agents to manage multiple projects simultaneously using `hack` as the primary interface, leveraging `docker` and `docker compose` under the hood, while avoiding manual edits to `.hack/.internal` and `.hack/.branch` artifacts, and utilizing `hack doctor` for runtime and network repairs.

Capabilities Granted for hack-cli

Orchestrating local development for multiple projects
Resolving port conflicts between containerized services
Automating runtime and network repairs with `hack doctor`

! Prerequisites & Limits

  • Requires preference for `hack` over raw `docker` and `docker compose` commands
  • Restricts manual service management through Docker Desktop UI for `hack`-managed repositories
  • Needs careful handling of `.hack/.internal` and `.hack/.branch` files to avoid conflicts
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

hack-cli

Install hack-cli, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

hack CLI

Use hack as the primary interface for local development.

Operating Rules

  • Prefer hack over raw docker / docker compose.
  • Do not start/stop project services from Docker Desktop UI for hack-managed repos.
  • Treat .hack/.internal and .hack/.branch as hack-managed artifacts; avoid hand-editing generated files.
  • Use MCP only when shell access is unavailable.
  • Run hack doctor (and hack doctor --fix) before manual runtime/network repair.

Config + Schema

  • Project config: .hack/hack.config.json
  • Global config: ~/.hack/hack.config.json
  • Schema URL: https://schemas.hack/hack.config.schema.json
  • Prefer CLI config edits via hack config get/set.

Hostname Routing

  • Primary host is dev_host (default: <project>.hack).
  • Subdomains use <sub>.<dev_host> (for example: api.myapp.hack).
  • OAuth alias can add <dev_host>.<tld> and <sub>.<dev_host>.<tld> (default: gy).
  • Only HTTP services with Caddy labels and hack-dev network attachment are routable.
  • Required labels: caddy, caddy.reverse_proxy, caddy.tls=internal.
  • Quick checks: hack open, hack open <sub>, hack open --json.

TLS + OAuth Host Rules

  • Caddy internal PKI provides HTTPS for routed hosts; trust CA with hack global trust.
  • .hack is local-first and not a public suffix.
  • Use alias hosts like *.hack.gy when provider callback validation rejects non-public-suffix hosts.
  • Alias hosts are local routes unless you explicitly add remote ingress/tunnel plumbing.

Managed Files

  • Source-of-truth files: .hack/docker-compose.yml, .hack/hack.config.json, .hack/hack.env.json.
  • Local-only files: .hack/.env and .hack/.internal/ (gitignored; machine-specific state).
  • Generated by hack: .hack/.internal/compose.override.yml, .hack/.internal/compose.env.override.yml, .hack/.branch/compose.<branch>.override.yml.
  • Managed via CLI: .hack/.internal/extra-hosts.json using hack internal extra-hosts ... commands.
  • Lifecycle runtime files: .hack/.internal/lifecycle/state.json, .hack/.internal/lifecycle/*.log.

Advanced Networking

  • Static host mappings: set internal.extra_hosts in .hack/hack.config.json.
  • Dynamic mappings for local proxies/tunnels: hack internal extra-hosts set <hostname> <target>.
  • List/remove mappings: hack internal extra-hosts list / hack internal extra-hosts unset <hostname>.
  • Prefer host-gateway for host-local proxy targets when possible.
  • Apply changes with hack restart; verify with hack doctor.

Quick Start

  • Bootstrap project config: hack init
  • Start services: hack up --detach
  • Alternate shorthand: hack up -d
  • Restart services: hack restart
  • Open app: hack open --json
  • Tail logs (compose): hack logs --pretty
  • Per-service logs: hack logs <service>
  • Snapshot logs: hack logs --json --no-follow
  • Loki history/query: hack logs --loki --since 2h --pretty
  • Run commands: hack run <service> <cmd...>
  • Stop services: hack down

Global Infra

  • Install once: hack global install
  • Start/stop/status: hack global up, hack global down, hack global status
  • Global logs: hack global logs <service> --no-follow --tail 200

Remote Nodes + Dispatch

  • Pair/register a node: hack node pair ..., then verify via hack node list and hack node status --watch.
  • Repair SSH access for remote Git/mutagen: hack node ssh setup --node <id>.
  • Inspect node workspace map on the node host: ssh <user@host> 'hack node workspace list --json'.
  • Inspect/repair controller route bridge: hack node routes status, hack node routes repair.
  • Dispatch command to remote workspace: hack dispatch run --project <name|id> --node default --branch <branch> --runner generic -- "pwd".

Lifecycle + Startup

  • Put host setup in .hack/hack.config.json under startup / lifecycle.
  • Use lifecycle processes for long-running host tasks, not ad-hoc terminals.
  • Inspect via hack projects --details and hack logs <service-or-process>.

Branch Instances

Use branch instances to run parallel environments:

  • hack up --branch <name> --detach
  • hack open --branch <name>
  • hack logs --branch <name>
  • hack down --branch <name>

Sessions

  • Picker: hack session
  • Start/attach: hack session start <project>
  • Isolated agent session: hack session start <project> --new --name agent-1
  • Exec: hack session exec <session> "<command>"
  • Stop: hack session stop <session>

Tickets

  • Create: hack tickets create --title "..." --body-stdin
  • List/show: hack tickets list, hack tickets show T-00001
  • Status/sync: hack tickets status T-00001 in_progress, hack tickets sync

Project Targeting

  • Run from repo root when possible.
  • Otherwise use --project <name> or --path <repo-root>.
  • List projects: hack projects --json.

Agent Maintenance

  • Project-level hack commands auto-check integration drift and attempt auto-sync.
  • Set HACK_SETUP_SYNC_MODE=warn to warn-only, or HACK_SETUP_SYNC_MODE=off to disable.
  • Refresh project + global integrations: hack setup sync --all-scopes
  • Check generated integrations: hack setup sync --all-scopes --check
  • Remove generated integrations: hack setup sync --all-scopes --remove
  • After self-update: hack update then hack setup sync --all-scopes

Agent Setup

  • Cursor rules: hack setup cursor
  • Claude hooks: hack setup claude
  • Codex skill: hack setup codex
  • Tickets skill: hack setup tickets
  • Init prompt: hack agent init (use --client cursor|claude|codex to open)
  • Init patterns: hack agent patterns
  • MCP (no shell only): hack setup mcp
  • MCP install (explicit): hack mcp install --all --scope project

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is hack-cli?

Ideal for Containerization Agents requiring seamless local development orchestration without port conflicts. Opinionated local-dev orchestration for running multiple projects at the same time without port conflicts.

How do I install hack-cli?

Run the command: npx killer-skills add hack-dance/hack. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for hack-cli?

Key use cases include: Orchestrating local development for multiple projects, Resolving port conflicts between containerized services, Automating runtime and network repairs with `hack doctor`.

Which IDEs are compatible with hack-cli?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for hack-cli?

Requires preference for `hack` over raw `docker` and `docker compose` commands. Restricts manual service management through Docker Desktop UI for `hack`-managed repositories. Needs careful handling of `.hack/.internal` and `.hack/.branch` files to avoid conflicts.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add hack-dance/hack. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use hack-cli immediately in the current project.

Related Skills

Looking for an alternative to hack-cli or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI