010-archive/backups-20251108/plugin-enhancements/plugin-backups/overnight-dev_20251019_120025/skills/skill-adapter/SKILL.md
```markdown --- name: overnight-development description: | Automates software development overnight using Git hooks to enforce test-driven development (TDD). This skill should be used when Claude needs to build new features, refactor existing code, or fix bugs autonomously, ensuring all changes are fully tested and meet specified quality standards. Use when the user mentions "overnight development", "autonomous coding", or asks about TDD workflows and Git hooks. This skill leverages Git
npx skillsauth add intent-solutions-io/plugins-nixtla 010-archive/backups-20251108/plugin-enhancements/plugin-backups/overnight-dev_20251019_120025/skills/skill-adapterInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
---
name: overnight-development
description: |
Automates software development overnight using Git hooks to enforce test-driven development (TDD).
This skill should be used when Claude needs to build new features, refactor existing code, or fix bugs autonomously,
ensuring all changes are fully tested and meet specified quality standards. Use when the user mentions "overnight development",
"autonomous coding", or asks about TDD workflows and Git hooks. This skill leverages Git hooks to block commits until all tests pass,
enforcing a rigorous TDD process and ensuring high-quality, production-ready code.
license: "MIT"
metadata:
author: "Intent Solutions IO"
version: "1.0.0"
category: "productivity"
allowed-tools:
- Read
- Write
- Bash
---
# 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-coach` agent.
## Workflow
### Phase 1: Project Setup and Configuration
To prepare the project for overnight development:
1. **Verify Prerequisites:** Ensure the project is a Git repository, has a configured test framework, and includes at least one passing test.
```bash
git init
npm install --save-dev jest # Example for Node.js
```
2. **Install the Plugin:** Add the Claude Code Plugin marketplace and install the `overnight-dev` plugin.
```bash
/plugin marketplace add jeremylongshore/claude-code-plugins
/plugin install overnight-dev@claude-code-plugins-plus
```
3. **Run Setup Command:** Execute the `/overnight-setup` command to create necessary Git hooks and configuration files.
```bash
/overnight-setup
```
### Phase 2: Task Definition and Planning
To define the task for the overnight session:
1. **Define a Clear Goal:** Specify a clear and testable goal for the overnight session, such as "Build user authentication with JWT (90% coverage)."
```text
Task: Build user authentication with JWT (90% coverage)
Success: All tests pass, 90%+ coverage, fully documented
```
2. **Start Coding:** Begin implementing the feature by writing tests first, following the TDD approach.
```javascript
// Example test case (Node.js with Jest)
it('should authenticate a user with valid credentials', async () => {
// Test implementation
});
```
3. **Attempt to Commit:** Try to commit the changes, which will trigger the Git hooks and run the tests.
```bash
git commit -m "feat: implement user authentication"
```
### Phase 3: Autonomous Development and Debugging
To allow Claude to work autonomously:
1. **Git Hooks Enforcement:** The Git hooks will block the commit if any tests fail, providing Claude with the error messages.
```text
Overnight Dev: Running pre-commit checks...
Running linting...
Linting passed
Running tests...
12 tests failing
Commit blocked!
```
2. **Automated Debugging:** Claude analyzes the error messages, identifies the issues, and attempts to fix the code.
```text
Claude: Fixing test failures in user authentication module.
```
3. **Retry Commits:** Claude retries the commit after making the necessary fixes, repeating the process until all tests pass.
```bash
git commit -m "fix: address test failures in user authentication"
```
### Phase 4: Progress Tracking and Completion
To monitor the progress and finalize the session:
1. **Monitor Progress:** Track the progress of the overnight session by viewing the log file.
```bash
cat .overnight-dev-log.txt
```
2. **Review Results:** Wake up to fully tested code, complete features, and a clean Git history.
```text
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
```
3. **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:
```bash
./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
For detailed configuration options, load:
For best practices on writing effective tests, load:
Available templates:
assets/commit-template.txt - Template for generating commit messages.assets/readme-template.md - Template for generating README files.User request: "Implement JWT authentication with 90% test coverage overnight."
Workflow:
User request: "Refactor the database layer to use the repository pattern overnight."
Workflow:
User request: "Fix the bug in payment processing that causes incorrect amounts to be charged overnight."
Workflow:
overnight-dev-coach agent for guidance and support.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
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
}
tools
This skill assists with managing database sharding strategies. It is activated when the user needs to implement horizontal database sharding to scale beyond single-server limitations. The skill supports designing sharding strategies, distributing data across multiple database instances, and implementing consistent hashing, automatic rebalancing, and cross-shard query coordination. Use this skill when the user mentions "database sharding", "sharding implementation", "scale database", or "horizontal partitioning". The plugin helps design and implement sharding for high-scale applications.
tools
This skill enables Claude to perform comprehensive database security scans using the database-security-scanner plugin. It is triggered when the user requests a security assessment of a database, including identifying vulnerabilities like weak passwords, SQL injection risks, and insecure configurations. The skill leverages OWASP guidelines to ensure thorough coverage and provides remediation suggestions. Use this skill when the user asks to "scan database security", "check database for vulnerabilities", "perform OWASP compliance check on database", or "assess database security posture". The plugin supports PostgreSQL and MySQL.
testing
This skill enables Claude to design and visualize database schemas. It leverages normalization guidance (1NF through BCNF), relationship mapping, and ERD generation to create efficient and well-structured databases. Use this skill when the user requests to "design a database schema", "create a database model", "generate an ERD", "normalize a database", or needs help with "database design best practices". The skill is triggered by terms like "database schema", "ERD diagram", "database normalization", and "relational database design".
tools
This skill enables Claude to manage database replication, failover, and high availability configurations using the database-replication-manager plugin. It is designed to assist with tasks such as setting up master-slave replication, configuring automatic failover, monitoring replication lag, and implementing read scaling. Use this skill when the user requests help with "database replication", "failover configuration", "high availability", "replication lag", or "read scaling" for databases like PostgreSQL or MySQL. The plugin facilitates both physical and logical replication strategies.