codex-zdr

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Codex Zero Data Retention (ZDR) Skill

Codex零数据保留(ZDR)Skill



LIBRARY-FIRST PROTOCOL (MANDATORY)

库优先协议(强制要求)

Before writing ANY code, you MUST check:
在编写任何代码之前,你必须检查:

Step 1: Library Catalog

步骤1:库目录

  • Location:
    .claude/library/catalog.json
  • If match >70%: REUSE or ADAPT
  • 位置:
    .claude/library/catalog.json
  • 如果匹配度>70%:复用或适配

Step 2: Patterns Guide

步骤2:模式指南

  • Location:
    .claude/docs/inventories/LIBRARY-PATTERNS-GUIDE.md
  • If pattern exists: FOLLOW documented approach
  • 位置:
    .claude/docs/inventories/LIBRARY-PATTERNS-GUIDE.md
  • 如果存在对应模式:遵循文档中记录的方法

Step 3: Existing Projects

步骤3:现有项目

  • Location:
    D:\Projects\*
  • If found: EXTRACT and adapt
  • 位置:
    D:\Projects\*
  • 如果找到相关内容:提取并适配

Decision Matrix

决策矩阵

MatchAction
Library >90%REUSE directly
Library 70-90%ADAPT minimally
Pattern existsFOLLOW pattern
In projectEXTRACT
No matchBUILD (add to library after)

匹配度操作
库匹配>90%直接复用
库匹配70-90%最小化适配
存在对应模式遵循模式
已在项目中存在提取使用
无匹配项构建(完成后添加到库中)

Purpose

用途

Execute Codex with Zero Data Retention for sensitive, proprietary, or regulated code where no data should be stored on OpenAI servers.
针对敏感、专有或受监管的代码执行Codex零数据保留,确保数据不会存储在OpenAI服务器上。

Unique Capability

独特能力

What This Provides:
  • No code retention: Code not stored on OpenAI servers
  • Privacy-first: GDPR, HIPAA compatible
  • Regulated industries: Suitable for healthcare, finance
  • Proprietary code: Safe for trade secrets
本功能提供:
  • 无代码保留: 代码不会存储在OpenAI服务器上
  • 隐私优先: 符合GDPR、HIPAA标准
  • 适用于受监管行业: 适合医疗、金融领域
  • 专有代码安全: 可安全处理商业机密

When to Use

使用场景

Perfect For:

适用场景:

  • Medical/healthcare code (HIPAA)
  • Financial systems (PCI-DSS)
  • Proprietary algorithms
  • Trade secrets
  • Government contracts
  • Client code under NDA
  • 医疗/医疗保健代码(HIPAA合规)
  • 金融系统(PCI-DSS合规)
  • 专有算法
  • 商业机密
  • 政府合同项目
  • 受NDA保护的客户代码

Trade-offs:

权衡:

  • Slightly slower (no caching)
  • Same functionality otherwise
  • 速度略慢(无缓存)
  • 其他功能保持不变

Usage

使用方法

bash
undefined
bash
undefined

ZDR for sensitive code

ZDR for sensitive code

/codex-zdr "Implement medical record encryption"
/codex-zdr "Implement medical record encryption"

ZDR with full-auto

ZDR with full-auto

/codex-zdr "Build payment processing module" --full-auto
/codex-zdr "Build payment processing module" --full-auto

ZDR with sandbox

ZDR with sandbox

/codex-zdr "Audit financial calculations" --sandbox
undefined
/codex-zdr "Audit financial calculations" --sandbox
undefined

CLI Command

CLI命令

bash
codex --zdr "Your sensitive task"
bash
codex --zdr "Your sensitive task"

Combined with full-auto

Combined with full-auto

codex --full-auto --zdr "Build and test"
codex --full-auto --zdr "Build and test"

Via script

Via script

CODEX_MODE=zdr bash scripts/multi-model/codex-yolo.sh "Task" "id" "." "5" "zdr"
undefined
CODEX_MODE=zdr bash scripts/multi-model/codex-yolo.sh "Task" "id" "." "5" "zdr"
undefined

Compliance Notes

合规说明

RegulationZDR Suitability
GDPRCompliant
HIPAACompliant
PCI-DSSSuitable
SOC 2Suitable
FedRAMPCheck specifics
法规ZDR适用性
GDPR合规
HIPAA合规
PCI-DSS适用
SOC 2适用
FedRAMP需查看具体条款

Memory Integration

内存集成

  • Key:
    multi-model/codex/zdr/{task_id}
  • Note: Only metadata stored locally, no code in memory
  • 密钥:
    multi-model/codex/zdr/{task_id}
  • 注意: 仅在本地存储元数据,内存中不保存代码