跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/mturac/everything-openai-codex/swift-actor-persistence

Codex Verify Swift Actor JSON Persistence Across Reloads

Keep a memory index and JSON file behind a Swift actor and verify local updates and recovery.

中文

Install in Codex

Use a Swift concurrency toolchain and XCTest or Swift Testing. The exercise uses a temporary directory and a Sendable Codable model.

  1. Copy the pinned `docs/zh-CN/skills/swift-actor-persistence/` directory into `.agents/skills/swift-actor-persistence/` in the project.
  2. Give Codex the local directory, model identifier, and error behavior. Ask it to define the actor's public API first.

Example task

Save two versions of ID `p1` to `DraftStore` with values `one` and `two`. Reopen the temporary file in a new instance and check the ID and value.

What to check

The new instance returns `two` for `p1`, and the file decodes to a single record.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

How should a failed write be reported?

Expose an error and apply the project's memory/disk consistency rules so the UI cannot silently treat a failed write as saved.

Related skills from this repository

  • Codex Verify Local TypeScript Scripts and Unit Tests with Bun
  • Codex Build a VS Code CodeTour with File and Line Anchors
Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯