qualitative-feature-refactor-brief
**Objective:** Hello SM. We need your expertise to lead a significant refinement of the "Qualitative Assessment" feature. A new, more intuitive design for the data models and user workflow has been created. Your task is to analyze the existing project, identify all impacted areas, and create/update the necessary user stories to implement this new design.
Prompt for Scrum Master Agent: Refactoring the Qualitative Assessment Feature
Objective: Hello SM. We need your expertise to lead a significant refinement of the "Qualitative Assessment" feature. A new, more intuitive design for the data models and user workflow has been created. Your task is to analyze the existing project, identify all impacted areas, and create/update the necessary user stories to implement this new design.
1. Core Context and Design Summary
For full context on the new design, please first review the contents of this attached markdown file, qualitative-feature-refactor-brief.md. It contains the full design proposal, including the new data models and the improved user workflow.
Key File Locations:
- All project documentation (PRD, Architecture, Specs) is in the
/docsfolder. - All user stories are in the
/docs/storiesfolder.
Summary of the New Design:
- New Data Models: The system will now use a two-tiered data structure:
QualitativeConcept: A master list of broad categories (e.g.,id: "lifestyle",name: "Lifestyle & Culture").QualitativeStatement: A master list of specific, selectable preference statements (e.g.,"Vibrant arts and cultural scene"), with each statement linking to a parentQualitativeConcept.
- New "Jot Down & Map" Workflow: This is a major UX improvement.
- Jot Down: A user can add an attribute directly to a scenario by writing a free-text note (e.g., "Florida is hot and humid") and assigning their personal
sentimentandsignificance. This attribute is initially "unmapped." - Map: The user can later map this scenario-specific attribute to one of their overarching, plan-wide
UserQualitativeGoals. - Scoring: Only attributes that have been successfully mapped to a goal will affect the
QualitativeFitScore.
- Jot Down: A user can add an attribute directly to a scenario by writing a free-text note (e.g., "Florida is hot and humid") and assigning their personal
2. Your Step-by-Step Instructions
Please follow these steps carefully:
Step 1: Familiarize Yourself with the Project State
Thoroughly review this prompt, the existing project documents in /docs, and the existing stories in /docs/stories.
Step 2: Analyze the Codebase (CRITICAL INSTRUCTION) The current implementation in the codebase has deviated from the original documentation in some areas. Therefore, you MUST prioritize the current state of the code as the single source of truth when analyzing impacts. Your analysis should identify where the new design will impact the existing, implemented code, not just what the old documents say. Do not propose changes that will break existing, unrelated functionality.
Step 3: Analyze Epic 4 & Devise Refactoring Strategy
The bulk of the changes will affect Epic 4. You will notice that story 4.1 may have been completed under the old design. Our strategy is to avoid modifying already completed stories.
Instead, please create new stories to handle the refactoring work. These new stories should be added to Epic 4, or you can group them into a new sub-epic (e.g., "Epic 4.5: Qualitative Feature Refactor") for clarity. These stories will cover tasks like: updating UI components to use the new "Jot Down & Map" workflow, migrating any existing state, and updating the calculation engine.
Step 4: Conduct Cross-Epic Impact Analysis Review stories in other epics. The new data models for qualitative assessment might be referenced by components or logic implemented in other epics.
- If you find an impact on an incomplete story, please update that story's technical guidance or Acceptance Criteria.
- If you find an impact on a completed story, do not modify it. Instead, create a new "technical debt" or "refactor" story and add it to our new refactoring epic (e.g., Epic 4.5).
Step 5: Create and Update User Stories
Based on your complete analysis, your primary task is to create and/or update the necessary story files directly in the /docs/stories directory.
- This will involve modifying the remaining, incomplete stories in Epic 4.
- It will involve creating all the new refactoring stories you identified in Steps 3 and 4.
- Ensure every story you create or modify is "Dev Ready," with clear Acceptance Criteria, technical notes, and context that a Dev agent can use to implement it successfully.
3. Final Output
Your final output will consist of two parts. Please confirm when both are complete.
- Updated Story Files: The set of all new and updated story files, saved directly to the
/docs/storiesdirectory. - A Prompt for the Architect: A clear, concise prompt that I can give to the Architect (Fred). Put this prompt into a markdown file within the
/promptsfolder. This prompt should instruct him on the necessary changes for the architecture document. It must include:- A reference to the stories you've just updated as the new "source of truth" for the feature's requirements.
- An explicit instruction to update the data models in
architecture-lean-v1.2.md, replacing the old qualitative models with the new, officialQualitativeConceptandQualitativeStatementstructures. - A reference to this context file (
qualitative-feature-refactor-brief.md) for the background rationale.
Related Documents
How you work
You are a coding agent running in the Codex CLI, a terminal-based coding assistant. Codex CLI is an open source project led by OpenAI. You are expected to be precise, safe, and helpful.
内置 Agent 提示词
Claude Code 内置了 6 个子 Agent,各自有独立的系统提示词和工具权限,用于分工处理不同类型的子任务。以下是每个 Agent 的完整系统提示词。
Overture Integration for Claude Code
You have access to **Overture**, an MCP server that visualizes your execution plans as interactive flowcharts before you write any code.
SolidInvoice - AI Assistant Guide
This document provides comprehensive guidance for AI assistants working with the SolidInvoice codebase. It covers the architecture, conventions, workflows, and best practices to help you understand and effectively contribute to this project.