一键导入
asof
Ensure temporal awareness and prevent stale file read/write operations by verifying the fresh/stale state of in-context data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Ensure temporal awareness and prevent stale file read/write operations by verifying the fresh/stale state of in-context data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | asof |
| description | Ensure temporal awareness and prevent stale file read/write operations by verifying the fresh/stale state of in-context data. |
| allowed-tools | ["view_file","list_dir"] |
This skill provides the Gemini model with a structured understanding of time-decay, calendar context, and file freshness. It ensures that you do not ground assertions on stale in-context files or assume that pasted dates refer to "now."
When you receive a user prompt, the AsOf hook may inject freshness alerts or calendar data into your context under the header === AsOf vX.Y.Z ===.
Follow these absolute principles:
asof_query rather than deriving dates yourself.STALE (meaning its filesystem mtime moved after you read it in this session), you must re-read it using view_file before making edits or planning actions based on its contents.At turn wake or on first invocation, you may see:
## File freshness (this session)
STALE 2h15m /project/auth.py (mtime moved after read)
If you see a file marked STALE under your active workspace, consider its cached content in your memory invalid. Re-read it immediately.
If you suspect a file has changed or you need to ground a time-sensitive claim that was not auto-injected, call asof_query with the target file path or query descriptor to get a precise liveness verdict.