Skip to content

docs(conventions): pre-commit architecture page#48

Open
JacobPEvans-personal wants to merge 2 commits into
mainfrom
feat/pre-commit-convention
Open

docs(conventions): pre-commit architecture page#48
JacobPEvans-personal wants to merge 2 commits into
mainfrom
feat/pre-commit-convention

Conversation

@JacobPEvans-personal
Copy link
Copy Markdown
Member

Summary

Public-facing convention page mirroring the auto-loaded agentsmd/rules/pre-commit.md from dryvist/ai-assistant-instructions#661. The two stay in sync per the repo-boundaries convention (descriptive docs on the site, agent directives in AGENTS.md-loaded rules).

What's added

  • conventions/pre-commit.mdx — full architecture overview with consumer patterns, profile list, why/what-stays-per-repo, and known limitations
  • docs.json — adds conventions/pre-commit to the Conventions group nav

Pairs with

  • dryvist/nix-devenv#34, #35flakeModules.{base,terraform,ansible,python,nix,markdown} + lib/fetch-shared-configs.nix + templates/with-hooks/
  • dryvist/.github#12precommit/configs/ + precommit/templates/
  • dryvist/ai-assistant-instructions#661 — auto-loaded agent rule
  • dryvist/terraform-runs-on#80 — Phase 2 trial migration

Test plan

  • CI green (mint broken-links + mermaid validation)
  • mint dev shows the page rendered under Conventions in the nav
  • Cross-links to nix-devenv / .github / ai-assistant-instructions all resolve

Assisted-by: Claude noreply@anthropic.com

Document the shared pre-commit architecture as a public-facing
convention page mirroring the auto-loaded agentsmd rule.

Adds conventions/pre-commit.mdx and the corresponding entry to
docs.json's Conventions group nav.

Covers:
  - Canonical homes table (Nix-path nix-devenv, non-Nix-path
    dryvist/.github precommit/, lint configs in dryvist/.github)
  - Six profiles (base, nix, markdown, terraform, ansible, python)
  - Consumer patterns for Nix and non-Nix paths with full snippets
  - The `nix flake init -t #with-hooks` scaffold
  - Why one canonical home per artifact (single update propagates,
    drift dies, one-line onboarding)
  - What stays per-repo (checkov, bandit, detect-secrets, AWS/GCP/
    Azure tflint plugins) and why
  - Known limitations matching the agentsmd rule

Mirrors:
  https://github.com/dryvist/ai-assistant-instructions/blob/main/agentsmd/rules/pre-commit.md

Refs: dryvist/nix-devenv#34, #35, dryvist/.github#12, dryvist/terraform-runs-on#80, dryvist/ai-assistant-instructions#661

Assisted-by: Claude <noreply@anthropic.com>
Forgot to stage the nav update in the previous commit; the page
exists but wasn't discoverable through the sidebar.

Assisted-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant