version-audit-quickscan
Quick scan for version strings across common files (README, pyproject, requirements, package manifests) to avoid release blockers from inconsistent versions. Use before tagging or publishing.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
Skill Instructions
Inputs
-
ROOT(string, optional): directory to scan (default:.) -
EXTRA_PATTERNS(string, optional): additional grep regex patterns (pipe-separated)
Procedure
set -euo pipefail
root="${ROOT:-.}"
# Common version patterns across ecosystems.
# NOTE: keep it broad; the goal is to surface candidates for human review.
base_patterns='(version\s*[=:]\s*["\x27]?[0-9]+\.[0-9]+\.[0-9]+|__version__\s*=\s*["\x27][0-9]+\.[0-9]+\.[0-9]+|v[0-9]+\.[0-9]+\.[0-9]+)'
extra_patterns="${EXTRA_PATTERNS:-}"
pattern="$base_patterns"
if [ -n "$extra_patterns" ]; then
pattern="$pattern|$extra_patterns"
fi
# Focus on likely files; avoid huge vendor dirs.
# If needed, expand includes for your repo.
find "$root" \
-type f \
\( \
-name 'README.md' -o -name 'CHANGELOG.md' -o \
-name 'pyproject.toml' -o -name 'setup.py' -o -name 'setup.cfg' -o \
-name 'requirements*.txt' -o -name 'package.json' -o -name 'Cargo.toml' -o \
-name '*.yml' -o -name '*.yaml' \
\) \
-not -path '*/.venv/*' \
-not -path '*/venv/*' \
-not -path '*/venv_host/*' \
-not -path '*/node_modules/*' \
-not -path '*/.git/*' \
-print0 \
| xargs -0 -r grep -nE -- "$pattern" \
| sed -n '1,200p'
Acceptance Criteria
- You get a short list of candidate version strings to verify/update (not necessarily zero matches).
- Any release/version decision is cross-checked against the authoritative roadmap/plan/release artifacts.
Notes
- This is a discovery tool; it may include false positives.
- For large repos, consider narrowing file globs.
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-26
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!