housekeeping

Solid

session-indexer repo health check. Universal hygiene + Go vet/fmt + project-specific checks. Usage: /housekeeping

AI & Automation 30 stars 1 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 83/100

Stars 20%
50
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Skill: /housekeeping # Repo Health Check --- ## OVERVIEW ``` /housekeeping → run checks → Markdown table: Check | Status | Detail → Summary: N passed, M failed ``` Read-only. Never modifies files, never commits, never opens a PR. Run any time for a hygiene snapshot. Any FAIL = exit signal to fix before shipping. --- ## UNIVERSAL CHECKS ### Check 1 — Stale Local Branches **Goal:** ≤ 10 local branches after pruning remote-tracking refs. ```bash git remote prune origin 2>&1 | tail -3 LOCAL_COUNT=$(git branch | grep -v '^\*' | wc -l | tr -d ' ') ``` **Pass:** `LOCAL_COUNT <= 10` **Fail:** "N local branches — prune merged ones" Cleanup tip: ```bash git branch --merged main | grep -v 'main\|^\*' # delete with: git branch -d <branch> ``` --- ### Check 2 — Debug Output in Source **Goal:** Zero debug/print statements in production source (excluding test files). Auto-detect language and run the appropriate check: ```bash # JavaScript/TypeScript COUNT=$(grep -r --include="*.ts" --include="*.tsx" --include="*.js" \ --exclude="*.test.*" --exclude="*.spec.*" \ -l "console\.log(" src/ 2>/dev/null | wc -l | tr -d ' ') # Go COUNT=$(grep -r --include="*.go" \ --exclude="*_test.go" \ -l "fmt\.Println\|fmt\.Printf\|fmt\.Print(" . 2>/dev/null \ | grep -v "_test.go" | wc -l | tr -d ' ') # Python COUNT=$(grep -r --include="*.py" \ -l "^\s*print(" . 2>/dev/null \ | grep -v "test_\|_test.py" | wc -l | tr -d ' ') ``` Run whichever a...

Details

Author
valpere
Repository
valpere/session-indexer
Created
2 months ago
Last Updated
today
Language
Go
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category