Development
Toolchain

-
Python 3.15 in a single-file uv script with inline dependencies, locked in
llm_dependabot.py.lock; there is no virtual environment to manage. -
Ruff lints (with every rule enabled) and formats.
-
ty type-checks against the script's own environment.
-
prek runs the git hooks.
-
actionlint, zizmor, and Gitleaks lint and audit the workflows and scan for secrets, and the
gh-actions-lockextension maintains the workflow dependency lockfile. -
uv auditchecks the locked dependencies of both scripts and the docs project against the OSV vulnerability database. -
Zensical builds this documentation into a website. It is the only dependency of the docs-only uv project in
pyproject.toml, locked inuv.lock. -
Homebrew installs the command-line tools listed in the
Brewfile.
Every check runs locally, and the GitHub Actions workflows in
.github/workflows/
run them again on each pull request:
| Workflow | Runs | Trigger |
|---|---|---|
qa.yml |
make check |
Pull requests |
prek.yml |
The prek hooks other than Ruff and ty | Pull requests |
security.yml |
Gitleaks over the full history and zizmor over the workflows | Pull requests |
conventional-commits.yml |
Commit messages and the pull-request title | Pull requests |
link-check.yml |
lychee over every link | Pull requests |
docs.yml |
Builds the site; deploys it to GitHub Pages from main |
Pull requests, main, and by hand |
Workflow security
The workflows follow the same hardening rules, which AGENTS.md records for
agents changing them:
-
Every action is pinned to a full commit SHA with its release in an inline comment, and
.github/zizmor.ymlmakes zizmor reject any other pin. -
actions.lockin.github/workflows/is a machine-generated workflow dependency lockfile (in public preview). It records every direct and transitive action with its commit and source repository identity. Runmake actions-lockafter changing auses:line; theactions-lock-verifyhook fails a commit whose lockfile is stale. -
The default
GITHUB_TOKENis read-only; only the Pages deployment job can write, and checkouts never keep the token. -
Every job has a timeout, every workflow cancels superseded runs, and event data reaches scripts only through environment variables.
-
Gitleaks is installed from a release archive pinned by version and SHA-256 checksum. It scans the complete history in CI and the staged diff on every commit.
If your account allows only selected actions, allow these:
actions/checkout,actions/upload-pages-artifact, andactions/deploy-pages(and theactions/upload-artifactthey use)astral-sh/setup-uvj178/prek-actionlycheeverse/lychee-actionzizmorcore/zizmor-action(and thegithub/codeql-actionit uses)
Checks
make hooks-install # once per clone: install the git hooks
make check # ruff check, ruff format --check, ty check, and audit
make audit # check locked dependencies for known vulnerabilities
make format # apply ruff formatting
make hooks # run every prek hook on all files
make update-deps # upgrade locked dependencies and prek hook revisions
make actions-lock # regenerate the workflow dependency lockfile
make actions-lock-verify # check the lockfile against the workflows
make docs # build the documentation site, failing on any warning
make docs-serve # preview the documentation site locally
The hooks in prek.toml run Ruff and ty, lint the workflows
with actionlint and audit them with zizmor, verify the workflow lockfile,
scan staged changes with Gitleaks, check commit messages against
Conventional Commits, tidy whitespace, verify VCS permalinks and hook
applicability, block direct commits to main and submodules, and guard
against case conflicts, illegal Windows filenames, destroyed symlinks,
private keys, large files, and merge-conflict markers. CI skips the hooks
that another workflow already runs or that need local tools. A local
hook,
hooks/check_private_names.py, fails any
commit whose files or message name a repository listed in private.yaml, or
that adds private.yaml itself.
Documentation site
The pages in docs/ are a Zensical site configured
in mkdocs.yml
and published at https://www.indrapatil.com/llm-dependabot/. It uses the
same theme and set-up as the owner's other documentation sites, and also
publishes llms.txt, llms-full.txt, a Markdown copy of every page, and a
robots.txt that welcomes AI crawlers. To keep it building:
-
The home page,
docs/index.md, only includesREADME.md, so the README and the site's landing page are the same text. Give its images and links absolute URLs, so they work on GitHub and on the site alike. -
Add a new page to
nav, and to thellmstxtsections, inmkdocs.yml. -
Link to other pages and images with paths relative to
docs/; link to anything outsidedocs/with its full GitHub URL, since the site only containsdocs/. -
Use GitHub callouts (
> [!NOTE],> [!TIP],> [!IMPORTANT], and> [!WARNING]) for asides: GitHub renders them as alerts and the site as admonitions. -
overrides/adds structured data andllms.txtlinks to every page, and points the home page's edit and view buttons atREADME.md.
Maintaining llm-dependabot itself
This repository commits its own prompts, so llm-dependabot maintains itself like any other participating repository:
-
update-depsupgrades the locked dependencies and prek hooks. -
simplify-codebaseremoves custom code that a newer dependency feature or a proven library makes unnecessary.
Design
DESIGN.md records the visual identity, shared with
indrapatil.com. Generated documentation figures follow the
documentation-illustrations skill,
with their prompts recorded in images/README.md.
Hex sticker and app icon
hextools/ holds the sticker artwork and the R scripts that
render docs/images/logo.png, the LLM Dependabot app icon, app/icon.png,
and the social preview card, docs/images/social-card.png. See
its README.