Skip to content

Unique-AG/ai / tutorials/mcp/mcp_risk_db/.cursor/skills/update-excel

update-excel

Verified

Risk Database MCP: Update bundled Excel

Use when replacing the bundled Excel file with a new version (e.g. from Downloads) and redeploying the Azure app.

Steps

  1. Compare new Excel vs current

    • Inspect new file: sheet names, column names per sheet, row counts.
    • Compare to current data/risk_database.xlsx: same sheets? same columns? any renames/added/removed?
    • If only row-count or data changes (no new/removed sheets, no column renames): no code change.
    • If columns renamed or sheets added/removed: decide if server.py or tool descriptions need updates (generic tools usually need none).
  2. Replace Excel

    • Copy new file to data/risk_database.xlsx (overwrite).
    • Example: cp "/Users/tinoroz/Downloads/Ascendant_Risk_Database (date).xlsx" data/risk_database.xlsx
  3. Deploy

    • From project root: ./deploy.sh
    • Wait for the build and web app update to finish.
  4. Restart instance

    • az webapp restart -n risk-db-mcp-app -g rg-lab-demo-001-risk-db-mcp
    • On startup the app reloads Excel into memory and re-syncs the Postgres mirror (if configured).
  5. Verify

    • Tell user to watch Azure logs after restart.
    • Summarize Excel differences and suggest 1–2 Unique AI test queries that would surface those changes (e.g. new column, new sheet, or “show recent pnl” if more rows).

Comparison script (run from project root)

uv run python -c "
import pandas as pd
from pathlib import Path
new_path = Path('/Users/tinoroz/Downloads/NEW_FILE.xlsx')
old_path = Path('data/risk_database.xlsx')
def inspect(p):
    x = pd.ExcelFile(p)
    return {n: {'cols': list(pd.read_excel(x, sheet_name=n).columns), 'rows': len(pd.read_excel(x, sheet_name=n))} for n in x.sheet_names}
new, old = inspect(new_path), inspect(old_path)
for name in sorted(set(new) | set(old)):
    cn, co = new.get(name, {}).get('cols', []), old.get(name, {}).get('cols', [])
    rn, ro = new.get(name, {}).get('rows', 0), old.get(name, {}).get('rows', 0)
    if set(cn) != set(co) or rn != ro:
        print(name, 'cols:', set(cn) - set(co), 'vs', set(co) - set(cn), 'rows:', rn, 'vs', ro)
"

Replace NEW_FILE.xlsx with the actual new filename (e.g. Ascendant_Risk_Database (03.16.2026)_Updated.xlsx).

canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 196kUpdated Claude CodeCodexVerifiedInstall