LogoSkills

Agent Improvement Requirements

---

Written: 2025-12-17 Purpose: Agent improvements identified during Community Feature implementation


๐ŸŽฏ Agents Needing Improvement#

1. /figma:analyze Improvement#

Current Problem:

  • โŒ Only analyzes without connecting to actual UI implementation
  • โŒ Figma frame links not recorded in ZenHub Story

Improvement Requirements:

Content to Add to Story Body:

## ๐ŸŽจ Figma Design

**ํ”„๋ ˆ์ž„ ๋งํฌ**:
- [๋ชฉ๋ก ํ™”๋ฉด](https://www.figma.com/design/QkKRtr51GXgmLdKcKcBqQe/๐Ÿถ-Petaround?node-id=235-11480)
- [์ƒ์„ธ ํ™”๋ฉด](https://www.figma.com/design/...)
- [์ž‘์„ฑ ํ™”๋ฉด](https://www.figma.com/design/...)

Agent Behavior:

1. ํ”ผ๊ทธ๋งˆ URL ํŒŒ์‹ฑ
2. Story ๋ฌธ์„œ ์ƒ์„ฑ ์‹œ  " ## ๐ŸŽจ Figma Design "   ์„น์…˜ ์ž๋™ ์ถ”๊ฐ€
3. ๊ฐ ํ™”๋ฉด๋ณ„ ํ”„๋ ˆ์ž„ ๋งํฌ ๋งคํ•‘

1-2. Connect to Actual UI Implementation

Current Flow:

ํ”ผ๊ทธ๋งˆ ๋ถ„์„ โ†’ Requirements document โ†’ BDD ์‹œ๋‚˜๋ฆฌ์˜ค โ†’ (๋)

Improved Flow:

ํ”ผ๊ทธ๋งˆ ๋ถ„์„ โ†’ Requirements document โ†’ BDD ์‹œ๋‚˜๋ฆฌ์˜ค โ†’ ZenHub ์ƒ์„ฑ โ†’ UI ๊ตฌํ˜„ โ†’ ๊ฒ€์ฆ

Additional Phases:

Phase 7: UI ๊ตฌํ˜„ (NEW)
  - /feature:presentation ์‹คํ–‰
  - ํ”ผ๊ทธ๋งˆ ์Šคํƒ€์ผ ๋ฐ˜์˜
  - ์‹ค์ œ ํ™”๋ฉด ๊ตฌํ˜„

Phase 8: ๋™์ž‘ ๊ฒ€์ฆ (NEW)
  - build_runner ์‹คํ–‰
  - ํ…Œ์ŠคํŠธ ์‹คํ–‰
  - ํ™”๋ฉด ๋™์ž‘ ํ™•์ธ

2. ZenHub Issue Body Format Improvement#

Current Problem:

  • โŒ Only provides links (cannot verify actual content)
  • โŒ Shows all content even when long (reduces readability)

Current Format:

## References
- [Story ๋ฌธ์„œ](../claudedocs/community/zenhub/stories/list_story.md)
- [BDD Scenarios](../claudedocs/community/bdd/community_list.feature)

Improved Format (Using Details tags):

< details > 
 < summary > ๐Ÿ“ Story ์ƒ์„ธ ๋‚ด์šฉ (ํด๋ฆญํ•˜์—ฌ ํŽผ์น˜๊ธฐ) < /summary > 

 ## Story ์„ค๋ช…
(์ „์ฒด Story ๋ฌธ์„œ ๋‚ด์šฉ)

 < /details > 

 < details > 
 < summary > โœ… Acceptance Criteria (10๊ฐœ) < /summary > 

 ### AC1: ๋ชฉ๋ก ๋กœ๋”ฉ ์„ฑ๊ณต
gherkin

Given the app is running # ์•ฑ์ด is running ...


 ### AC2: ๋‹น๊ฒจ์„œ ์ƒˆ๋กœ๊ณ ์นจ
...

 < /details > 

 < details > 
 < summary > ๐Ÿงช BDD Test scenarios (13๊ฐœ) < /summary >
gherkin

Feature: Community List Screen (Full BDD Feature file content)


 < /details > 

 < details > 
 < summary > ๐Ÿ› ๏ธ ๊ตฌํ˜„ ํƒœ์Šคํฌ < /summary > 

 ### Backend Tasks
- [ ] Post ๋ชจ๋ธ ์ •์˜
- [ ] API ๊ตฌํ˜„

### Frontend Tasks
- [ ] Domain Layer
- [ ] Data Layer
- [ ] Presentation Layer

 < /details >

Advantages:

  • โœ… All information viewable in a single Issue
  • โœ… Improved readability (collapsible sections)
  • โœ… View directly without clicking links
  • โœ… Viewable offline

3. /feature:create Orchestrator Improvement#

Current Problem:

  • โŒ No handling logic for existing features
  • โŒ Incomplete per-phase execution
  • โŒ Actual UI implementation is missing
  • โŒ No verification step

Improvement Requirements:

3-1. Existing Feature Detection

1. feature/{location}/{feature_name} ์กด์žฌ ํ™•์ธ
2. ์กด์žฌํ•˜๋ฉด:
   - ์˜ต์…˜ A: ์—…๋ฐ์ดํŠธ ๋ชจ๋“œ
   - ์˜ต์…˜ B: ์Šคํ‚ต
   - ์˜ต์…˜ C: ๋ฎ์–ด์“ฐ๊ธฐ (ํ™•์ธ ํ•„์š”)
3. ์กด์žฌํ•˜์ง€ ์•Š์œผ๋ฉด:
   - ์ „์ฒด ์ƒ์„ฑ

3-2. Complete Per-Phase Execution

Phase 2: Backend (Currently OK):

  • โœ… Generate Serverpod model
  • โœ… Endpoint Generation
  • โœ… Code generation
  • โœ… Migration

Phase 3: Frontend (Needs improvement):

// ํ˜„์žฌ: ๊ตฌ์กฐ๋งŒ ์ƒ์„ฑ
/feature:domain โ†’ Entity, UseCase, Repository Interface
/feature:data โ†’ Repository impl, Mixin
/feature:presentation โ†’ BLoC, Page (ํ…œํ”Œ๋ฆฟ๋งŒ)

// Improvement: ์‹ค์ œ ๋™์ž‘ํ•˜๋Š” ์ฝ”๋“œ ์ƒ์„ฑ
/feature:domain โ†’ (๋™์ผ)
/feature:data โ†’ (๋™์ผ)
/feature:presentation โ†’
  - BLoC ์™„์ „ ๊ตฌํ˜„ (Event, State, Logic)
  - Page ์™„์ „ ๊ตฌํ˜„ (Scaffold, AppBar, Body)
  - Widget ์™„์ „ ๊ตฌํ˜„ (PostCard with ๋ชจ๋“  ํ•„๋“œ)
  - ํ”ผ๊ทธ๋งˆ ์Šคํƒ€์ผ ๋ฐ˜์˜

3-3. Ensure Actual UI Implementation

Steps to Add:

Step 7-1: ํ”ผ๊ทธ๋งˆ ๋ถ„์„ ์ •๋ณด ๋กœ๋“œ
  - claudedocs/{feature}/figma_analysis.md ์ฝ๊ธฐ
  - ์Šคํƒ€์ผ, ๋ ˆ์ด์•„์›ƒ ์ •๋ณด ์ถ”์ถœ

Step 7-2: Widget ์‹ค์ œ ๊ตฌํ˜„
  - PostCard: ๋ชจ๋“  ํ•„๋“œ ํ‘œ์‹œ
  - CategoryChip: ์Šคํƒ€์ผ ์ ์šฉ
  - SearchBar: ๋™์ž‘ ๊ตฌํ˜„

Step 7-3: Page ์‹ค์ œ ๊ตฌํ˜„
  - Scaffold ์™„์„ฑ
  - BLoC ์—ฐ๊ฒฐ
  - ์ƒํƒœ๋ณ„ UI (Loading, Loaded, Error, Empty)

3-4. Add Verification Step

Phase 5: Verification (needs strengthening):

# ํ˜„์žฌ
melos run build
melos run test

# Improvement
melos run build --scope={feature}
melos run analyze --scope={feature}
melos run test --scope={feature}
melos run test:bdd --scope={feature}  # Run BDD tests
flutter run --target=lib/main_development.dart  # ์‹ค์ œ ์•ฑ ์‹คํ–‰

๐Ÿ“‹ Agent Update Checklist#

/figma:analyze Update#

File: ~/.claude/commands/figma/analyze.md (or project)

Additions:

  • Add "Record Figma frame links in Story" to Phase 6
  • Add "## ๐ŸŽจ Figma Design" section to Story template
  • URL parsing and mapping logic

Template:

## ๐ŸŽจ Figma Design

**ํ”„๋ ˆ์ž„ ๋งํฌ**:
- [๋ชฉ๋ก ํ™”๋ฉด]({figma_url_1})
- [์ƒ์„ธ ํ™”๋ฉด]({figma_url_2})
- [์ž‘์„ฑ ํ™”๋ฉด]({figma_url_3})

**๋””์ž์ธ ๋ถ„์„**:
- ์ปฌ๋Ÿฌ: {colors}
- ํƒ€์ดํฌ๊ทธ๋ž˜ํ”ผ: {typography}
- ์ŠคํŽ˜์ด์‹ฑ: {spacing}

ZenHub Issue Template Improvement#

File: New file needed

Issue Body Template:

# [Story] {title}

 >   **Story Point**: {point}
 >   **Sprint**: {sprint}
 >   **Epic**: #{epic_number}

## ๐ŸŽจ Figma Design
{figma_links}

 < details > 
 < summary > ๐Ÿ“ Story ์ƒ์„ธ ๋‚ด์šฉ (ํด๋ฆญํ•˜์—ฌ ํŽผ์น˜๊ธฐ) < /summary > 

 {story_content}

 < /details > 

 < details > 
 < summary > โœ… Acceptance Criteria ({ac_count}๊ฐœ) < /summary > 

 {ac_list}

 < /details > 

 < details > 
 < summary > ๐Ÿงช BDD Test scenarios ({scenario_count}๊ฐœ) < /summary >
gherkin

{bdd_content}


 < /details > 

 < details > 
 < summary > ๐Ÿ› ๏ธ ๊ตฌํ˜„ ํƒœ์Šคํฌ < /summary > 

 {tasks}

 < /details > 

 ---

๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code)

/feature:create Orchestrator Improvement#

File: ~/.claude/commands/feature/create.md (or project)

Additional Phases:

## Phase 3.5: ํ”ผ๊ทธ๋งˆ ์Šคํƒ€์ผ ์ ์šฉ (NEW)

### Step 3.5-1: ํ”ผ๊ทธ๋งˆ ๋ถ„์„ ๋กœ๋“œ
- claudedocs/{feature}/figma_analysis.md ์ฝ๊ธฐ
- Design tokens ์ถ”์ถœ (์ƒ‰์ƒ, ํฐํŠธ, ์ŠคํŽ˜์ด์‹ฑ)

### Step 3.5-2: ์Šคํƒ€์ผ ์ ์šฉ
- Widget์— ํ”ผ๊ทธ๋งˆ ์Šคํƒ€์ผ ๋ฐ˜์˜
- ์ปฌ๋Ÿฌ, ํƒ€์ดํฌ๊ทธ๋ž˜ํ”ผ, ๋ ˆ์ด์•„์›ƒ ์ ์šฉ

## Phase 4.5: Actual behavior implementation (NEW)

### Step 4.5-1: BLoC ๋กœ์ง ์™„์„ฑ
- Event handler ์‹ค์ œ ๊ตฌํ˜„
- State transition ๋กœ์ง

### Step 4.5-2: Widget ์™„์ „ ๊ตฌํ˜„
- ๋ชจ๋“  ํ•„๋“œ ํ‘œ์‹œ
- ์‚ฌ์šฉ์ž ์ธํ„ฐ๋ž™์…˜
- ์—๋Ÿฌ ์ฒ˜๋ฆฌ

### Step 4.5-3: Page ์™„์ „ ๊ตฌํ˜„
- Scaffold ๊ตฌ์„ฑ
- AppBar, Body, FAB
- ๋„ค๋น„๊ฒŒ์ด์…˜ ์—ฐ๊ฒฐ

Existing Feature Handling:

## Phase 0: Check existing Feature (NEW)

### Step 0-1: ์กด์žฌ ์—ฌ๋ถ€ ํ™•์ธ
bash

if [ -d "feature/{location}/{feature_name}" ]; then echo "Feature already exists"

Update mode#

else

Full generation mode#

fi


 ### Step 0-2: ์‚ฌ์šฉ์ž ํ™•์ธ
- ๊ธฐ์กด feature ์กด์žฌ ์‹œ:
  - ์˜ต์…˜ 1: ์—…๋ฐ์ดํŠธ (ํ•„๋“œ ์ถ”๊ฐ€, UI Improvement)
  - ์˜ต์…˜ 2: ์Šคํ‚ต
  - ์˜ต์…˜ 3: ์žฌ์ƒ์„ฑ (๊ธฐ์กด ๋ฐฑ์—…)

๐Ÿ“ Implementation Guide#

Details Tag Generation Function#

function createDetailsSection(
  summary: string,
  content: string,
  icon: string =  " " 
 ): string {
  return `
 < details > 
 < summary > ${icon} ${summary} < /summary > 

 ${content}

 < /details > 
 `;
}

// Usage example
const storyDetails = createDetailsSection(
   " Story ์ƒ์„ธ ๋‚ด์šฉ (ํด๋ฆญํ•˜์—ฌ ํŽผ์น˜๊ธฐ) " ,
  storyContent,
   " ๐Ÿ“ " 
 );

const acDetails = createDetailsSection(
  `Acceptance Criteria (${acCount}๊ฐœ)`,
  acContent,
   " โœ… " 
 );

Story Body Generation Logic#

const issueBody = `
# [Story] ${title}

 >   **Story Point**: ${point}
 >   **Sprint**: ${sprint}
 >   **Epic**: #${epicNumber}

## ๐ŸŽจ Figma Design
${figmaLinks}

${storyDetails}
${acDetails}
${bddDetails}
${tasksDetails}

๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code)
`;

โœ… Application Checklist#

/figma:analyze#

  • Add Figma link section when generating Stories
  • Extract node-id from URL and map
  • Record frame links per Screen

ZenHub Issue#

  • Write Details tag template
  • Story Full content included
  • Acceptance Criteria Full content included
  • BDD Scenario Full content included
  • Implementation task checklist included

/feature:create#

  • Existing feature detection logic
  • Phase 3.5: Apply Figma styles
  • Phase 4.5: Actual behavior implementation
  • Phase 5: Complete Verification (BDD included)

๐Ÿ”ง Next Session Tasks#

  1. Verify agent file locations:

        # Global settings
    ls ~/.claude/commands/
    
    # Project settings
    ls .claude/commands/
    
  2. /figma:analyze update:

    • Add Figma link recording logic
    • Update Story template
  3. Create ZenHub Issue template:

    • Utilize Details tags
    • Include full content
  4. /feature:create enhancement:

    • Handle existing features
    • Complete UI implementation
    • Strengthen verification
  5. Actual Community UI implementation:

    • Re-run with improved agents
    • Complete a working list screen

๐Ÿ“š Reference Documents#

  • Dart Convention: Use singular directory names (CLAUDE.md:508-513)
  • BDD Rules: English Steps + Korean comments (.claude/commands/bdd/generate.md)
  • Community Requirements: claudedocs/community/requirements.md
  • Figma Analysis: claudedocs/community/figma_analysis.md

Document Version: 1.0 Last Modified: 2025-12-17