@@ -426,28 +426,9 @@ Full-lifecycle + FE:
426426 → IMPL-001 ∥ DEV-FE-001 → TEST-001 ∥ QA-FE-001 → REVIEW-001
427427```
428428
429- ### Frontend Detection (Coordinator Phase 1)
429+ ### Frontend Detection
430430
431- ```javascript
432- const FE_KEYWORDS = /component|page|UI|前端|frontend|CSS|HTML|React|Vue|Tailwind|组件|页面|样式|layout|responsive|Svelte|Next\.js|Nuxt|shadcn|设计系统|design.system/i
433-
434- const BE_KEYWORDS = /API|database|server|后端|backend|middleware|auth|REST|GraphQL|migration|schema|model|controller|service/i
435-
436- function detectImplMode(taskDescription) {
437- const hasFE = FE_KEYWORDS.test(taskDescription)
438- const hasBE = BE_KEYWORDS.test(taskDescription)
439-
440- // Also check project files
441- const hasFEFiles = Bash(`test -f package.json && (grep -q react package.json || grep -q vue package.json || grep -q svelte package.json || grep -q next package.json); echo $?`) === '0'
442-
443- if (hasFE && hasBE) return 'fullstack'
444- if (hasFE || hasFEFiles) return 'fe-only'
445- return 'impl-only' // default backend
446- }
447-
448- // Coordinator uses this in Phase 1 to select pipeline
449- const implMode = detectImplMode(requirements.scope + ' ' + requirements.originalInput)
450- ```
431+ Coordinator 在 Phase 1 根据任务关键词 + 项目文件自动检测前端任务并选择流水线模式(fe-only / fullstack / impl-only)。检测逻辑见 [roles/coordinator/role.md](roles/coordinator/role.md)。
451432
452433### Generator-Critic Loop (fe-developer ↔ fe-qa)
453434
@@ -523,79 +504,6 @@ Coordinator supports `--resume` / `--continue` flags to resume interrupted sessi
52350410. **Kick** — 向首个可执行任务的 worker 发送 ` task_unblocked` 消息,打破 resume 死锁
52450511. Jumps to Phase 4 coordination loop
525506
526- ## ui-ux-pro-max Integration (Frontend Pipelines)
527-
528- When frontend pipelines are active, the design intelligence chain leverages ui-ux-pro-max:
529-
530- ### Design Intelligence Chain
531-
532- ` ` `
533- analyst (RESEARCH - 001 )
534- └→ Skill (skill= " ui-ux-pro-max" , args= " ${industry} ${keywords} --design-system" )
535- └→ Output: {session}/ analysis/ design- intelligence .json
536-
537- architect (via planner PLAN - 001 )
538- └→ Consumes design- intelligence .json → generates design- tokens .json
539- └→ Output: {session}/ architecture/ design- tokens .json
540-
541- fe- developer (DEV - FE -* )
542- └→ Consumes design- tokens .json → generates src/ styles/ tokens .css (: root + dark mode)
543- └→ Consumes anti- patterns + implementation checklist from design- intelligence .json
544-
545- fe- qa (QA - FE -* )
546- └→ Consumes design- intelligence .json → industry anti- pattern checks
547- └→ Consumes design- tokens .json → design compliance checks
548- └→ Uses industry strictness (standard/ strict) for audit depth
549- ` ` `
550-
551- ### Skill Invocation
552-
553- ` ` ` javascript
554- // Full design system recommendation
555- Skill (skill= " ui-ux-pro-max" , args= " ${industry} ${keywords} --design-system" )
556-
557- // Domain-specific search (UX guidelines, typography, color)
558- Skill (skill= " ui-ux-pro-max" , args= " ${query} --domain ${domain}" )
559-
560- // Tech stack guidelines
561- Skill (skill= " ui-ux-pro-max" , args= " ${query} --stack ${stack}" )
562-
563- // Persist design system (cross-session reuse)
564- Skill (skill= " ui-ux-pro-max" , args= " ${query} --design-system --persist -p ${projectName}" )
565- ` ` `
566-
567- ### Supported Domains & Stacks
568-
569- - **Domains**: product, style, typography, color, landing, chart, ux, web
570- - **Stacks**: html-tailwind, react, nextjs, vue, svelte, shadcn, swiftui, react-native, flutter
571-
572- ### Fallback
573-
574- 若 ui-ux-pro-max skill 未安装,降级为 LLM 通用设计知识。安装命令:` / plugin install ui- ux- pro- max@ui- ux- pro- max- skill`
575-
576- ## Shared Memory (Frontend Pipelines)
577-
578- Frontend pipelines use ` shared- memory .json ` for cross-role state accumulation:
579-
580- ` ` ` json
581- {
582- " design_intelligence" : {},
583- " design_token_registry" : {
584- " colors" : {}, " typography" : {}, " spacing" : {}, " shadows" : {}
585- },
586- " component_inventory" : [],
587- " style_decisions" : [],
588- " qa_history" : [],
589- " industry_context" : { " industry" : " SaaS/科技" , " config" : { " strictness" : " standard" } }
590- }
591- ` ` `
592-
593- | Role | Phase 2 (Read) | Phase 4/5 (Write) |
594- |------|---------------|-------------------|
595- | coordinator | — | Initialize shared-memory.json |
596- | fe-developer | design_intelligence, design_token_registry | component_inventory |
597- | fe-qa | design_intelligence, industry_context, qa_history | qa_history |
598-
599507## Coordinator Spawn Template
600508
601509When coordinator creates teammates, use this pattern:
0 commit comments