standards-sync
Keep the canonical code standards in sync with the workspace root and dotfiles copies.
Downloads & Community-Verbreitung
Gesundheits- & Engineering-Analyse (5 Säulen)
1. Governance & Community200 / 200 ▾
2. PEP-Metadaten & Paketierung200 / 200 ▾
3. Sicherheit & Lieferkette200 / 200 ▾
4. Dokumentation, SEO & Ökosystem155 / 200 ▾
5. Engineering, CI & Qualität200 / 200 ▾
Offizielle Dokumentation & Nutzungsleitfaden — standards-sync
Vollständige Originaldokumentation anzeigen (Englisches README) ▾
Contents
Getting started
- Install: from PyPI,
make install, or the dotfiles - Requirements: toolchain floor, platforms
- Quick Start: push the standards to a scratch directory and check them
The standards ecosystem
- The standards ecosystem: the five standards, standards-sync, the dotfiles, the compliance audit
Library reference
- Capabilities at a glance: the current surface by theme
- Ecosystem comparison: why there is none
- Benchmarks: why there are none
- Features: what each part does
- Configuration: environment variables
- Examples: common tasks
Operational
- When not to use standards: limitations
- Development: make targets, fuzzing, CI
- Security: guarantees and compliance
- Documentation: all reference docs
- Stability guarantees: SemVer axis, output stability, minimum toolchain discipline
- License
Install
As a Python library
uv tool install standards-sync # or: pipx install standards-sync
This installs the standards-sync command from
PyPI; its functions are
importable as standards_sync. The upload is made by trusted publishing
and carries build provenance (Verifying releases).
From a clone, with the manpage and bash, zsh and fish completions:
make PREFIX="$HOME/.local" install
The dotfiles also install
it as ~/.local/bin/standards-sync, and link ~/Code's standards to a
clone of this repository.
Requirements
| Requirement | Version | Why |
|---|---|---|
| Python | 3.9 or later | the minimum toolchain is the macOS system python3; see the policy in docs/POLICIES.md |
| git | any | to tell a published version of a file from an edit |
| OS | macOS, Linux | tested on both in CI |
Quick Start
make PREFIX="$HOME/.local" install
export PATH="$HOME/.local/bin:$PATH"
export STANDARDS_REPO="$PWD" STANDARDS_TARGETS="$PWD/build/quickstart"
standards-sync --push # copy the five standards to the scratch directory
standards-sync --check # every file [OK]
Run from a clone, this installs the command and tries it on a scratch
directory, leaving ~/Code and the dotfiles alone. Unset
STANDARDS_TARGETS to work on the real targets. CI runs this block as
written.
The standards ecosystem
The standards are edited here, carried to every machine by the dotfiles, and measured across the portfolio by the compliance audit.
| Component | Purpose | Use case |
|---|---|---|
AGENTS.md |
Invariants for AI-assisted and human work | Read before changing any repository |
GEMINI.md |
Pointer file for Gemini and other agents | Loaded at the start of an agent session |
REPO-STANDARD.md |
The eight-category scorecard and its phases | Rating and raising a repository |
README-TEMPLATE.md |
The layout of every primary README | Writing or checking a README |
PR-TEMPLATE.md |
The shape of every pull request description | Opening a pull request |
standards-sync |
Keeps every copy identical without losing an edit | ~/Code and dotfiles upkeep |
| dotfiles | Installs the command, links ~/Code here |
A new machine |
Capabilities at a glance
| Area | Capability | Status |
|---|---|---|
| Standards | Five canonical files, released together | Stable |
| Sync | Drift check with diffs | Stable |
| Sync | Push that keeps edits made in place | Stable |
| Sync | Pull that adopts a ~/Code edit |
Stable |
| Sync | Git hooks that push on commit and merge | Stable |
| Tooling | Manpage and completions from the parser | Stable |
Ecosystem comparison
This section does not apply: the repository is one portfolio's governance, not a product with alternatives, and no comparison is claimed.
Benchmarks
This section does not apply: standards-sync hashes and copies five
small text files, and no performance claim is made.
Features
- One source. A rule changes here, in a pull request, and nowhere else.
- Safe push. A target file is overwritten only if it is missing, identical, or a version this repository committed. An edit made in place is kept and named, and the push exits 1.
- Links respected. A target that links to the source is left alone.
- Pull. An edit made in
~/Codeis adopted, then pushed to the dotfiles copies. - Checks that bind this repository too. CI holds the README to
README-TEMPLATE.md, the GitHub PR template toPR-TEMPLATE.md, and every function to the complexity ceilings ofAGENTS.md.
Configuration
| Variable | Effect |
|---|---|
STANDARDS_REPO |
The source directory, tried before any other |
STANDARDS_TARGETS |
Target directories, separated by :, replacing the defaults |
Without them, the source is found from the script's location or under
~/Code, and the targets are ~/Code and the dotfiles copies that exist.
docs/ARCHITECTURE.md lists the exact order.
Examples
standards-sync --check # what differs, with diffs; changes nothing
standards-sync --check -q # one warning line, or silence
standards-sync --push # bring every copy up to date
standards-sync --push --force # also overwrite files edited in place
standards-sync --pull # adopt an edit made in ~/Code
standards-sync --install-hooks # push after every commit and merge here
When not to use standards
- The default targets are one workspace's layout (
~/Code, chezmoi dotfiles). Elsewhere, setSTANDARDS_TARGETS. - It syncs exactly five files. It is not a general file synchroniser.
- The rules are opinionated (
0.0.xversioning, one release pull request, signed-off commits). Adopt them knowingly. - Windows is not tested.
Development
uv sync --frozen
make check # every gate CI runs
make help # every task
make check runs ruff, the complexity ceilings, codespell, REUSE,
markdownlint, actionlint, the tests at 95 percent branch coverage, the
property-based fuzz corpus, the strict manual build, the API breakage
check, pip-audit and a reproducible-build comparison. See
DEVELOPMENT.md.
Security
standards-sync writes only the five standard files, into the targets it
lists, and git hooks into this checkout. Commits and tags are signed
(KEYS.asc), every Action is pinned by SHA, dependencies are locked and
audited on every push, and releases carry checksums, an SBOM and build
provenance. CodeQL, secret scanning and the OpenSSF Scorecard run on
main.
The project holds the OpenSSF Best Practices passing badge.
Report vulnerabilities according to SECURITY.md.
Documentation
- User manual: the standards and
standards-sync man standards-sync, aftermake install- DEVELOPMENT.md: tools, the gate, tests, releases
- ROADMAP.md and GOVERNANCE.md: plans, roles and decisions
- docs/ASSURANCE.md: the security assurance case
- docs/ARCHITECTURE.md and the decision records
- CHANGELOG.md
Stability guarantees
Versions rise by 0.0.1 per release (AGENTS.md section 3).
For standards-sync, the options, exit status, status words and
environment variables are the contract, and a push never overwrites an
edit made in place without --force: changing any of these is breaking,
even with no option renamed. The public Python API is checked against the
last release in CI. The minimum toolchain is Python 3.9 and rises only
with the macOS system Python. Details in
docs/POLICIES.md.
License
Dual-licensed under either:
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Copyright © 2026 Sebastien Rousseau.