Your codebase improves overnight. Nightshift is a Claude Code plugin that sets up AI agents to work on your GitHub repositories via GitHub Actions.
Nightshift provides pre-built agents that run as scheduled GitHub Actions workflows using the official Claude Code Action. Agents can:
- Review PRs — automated code review on every pull request
- Audit security — weekly scans for vulnerabilities and OWASP top 10
- Update dependencies — check for outdated packages, create update PRs
- Resolve issues — pick up labeled issues and create fix PRs
- Detect dead code — find unused exports, orphaned files, dead dependencies
- Audit READMEs — verify documentation matches actual codebase
/plugin marketplace add klefix/nightshift
/plugin install nightshift@nightshiftcd your-project
claude
> /nightshift:setup-projectClaude creates a GitHub Project board, enables the wiki, adds labels, and optionally protects main.
> /nightshift:setup-agentsClaude walks you through picking agents, configuring triggers (PR, cron, label), and scaffolds everything into your repo.
Go to your repo's Settings > Secrets and variables > Actions and add ANTHROPIC_API_KEY.
Agents run automatically on their configured triggers. Customize any agent by editing its markdown file in .github/nightshift/agents/.
.github/
nightshift/
agents/
code-reviewer.md # agent prompt (edit to customize)
security-auditor.md
...
workflows/
nightshift-code-reviewer.yml # GitHub Actions workflow
nightshift-security-auditor.yml
...
- Agent files (
.md) define what the agent does — edit them to customize behavior - Workflow files (
.yml) define when the agent runs — triggers, schedule, permissions
| Agent | Default Trigger | Description |
|---|---|---|
code-reviewer |
On PR | Reviews code quality, leaves inline comments |
security-auditor |
Weekly (Sun 3am UTC) | Scans for vulnerabilities, creates issues |
dependency-updater |
Weekly (Mon 3am UTC) | Checks outdated deps, creates update PRs |
issue-resolver |
On nightshift label + nightly |
Picks up labeled issues, creates fix PRs |
dead-code-detector |
Weekly (Sun 3am UTC) | Finds unused code, creates issues |
readme-auditor |
Weekly (Sun 3am UTC) | Checks README accuracy, creates issues/PRs |
Change what an agent does: Edit the markdown file in .github/nightshift/agents/. The entire prompt is there — add constraints, change focus areas, adjust reporting style.
Change when an agent runs: Edit the on: section in .github/workflows/nightshift-*.yml. Any GitHub Actions trigger works — cron, PR events, labels, manual dispatch.
Add/remove agents: Just ask Claude in your repo: "Add the dead code detector, run it monthly" or "Remove the security auditor". Or run /nightshift:setup-agents again.
User-invoked commands for setup and configuration:
| Command | Purpose |
|---|---|
/nightshift:setup-project |
Repo infrastructure setup (project board, wiki, labels, branch protection) |
/nightshift:setup-agents |
Interactive agent setup and scaffolding |
When installed, Nightshift also provides Claude Code skills that Claude uses automatically based on context:
| Skill | When it activates |
|---|---|
| Creating issues | When creating, updating, or commenting on GitHub issues |
| Creating pull requests | When creating a pull request or submitting work for review |
| Writing wiki pages | When documenting architecture, onboarding guides, or runbooks |
| Writing project updates | After completing meaningful work (features merged, decisions made) |
| Writing ADRs | When making architectural decisions or choosing between approaches |
| Updating READMEs | When project structure, setup instructions, or capabilities change |
Nightshift uses the official anthropics/claude-code-action GitHub Action. Each agent is a workflow that:
- Checks out your repo
- Runs Claude Code with the agent's prompt
- Claude reads the prompt file, analyzes the repo, and takes action (comments, issues, PRs)
Everything runs on GitHub's infrastructure — no self-hosting, no Docker, no database.