Install
npx skillscat add nothinginfinity/cairnstone-v6/skills-github-repo-file-read Install via the SkillsCat registry.
SKILL.md
Skill: GitHub repository file read
Use this skill when the task depends on the actual contents of a file in a GitHub repository.
- Establish the exact owner, repository, path, and intended ref. Do not silently switch repositories or branches.
- Prefer the narrow Contents API read for a known path. Use OpenAPI search only when the endpoint shape is uncertain.
- Preserve the returned blob SHA and the requested/ref context as evidence. When an immutable commit is required, resolve the branch or tag to a full commit SHA before treating it as provenance.
- Treat a 404 as evidence that the path/ref combination was not found; do not replace it with a fuzzy repository search unless the user actually asked to discover a path.
- For source-review or patch work, re-read or use a SHA guard before mutation so stale content is not overwritten.
This skill is read-first. It does not grant mutation authority.