gh-Dimillian-Skills/scripts/git-hooks/pre-commit
Thomas Ricouard 26e23c058d Add dynamic skills index and pre-commit hook
Replaces hardcoded skills in docs/app.js with dynamic loading from a generated docs/skills.json. Adds scripts/build_docs_index.py to generate the index from SKILL.md files, and a pre-commit hook to keep the index in sync. Updates README with setup instructions for the pre-commit hook.
2025-12-31 08:51:09 +01:00

6 lines
194 B
Bash

#!/usr/bin/env bash
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
python3 "${repo_root}/scripts/build_docs_index.py"
git add "${repo_root}/docs/skills.json"