Conversation
Adds scripts/llms.js generator (strict llmstxt.org spec for docs/llms.txt, spec-aligned + preserved hand-written extras for docs/llms-full.txt). Extends githooks/post-commit so commits whose message mentions agents.md or llms.txt re-run the matching generator and create a follow-up chore commit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Collaborator
🟡 Heimdall Review Status
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
…st-merge Addresses 8 review points: 1. Auto-detect structural docs/ A/D/R changes (opt-out via [skip-docs]) 2. SKIP_DOCS_HOOK=1 escape hatch for one-off bypass 3. Diff check anchored to HEAD (immune to pre-staged generated files) 4. Visible "[docs] ..." line on success (no DEBUG mode required) 5. --no-verify rationale documented at the call site 6. New post-merge hook warns on structural docs changes (no auto-mod) 7. Repo-scoped install.sh using git config --local (never --global) 8. Auto-commit subject includes (post-commit of <short-sha>) for traceability
The hook logic stays the same; trigger keyword + script + outputs now come
from a JSON config so devs can wire their own custom commands without
editing shell. New files:
githooks/config.json — committed defaults (the two existing generators)
githooks/_lib.sh — shared loader, sourced by both hooks; reads via
jq with a safe fallback to built-in defaults if
jq or config is missing/malformed
Refactor:
post-commit: loops over configured generators; auto-commit subject lists
actual changed files instead of a hardcoded label
post-merge: exclusion regex + warning text built from config, so adding
a generator extends both automatically
install.sh: warns once at install time if jq isn't installed
Tested end-to-end: trigger / skip / no-trigger paths all behave correctly,
plus a custom-trigger entry was verified to fire its own generator without
touching the others.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added new hook for llm.txt and llm-full.txt