Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Remove redundant nightly survey script (#2026)

Maximilian Roos8078c0e3dc8f
diff --git a/.claude/skills/running-tend/SKILL.md b/.claude/skills/running-tend/SKILL.md
index a523111ac..5ecddc839 100644
--- a/.claude/skills/running-tend/SKILL.md
+++ b/.claude/skills/running-tend/SKILL.md
@@ -115,4 +115,4 @@ maintenance, verify the month matches the current month and update it if stale.
## Per-Workflow References
- **PR review**: `@references/review-pr.md` — Rust idioms, documentation accuracy, duplication search
-- **Nightly sweep**: `@references/nightly-cleaner.md` — survey script, branch naming
+- **Nightly sweep**: `@references/nightly-cleaner.md` — branch naming
diff --git a/.claude/skills/running-tend/references/nightly-cleaner.md b/.claude/skills/running-tend/references/nightly-cleaner.md
index c8e5c6c33..b00293f86 100644
--- a/.claude/skills/running-tend/references/nightly-cleaner.md
+++ b/.claude/skills/running-tend/references/nightly-cleaner.md
@@ -1,11 +1,5 @@
# Nightly Sweep — Worktrunk Specifics
-## Survey Script
-
-```bash
-.github/scripts/todays-survey-files.sh
-```
-
## Survey Checklist
For each `.rs` file in the survey, also check:
diff --git a/.github/scripts/todays-survey-files.sh b/.github/scripts/todays-survey-files.sh
deleted file mode 100755
index c7d288a0e..000000000
--- a/.github/scripts/todays-survey-files.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env bash
-# Lists today's slice of repo files for the nightly rolling survey.
-#
-# Every tracked code/docs file is assigned to one of 28 buckets via a
-# deterministic hash of its path. Each day gets one bucket (unix day mod 28),
-# so the full repo is surveyed every 28 days.
-#
-# Output: one file path per line.
-
-set -euo pipefail
-
-# File extensions to survey. Override via arguments:
-# ./todays-survey-files.sh '*.py' '*.md' '*.yaml'
-# Defaults to common code/config extensions if no arguments given.
-if [ $# -gt 0 ]; then
- PATTERNS=("$@")
-else
- PATTERNS=('*.rs' '*.md' '*.toml' '*.yaml' '*.yml' '*.sh')
-fi
-
-CYCLE_LENGTH=28
-TODAY_BUCKET=$(( $(date +%s) / 86400 % CYCLE_LENGTH ))
-
-git ls-files -- "${PATTERNS[@]}" | while read -r f; do
- hash=$(echo -n "$f" | cksum | awk '{print $1}')
- bucket=$(( hash % CYCLE_LENGTH ))
- if [ "$bucket" -eq "$TODAY_BUCKET" ]; then
- echo "$f"
- fi
-done