# Skill: generate-assessment Structured assessment document from Jira ticket and code analysis. ## Invoked by 📋 Planner mode ## Required Inputs | Input | Source | Example | |-------|--------|---------| | `TICKET_KEY` | Jira issue key | `ESIDEPAISY-12081` | | `MODULE` | PAISY module name | `eau`, `eubp`, `svmeldungen` | ## Output Markdown file: `docs///-assessment.md` ## Steps ### 1. Gather context from BigMind ```python memory_search_facts(" ") memory_search_chunks(" ") memory_search_semantic("") ``` ### 2. Read Jira ticket ```python retrieve_ticket_details(TICKET_KEY) # Extract: summary, description, acceptance criteria (customfield_10510) # Note the Feature Link (customfield_10001) for traceability ``` ### 3. Search ADP Wiki for domain context ```python # Check BigMind index first memory_search_facts(" adpdocs") # If page ID known, fetch directly set-wiki(uri="mcp://wikis/adpdocs.de.adp.com") get-page(title="") # If not known, search search-page(query="") ``` ### 4. Search Confluence for prior decisions ```python search_confluence_by_cql("text ~ '' OR text ~ ''") ``` ### 5. Analyze affected source code - Identify the module entry point: `java/modules/cs-modules//` - Read key classes mentioned in the ticket - Trace the data flow through the affected components - Note patterns used: AbstractMeldung, Datenbaustein, ServiceCenter, EMFactory, JAXB, etc. ### 6. Generate assessment document Write `docs///-assessment.md` with this structure: ```markdown # Assessment: — **Datum:** **Modul:** **Autor:** Patrick Plate / Roo (Planner) **Status:** Entwurf v1 --- ## 1. Problemanalyse ## 2. Betroffene Komponenten | Komponente | Pfad | Rolle | |-----------|------|-------| | | | | ## 3. Ist-Zustand ## 4. Risikobewertung | Risiko | Wahrscheinlichkeit | Auswirkung | Mitigation | |--------|-------------------|------------|------------| | | Hoch/Mittel/Niedrig | | | ## 5. Lösungsoptionen ### Option A: - **Beschreibung:** ... - **Vorteile:** ... - **Nachteile:** ... - **Aufwand:** ... ### Option B: - **Beschreibung:** ... - **Vorteile:** ... - **Nachteile:** ... - **Aufwand:** ... ## 6. Empfehlung ## 7. Offene Fragen - [ ] - [ ] ``` ### 7. Present to user - Show the assessment summary - Explicitly ask: **"Assessment v1 erstellt. GO / Feedback?"** - On feedback: revise and increment version (v2, v3, ...) ### 8. Store findings in BigMind ```python memory_store_fact( category="codebase", fact=f"{TICKET_KEY}: Assessment completed. " ) memory_append_chunk( session_id=SESSION_ID, content=f"Assessment for {TICKET_KEY}: ", flag_reason="assessment findings" ) ``` ## Language - Document content: **German** (PAISY domain convention) - Technical terms (class names, patterns, tools): keep as-is in English - Section headers: German ## Conventions - Date format: `dd.MM.yyyy` (German) - Version tracking: v1, v2, v3 in the Status field - File location: always under `docs///` - Reference existing plan docs if they exist (check `ls docs///`)