1 parent 88498c2 commit 7179c73Copy full SHA for 7179c73
1 file changed
skills/openghost-skill/scripts/check-references.py
@@ -10,7 +10,9 @@
10
11
SKILL_ROOT = Path(__file__).resolve().parent.parent
12
SOURCE_FILES = [SKILL_ROOT / "SKILL.md", *sorted((SKILL_ROOT / "references").rglob("*.md"))]
13
-ROOT_REFERENCE = re.compile(r"(?<![A-Za-z0-9_./-])((?:references|scripts|assets)/[A-Za-z0-9_./-]+)")
+# Canonical source paths are written as inline code. Requiring the backticks avoids
14
+# treating prose such as "relative scripts/forms" as a packaged skill reference.
15
+ROOT_REFERENCE = re.compile(r"`((?:references|scripts|assets)/[A-Za-z0-9_./-]+)`")
16
MARKDOWN_LINK = re.compile(r"\[[^]]+\]\(([^)]+)\)")
17
18
0 commit comments