Files
miti99/codex/install.ps1
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

25 lines
1023 B
PowerShell

# 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).
$ErrorActionPreference = "Stop"
# Source dir = this script's own directory + \prompts
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$Src = Join-Path $ScriptDir "prompts"
# Target = $env:CODEX_HOME\prompts (default %USERPROFILE%\.codex\prompts)
$CodexHome = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $env:USERPROFILE ".codex" }
$Dest = Join-Path $CodexHome "prompts"
New-Item -ItemType Directory -Force -Path $Dest | Out-Null
$count = 0
Get-ChildItem -Path (Join-Path $Src "*.md") | ForEach-Object {
Copy-Item -Path $_.FullName -Destination $Dest -Force
Write-Host " copied $($_.Name) -> $Dest\"
$count++
}
Write-Host "Done. Synced $count prompt(s) to $Dest"
Write-Host "Use them in a Codex session as /prompts:mt-add-url <url> (etc.)."