Install this as a folder named raven-transfer that contains:
SKILL.mdagents/openai.yamlscripts/raven-transfer.mjsreferences/*.mdtests/*.test.mjs
Place the folder in your skills directory:
mkdir -p "$CODEX_HOME/skills"
cp -R ./raven-transfer "$CODEX_HOME/skills/raven-transfer"Store API key in macOS Keychain (one-time setup):
security add-generic-password -a "$USER" -s "raven-api-key" -w "RVSEC-..." -UInject key into a permission-locked file before running commands:
mkdir -p "$HOME/.config/raven"
security find-generic-password -a "$USER" -s "raven-api-key" -w > "$HOME/.config/raven/raven_api_key"
chmod 600 "$HOME/.config/raven/raven_api_key"
export RAVEN_API_KEY_FILE="$HOME/.config/raven/raven_api_key"Optional direct env injection (without writing plaintext in shell history):
export RAVEN_API_KEY="$(security find-generic-password -a "$USER" -s "raven-api-key" -w)"Install the same folder into the agent's configured skills path.
Requirements:
- Node.js 18+ runtime
- One of:
RAVEN_API_KEY_FILEpointing to a key file with strict owner-only permissions (chmod 600orchmod 400)RAVEN_API_KEYinjected at runtime by a secret manager
- Optional:
RAVEN_API_BASE,RAVEN_TIMEOUT_MS,RAVEN_READ_RETRIES,RAVEN_RETRY_DELAY_MSRAVEN_DISABLE_LOCAL_STATE=1to disable local state persistence
Example secret-manager injection pattern:
export RAVEN_API_KEY="$(
<secret-manager-cli> read raven/api-key
)"Security notes:
- Local idempotency state is written to
scripts/.state/transfer-state.jsonwith owner-only permissions. - Add
scripts/.state/to ignore/sync exclusions so runtime transfer metadata is not committed or backed up unintentionally.
Run from the skill folder:
node ./scripts/raven-transfer.mjs --help
node ./scripts/validate-skill-package.mjs
node --test ./tests/unit-normalizers.test.mjs
node --test ./tests/contract-live.test.mjsLive contract tests are gated and skipped by default. To run them, set:
RAVEN_CONTRACT_TESTS=1RAVEN_TEST_ACCOUNT_NUMBERandRAVEN_TEST_BANK(orRAVEN_TEST_BANK_CODE) for lookup contract tests
The transfer create contract test is intentionally hard-gated to avoid accidental money movement.