convert pdf to md, add OVERVIEW and docs
This commit is contained in:
18
worker-toolkit-stocks-in-the-future/repo/docs/map/_meta/sync-twins.sh
Executable file
18
worker-toolkit-stocks-in-the-future/repo/docs/map/_meta/sync-twins.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# Regenerate the entry-file twins from CLAUDE.md.
|
||||
#
|
||||
# CLAUDE.md is the only hand-edited entry file. AGENTS.md and routing.md are
|
||||
# byte-identical copies so that tools which ignore CLAUDE.md still find the catalog.
|
||||
# Run this after every edit to CLAUDE.md; CI-safe and idempotent.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
map_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
src="${map_dir}/CLAUDE.md"
|
||||
|
||||
[[ -f "$src" ]] || { echo "missing $src" >&2; exit 1; }
|
||||
|
||||
for twin in AGENTS.md routing.md; do
|
||||
cp "$src" "${map_dir}/${twin}"
|
||||
echo "wrote ${map_dir}/${twin}"
|
||||
done
|
||||
Reference in New Issue
Block a user