Sponsor Suno AI Music arrow_forward
Slash Command

Overnight Setup

Setup overnight development with Git hooks for autonomous TDD sessions

Type
Slash Command
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026

What Overnight Setup is

Overnight Setup is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.

Overnight Setup gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.

How to install Overnight Setup

Claude Code

  1. Download overnight-setup.md from the repository.
  2. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. Run it from any task with / and the skill name.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/productivity/overnight-dev/commands/overnight-setup.md, shared under the repository's MIT license. Read the full file on GitHub.

Install Git hooks and configure overnight autonomous development in your project.

What This Does

This command sets up your repository for overnight autonomous development sessions:

  1. Installs Git Hooks - pre-commit and commit-msg hooks
  2. Creates Config - .overnight-dev.json configuration file
  3. Verifies Setup - Tests that hooks work correctly

Installation Steps

1. Check Prerequisites

First, verify you have:

  • Git repository initialized (git status works)
  • Test framework configured (Jest, pytest, etc.)
  • At least 1 passing test
  • Linter set up (ESLint, flake8, etc.)

2. Install the Hooks

The plugin will copy Git hooks to .git/hooks/:

  • pre-commit - Runs linting and tests before each commit
  • commit-msg - Enforces conventional commit format

3. Configure Your Project

Create .overnight-dev.json in your project root:

{
  "testCommand": "npm test",
  "lintCommand": "npm run lint",
  "requireCoverage": true,
  "minCoverage": 80,
  "autoFix": true,
  "maxAttempts": 50,
  "stopOnMorning": true,
  "morningHour": 7
}

Configuration Options:

  • testCommand - Command to run tests (e.g., "pytest", "cargo test")
  • lintCommand - Command to run linter
  • requireCoverage - Enforce minimum test coverage
  • minCoverage - Minimum coverage percentage (default: 80)
  • autoFix - Automatically fix linting issues
  • maxAttempts - Maximum commit attempts before alerting
  • stopOnMorning - Stop work at a specific hour
  • morningHour - Hour to stop (0-23)

4. Test the Setup

Verify the hooks work:

# Should run tests and linting
git commit --allow-empty -m "test: verify overnight dev hooks"

If hooks work correctly, you'll see:

 Overnight Dev: Running pre-commit checks...
 Running linting...
 Linting passed
 Running tests...
 All tests passed
 All checks passed! Proceeding with commit...

Project-Specific Examples

Node.js / JavaScript

{
  "testCommand": "npm test -- --coverage",
  "lintCommand": "npm run lint",
  "autoFix": true
}

Python

{
  "testCommand": "pytest --cov=. --cov-report=term-missing",
  "lintCommand": "flake8 . && black --check .",
  "autoFix": false
}

Rust

{
  "testCommand": "cargo test",
  "lintCommand": "cargo clippy -- -D warnings",
  "autoFix": false
}

Go

{
  "testCommand": "go test ./...",
  "lintCommand": "golangci-lint run",
  "autoFix": false
}

Starting an Overnight Session

Once setup is complete:

  1. Define your goal:
   Task: Implement user authentication with JWT
   Success: All tests pass, coverage > 85%
  1. Start coding:
  • Write tests first (TDD)
  • Implement features
  • Commit frequently
  • Let the hooks keep you honest
  1. Claude works overnight:
  • Every commit must pass tests
  • Hooks enforce quality
  • Morning brings fully tested features

Troubleshooting

"Hooks not executing"

# Make hooks executable
chmod +x .git/hooks/pre-commit
chmod +x .git/hooks/commit-msg

"Tests failing immediately"

Make sure you have at least 1 passing test before starting:

npm test  # or pytest, cargo test, etc.

"Linting errors blocking commits"

Enable auto-fix in config:

{
  "autoFix": true
}

Or fix manually:

npm run lint -- --fix

What Happens During Overnight Sessions

  1. You write code → Claude writes tests and implementation
  2. You try to commit → Hooks run tests automatically
  3. Tests fail → Claude debugs and fixes
  4. Tests pass → Commit succeeds
  5. Repeat → Until feature is complete
  6. Morning → Wake up to fully tested code

Success Metrics

Track your overnight session:

  • All commits have passing tests
  • Coverage maintained or improved
  • No linting errors
  • Clean conventional commit messages
  • Features fully implemented and documented

Pro Tips

  1. Start with clear goals - Specific, testable objectives
  2. Have existing tests - At least 1 passing test before starting
  3. Use TDD - Write tests first, then implementation

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Overnight Setup?

Overnight Setup is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Setup overnight development with Git hooks for autonomous TDD sessions

How do I install Overnight Setup in Claude Code?

Download overnight-setup.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.

Can I use Overnight Setup in Claude Cowork?

Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.

Is Overnight Setup safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.