Primary finding
Remote custom-skill scan hardcodes ref=main, breaking forks with non-main default branches
mediumbughigh
- skills/v4-readiness/SKILL.md:42
- skills/v4-readiness/SKILL.md:117
In remote mode the spec instructs listing custom skills via the GitHub Contents API with ?ref=main. Repositories whose default branch is not named main (e.g., master or a custom branch) will return incorrect or missing data, causing custom-skill detection to be incomplete or wrong. Elsewhere in the same section, the table omits a ref parameter, creating inconsistent behavior.
Recommendation
Do not hardcode ref=main. Either omit ref to use the repository default branch, or dynamically query the repo’s default_branch via gh api repos/${TARGET} and pass that value consistently for all remote reads. Document the branch used for remote audits.