pygta-validate
Run validation across the workspace root and configured external repos with changes.
- License 许可
- MIT
- 最近更新
- 2026-07-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- pygta-validate
- description
- Run validation across the workspace root and configured external repos with changes.
03 SKILL.md 正文
Run validation only where there are local changes, treating the workspace root and each
repository under external/ as separate git repositories.
Use CODING_GUIDELINES.md for the meaning of each validation tier and repos.toml as the source of truth for configured external checkouts.
Procedure
-
Discover changed repositories before running any checks.
- Check the workspace root repo with
git status --porcelainfrom the workspace root. - Read
repos.tomlto find configured repositories underexternal/. - For each configured external repo that exists locally, check it independently with
git -C external/<directory> status --porcelain. - Do not rely on the workspace-root git status to detect changes under
external/, becauseexternal/is ignored by the root repository and nested repos are tracked separately.
- Check the workspace root repo with
-
Build the validation plan from the dirty repos.
- If the workspace root repo has changes, run
pre-commit run --all-filesfrom the workspace root. - If
external/pyglotaranhas changes, runpre-commit run --all-filesinexternal/pyglotaran. - If
external/pyglotaran-extrashas changes, runpre-commit run --all-filesinexternal/pyglotaran-extras. - If
pygta-local-extrasfiles changed in the workspace root repo, also runuv run pytestfrompygta-local-extras. - Ignore configured external repos that are absent locally; report them as not checked rather than failed.
- If the workspace root repo has changes, run
-
Run all applicable validations.
- Continue through every relevant repo even if one validation fails, so the user gets one complete report.
- If no relevant repo has changes, report
nothing to validateand stop.
-
Report results in a fixed summary.
- Repositories checked
- Commands run
- Pre-commit pass/fail per repo
pygta-local-extrastest pass/fail when tests were run- Missing checkouts or setup problems separately from lint/test failures
Notes
- This skill exists to choose the right validations for a multi-repo workspace, not to restate the docs.
- The workspace root repo and repos under
external/must be treated as separate SCM units. pygta-local-extrastests are only required when that package changed.- Missing
pre-commit,uv, or absent external checkouts are environment/setup issues and should be reported distinctly.
04 同仓库更多 Skills
review-skill
Reviews, audits, and scores skill files (SKILL.md) for quality, completeness, frontmatter correctness, discoverability, and anti-patterns. Use when asked to review, audit, check, or improve a skill file, or when a user says "is this skill good?", "check my skill", or pastes a SKILL.md for feedback. Also use proactively after writing a new skill — self-apply as a final quality gate. Don't use for reviewing general Markdown documentation, README files, or code files that are not skill definitions.
pygta-project
Scaffold a new pyglotaran analysis project with standard folder structure and starter notebook. Don't use when modifying an existing project or changing the scaffold script itself