<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ephemerawiki.space/index.php?action=history&amp;feed=atom&amp;title=Help%3AEphemera_Agent%2FStub_Workflow</id>
	<title>Help:Ephemera Agent/Stub Workflow - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ephemerawiki.space/index.php?action=history&amp;feed=atom&amp;title=Help%3AEphemera_Agent%2FStub_Workflow"/>
	<link rel="alternate" type="text/html" href="https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Stub_Workflow&amp;action=history"/>
	<updated>2026-05-19T11:05:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Stub_Workflow&amp;diff=694&amp;oldid=prev</id>
		<title>EphemeraAdmin: New page: full stub/expand lifecycle</title>
		<link rel="alternate" type="text/html" href="https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Stub_Workflow&amp;diff=694&amp;oldid=prev"/>
		<updated>2026-04-09T19:17:56Z</updated>

		<summary type="html">&lt;p&gt;New page: full stub/expand lifecycle&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:Ephemera Agent — Stub Workflow}}&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
The stub workflow is a two-phase content creation strategy:&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Stub phase&amp;#039;&amp;#039;&amp;#039; — generate minimal placeholder articles for many pages quickly (cheap, fast)&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Expand phase&amp;#039;&amp;#039;&amp;#039; — select stubs one at a time, optionally add custom context, and expand them into full articles&lt;br /&gt;
&lt;br /&gt;
This is useful when exploring a new area of the wiki with many red links: stub all of them first to get a structural skeleton, then expand the ones that matter most.&lt;br /&gt;
&lt;br /&gt;
== Phase 1: Generating Stubs ==&lt;br /&gt;
&lt;br /&gt;
=== Single red link ===&lt;br /&gt;
&lt;br /&gt;
# Set &amp;#039;&amp;#039;&amp;#039;Article Depth&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;Stub only&amp;#039;&amp;#039;&amp;#039; in the Settings tab&lt;br /&gt;
# Browse to any page in the Browser tab&lt;br /&gt;
# Click a red link&lt;br /&gt;
&lt;br /&gt;
The agent generates a minimal stub (section headers, 1–3 sentences each, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{stub}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; tag, one category) and posts it to the wiki. The Context tab opens automatically with the new stub pre-loaded.&lt;br /&gt;
&lt;br /&gt;
=== Batch stubs ===&lt;br /&gt;
&lt;br /&gt;
# Set &amp;#039;&amp;#039;&amp;#039;Article Depth&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;Stub only&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Browse to a page with multiple red links&lt;br /&gt;
# Click the &amp;#039;&amp;#039;&amp;#039;⚡ Stub N red links&amp;#039;&amp;#039;&amp;#039; button in the browser toolbar&lt;br /&gt;
&lt;br /&gt;
The agent generates and posts stubs for every red link sequentially. When complete, the source page reloads — previously red links are now blue (navigable stubs).&lt;br /&gt;
&lt;br /&gt;
=== Source links ===&lt;br /&gt;
&lt;br /&gt;
Red links targeting pages with a &amp;lt;code&amp;gt;Source:&amp;lt;/code&amp;gt; title prefix are automatically routed to source-document generation rather than encyclopedia generation — regardless of the Page Type setting.&lt;br /&gt;
&lt;br /&gt;
== Phase 2: Exploring Stubs ==&lt;br /&gt;
&lt;br /&gt;
After batch generation, browse to any stub page. The Context tab automatically detects the page is a stub and:&lt;br /&gt;
&lt;br /&gt;
* Loads the stub wikitext into the &amp;#039;&amp;#039;&amp;#039;Stub / Prompt field&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Enables the &amp;#039;&amp;#039;&amp;#039;POST ↑&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;EXPAND ↵&amp;#039;&amp;#039;&amp;#039; buttons&lt;br /&gt;
* Records the page title for posting&lt;br /&gt;
&lt;br /&gt;
You can also load context pages into the &amp;#039;&amp;#039;&amp;#039;Custom Pages&amp;#039;&amp;#039;&amp;#039; section using the &amp;#039;&amp;#039;&amp;#039;+ CONTEXT&amp;#039;&amp;#039;&amp;#039; button in the browser toolbar while browsing related articles.&lt;br /&gt;
&lt;br /&gt;
== Phase 3: Expanding a Stub ==&lt;br /&gt;
&lt;br /&gt;
With a stub loaded in the Context tab:&lt;br /&gt;
&lt;br /&gt;
=== Option A — EXPAND ↵ (LLM) ===&lt;br /&gt;
&lt;br /&gt;
Click &amp;#039;&amp;#039;&amp;#039;EXPAND ↵&amp;#039;&amp;#039;&amp;#039;. The agent runs with:&lt;br /&gt;
&lt;br /&gt;
* Task type: &amp;lt;code&amp;gt;stub_expansion&amp;lt;/code&amp;gt;&lt;br /&gt;
* Context: full context assembly pipeline (encyclopedia pages, instructions, sources) &amp;#039;&amp;#039;&amp;#039;plus&amp;#039;&amp;#039;&amp;#039; any custom pages you&amp;#039;ve added&lt;br /&gt;
* Prompt: built from the stub text and the page title&lt;br /&gt;
&lt;br /&gt;
After generation, the browser switches to the updated page.&lt;br /&gt;
&lt;br /&gt;
=== Option B — POST ↑ (direct) ===&lt;br /&gt;
&lt;br /&gt;
Edit the stub text in the field manually, then click &amp;#039;&amp;#039;&amp;#039;POST ↑&amp;#039;&amp;#039;&amp;#039; to write it directly to the wiki without an LLM call. Any custom pages are appended as a &amp;lt;code&amp;gt;== See also ==&amp;lt;/code&amp;gt; section.&lt;br /&gt;
&lt;br /&gt;
== Stub Detection Thresholds ==&lt;br /&gt;
&lt;br /&gt;
A page is treated as a stub if any of the following are true:&lt;br /&gt;
&lt;br /&gt;
* Wikitext length &amp;lt; 1,500 characters&lt;br /&gt;
* Contains &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{stub}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Contains &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Stubs]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Category:Stub]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Instructions Used ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Phase !! Task type !! Instruction page&lt;br /&gt;
|-&lt;br /&gt;
| Stub generation || &amp;lt;code&amp;gt;create_stub&amp;lt;/code&amp;gt; || [[Instructions:Create/Stub]]&lt;br /&gt;
|-&lt;br /&gt;
| Batch red link stubs || &amp;lt;code&amp;gt;create_stub&amp;lt;/code&amp;gt; || [[Instructions:Create/Stub]]&lt;br /&gt;
|-&lt;br /&gt;
| Expand || &amp;lt;code&amp;gt;stub_expansion&amp;lt;/code&amp;gt; || [[Instructions:Create/Encyclopedia Article]], [[Instructions:Schema/Encyclopedia Article]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:Help]]&lt;br /&gt;
[[Category:EphemeraAgent]]&lt;/div&gt;</summary>
		<author><name>EphemeraAdmin</name></author>
	</entry>
</feed>