mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-13 02:47:00 +00:00
fbe1e9977f
All-platform progressive-disclosure skill split + generator (addresses #1106). Splits each platform's skill into a lean core (~615 lines, full default pipeline inline) + on-demand references/, generated from a single source via tools/skillgen with a CI/pre-commit drift gate. 13 hosts split, aider/devin stay monoliths. Also fixes the stale bare-path bugs across the previously hand-maintained variants and moves the always-on blocks into packaged markdown. Verified: all 5 generator guards pass, byte-verbatim load-bearing slices, lean cores self-sufficient on the default path across all 13 split hosts, references gated to non-default branches, description preserves the graphify-out-query-first clause. Supersedes #1119 (Claude-first subset). Known follow-up applied on top: harden _always_on() against a missing packaged file so a partial install can't brick the CLI.
23 lines
850 B
YAML
23 lines
850 B
YAML
# Run with: uv run pre-commit install (pre-commit is already a dev dependency)
|
|
# One-off across the tree: uv run pre-commit run --all-files
|
|
#
|
|
# The skillgen hook is the local anti-drift guard. The skill files under
|
|
# graphify/ are generated from the fragments in tools/skillgen/; a hand-edit to
|
|
# a generated file fails this check the same way CI does. Run
|
|
# `python -m tools.skillgen` then `--bless` to regenerate after a fragment edit.
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: skillgen-check
|
|
name: skillgen --check (generated skill artifacts are up to date)
|
|
entry: python -m tools.skillgen --check
|
|
language: system
|
|
pass_filenames: false
|
|
always_run: true
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.15.14
|
|
hooks:
|
|
- id: ruff
|
|
args: ["--config", "pyproject.toml"]
|