overnight-development
About
This skill automates overnight software development by using Git hooks to enforce test-driven development (TDD), ensuring all code changes are tested before commits. It enables autonomous feature building, refactoring, and bug fixing while maintaining quality standards through automated debugging until tests pass. Use it when you need Claude to work independently on code improvements with rigorous TDD enforcement.
Quick Install
Claude Code
Recommended/plugin add https://github.com/jeremylongshore/claude-code-plugins-plusgit clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/overnight-developmentCopy and paste this command in Claude Code to install this skill
Documentation
Overnight Development
Overview
This skill automates software development overnight by leveraging Git hooks to enforce test-driven development (TDD). It ensures that all code changes are fully tested and meet specified quality standards before being committed. This approach allows Claude to work autonomously, building new features, refactoring existing code, or fixing bugs while adhering to a rigorous TDD process.
Core Capabilities
- Enforces test-driven development (TDD) using Git hooks.
- Automates debugging and code fixing until all tests pass.
- Tracks progress and logs activities during overnight sessions.
- Supports flexible configuration for various testing frameworks and languages.
- Provides guidance and support through the
overnight-dev-coachagent.
Workflow
Phase 1: Project Setup and Configuration
To prepare the project for overnight development:
-
Verify Prerequisites: Ensure the project is a Git repository, has a configured test framework, and includes at least one passing test.
git init npm install --save-dev jest # Example for Node.js -
Install the Plugin: Add the Claude Code Plugin marketplace and install the
overnight-devplugin./plugin marketplace add jeremylongshore/claude-code-plugins /plugin install overnight-dev@claude-code-plugins-plus -
Run Setup Command: Execute the
/overnight-setupcommand to create necessary Git hooks and configuration files./overnight-setup
Phase 2: Task Definition and Planning
To define the task for the overnight session:
-
Define a Clear Goal: Specify a clear and testable goal for the overnight session, such as "Build user authentication with JWT (90% coverage)."
Task: Build user authentication with JWT (90% coverage) Success: All tests pass, 90%+ coverage, fully documented -
Start Coding: Begin implementing the feature by writing tests first, following the TDD approach.
// Example test case (Node.js with Jest) it('should authenticate a user with valid credentials', async () => { // Test implementation }); -
Attempt to Commit: Try to commit the changes, which will trigger the Git hooks and run the tests.
git commit -m "feat: implement user authentication"
Phase 3: Autonomous Development and Debugging
To allow Claude to work autonomously:
-
Git Hooks Enforcement: The Git hooks will block the commit if any tests fail, providing Claude with the error messages.
Overnight Dev: Running pre-commit checks... Running linting... Linting passed Running tests... 12 tests failing Commit blocked! -
Automated Debugging: Claude analyzes the error messages, identifies the issues, and attempts to fix the code.
Claude: Fixing test failures in user authentication module. -
Retry Commits: Claude retries the commit after making the necessary fixes, repeating the process until all tests pass.
git commit -m "fix: address test failures in user authentication"
Phase 4: Progress Tracking and Completion
To monitor the progress and finalize the session:
-
Monitor Progress: Track the progress of the overnight session by viewing the log file.
cat .overnight-dev-log.txt -
Review Results: Wake up to fully tested code, complete features, and a clean Git history.
7 AM: You wake up to: - 47 passing tests (0 failing) - 94% test coverage - Clean conventional commit history - Fully documented JWT authentication - Production-ready code -
Session Completion: The session completes when all tests pass, the code meets the specified quality standards, and the changes are committed.
Using Bundled Resources
Scripts
To automate the setup process, use the overnight-setup.sh script:
./scripts/overnight-setup.sh
To track the progress of the overnight session, use the progress-tracker.py script:
./scripts/progress-tracker.py --log .overnight-dev-log.txt
References
For detailed configuration options, load:
For best practices on writing effective tests, load:
Assets
Available templates:
assets/commit-template.txt- Template for generating commit messages.assets/readme-template.md- Template for generating README files.
Examples
Example 1: Building JWT Authentication
User request: "Implement JWT authentication with 90% test coverage overnight."
Workflow:
- Claude writes failing authentication tests (TDD).
- Claude implements JWT signing (tests still failing).
- Claude debugs token generation (commit blocked, keeps trying).
- Tests pass! Commit succeeds.
- Claude adds middleware (writes tests first).
- Integration tests (debugging edge cases).
- All tests green (Coverage: 94%).
- Claude adds docs, refactors, still green.
- Session complete.
Example 2: Refactoring Database Layer
User request: "Refactor the database layer to use the repository pattern overnight."
Workflow:
- Claude analyzes existing tests to ensure no regression.
- Claude implements the repository pattern.
- Tests are run; some fail due to changes in data access.
- Claude updates tests to align with the new repository pattern.
- All tests pass; commit succeeds.
- Claude documents the refactored database layer.
- Session complete.
Example 3: Fixing a Bug in Payment Processing
User request: "Fix the bug in payment processing that causes incorrect amounts to be charged overnight."
Workflow:
- Claude reproduces the bug and writes a failing test case.
- Claude analyzes the code and identifies the root cause of the bug.
- Claude fixes the bug and runs the tests.
- The failing test case now passes; all other tests also pass.
- Commit succeeds.
- Claude adds a comment to the code explaining the fix.
- Session complete.
Best Practices
- Ensure that the task is well-defined and testable.
- Follow the TDD approach by writing tests before implementing features.
- Monitor the progress of the overnight session by viewing the log file.
- Configure the Git hooks and settings appropriately for the project.
- Use the
overnight-dev-coachagent for guidance and support.
Troubleshooting
Issue: Hooks are not running.
Solution: Make sure the hooks are executable:
chmod +x .git/hooks/pre-commit
chmod +x .git/hooks/commit-msg
Issue: Tests are failing immediately.
Solution: Ensure you have at least one passing test:
npm test # Should see: Tests passed
Issue: Lint errors are blocking everything.
Solution: Enable auto-fix:
{
"autoFix": true
}
Or fix manually:
npm run lint -- --fix
Integration
This skill integrates with Git repositories and various testing frameworks. It uses Git hooks to enforce TDD and ensure that all code changes are fully tested. The overnight-dev-coach agent provides guidance and support throughout the process.
# Example integration with Jest (Node.js)
{
"testCommand": "npm test -- --coverage --watchAll=false",
"lintCommand": "npm run lint",
"autoFix": true
}
# Example integration with pytest (Python)
{
"testCommand": "pytest --cov=. --cov-report=term-missing",
"lintCommand": "flake8 . && black --check .",
"autoFix": false
}
## Prerequisites
- Access to project files in {baseDir}/
- Required tools and dependencies installed
- Understanding of skill functionality
- Permissions for file operations
## Instructions
1. Identify skill activation trigger and context
2. Gather required inputs and parameters
3. Execute skill workflow systematically
4. Validate outputs meet requirements
5. Handle errors and edge cases appropriately
6. Provide clear results and next steps
## Output
- Primary deliverables based on skill purpose
- Status indicators and success metrics
- Generated files or configurations
- Reports and summaries as applicable
- Recommendations for follow-up actions
## Error Handling
If execution fails:
- Verify prerequisites are met
- Check input parameters and formats
- Validate file paths and permissions
- Review error messages for root cause
- Consult documentation for troubleshooting
## Resources
- Official documentation for related tools
- Best practices guides
- Example use cases and templates
- Community forums and support channels
GitHub Repository
Related Skills
sglang
MetaSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
evaluating-llms-harness
TestingThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
Algorithmic Art Generation
MetaThis skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.
webapp-testing
TestingThis Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.
