Skip to content

The meta-skill that builds and improves all your skills, including itself. Watches your work sessions (autonomous or human-led), captures patterns, corrections and judgement calls, and turns them into skill improvements and new skill candidates for your review. Practical application of the Augmented Expertise methodology. Open source: CC BY 4.0.

Resolve the bundle path before comparing names in the gate script

Eoghan Henn4ac41fe55b18
diff --git a/scripts/validate-skill-bundle.py b/scripts/validate-skill-bundle.py
index 98fd93f..cc05248 100644
--- a/scripts/validate-skill-bundle.py
+++ b/scripts/validate-skill-bundle.py
@@ -48,7 +48,10 @@ def folded_description(fm):
def check_dir(skill_dir, fails):
- skill_dir = pathlib.Path(skill_dir)
+ # Resolve before comparing names: Path('.').name is '' for a relative
+ # argument naming the current directory, which false-fails a correct
+ # bundle and blames the frontmatter for an argument problem.
+ skill_dir = pathlib.Path(skill_dir).resolve()
skill_md = skill_dir / "SKILL.md"
if not skill_md.is_file():
fails.append("SKILL.md missing"); return