--- name: generate-solution-doc description: Solution documentation from implementation results. --- # Skill: generate-solution-doc Solution documentation from implementation results. ## Invoked by 📝 DocGen mode ## Required Inputs | Input | Source | Example | |-------|--------|---------| | `TICKET_KEY` | Jira issue key | `PROJECT-123` | | `MODULE` | Module/component name | `auth`, `api`, `core` | | `PLAN_PATH` | Path to plan.md | `docs/auth/PROJECT-123/PROJECT-123-plan.md` | | `TESTPLAN_PATH` | Path to testplan.md | `docs/auth/PROJECT-123/PROJECT-123-testplan.md` | ## Output - Markdown: `docs///-solution.md` - PDF: `docs///-solution.pdf` ## Steps ### 1. Read input documents Read all available docs in `docs///`. ### 2. Analyze actual changes ```bash cd git diff origin/main --stat git diff origin/main --name-only git log origin/main..HEAD --oneline ``` ### 3. Gather test results Check surefire reports or reference the testplan status. ### 4. Generate solution document ```markdown # Solution Documentation: **Date:** **Module:** **Author:** **Jira:** **Branch:** --- ## 1. Problem Statement ## 2. Approach ## 3. Architecture Decisions | Decision | Rationale | Alternatives | |----------|----------|--------------| | | | | ## 4. Implemented Changes ### 4.1 | File | Change | Description | |------|--------|-------------| | `` | New/Modified | | ### 4.n Database Migrations | Migration | Database | Description | |-----------|----------|-------------| | `V{timestamp}__...` | H2/Oracle | | ## 5. Test Coverage | ID | Description | Type | Result | |----|-------------|------|--------| | T-01 | | Unit | ✅ | | T-02 | | Integration | ✅ | ## 6. Open Items | # | Description | Priority | Ticket | |---|-------------|----------|--------| | 1 | | High/Medium/Low | | ``` ### 5. Ask for PDF color scheme > "Which color scheme for the PDF? Available: adp (red), royal_purple, ocean, forest, sunset, slate, rose" ### 6. Generate PDF ```python generate_pdf( content=, title=f"Solution Documentation {TICKET_KEY}", author="Your Name", output_path=f"docs///-solution.pdf", color_scheme= ) ``` ### 7. Store in BigMind ```python memory_store_fact( category="codebase", fact=f"{TICKET_KEY}: Solution doc created, PDF generated" ) ``` ## Template Variants ### Minimal (for small bugfixes) Skip sections 3 (Architecture Decisions) and 6 (Open Items). Keep 1, 2, 4, 5. ### Extended (for large features) Add: Configuration Changes, Deployment Notes, Backward Compatibility, Performance Impact.