AI产品精选

Codex 团队分享:用 Prompt 让 AI 回顾历史,自动沉淀 Skills 和 Subagent

让 Codex 回顾你过去的会话历史,识别重复出现的任务模式,并沉淀为可复用的 Skills 或 Subagent,来自 Codex 团队 @reach_vb 的分享 大多数开发者在使用 AI 编程...

精选理由

这个技巧解决了 AI 编程中反复问同类问题的痛点,做 AI 编程的开发者可以直接复制 Prompt 到 Codex 里试试,能自动把重复工作流变成可复用的 Skills 或 Subagent。

AI 摘要

Codex 团队 @reach_vb 分享了一个实用技巧:通过一个 Prompt 让 Codex 回顾你过去的会话历史,识别重复出现的任务模式,并自动建议沉淀为可复用的 Skills(多步骤工作流)或 Subagent(单一职责角色)。该 Prompt 聚焦 CI 失败、PR review、changelog 等七个高频场景,并强制二分类决策,避免模糊产出。这能帮助开发者节省重复描述的时间,提升 AI 编程助手的使用效率和一致性。

原文 · shao__meng

让 Codex 回顾你过去的会话历史,识别重复出现的任务模式,并沉淀为可复用的 Skills 或 Subagent,来自 Codex 团队 @reach_vb 的分享 大多数开发者在使用 AI 编程...

让 Codex 回顾你过去的会话历史,识别重复出现的任务模式,并沉淀为可复用的 Skills 或 Subagent,来自 Codex 团队 @reach_vb 的分享 大多数开发者在使用 AI 编程助手时,会反复问同类问题: · "CI 为什么挂了?" · "帮我 review 这个 PR" · "写一下 changelog" · "追踪这个 bug" · "清理这个 diff" 这些重复的 prompt 本质上是未被显式抽象的工作流。每次手动重新描述,既浪费 token,也缺乏一致性。 Skills 和 Subagent 的沉淀方式区别是什么? · Skills:适用于可复用的工作流,多步骤、有固定流程、面向"怎么做" · Subagent:适用于边界清晰的角色或调查任务,单一职责、可委派、面向"谁来做" Prompt 设计的工程细节 · 数据源明确——基于 "recent Codex sessions" 而非凭空生成,让建议有真实依据。 · 二分类决策——强制 Codex 在 skill 和 subagent 之间做选择,避免模糊产出。 · 领域聚焦——列出 CI、PR review、changelog、docs、release、debugging、test triage 七个高频场景,收窄搜索空间。 · 质量约束——"Create the useful ones only. Keep them simple." 防止 AI 过度生成低价值产物。 Prompt 原文可以直接复制 Look through my recent Codex sessions and identify repeated workflows or repeated asks. For anything I keep doing manually, suggest: 1. a skill if it is a reusable workflow 2. a custom subagent if it is a bounded role or investigation task Focus on practical things like CI failures, PR reviews, changelogs, docs updates, release prep, debugging, and test triage. Create the useful ones only. Keep them simple. Vaibhav (VB) Srivastav @reach_vb Copy and paste this into your codex: “Look through my recent Codex sessions and identify repeated workflows or repeated asks. For anything I keep doing manually, suggest: 1. a skill if it is a reusable workflow 2. a custom subagent if it is a bounded role or investigation task Focus on practical things like CI failures, PR reviews, changelogs, docs updates, release prep, debugging, and test triage. Create the useful ones only. Keep them simple.” 🔗 View Quoted Tweet 💬 2 🔄 0 ❤️ 5 👀 578 📊 3 ⚡

Codex 团队分享:用 Prompt 让 AI 回顾历史,自动沉淀 Skills 和 Subagent · AI 热点