Git repository tag checkout
Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v1/skills/git-repository-tag-checkout
Curated, evidence-grounded skill and software-tool collections for scientific AI agents, generated by the AgenticScienceBuilder
npx -y skills add HolobiomicsLab/asb-skill-collections --skill git-repository-tag-checkoutAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 14 stars14 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when when you need to reproduce or validate a specific historical release artifact (e.g., a Semantic Release v1.0.
The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.6 KB, as published. Nobody here has run it
git-repository-tag-checkout
Summary
Retrieve a specific versioned snapshot of a software repository by checking out a git tag, ensuring reproducibility of a particular release state for validation or replication workflows.
When to use
When you need to reproduce or validate a specific historical release artifact (e.g., a Semantic Release v1.0.0 publication), verify the exact source code state at a tagged version, or confirm that generated outputs (checksums, version metadata, file contents) match a reference release record from a particular date.
When NOT to use
- When you need to work with the latest development code (use branch checkout instead, e.g.,
mainordevelop). - When the repository does not use semantic versioning or git tags; fallback to commit hash checkout if necessary.
- When validating future commits or unreleased changes; tag checkout freezes state to a past release.
Inputs
- Git repository local or remote reference (GitHub URL or local path)
- Version tag identifier (string, e.g., 'v1.0.0')
Outputs
- Checked-out working directory at the tagged commit state
- Access to source code, build scripts, and configuration files at that release point
How to apply
Use git checkout with the target version tag (e.g., v1.0.0) to move the working directory to that tagged commit. This isolates the exact source tree and configuration state that produced the reference release. Once checked out, you can then execute build or release tools (e.g., Semantic Release) using the locked-in source and configuration, allowing downstream artifact generation and validation steps to confirm that outputs (version numbers, file contents, checksums) match the reference GitHub release record. This is essential when validating reproducibility across time or confirming that automated release processes are idempotent.
Related tools
- Semantic Release (Generates versioned artifacts, release notes, and metadata after source checkout; validates generated outputs against the reference release record)
- git (Version control command-line tool used to retrieve and check out the tagged repository state)
Examples
git checkout v1.0.0
Evaluation signals
- Working directory HEAD is at the correct commit SHA corresponding to the named tag (verify with
git rev-parse HEADandgit show-ref tags/<tag>). - Source code, build configuration, and CI/CD scripts match the reference release snapshot (visual or hash-based file inspection).
- Subsequent artifact generation (e.g., via Semantic Release) produces version numbers, file contents, and checksums that match the reference GitHub release record dated 2025-07-29.
- No uncommitted changes or detached-HEAD warnings that would indicate incomplete checkout or state mismatch.
- Release metadata (e.g., git tags, release notes) can be inspected and correlated with the reference GitHub release page.
Limitations
- Tag must exist in the repository; non-existent tags will fail with a git error.
- Checking out a tag may result in a detached HEAD state, which is appropriate for read-only validation but requires explicit branch creation if further commits are intended.
- Network connectivity is required if checking out from a remote repository; local clones must already exist or be freshly fetched.
- Does not automatically resolve dependencies or build artifacts; downstream tools (e.g., Semantic Release, package managers) must handle installation.
Evidence
- [other] Retrieve the QC4Metabolomics repository at the v1.0.0 git tag.: "Retrieve the QC4Metabolomics repository at the v1.0.0 git tag"
- [other] Validate the generated release artifacts and metadata against the reference GitHub release record dated 2025-07-29 to confirm version number, file contents, and checksums match.: "Validate the generated release artifacts and metadata against the reference GitHub release record dated 2025-07-29 to confirm version number, file contents, and checksums match"