Skip to content

refactor: redesign create-expert with role-based delegation#736

Merged
FL4TLiN3 merged 2 commits intomainfrom
refactor/create-expert-v2
Mar 11, 2026
Merged

refactor: redesign create-expert with role-based delegation#736
FL4TLiN3 merged 2 commits intomainfrom
refactor/create-expert-v2

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Restructure create-expert into a focused pipeline: plan (PM/wedge designer), design-roles (architect), build (iterative builder+tester), test-expert, find-skill
  • Remove generate-skill (custom skills deferred for portability concerns)
  • Coordinator now judges final perstack.toml against plan requirements with Create/Update mode detection
  • Domain knowledge extraction reframed: user's request is the primary source of domain knowledge
  • Runtime meta-prompt cleanup criteria softened to preserve workflow artifacts
  • Test queries reduced from 10 to 3 for practical iteration speed

Test plan

  • bun run typecheck passes
  • bun run test passes
  • bun run build passes
  • Manual test: run create-expert with a sample query via Docker

🤖 Generated with Claude Code

@FL4TLiN3 FL4TLiN3 enabled auto-merge (squash) March 11, 2026 11:34
FL4TLiN3 and others added 2 commits March 11, 2026 20:44
…tive testing

Restructure create-expert into a focused pipeline:
- planner → plan (Product Manager: wedge analysis, domain knowledge extraction, 3 test queries)
- NEW architect → design-roles (technical architecture, delegation tree, skill mapping)
- NEW builder → build (perstack.toml authoring + iterative test-fix loop until all tests pass)
- expert-tester → test-expert (single query executor with structured pass/fail reporting)
- skill-finder → find-skill (unchanged)
- REMOVED generate-skill (custom skills deferred for portability)

Key changes:
- Coordinator now judges final perstack.toml against plan requirements
- Create/Update mode detection based on existing perstack.toml
- Stale intermediate files (plan.md, skill-report.md) cleaned before each run
- Domain knowledge extraction reframed: user's request IS the primary source
- Runtime meta-prompt cleanup criteria softened to preserve workflow artifacts
- perstack.toml declared as SSOT

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 force-pushed the refactor/create-expert-v2 branch from 97af84c to 75c0e19 Compare March 11, 2026 11:44
@FL4TLiN3 FL4TLiN3 merged commit 3d25bcc into main Mar 11, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the refactor/create-expert-v2 branch March 11, 2026 11:45
@FL4TLiN3 FL4TLiN3 mentioned this pull request Mar 11, 2026
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.

1 participant