Skip to main content

Task Reference

Nightshift includes 59 built-in tasks organized into 6 categories. Each task has a cost tier, risk level, and default cooldown interval.

Use nightshift task list to browse tasks, or nightshift task show <name> to see details for a specific task.

PR Tasks — "It's done — here's the PR"

Fully formed, review-ready artifacts. These tasks create branches and open pull requests.

TaskNameDescriptionCostRiskCooldown
lint-fixLinter FixesAutomatically fix linting errors and style issuesLowLow24h
bug-finderBug Finder & FixerIdentify and fix potential bugs in codeHighMedium72h
auto-dryAuto DRY RefactoringIdentify and refactor duplicate codeHighMedium7d
skill-groomSkill GroomingAudit and update project-local agent skills to match the current codebaseHighMedium7d
api-contract-verifyAPI Contract VerificationVerify API contracts match implementationMediumLow7d
backward-compatBackward-Compatibility ChecksCheck and ensure backward compatibilityMediumLow7d
build-optimizeBuild Time OptimizationOptimize build configuration for faster buildsHighMedium7d
docs-backfillDocumentation BackfillerGenerate missing documentationLowLow7d
commit-normalizeCommit Message NormalizerStandardize commit message formatLowLow24h
changelog-synthChangelog SynthesizerGenerate changelog from commitsLowLow7d
release-notesRelease Note DrafterDraft release notes from changesLowLow7d
adr-draftADR DrafterDraft Architecture Decision RecordsMediumLow7d
td-reviewTD Review SessionReview open td reviews, fix obvious bugs, create tasks for bigger issuesHighMedium72h
note

td-review is disabled by default and must be explicitly opted in via tasks.enabled. It requires the td integration to be enabled (see Integrations).

Analysis Tasks — "Here's what I found"

Completed analysis with conclusions. These tasks produce reports without modifying code.

TaskNameDescriptionCostRiskCooldown
doc-driftDoc Drift DetectorDetect documentation that's out of sync with codeMediumLow72h
semantic-diffSemantic Diff ExplainerExplain the semantic meaning of code changesMediumLow72h
dead-codeDead Code DetectorFind unused code that can be removedMediumLow72h
dependency-riskDependency Risk ScannerAnalyze dependencies for security and maintenance risksMediumLow72h
test-gapTest Gap FinderIdentify areas lacking test coverageMediumLow72h
test-flakinessTest Flakiness AnalyzerIdentify and analyze flaky testsMediumLow72h
logging-auditLogging Quality AuditorAudit logging for completeness and qualityMediumLow72h
metrics-coverageMetrics Coverage AnalyzerAnalyze metrics instrumentation coverageMediumLow72h
perf-regressionPerformance Regression SpotterIdentify potential performance regressionsMediumLow72h
cost-attributionCost Attribution EstimatorEstimate resource costs by componentMediumLow72h
security-footgunSecurity Foot-Gun FinderFind common security anti-patternsMediumLow72h
pii-scannerPII Exposure ScannerScan for potential PII exposureMediumLow72h
privacy-policyPrivacy Policy Consistency CheckerCheck code against privacy policy claimsMediumLow72h
schema-evolutionSchema Evolution AdvisorAnalyze database schema changesMediumLow72h
event-taxonomyEvent Taxonomy NormalizerNormalize event naming and structureMediumLow72h
roadmap-entropyRoadmap Entropy DetectorDetect roadmap scope creep and driftMediumLow72h
bus-factorBus-Factor AnalyzerAnalyze code ownership concentrationMediumLow72h
knowledge-siloKnowledge Silo DetectorIdentify knowledge silos in the teamMediumLow72h

Options Tasks — "Here are options"

These tasks surface judgment calls, tradeoffs, and design forks for human review.

TaskNameDescriptionCostRiskCooldown
task-groomerTask GroomerRefine and clarify task definitionsMediumLow7d
guide-improverGuide/Skill ImproverSuggest improvements to guides and skillsMediumLow7d
idea-generatorIdea GeneratorGenerate improvement ideas for the codebaseMediumLow7d
tech-debt-classifyTech-Debt ClassifierClassify and prioritize technical debtMediumLow7d
why-annotatorWhy Does This Exist AnnotatorDocument the purpose of unclear codeMediumLow7d
edge-case-enumEdge-Case EnumeratorEnumerate potential edge casesMediumLow7d
error-msg-improveError-Message ImproverSuggest better error messagesMediumLow7d
slo-suggesterSLO/SLA Candidate SuggesterSuggest SLO/SLA candidatesMediumLow7d
ux-copy-sharpenerUX Copy SharpenerImprove user-facing textMediumLow7d
a11y-lintAccessibility LintingNon-checkbox accessibility analysisMediumLow7d
service-advisorShould This Be a Service AdvisorAnalyze service boundary decisionsHighMedium7d
ownership-boundaryOwnership Boundary SuggesterSuggest code ownership boundariesMediumLow7d
oncall-estimatorOncall Load EstimatorEstimate oncall load from code changesMediumLow7d

Safe Tasks — "I tried it safely"

Required execution or simulation but left no lasting side effects.

TaskNameDescriptionCostRiskCooldown
migration-rehearsalMigration Rehearsal RunnerRehearse migrations without side effectsVery HighHigh14d
contract-fuzzerIntegration Contract FuzzerFuzz test integration contractsVery HighHigh14d
golden-pathGolden-Path RecorderRecord golden path test scenariosHighMedium14d
perf-profilePerformance Profiling RunsRun performance profilingHighMedium14d
allocation-profileAllocation/Hot-Path ProfilingProfile memory allocation and hot pathsHighMedium14d

Map Tasks — "Here's the map"

Pure context laid out cleanly. These tasks document and visualize system structure.

TaskNameDescriptionCostRiskCooldown
visibility-instrumentVisibility InstrumentorInstrument code for observabilityHighMedium7d
repo-topologyRepo Topology VisualizerVisualize repository structureMediumLow7d
permissions-mapperPermissions/Auth Surface MapperMap permissions and auth surfacesMediumLow7d
data-lifecycleData Lifecycle TracerTrace data lifecycle through the systemMediumLow7d
feature-flag-monitorFeature Flag Lifecycle MonitorMonitor feature flag usage and lifecycleMediumLow7d
ci-signal-noiseCI Signal-to-Noise ScorerScore CI signal vs noise ratioMediumLow7d
historical-contextHistorical Context SummarizerSummarize historical context of codeMediumLow7d

Emergency Tasks — "For when things go sideways"

Artifacts you hope to never need. These tasks prepare for incident response.

TaskNameDescriptionCostRiskCooldown
runbook-genRunbook GeneratorGenerate operational runbooksHighMedium30d
rollback-planRollback Plan GeneratorGenerate rollback plans for changesHighMedium30d
postmortem-genIncident Postmortem Draft GeneratorDraft incident postmortem documentsHighMedium30d

Cost Tiers

TierToken RangeTask Count
Low10–50k tokens5
Medium50–150k tokens39
High150–500k tokens13
Very High500k+ tokens2

Risk Levels

LevelDescriptionTask Count
LowSafe to run autonomously44
MediumMay modify code; review recommended13
HighSignificant execution; careful review required2