MCPcopy Create free account
hub / github.com/garrytan/gstack / isRepoRootSymlink

Function isRepoRootSymlink

scripts/skill-check.ts:20–26  ·  view source on GitHub ↗
(candidateDir: string)

Source from the content-addressed store, hash-verified

18const ROOT_REALPATH = fs.realpathSync(ROOT);
19
20function isRepoRootSymlink(candidateDir: string): boolean {
21 try {
22 return fs.realpathSync(candidateDir) === ROOT_REALPATH;
23 } catch {
24 return false;
25 }
26}
27
28// Find all SKILL.md files (dynamic discovery — no hardcoded list)
29const SKILL_FILES = discoverSkillFiles(ROOT);

Callers 1

skill-check.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected