<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tang Weigang</title>
    <description>The latest articles on DEV Community by Tang Weigang (@doramagic).</description>
    <link>https://dev.to/doramagic</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3936036%2F9206ba55-8d8f-457e-a399-6e3316ef715f.png</url>
      <title>DEV Community: Tang Weigang</title>
      <link>https://dev.to/doramagic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/doramagic"/>
    <language>en</language>
    <item>
      <title>An AI agent resource pack is more than a prompt</title>
      <dc:creator>Tang Weigang</dc:creator>
      <pubDate>Sun, 17 May 2026 14:13:44 +0000</pubDate>
      <link>https://dev.to/doramagic/an-ai-agent-resource-pack-is-more-than-a-prompt-1cia</link>
      <guid>https://dev.to/doramagic/an-ai-agent-resource-pack-is-more-than-a-prompt-1cia</guid>
      <description>&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;When developers ask an AI coding agent to build an agent workflow, the first failure is often not syntax. It is overconfidence.&lt;/p&gt;

&lt;p&gt;The agent may generate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a package install command,&lt;/li&gt;
&lt;li&gt;a first agent,&lt;/li&gt;
&lt;li&gt;a tool call,&lt;/li&gt;
&lt;li&gt;a handoff,&lt;/li&gt;
&lt;li&gt;a demo run,&lt;/li&gt;
&lt;li&gt;and a conclusion that the workflow is working.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But "generated a workflow" is not the same as "verified a workflow".&lt;/p&gt;

&lt;p&gt;That is the difference Doramagic is trying to address.&lt;/p&gt;

&lt;p&gt;A Doramagic resource pack is not just a prompt. It is a portable capability asset for an AI coding host:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;source map
-&amp;gt; host instructions
-&amp;gt; prompt preview
-&amp;gt; pitfall log
-&amp;gt; smoke check / eval
-&amp;gt; boundary card
-&amp;gt; human manual
-&amp;gt; test log
-&amp;gt; feedback path
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The pack gives the coding agent a way to work from evidence instead of guessing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example: OpenAI Agents Python
&lt;/h2&gt;

&lt;p&gt;For &lt;code&gt;openai/openai-agents-python&lt;/code&gt;, a common early failure is identity confusion:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;repository name: openai-agents-python
package / install name: openai-agents
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That looks small, but it matters. An agent can search for one name, install another, and then write workflow code without proving that the installed package and imported module match the upstream project it is referencing.&lt;/p&gt;

&lt;p&gt;If this were only a blog post, the fix would be:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Use the correct package name.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is too shallow.&lt;/p&gt;

&lt;p&gt;The resource-pack version turns it into an acceptance boundary:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. State the upstream repository.
2. State the install package.
3. State the import path used in the local code.
4. Run the minimal import check.
5. Do not write workflow code until the identity check passes.
6. If it fails, stop and report the mismatch.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the pack should make the agent do
&lt;/h2&gt;

&lt;p&gt;Before writing more agents, more handoffs, or more tools, the coding host should load the pack and ask for a first acceptance pass:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Read the host instructions.
Use the prompt preview.
Check the pitfall log.
Run a minimal smoke check.
Report PASS / FAIL.
State what is still not verified.
Only then continue.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For an agent workflow, that means the first useful deliverable is not a bigger multi-agent graph. It is a verified failure path.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;If package identity cannot be confirmed:
  stop before writing workflow code.

If the first tool call cannot be verified:
  stop before adding handoffs.

If the first handoff cannot be inspected:
  stop before adding more agents.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the key product idea: the pack constrains the agent's confidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this is not
&lt;/h2&gt;

&lt;p&gt;This is not:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;an official upstream release;&lt;/li&gt;
&lt;li&gt;a benchmark claim;&lt;/li&gt;
&lt;li&gt;a promise that AI coding agents always produce correct output;&lt;/li&gt;
&lt;li&gt;a replacement for upstream documentation;&lt;/li&gt;
&lt;li&gt;a generic article about agent frameworks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is a reviewable context asset that helps an AI coding host preserve source relationships, avoid known wrong turns, and expose the boundary of what has or has not been verified.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the test log matters
&lt;/h2&gt;

&lt;p&gt;A credible resource pack should expose what it has not proven.&lt;/p&gt;

&lt;p&gt;If a pack has not been loaded into a real host, or the recovery path has not been exercised, that should stay visible. Otherwise the pack becomes marketing copy instead of operational context.&lt;/p&gt;

&lt;p&gt;The correct claim is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This pack gives an AI coding agent a structured way to verify and recover.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The wrong claim is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This pack proves every workflow will work.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  A practical prompt
&lt;/h2&gt;

&lt;p&gt;You can give an AI coding agent a task like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Use the OpenAI Agents Python resource pack as your operating context.

Before writing workflow code:
1. identify upstream repo vs package name;
2. verify install/import assumptions;
3. inspect the pitfall log;
4. define the first failure path;
5. run or describe the smoke check;
6. mark unsupported claims as unverified.

Do not add more agents until the first workflow has a failure path.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is the value of a capability pack: it changes the agent's behavior before the code expands.&lt;/p&gt;

&lt;h2&gt;
  
  
  Non-official statement
&lt;/h2&gt;

&lt;p&gt;This Doramagic pack is independent. It is not an official release from &lt;code&gt;openai/openai-agents-python&lt;/code&gt;, and it does not represent upstream endorsement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Pack: &lt;code&gt;https://github.com/tangweigang-jpg/doramagic-openai-agents-python-pack&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Upstream: &lt;code&gt;https://github.com/openai/openai-agents-python&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>agents</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
