mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-06 16:31:12 +08:00
## Task -> Agent Replacement
- Replace all Task({}) calls with Agent({}) across .claude/ directory
- Update allowed-tools declarations from Task to Agent
- Update documentation references from "Task tool" to "Agent tool"
## Schema Compliance Fixes
### Agent Schema
- Add missing required `description` parameter in 6 files
- Add missing `run_in_background: false` for subagent calls
- Add missing `subagent_type` parameter
### AskUserQuestion Schema
- Fix issue-manage/SKILL.md: reduce options from 5 to 4 (max allowed)
### SendMessage Schema
- Fix team-worker.md: use correct params (type, content, summary)
- Remove invalid `team_name` parameter
### TaskCreate/TaskUpdate Schema
- Remove invalid `blockedBy`, `owner`, `status` from TaskCreate calls
- Use separate TaskUpdate calls for dependencies and ownership
- Fix TaskUpdate syntax to use object parameter
### TeamDelete Schema
- Remove parameters from TeamDelete() calls (should be no params)
### TaskOutput Schema
- Fix Python-style syntax to JavaScript object syntax
## Files Changed
- 146 files updated across commands/, skills/, skills_lib/, agents/
80 lines
2.5 KiB
Markdown
80 lines
2.5 KiB
Markdown
---
|
|
role: fe-developer
|
|
prefix: DEV-FE
|
|
inner_loop: false
|
|
discuss_rounds: []
|
|
subagents: []
|
|
message_types:
|
|
success: dev_fe_complete
|
|
progress: dev_fe_progress
|
|
error: error
|
|
---
|
|
|
|
# FE Developer — Phase 2-4
|
|
|
|
## Phase 2: Context Loading
|
|
|
|
**Inputs to load**:
|
|
- Plan: `<session-folder>/plan/plan.json`
|
|
- Design tokens: `<session-folder>/architecture/design-tokens.json` (optional)
|
|
- Design intelligence: `<session-folder>/analysis/design-intelligence.json` (optional)
|
|
- Component specs: `<session-folder>/architecture/component-specs/*.md` (optional)
|
|
- Shared memory, wisdom
|
|
|
|
**Tech stack detection**:
|
|
|
|
| Signal | Framework | Styling |
|
|
|--------|-----------|---------|
|
|
| react/react-dom in deps | react | - |
|
|
| vue in deps | vue | - |
|
|
| next in deps | nextjs | - |
|
|
| tailwindcss in deps | - | tailwind |
|
|
| @shadcn/ui in deps | - | shadcn |
|
|
|
|
## Phase 3: Frontend Implementation
|
|
|
|
**Step 1**: Generate design token CSS (if tokens available)
|
|
- Convert design-tokens.json → CSS custom properties (`:root { --color-*, --space-*, --text-* }`)
|
|
- Include dark mode overrides via `@media (prefers-color-scheme: dark)`
|
|
- Write to `src/styles/tokens.css`
|
|
|
|
**Step 2**: Implement components
|
|
|
|
| Task Size | Strategy |
|
|
|-----------|----------|
|
|
| Simple (<= 3 files, single component) | `Agent({ subagent_type: "code-developer", run_in_background: false })` |
|
|
| Complex (system, multi-component) | `ccw cli --tool gemini --mode write` (background) |
|
|
|
|
**Coding standards** (include in agent/CLI prompt):
|
|
- Use design token CSS variables, never hardcode colors/spacing
|
|
- Interactive elements: cursor: pointer
|
|
- Transitions: 150-300ms
|
|
- Text contrast: minimum 4.5:1
|
|
- Include focus-visible styles
|
|
- Support prefers-reduced-motion
|
|
- Responsive: mobile-first
|
|
- No emoji as functional icons
|
|
|
|
## Phase 4: Self-Validation
|
|
|
|
| Check | What |
|
|
|-------|------|
|
|
| hardcoded-color | No #hex outside tokens.css |
|
|
| cursor-pointer | Interactive elements have cursor: pointer |
|
|
| focus-styles | Interactive elements have focus styles |
|
|
| responsive | Has responsive breakpoints |
|
|
| reduced-motion | Animations respect prefers-reduced-motion |
|
|
| emoji-icon | No emoji as functional icons |
|
|
|
|
Contribute to wisdom/conventions.md. Update shared-memory.json with component inventory.
|
|
|
|
**Report**: file count, framework, design token usage, self-validation results.
|
|
|
|
## Error Handling
|
|
|
|
| Scenario | Resolution |
|
|
|----------|------------|
|
|
| Design tokens not found | Use project defaults |
|
|
| Tech stack undetected | Default HTML + CSS |
|
|
| Subagent failure | Fallback to CLI write mode |
|