Keep code and documentation in sync with centralized linking and section-aware staleness detection
Project description
menard is a pre-commit hook and CLI tool that deterministically flags when code changes should trigger documentation updates. It outputs agent-friendly JSON with targeted information about what changed and which doc sections need review.
When working fast with tools like Claude, docs drift quickly. Agents excel at changing code but struggle to understand how code changes should trigger doc updates. menard addresses this with deterministic checks.
Three Core Use Cases
1. Track Doc Sync - Block commits when linked documentation becomes stale. Define code→doc relationships, menard uses git diff to detect when docs need updates.
2. Flag Protected Content Changes - Prevent accidental changes to licenses, brand assets, and policies. Protected sections are never marked stale, protected literals trigger warnings.
3. Audit for Deterministic Maintainability - Score documentation structure for trackability using the audit skill in Claude Code. Get concrete suggestions for improvements.
📚 Full docs | Getting Started | CLI Reference
Quick Start
# Install
pip install menard # or: uv add menard
# Initialize
menard init
# Audit docs for trackability (in Claude Code)
> Audit my documentation and apply the suggestions
# Auto-generate convention-based links
menard bootstrap --apply
# Validate and check coverage
menard validate-links
menard coverage
# Set up pre-commit hook
# See: https://nlebovits.github.io/menard/getting-started/#pre-commit-setup
pre-commit install
License
Apache-2.0
Contributing
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file menard-0.2.0.tar.gz.
File metadata
- Download URL: menard-0.2.0.tar.gz
- Upload date:
- Size: 342.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
383de8168e773f44e25a72e7a3a117738931d0733f7b2670e0ff630bec4d66e2
|
|
| MD5 |
58fbb2b88026e78500beb6645cc0f187
|
|
| BLAKE2b-256 |
2e7ed79877d527f3332dedb564bad25a791203b81bafbb10d37b00cd3c1414bf
|
Provenance
The following attestation bundles were made for menard-0.2.0.tar.gz:
Publisher:
release.yml on nlebovits/menard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
menard-0.2.0.tar.gz -
Subject digest:
383de8168e773f44e25a72e7a3a117738931d0733f7b2670e0ff630bec4d66e2 - Sigstore transparency entry: 1160650256
- Sigstore integration time:
-
Permalink:
nlebovits/menard@d853a0002f36f72a94d3f9504fb89dad551b7a50 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nlebovits
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d853a0002f36f72a94d3f9504fb89dad551b7a50 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file menard-0.2.0-py3-none-any.whl.
File metadata
- Download URL: menard-0.2.0-py3-none-any.whl
- Upload date:
- Size: 47.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b00df4e145c5ff77e9bc09c05cec2e8a812045d26dac7a8961ad3adc7535d23
|
|
| MD5 |
7829628145c5ad3c8b594b0cff4948c7
|
|
| BLAKE2b-256 |
ebe971b63b0d9898d98d564eac29f715f3e4356a01eaf4ba3ece5706e082b957
|
Provenance
The following attestation bundles were made for menard-0.2.0-py3-none-any.whl:
Publisher:
release.yml on nlebovits/menard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
menard-0.2.0-py3-none-any.whl -
Subject digest:
7b00df4e145c5ff77e9bc09c05cec2e8a812045d26dac7a8961ad3adc7535d23 - Sigstore transparency entry: 1160650313
- Sigstore integration time:
-
Permalink:
nlebovits/menard@d853a0002f36f72a94d3f9504fb89dad551b7a50 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nlebovits
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d853a0002f36f72a94d3f9504fb89dad551b7a50 -
Trigger Event:
workflow_dispatch
-
Statement type: