audit 2026-10-23: scheduled-tasks window (172/0, 5 incidents closed); reopen skills-index drift; skills-index generator now excludes .archive (306 skills, was 347)
This commit is contained in:
+16
-5
@@ -36,11 +36,17 @@ output = Path("/home/hermes/workspace/agent-estate-wiki/systems/skills-index.md"
|
||||
|
||||
# Use find to get all SKILL.md files, then group by their immediate parent category
|
||||
# This handles nested structures like context-engineering-collection/skills/foo/SKILL.md
|
||||
result = subprocess.run(
|
||||
["find", str(skills_dir), "-name", "SKILL.md", "-type", "f"],
|
||||
capture_output=True, text=True
|
||||
)
|
||||
skill_files = [Path(p) for p in result.stdout.strip().split('\n') if p]
|
||||
# Archived skills (`.archive/`) are parked, not installed — the loader does not
|
||||
# expose them, so they are excluded from the count (see
|
||||
# incidents/2026-08-15-skills-index-drift.md).
|
||||
def _find(*extra):
|
||||
r = subprocess.run(
|
||||
["find", str(skills_dir), *extra], capture_output=True, text=True
|
||||
)
|
||||
return [Path(p) for p in r.stdout.strip().split('\n') if p]
|
||||
|
||||
skill_files = _find("-name", "SKILL.md", "-type", "f", "-not", "-path", "*/.archive/*")
|
||||
archived_files = _find("-path", "*/.archive/*", "-name", "SKILL.md", "-type", "f")
|
||||
|
||||
# Group by the top-level category (first directory under skills_dir)
|
||||
categories = {}
|
||||
@@ -102,6 +108,11 @@ lines = [
|
||||
"",
|
||||
f"**Total installed: {sum(len(v) for v in categories.values())} skills** in `~/.hermes/skills/`.",
|
||||
"",
|
||||
f"- **{len(archived_files)} archived skills** are parked under `~/.hermes/skills/.archive/` and are "
|
||||
"excluded from this count — the loader does not expose them.",
|
||||
"- The loader's own catalogue (`hermes skills list`, e.g. *34 hub-installed, 52 builtin, N local — "
|
||||
"N enabled*) is the authoritative loadable figure; this page is a filesystem inventory.",
|
||||
"",
|
||||
"This page is auto-regenerated from the live skill inventory. Do not hand-edit.",
|
||||
"",
|
||||
"## Stock-take notes",
|
||||
|
||||
Reference in New Issue
Block a user