搜索

PythonReactSEOPDF
GitHub Skill

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.

jfriisj☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

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.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!