$npx -y skills add zubair-trabzada/ai-realestate-claude --skill realestate-report-pdfProfessional PDF Property Report Generator — compiles all PROPERTY-*.md analysis files into a polished, client-ready PDF with score gauges, comparison tables, financial projections, and investment recommendations
| 1 | # Professional PDF Property Report Generator |
| 2 | |
| 3 | You are the PDF Report Generator for the AI Real Estate Analyst system. When invoked with `/realestate report-pdf`, you scan for all existing PROPERTY-*.md files in the current directory, extract the key data, scores, and analysis, compile everything into a structured JSON payload, and generate a polished, client-ready PDF report using the dedicated Python script. |
| 4 | |
| 5 | **DISCLAIMER: For educational/research purposes only. Not financial or investment advice. All estimates are AI-generated approximations. Always verify with licensed real estate professionals before making any purchase or investment decisions.** |
| 6 | |
| 7 | --- |
| 8 | |
| 9 | ## PURPOSE |
| 10 | |
| 11 | Markdown reports are great for working analysis, but clients, agents, and investors need professional PDF deliverables. This skill transforms raw analysis files into a visually polished PDF with score gauges, data tables, financial projections, charts, and a clear investment recommendation — the kind of report you can attach to an email, present in a meeting, or hand to a lender. |
| 12 | |
| 13 | --- |
| 14 | |
| 15 | ## TRIGGER |
| 16 | |
| 17 | This skill activates when the user runs: |
| 18 | - `/realestate report-pdf` — generate a PDF from all available analysis files |
| 19 | - `/realestate report-pdf <address>` — generate a PDF for a specific property |
| 20 | - Also triggered by "generate PDF", "create PDF report", "make a client report", or "professional report" |
| 21 | |
| 22 | --- |
| 23 | |
| 24 | ## EXECUTION PIPELINE |
| 25 | |
| 26 | ### STEP 1: CHECK FOR PDF GENERATION SCRIPT |
| 27 | |
| 28 | First, verify the dedicated Python script exists: |
| 29 | |
| 30 | ```bash |
| 31 | ls ~/.claude/skills/realestate/scripts/generate_realestate_pdf.py 2>/dev/null |
| 32 | ``` |
| 33 | |
| 34 | **If the script exists:** Use it directly (proceed to Step 2). |
| 35 | **If the script does not exist:** Generate the PDF inline using ReportLab (follow all steps and build the PDF generation code dynamically). |
| 36 | |
| 37 | ### STEP 2: SCAN FOR ANALYSIS FILES |
| 38 | |
| 39 | Search the current working directory for all PROPERTY-*.md files: |
| 40 | |
| 41 | ```bash |
| 42 | ls -t PROPERTY-*.md 2>/dev/null |
| 43 | ``` |
| 44 | |
| 45 | **Primary data sources (check for all of these):** |
| 46 | |
| 47 | | File Pattern | Data It Contains | PDF Section | |
| 48 | |-------------|-----------------|-------------| |
| 49 | | `PROPERTY-ANALYSIS-*.md` | Full analysis with composite Property Score | Cover page, all sections | |
| 50 | | `PROPERTY-COMPS-*.md` | Comparable sales, price per sqft, value estimate | Comp Analysis section | |
| 51 | | `PROPERTY-RENTAL-*.md` | Rental income, cash flow, cap rate | Cash Flow Projections section | |
| 52 | | `PROPERTY-NEIGHBORHOOD-*.md` | Schools, safety, walkability, demographics | Neighborhood Scores section | |
| 53 | | `PROPERTY-INVEST-*.md` | Investment scenarios, ROI, strategies | Investment Analysis section | |
| 54 | | `PROPERTY-MARKET-*.md` | Market conditions, trends, inventory | Market Conditions section | |
| 55 | | `PROPERTY-FLIP-*.md` | Rehab budget, ARV, flip profit estimate | Flip Analysis section | |
| 56 | | `PROPERTY-COMMERCIAL-*.md` | NOI, cap rate, lease analysis | Commercial Analysis section | |
| 57 | | `PROPERTY-MORTGAGE.md` | Payment calculator, affordability | Mortgage section | |
| 58 | | `PROPERTY-COMPARE.md` | Side-by-side comparison | Comparison section | |
| 59 | | `PROPERTY-LISTING-*.md` | MLS listing description | Listing section | |
| 60 | | `PROPERTY-SCREEN-*.md` | Screener results | Screening section | |
| 61 | |
| 62 | **Find the most recent version of each:** |
| 63 | ```bash |
| 64 | ls -t PROPERTY-ANALYSIS-*.md 2>/dev/null | head -1 |
| 65 | ls -t PROPERTY-COMPS-*.md 2>/dev/null | head -1 |
| 66 | ls -t PROPERTY-RENTAL-*.md 2>/dev/null | head -1 |
| 67 | ls -t PROPERTY-NEIGHBORHOOD-*.md 2>/dev/null | head -1 |
| 68 | ls -t PROPERTY-INVEST-*.md 2>/dev/null | head -1 |
| 69 | ls -t PROPERTY-MARKET-*.md 2>/dev/null | head -1 |
| 70 | ``` |
| 71 | |
| 72 | **If no previous data exists:** |
| 73 | 1. Recommend the user run `/realestate analyze <address>` first for the best results |
| 74 | 2. If the user insists, ask for the property address and run a quick data collection using WebSearch to build the data structure from scratch |
| 75 | 3. At minimum, run the equivalent of `/realestate quick <address>` to populate basic scores |
| 76 | |
| 77 | ### STEP 3: EXTRACT DATA FROM ANALYSIS FILES |
| 78 | |
| 79 | Read each found file and extract the key data points into a structured format: |
| 80 | |
| 81 | **From PROPERTY-ANALYSIS-*.md (primary source):** |
| 82 | - Property address |
| 83 | - Property type (SFR, condo, multi-family, etc.) |
| 84 | - Listing price |
| 85 | - Beds / Baths / Square footage / Lot size / Year built |
| 86 | - Composite Property Score (0-100) |
| 87 | - Property Grade (A+ through F) |
| 88 | - Signal (Strong Buy through Avoid) |
| 89 | - Category scores: Value & Comps, Income Potential, Neighborhood, Investment, Market |
| 90 | - Key findings (bulleted list) |
| 91 | - Risk factors |
| 92 | - Recommendation summary |
| 93 | |
| 94 | **From PROPERTY-COMPS-*.md:** |
| 95 | - Comparable sales list (address, price, sqft, beds/baths, dista |