Overnight Setup
Setup overnight development with Git hooks for autonomous TDD sessions
- Type
- Slash Command
- Repository
- jeremylongshore/tons-of-skills-marketplace
- 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
- 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.
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.
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:
- Installs Git Hooks - pre-commit and commit-msg hooks
- Creates Config - .overnight-dev.json configuration file
- 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:
- Define your goal:
Task: Implement user authentication with JWT
Success: All tests pass, coverage > 85%- Start coding:
- Write tests first (TDD)
- Implement features
- Commit frequently
- Let the hooks keep you honest
- 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 -- --fixWhat Happens During Overnight Sessions
- You write code → Claude writes tests and implementation
- You try to commit → Hooks run tests automatically
- Tests fail → Claude debugs and fixes
- Tests pass → Commit succeeds
- Repeat → Until feature is complete
- 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
- Start with clear goals - Specific, testable objectives
- Have existing tests - At least 1 passing test before starting
- 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
- Manager Use this agent when the user requests an action that should trigger 'documentation' behavior. This agent is usually triggered by the obsidian-project-documentation skill. Subagent · jeremylongshore/tons-of-skills-marketplace
- Market Movers Scanner Scan for top market movers - gainers, losers, volume spikes, and unusual activity Plugin · jeremylongshore/tons-of-skills-marketplace
- Manage Api Versions Manage API versions with proper migration strategies Slash Command · jeremylongshore/tons-of-skills-marketplace
- Market Price Tracker Real-time market price tracking with multi-exchange feeds and advanced alerts Plugin · jeremylongshore/tons-of-skills-marketplace
- Pack Smart packing list generator based on destination weather, activities, trip Slash Command · jeremylongshore/tons-of-skills-marketplace
- Orchestrate Orchestrate complex test workflows with smart execution Slash Command · jeremylongshore/tons-of-skills-marketplace
- Partitioning Design and implement table partitioning strategies for massive datasets Slash Command · jeremylongshore/tons-of-skills-marketplace
- Optimize Yield Find and optimize DeFi yield farming opportunities across multiple protocols Slash Command · jeremylongshore/tons-of-skills-marketplace