Files
miti99/codex/install.sh
T
tiennm99 6fd652b84a feat(tooling): run blog from Claude Code, OpenCode & Codex on shared engine
Extract newsletter scripts to a neutral scripts/newsletter/ engine and add
side-by-side support for all three AI coding tools off one source of truth.

- Move 9 scripts + substack config from .claude/skills/**/scripts to
  scripts/newsletter/ (history preserved); fix PROJECT_ROOT depth and
  cross-require/config paths; repoint all SKILL.md invocations
- Add canonical AGENTS.md; reduce CLAUDE.md to an @AGENTS.md import
- Add opencode.json (permissions, no MCP); skills auto-discovered in place
- Add codex/prompts/*.md (6 prompts) + copy installers (install.sh/.ps1)
- Add docs/multi-tool-usage.md (setup, per-tool invocation, teardown) + README pointer
2026-06-02 14:07:22 +07:00

27 lines
835 B
Bash
Executable File

#!/usr/bin/env bash
# Copy this repo's Codex prompt sources into the Codex prompts dir so they
# surface as /prompts:mt-* commands. Idempotent — re-run after editing prompts
# (Codex loads prompts from the home dir, not the repo, so edits need a re-sync).
set -euo pipefail
# Source dir = this script's own directory + /prompts
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SRC="$SCRIPT_DIR/prompts"
# Target = $CODEX_HOME/prompts (default ~/.codex/prompts)
CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
DEST="$CODEX_HOME/prompts"
mkdir -p "$DEST"
count=0
for f in "$SRC"/*.md; do
[ -e "$f" ] || continue
cp -f "$f" "$DEST/"
echo " copied $(basename "$f") -> $DEST/"
count=$((count + 1))
done
echo "Done. Synced $count prompt(s) to $DEST"
echo "Use them in a Codex session as /prompts:mt-add-url <url> (etc.)."