Skip to content

feat(create-expert): Generate Expert Ecosystems with Usability Focus#348

Merged
FL4TLiN3 merged 2 commits intomainfrom
feat/expert-ecosystems
Jan 3, 2026
Merged

feat(create-expert): Generate Expert Ecosystems with Usability Focus#348
FL4TLiN3 merged 2 commits intomainfrom
feat/expert-ecosystems

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Jan 3, 2026

Summary

Transform create-expert from generating single experts to generating expert ecosystems with built-in usability:

  • Main expert: Core functionality
  • Demo expert (<name>-demo): Works immediately with sample data (no setup required)
  • Setup expert (<name>-setup): Automated configuration wizard (only if external deps exist)
  • Doctor expert (<name>-doctor): Troubleshooting assistant (only if external deps exist)

Changes

  1. property-extractor: Added usability properties (Zero-Config, Setup-Automation, Error-Guidance) and external dependencies analysis
  2. ecosystem-builder: Replaced expert-builder with ecosystem generation (includes templates for demo, setup, doctor experts)
  3. usability-manager: New PDCA manager for usability testing
  4. expert-tester: Added usability stage handling
  5. report-generator: Updated to show ecosystem info and quick start guide

Expected Behavior

After this change, when a user creates an expert with external dependencies:

npx create-expert --headless --description "A web researcher using Brave Search"

They get an ecosystem:

web-researcher       # Main expert
web-researcher-demo  # Try without setup
web-researcher-setup # Automated API key configuration
web-researcher-doctor # Troubleshooting

Test Plan

  • Verify create-expert generates ecosystem for experts with external dependencies
  • Verify demo expert works without any setup
  • Verify setup expert guides through configuration
  • Verify doctor expert diagnoses issues
  • Verify usability-manager tests all ecosystem experts

Closes #337

🤖 Generated with Claude Code


Note

Transforms create-expert to produce an expert ecosystem instead of a single expert.

  • Ecosystem generation: Replaces expert-builder with ecosystem-builder; adds templates for main, -demo, -setup, -doctor; append-only edits to perstack.toml
  • Usability focus: property-extractor now returns usability properties (Zero-Config, Setup-Automation, Error-Guidance) and external dependencies
  • New PDCA stage: Adds usability-manager; updates expert-tester with a "usability" stage to validate demo w/o setup, guided setup, doctor diagnostics, and actionable error guidance
  • Reporting: report-generator updated for ecosystem-aware outputs and quick start commands
  • Orchestration: Updates create-expert delegates to include ecosystem-builder and usability-manager; adds/renames expert definitions in TOML

Written by Cursor Bugbot for commit 8487774. This will update automatically on new commits. Configure here.

Transform create-expert from generating single experts to generating
expert ecosystems (main + demo + setup + doctor).

- Add usability properties to property-extractor
- Rename expert-builder to ecosystem-builder
- Add usability-manager for PDCA on usability
- Update expert-tester with usability stage
- Update report-generator for ecosystems

Closes #337

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Jan 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@FL4TLiN3 FL4TLiN3 merged commit 0ebf06e into main Jan 3, 2026
7 checks passed
@FL4TLiN3 FL4TLiN3 deleted the feat/expert-ecosystems branch January 3, 2026 04:29
- If demo missing/broken: Fix demo expert instructions
- If setup broken: Fix setup automation flow
- If errors unclear: Add actionable "To fix:" guidance
- If doctor missing: Generate doctor expert
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usability manager may incorrectly create doctor expert

The USABILITY_MANAGER_INSTRUCTION's Act phase says "If doctor missing: Generate doctor expert" without any conditional check. However, ECOSYSTEM_BUILDER_INSTRUCTION explicitly states doctor experts are only created "IF external dependencies exist". This inconsistency means usability-manager could create a doctor expert even when there are no external dependencies, contradicting the ecosystem design where doctor experts are only meant for experts with external API keys or services.

Additional Locations (1)

Fix in Cursor Fix in Web


[experts."expert-name".skills."@perstack/base"]
### 4. Confirm Success
Output: "✓ Setup complete! Try: npx perstack run <name> \\"your query\\""
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect escaping produces visible backslashes in output template

The escaped double quotes \\"your query\\" in the Setup Expert Template instruction are unnecessary in JavaScript template literals. This produces the literal characters \"your query\" with visible backslashes in the final TOML instruction. When the generated setup expert displays the success message, it would show something like npx perstack run name \"your query\" with visible backslash characters instead of clean quotes, which looks incorrect to end users.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(create-expert): Generate Expert Ecosystems with Usability Focus

1 participant