<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Codex on On My Way</title>
    <link>https://tuanzi-wow.cn/categories/codex/</link>
    <description>Recent content in Codex on On My Way</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <lastBuildDate>Wed, 09 Sep 2026 19:00:52 +0800</lastBuildDate>
    <atom:link href="https://tuanzi-wow.cn/categories/codex/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>AGENTS.md 自定义指令</title>
      <link>https://tuanzi-wow.cn/codex/codex-agents-instructions/</link>
      <pubDate>Mon, 07 Sep 2026 00:00:00 +0800</pubDate>
      <guid>https://tuanzi-wow.cn/codex/codex-agents-instructions/</guid>
      <description>Codex 如何发现并读取 AGENTS.md：指令链、配置回退文件名与生效方式。</description>
      <content:encoded><![CDATA[<h2 id="custom-instructions-with-agentsmd">Custom instructions with AGENTS.md</h2>
<p>agents.md is read before doing any work</p>
<h2 id="how-codex-discovers-guidance">How codex discovers guidance:</h2>
<p>The instruction chain:</p>
<h3 id="1global-scope">1.Global scope:</h3>
<p>in your Codex directory(default~/.codex):
u can also use AGENTS.override.md,but only the first non-empty AGENTS.md is read</p>
<h3 id="2project-scope">2.Project scope:</h3>
<p>At the project root
in each directory along the path,it checks for AGENTS.override.md ,then AGENTS.md,then any fallback names in <code>project_doc_fallback_filenames</code>.
Codex includes at most one file per directory</p>
<h3 id="3merge-order">3.Merge order:</h3>
<p>The later ,the higher : because they appear later in the prompt</p>
<h3 id="create-global-guidance">Create global guidance:</h3>
<p>1.make sure the directory exist:
2.create with reusable preference
3.run codex anywhere to confirm it loads the file</p>
<p>if you want a temporary global ,use AGENTS.override.md</p>
<h3 id="layer-project-instructions">Layer project instructions:</h3>
<p>1.In your repository root, add an <code>AGENTS.md</code> that covers basic setup
2.Add overrides in nested directories when specific teams need different rules. For example, inside <code>services/payments/</code> create <code>AGENTS.override.md</code>
3.Start Codex from the payments directory:</p>
<h3 id="add-code-reviews-rules">Add code reviews rules:</h3>
<p>For <a href="https://learn.chatgpt.com/docs/third-party/github#customize-what-codex-reviews">Codex code review in GitHub</a>, add a <code>## Code Review Rules</code> section to the <code>AGENTS.md</code> closest to the code the rules govern. Put repository-wide checks at the root and service-specific checks in a nested file.</p>
<h3 id="customize-fallback-filenames">Customize fallback filenames:</h3>
<p>if u use a customize filename,add it to the fallback list then Codex can really read it as a instructions file:
1.edit your  Codex configuration</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl"># ~/.codex/config.toml
</span></span><span class="line"><span class="cl">project_doc_fallback_filenames = [&#34;TEAM_GUIDE.md&#34;, &#34;.agents.md&#34;]
</span></span><span class="line"><span class="cl">project_doc_max_bytes = 65536
</span></span></code></pre></td></tr></table>
</div>
</div><p>2.Restart Codex or run a new command to update  configuration loads:</p>
]]></content:encoded>
    </item>
    <item>
      <title>个性化 ChatGPT</title>
      <link>https://tuanzi-wow.cn/codex/codex-personalize-chatgpt/</link>
      <pubDate>Mon, 07 Sep 2026 00:00:00 +0800</pubDate>
      <guid>https://tuanzi-wow.cn/codex/codex-personalize-chatgpt/</guid>
      <description>通过 personality 与 custom instructions 让偏好和上下文跨会话保持。</description>
      <content:encoded><![CDATA[<h2 id="personalize-gpt">Personalize GPT</h2>
<p>set preference and carry useful context across chats:</p>
<h2 id="choose-a-personality">Choose a personality:</h2>
<p>Friendly, pragmatic,or None</p>
<h2 id="add-custom-instructions">Add custom instructions:</h2>
<p>In your global <strong>AGENTS.md</strong></p>
<h2 id="carry-context-forward-with-memories">Carry context forward with memories:</h2>
<p>Memories are separate from required project guidance. Keep instructions that must always apply in <code>AGENTS.md</code> or checked-in project documentation.</p>
<h2 id="add-recent-activity-with-computer-history">Add recent activity with Computer History</h2>
<p>Review what Computer History includes before enabling it</p>
<h2 id="manage--personalization">Manage  personalization:</h2>
<p>pen <a href="#ZgotmplZ"><strong>Settings</strong></a> to update your personality, custom instructions, memories, and other available personalization controls. See <a href="https://learn.chatgpt.com/docs/reference/settings">ChatGPT desktop app settings</a> for an overview of everyday preferences.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Skills 与 Plugins</title>
      <link>https://tuanzi-wow.cn/codex/codex-skills-plugins/</link>
      <pubDate>Mon, 07 Sep 2026 00:00:00 +0800</pubDate>
      <guid>https://tuanzi-wow.cn/codex/codex-skills-plugins/</guid>
      <description>Skill 封装任务指令与资源、Plugin 组合工具，减少重复粘贴提示词与模板。</description>
      <content:encoded><![CDATA[<h2 id="skills--plugins">Skills &amp; Plugins</h2>
<p>Helps to complete repeatable work with the right instructions,resources,and tools,They reduce the need to paste the same prompt ,template,requirements,or process into every chat.</p>
<h4 id="skill">Skill:</h4>
<p>A <strong>skill</strong> packages instructions and supporting resources for a specific task or workflow.</p>
<h4 id="plugin">Plugin:</h4>
<p>A <strong>plugin</strong> is an installable bundle that can include skills, connectors, or both. Connectors are backed by Model Context Protocol (MCP) servers and can optionally include custom ChatGPT UI.</p>
<h2 id="use-skills-for-repeatable-work">Use skills for <strong>repeatable</strong> work:</h2>
<p>A skill is a reusable workflow that gives ChatGPT or Codex task-specific guidance.</p>
<p>A skill can combine:</p>
<ul>
<li>A name and description that help ChatGPT and Codex recognize when the skill applies.</li>
<li>Workflow instructions that define the process and expected result.</li>
<li>Supporting resources such as templates, examples, brand guidance, schemas, or connected tools.</li>
</ul>
<h2 id="build-skills">Build skills:</h2>
<p>You can start by turning a task you already repeat into a focused playbook for ChatGPT and Codex.</p>
<p>To build a useful skill:</p>
<ol>
<li><strong>Choose one focused task.</strong> Note what you normally start with, such as files, links, or notes, and what a finished result should look like.</li>
<li><strong>Describe the workflow.</strong> In ChatGPT, start with <code>@skill-creator</code>; in Codex, use <code>$skill-creator</code>. Explain the goal, the steps to follow, the expected format, and anything the skill should always include or avoid. Add a template or a good example when you have one.</li>
<li><strong>Review and try the draft.</strong> Check the instructions, test the skill with a realistic request, and refine it if the result misses a step or drifts from the format you want.</li>
<li><strong>Install and reuse it.</strong> Once the skill is enabled, ChatGPT or Codex can use it for relevant requests, or you can select it explicitly. You can also share it with teammates when your workspace settings allow it.</li>
</ol>
<h2 id="use-plugins-for-tools-and-shared-workflows">Use plugins for tools and shared workflows:</h2>
<p>A plugin can combine skills with connectors for services such as GitHub, Google Drive, or Slack, and can include MCP servers for additional tools and context.</p>
<h2 id="choose-between-a-skill-and-a-plugin">Choose between a skill and a plugin:</h2>
<p>Use a skill when you need <strong>reusable instructions</strong> for a <strong>focused</strong> task.</p>
<p>Use a plugin when you want an <strong>installable package</strong> that can combine instructions with connected services or other tools.</p>
<h2></h2>
]]></content:encoded>
    </item>
    <item>
      <title>Prompting 要点</title>
      <link>https://tuanzi-wow.cn/codex/codex-prompting/</link>
      <pubDate>Mon, 07 Sep 2026 00:00:00 +0800</pubDate>
      <guid>https://tuanzi-wow.cn/codex/codex-prompting/</guid>
      <description>提示词结构要点：目标、上下文与输出的格式、长度与详细程度。</description>
      <content:encoded><![CDATA[<h2 id="prompting">Prompting</h2>
<h2 id="overview">overview</h2>
<p>Larger task,plz include these parts:
Goal
Context
Output: format,length,level of detail
Boundaries</p>
<h2 id="describe-the-result-u-need">Describe the result u need:</h2>
<p>not detailed list,but needed details those change what AI should produce</p>
<h2 id="add-useful-context">Add useful context:</h2>
<p>for example:
necessary attach file;
visual work: screenshot,image;and point out which area matters
web search: Explicitly( 显式地 ) ask to use Web Search in the conversation.
share resources: using a directory</p>
<h2 id="use-connected-sources">Use connected sources:</h2>
<p>name where it should look and what if should find</p>
<h2 id="using-plugins">Using plugins:</h2>
<p>plugins provide reusable instructions and connections to tools
Ask for the result u need and let the active surface choose from the tools available to it</p>
<h2 id="personalize-">Personalize :</h2>
<p>Put preferences that should apply across chats in <strong>Settings &gt; Personalization</strong> as custom instructions.</p>
<h2 id="set-boundaries-that-prevent-real-problems">Set boundaries that prevent real problems:</h2>
<p>avoid creating extra work or taking an action u did not asked.</p>
<ul>
<li>Keep the approved dates and budget figures unchanged.</li>
<li>Use only the supplied sources. Flag missing information instead of guessing.</li>
<li>Keep recommendations within the stated budget.</li>
<li>Prepare the message as a draft. Don&rsquo;t send it.
focus on the one or two boundaries that really matters</li>
</ul>
<h2 id="improve-the-result-with-follow-up-messages">Improve the result with follow-up messages:</h2>
<p>Your first prompt doesn&rsquo;t need to be perfect. Review the result, then ask for the specific change you want.</p>
<h2 id="steering-and-queuing">Steering and queuing:</h2>
<p>Steer add to the current run;Queue for the next run.
In the CLI,using Enter to steer,and Tab to queue.</p>
<h2 id="put-the-pieces-together">Put the pieces together:</h2>
<p>include the four parts(maybe not all) above</p>
<h2 id="use-voice-dictation">Use voice dictation:</h2>
<p>Ctrl+Shift+Tab</p>
<h2 id="prompting-examples-for-chat">Prompting examples for chat:</h2>
<p>start with the outcome u want and add details when it changes to the answer</p>
<h3 id="understand-a-topic">Understand a topic</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">Explain how compound interest works for someone who has never invested.
</span></span><span class="line"><span class="cl">Use one concrete example and define any financial terms you introduce.
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="draft-and-refine-writing">Draft and refine writing</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">Draft a friendly email declining this invitation because I will be traveling.
</span></span><span class="line"><span class="cl">Keep it under 120 words and leave the door open for a future event.
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="compare-options">Compare options</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">Compare these two phone plans for one person who travels internationally twice
</span></span><span class="line"><span class="cl">a year. Show the important differences in a table, then recommend one and explain
</span></span><span class="line"><span class="cl">the tradeoff.
</span></span></code></pre></td></tr></table>
</div>
</div><h3 id="make-a-practical-plan">Make a practical plan</h3>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">Plan five weekday dinners that take less than 30 minutes. Avoid peanuts, reuse
</span></span><span class="line"><span class="cl">ingredients across meals, and finish with one consolidated shopping list.
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="prompting-codex">Prompting codex:</h2>
<p>Name the behavior u want,points to the relevant code or codebase or reproduction steps,preserves important constraints and says how to verify the change.</p>
<p>For a muti-step task,<strong>/plan</strong> when u want codex to investigate and propose an approach before editing.
<strong>/goal</strong> to set a persistent goal
CLI: using <strong>/mention</strong> and @ path autocomplete
Codex runs local commands inside a sandbox that limits file and network access</p>
<h2 id="explain-a-codebase">Explain a codebase:</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">Explain how the request flows through the selected code.
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Include:
</span></span><span class="line"><span class="cl">- a short summary of the responsibilities of each module involved
</span></span><span class="line"><span class="cl">- what data is validated and where
</span></span><span class="line"><span class="cl">- one or two &#34;gotchas&#34; to watch for when changing this
</span></span></code></pre></td></tr></table>
</div>
</div><h2 id="fix-a-bug">Fix a bug:</h2>
<p>Give Codex a reproduction recipe, plus the file(s) you suspect</p>
<p>Context notes: by u and by Codex itself
Verification:
Run the repro steps after fix
if u have a standard check pipeline ,ask it to run it</p>
<h2 id="write-a-test">Write a test:</h2>
<p>Prompt with a function name:
by the way,function name should be meaningful</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
