Documentation
¶
Overview ¶
Package skillref checks what a skill cites against a repository (skills design D14): every repository path written in backticks, and every task or make target in backticks or a fenced code block, found or missing at one commit. It informs a reviewer and never blocks. It reads only through Source, so it is Kubernetes-free and pure.
Index ¶
Constants ¶
const MaxCites = 64
MaxCites bounds the citations one check reads, and so its forge calls.
const (
MaxOutside = 20
)
MaxOutside bounds the files outside a skill directory one comment lists; maxShown clips each, so the comment stays far below GitHub's 65,536 characters whatever the pull request changes.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
Result is one citation's outcome. Unchecked: the read failed, or nothing defines targets of its kind (no Taskfile, no Makefile).
type Source ¶
type Source interface {
// Exists reports whether path is a file or a directory at the commit.
Exists(ctx context.Context, path string) (bool, error)
// Text is path's text at the commit; found is false when it is absent.
Text(ctx context.Context, path string) (text string, found bool, err error)
}
Source reads the repository at the commit being checked.