GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ai-native-dev-stack/scripts at main · Rwanbt/ai-native-dev-stack

Expand file tree

/

scripts

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

scripts

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
enforced
enforced
 
 
harness
harness
 
 
mv00
mv00
 
 
tests
tests
 
 
README.md
README.md
 
 
build_lifecycle_bundle.py
build_lifecycle_bundle.py
 
 
check_bridge_release.py
check_bridge_release.py
 
 
check_complexity_budget.py
check_complexity_budget.py
 
 
check_personal_paths.py
check_personal_paths.py
 
 
check_published_assets.py
check_published_assets.py
 
 
check_release_gate.py
check_release_gate.py
 
 
check_release_versions.py
check_release_versions.py
 
 
ci_production_gate.py
ci_production_gate.py
 
 
colleague_e2e.py
colleague_e2e.py
 
 
implementation_economy_qualification.py
implementation_economy_qualification.py
 
 
install_agents.py
install_agents.py
 
 
lifecycle_clean_install.py
lifecycle_clean_install.py
 
 
lifecycle_dogfood.py
lifecycle_dogfood.py
 
 
lifecycle_non_vacuity.py
lifecycle_non_vacuity.py
 
 
lifecycle_upgrade_e2e.py
lifecycle_upgrade_e2e.py
 
 
machine_lifecycle.py
machine_lifecycle.py
 
 
measure_scope.py
measure_scope.py
 
 
opencode_plugin_published_e2e.py
opencode_plugin_published_e2e.py
 
 
opencode_plugin_runtime_e2e.py
opencode_plugin_runtime_e2e.py
 
 
setup-agents.ps1
setup-agents.ps1
 
 
setup-agents.sh
setup-agents.sh
 
 
stack-update-check.sh
stack-update-check.sh
 
 
stack-upgrade.sh
stack-upgrade.sh
 
 
sync_inlined_method.py
sync_inlined_method.py
 
 
validate_conventions.py
validate_conventions.py
 
 
vault_protocol.py
vault_protocol.py
 
 
vault_sync.ps1
vault_sync.ps1
 
 
vault_sync.py
vault_sync.py
 
 
vault_sync.sh
vault_sync.sh
 
 
vault_sync_once_daily.ps1
vault_sync_once_daily.ps1
 
 
vault_sync_once_daily.py
vault_sync_once_daily.py
 
 
verified_first_run_e2e.py
verified_first_run_e2e.py
 
 
workplane_harness_matrix.py
workplane_harness_matrix.py
 
 
workplane_historical_case.py
workplane_historical_case.py
 
 
workplane_pilot.py
workplane_pilot.py
 
 
workplane_qualification.py
workplane_qualification.py
 
 
workplane_structural_regression.py
workplane_structural_regression.py
 
 

README.md

Outline

Scripts — AI Native Dev Stack

install_agents.py — global installer

The single implementation of the machine-level install: links every skill and agent into each detected AI CLI root, and writes a managed instruction block referencing AGENTS.md into each CLI's global config.

Cross-platform. On Windows, directory links fall back to junctions when symlink creation is denied (junctions need neither admin rights nor Developer Mode), so no elevated shell is required.

python scripts/install_agents.py              # install
python scripts/install_agents.py --dry-run    # show what would change
python scripts/install_agents.py --check      # verify an existing install
python scripts/install_agents.py --home PATH  # target another home directory

Idempotent: a second run reports 0 change(s). It never overwrites a path it does not own — an unmanaged file is reported as KEEP, not replaced.

Agent roots it writes to:

CLI Skills Global instructions
Claude Code ~/.claude/skills ~/.claude/CLAUDE.md
Codex / OpenCode / Cursor ~/.agents/skills ~/.codex/AGENTS.md, ~/.config/opencode/AGENTS.md
MiniMax (Mavis) ~/.mavis/agents ~/.mavis/agents/mavis/agent.md

setup-agents.sh / setup-agents.ps1 — entry points

Thin shims that locate a working Python and delegate to install_agents.py. They exist so neither shell is a prerequisite for the other's platform.

bash scripts/setup-agents.sh --dry-run                    # Linux / macOS / Git Bash
pwsh -NoProfile -File scripts/setup-agents.ps1 -DryRun    # Windows, no Git Bash

validate_conventions.py — anti-drift gate

Fails when AGENTS.md and conventions.json declare different thresholds. AGENTS.md is the human-readable source; conventions.json is what the tooling reads. Run in CI.

python scripts/validate_conventions.py

Without this gate the two silently diverged: complexity >25 blocking shipped as 20, and function size >200 blocking was never implemented at all.

sync_inlined_method.py

Keeps the inlined copy of the engineering method in sync with AGENTS.md for tools that cannot follow an @include.

vault_sync.py — Obsidian vault sync

The single implementation; vault_sync.ps1, vault_sync.sh and vault_sync_once_daily.ps1 are shims that locate Python and delegate.

python scripts/vault_sync.py --vault /path/to/vault
python scripts/vault_sync.py --dry-run          # report, change nothing
python scripts/vault_sync_once_daily.py         # at most one sync per day

Vault path resolution: --vault, else $OBSIDIAN_VAULT, else an error. Sentinel location: $OBSIDIAN_SYNC_STATE, else next to the script.

What it guarantees

Guarantee Why it exists
Never reports a success it has not verified The push is confirmed by re-reading the remote ref afterwards. The previous version printed "pushed to GitHub" after a no-op, and 13 days of notes were never backed up.
Pushes the branch that is checked out The previous version pushed a hardcoded master, so a vault sitting on any other branch was silently never pushed.
Refuses a non-primary branch A vault has no reason to carry branches, and a side branch is exactly how the backup stopped working. Override with --allow-branch.
Refuses to push credentials Staged content is scanned with the stack's shared SECRET_PATTERNS before any commit.
Stops on divergence, exits non-zero Guessing a merge on someone's second brain is not acceptable.
Single writer A lock in .git/ — never in the working tree, or the vault is permanently dirty and the lock gets committed with the notes.
A failed sync does not mark the day done vault_sync_once_daily.py writes its sentinel only on exit 0. The previous version wrote it unconditionally, so a failure suppressed retries until the next day.

The LOC gate lives elsewhere

loc_gate.ps1 was merged into hooks/pretool-loc-gate/run_gate.js, now the only implementation of the rule. Node stdlib, identical on every OS, three modes:

node hooks/pretool-loc-gate/run_gate.js <file>     # one file — PreToolUse hook
node hooks/pretool-loc-gate/run_gate.js --staged   # git staged files — pre-commit
node hooks/pretool-loc-gate/run_gate.js --all      # full repo scan

Thresholds come from conventions.json, not from the script.

Pre-commit integration (.git/hooks/pre-commit, any OS):

node /path/to/ai-native-dev-stack/hooks/pretool-loc-gate/run_gate.js --staged || exit 1
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.