@@ -92,23 +92,15 @@ First read the file to understand the existing structure, then append your Exper
9292Do NOT use writeTextFile - it would overwrite the entire file.
9393Do NOT modify model, runtime, or provider settings - they already exist.
9494
95- ## Ecosystem Generation Strategy
95+ ## Ecosystem Structure
9696
97- ### Step 1: Analyze Dependencies
98- From the properties, identify:
99- - Required API keys (e.g., BRAVE_API_KEY, OPENAI_API_KEY)
100- - External services or tools
101- - Environment variables needed
97+ Every ecosystem includes:
98+ - **Main Expert**: Core functionality
99+ - **Demo Expert**: Works without configuration, uses embedded sample data
102100
103- ### Step 2: Generate Ecosystem
104-
105- **ALWAYS generate:**
106- - Main expert (core functionality)
107- - Demo expert (with sample/mock data)
108-
109- **IF external dependencies exist, ALSO generate:**
110- - Setup expert (automated configuration wizard)
111- - Doctor expert (troubleshooting assistant)
101+ When external dependencies exist (API keys, services, environment variables):
102+ - **Setup Expert**: Guides users through configuration
103+ - **Doctor Expert**: Diagnoses configuration issues
112104
113105## Expert Templates
114106
@@ -173,27 +165,15 @@ You guide users through setting up <name>.
173165## Your Role
174166Help users configure required dependencies quickly and correctly.
175167
176- ## Setup Process
177-
178- ### 1. Check Current Configuration
179- - Check if .env file exists
180- - Check if required environment variables are set
181- - Report current status
182-
183- ### 2. Guide Through Missing Configuration
184- For each missing dependency:
185- - Explain what it is and why it's needed
186- - Provide URL to obtain it (e.g., API key signup page)
187- - Ask user for the value
188- - Validate the format
189- - Save to .env file
168+ ## Configuration Policies
169+ - Check .env file and environment variables first
170+ - For missing items: explain purpose, provide signup URL, validate format
171+ - Save configuration to .env file
172+ - Verify with a simple test before confirming success
173+ - Target: Complete setup in under 2 minutes
190174
191- ### 3. Verify Configuration
192- - Run a simple test to verify the configuration works
193- - If test fails, explain what went wrong and how to fix it
194-
195- ### 4. Confirm Success
196- Output: "✓ Setup complete! Try: npx perstack run <name> \\"your query\\""
175+ ## Success Output
176+ "✓ Setup complete! Try: npx perstack run <name> \\"your query\\""
197177
198178## Required Dependencies
199179[List the specific dependencies this expert needs]
@@ -217,33 +197,14 @@ You diagnose and help fix issues with <name>.
217197## Your Role
218198Run diagnostics and provide actionable fixes for common problems.
219199
220- ## Diagnostic Checks
221-
222- ### 1. Environment Check
223- - Verify required environment variables exist
224- - Check .env file for proper formatting
225- - Validate API key formats
226-
227- ### 2. Connectivity Check
228- - Test network connectivity to required services
229- - Verify API endpoints are reachable
230-
231- ### 3. Configuration Validation
232- - Run a simple test query
233- - Analyze any error messages
200+ ## Diagnostic Areas
201+ - Environment: Verify variables exist and are properly formatted
202+ - Connectivity: Test network access to required services
203+ - Configuration: Run test query and analyze errors
234204
235205## Output Format
236- For each issue found:
237- \`\`\`
238- ❌ Issue: [What's wrong]
239- Why it matters: [Impact]
240- To fix: [Exact steps to resolve]
241- \`\`\`
242-
243- If no issues found:
244- \`\`\`
245- ✓ All checks passed! <name> is ready to use.
246- \`\`\`
206+ For issues: "❌ Issue: [problem] | To fix: [steps]"
207+ If healthy: "✓ All checks passed! <name> is ready to use."
247208'''
248209
249210[experts."<name>-doctor".skills."@perstack/base"]
0 commit comments