Skip to content

feat(analyzer): add A+B+C value enhancement to Stage 1#3

Merged
sungmanch merged 5 commits intonextjs-migrationfrom
feat/stage1-value-enhancement
Jan 17, 2026
Merged

feat(analyzer): add A+B+C value enhancement to Stage 1#3
sungmanch merged 5 commits intonextjs-migrationfrom
feat/stage1-value-enhancement

Conversation

@sungmanch
Copy link
Copy Markdown
Collaborator

Summary

Stage 1 Data Analyst에 A+B+C 가치 향상을 추가하여 더 깊고 실행 가능한 분석을 제공합니다.

  • A: Context Analysis - 각 quote에 상황 맥락 추가 (situationType, trigger, outcome)
  • B: Personalized Priorities - 가중치 기반 Top 3 우선순위 계산 및 개인화된 근거 제공
  • C: Why Analysis - 각 quote에 근본 원인 및 성장 신호 분석 추가
  • ClusterId-based Matching - quote 중복 버그 수정 (섹션별 고유 quote 표시)

Changes

File Change
analysis-data.ts QuoteContextSchema, QuoteInsightSchema, PriorityItemSchema 추가
data-analyst-prompts.ts A+B+C 분석 지침 추가
content-writer-prompts.ts Top 3 Focus Areas 섹션 활용 지침 추가
content-writer.ts clusterId 기반 quote-to-section 매칭 구현

Test plan

  • Build succeeds (npm run build)
  • All 790 tests pass (npm test)
  • Manual test with /noslop command to verify:
    • Each cluster shows distinct quotes
    • Cluster titles match quote content semantically
    • Top 3 priorities are personalized and actionable

🤖 Generated with Claude Code

Stage 1 Data Analyst now provides richer, more actionable analysis:

**A: Context Analysis** - Each quote includes:
- situationType: what the developer was doing (debugging, feature_building, etc.)
- trigger: what prompted the behavior (time_pressure, complexity, etc.)
- outcome: what resulted (successful, unsuccessful, etc.)

**B: Personalized Priorities** - Top 3 focus areas with:
- Priority scoring formula: frequency(0.25) + impact(0.30) + potential(0.25) + relevance(0.20)
- Rationale explaining why this matters for THIS developer
- Related cluster IDs for evidence mapping

**C: Why Analysis** - Deep insight for each quote:
- rootCause: why the behavior occurred
- implication: what it means for growth
- growthSignal: deliberate/reactive/habitual

**ClusterId-based Matching** - Fixed quote duplication bug:
- Stage 1 assigns unique clusterId to each quote
- Post-processing maps quotes to sections via clusterId
- Each section now shows distinct, relevant quotes

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

vercel bot commented Jan 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
no-more-ai-slop Ready Ready Preview, Comment Jan 17, 2026 10:01am

Request Review

Stage 1's personalizedPriorities was being generated but had no
corresponding output field in VerboseLLMResponse. This fix adds:

- TopFocusAreaSchema: rank, dimension, title, narrative, expectedImpact,
  priorityScore, actions (START/STOP/CONTINUE)
- TopFocusAreasSchema: areas array + summary
- topFocusAreas field in VerboseLLMResponse and VerboseEvaluation
- Fallback conversion in content-writer.ts if LLM doesn't generate

This ensures Stage 1's Top 3 personalized priorities flow through
to the final report.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…isplay

Three-stage pipeline enhancement:
- Module A (Data Analyst): Extract structured behavioral data
- Module B (Personality Analyst): Extract personality profile for storytelling
- Stage 2 (Content Writer): Transform using both outputs for personalized narrative

CLI improvements:
- Replace simple ora spinner with rich ProgressDisplay class
- Show rotating detailed analysis messages with progress bar
- Display elapsed time and analysis phase indicators

API route improvements:
- Add rotating detailed progress messages (42-84% with specific stages)
- Reduce heartbeat interval from 5s to 3s for better engagement

Content gateway:
- Add personalityInsights to premium tier
- Add preview teaser for free tier

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
sungmanch and others added 2 commits January 17, 2026 19:04
- Module B personality analysis
- Rich progress display
- A+B+C value enhancement

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update documentation to match the actual implementation:
- Two-Stage → Three-Stage Pipeline
- Added Module B (Personality Analyst) description
- Updated environment variable description

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sungmanch sungmanch merged commit 88d838a into nextjs-migration Jan 17, 2026
sungmanch added a commit that referenced this pull request Jan 17, 2026
Merge pull request #3 from sungmanch/feat/stage1-value-enhancement
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