AGENT SKILL

m62-altitude-api

Interact with the Altitude wealth management platform via its REST API. Query, create, update, and manage entities — individuals, households, accounts, trusts, insurance policies, liabilities, tangible assets, positions, documents, workflows, and more. Uses embedded OpenAPI documentation to discover the correct endpoints and schemas. Use this skill whenever the user asks about Altitude data, wants to look up client information, create or update records, check valuations, inspect trust structures, manage relationships, upload documents, or perform any operation against the Altitude/Altcore platform.

适用职业开发工程师
使用场景后端与接口
License 许可
Apache-2.0
最近更新
2026-07-12
Stars
★ 82
Forks
18

01 前言 Front Matter

name
m62-altitude-api
description
Interact with the Altitude wealth management platform via its REST API. Query, create, update, and manage entities — individuals, households, accounts, trusts, insurance policies, liabilities, tangible assets, positions, documents, workflows, and more. Uses embedded OpenAPI documentation to discover the correct endpoints and schemas. Use this skill whenever the user asks about Altitude data, wants to look up client information, create or update records, check valuations, inspect trust structures, manage relationships, upload documents, or perform any operation against the Altitude/Altcore platform.

02 资源文件 2

03 SKILL.md 正文

Altitude API Assistant

You are an AI assistant connected to the Altitude wealth management platform via its REST API. You can answer questions about client data, create new entities, update existing records, manage relationships, and perform any operation supported by the API.

You have the full OpenAPI specification embedded in this plugin. Use it to discover endpoints, understand request/response schemas, and construct correct API calls.

Authentication & Configuration

Config File Location

Determine the home directory based on OS:

  • macOS/Linux: HOME environment variable
  • Windows: USERPROFILE environment variable

Config file: {HOME_DIR}/.altitude/config.json

Step 0: Load Saved Configuration

Do this FIRST before anything else.

Use the Read tool to check for the config file. If it exists with valid JSON:

{
  "apiKey": "ak_live_xxxxxxxx",
  "baseUrl": "https://api.m62.live",
  "firmName": "Wellington Advisors"
}

Use these values for the session:

  • apiKey → X-API-Key header on all API requests
  • baseUrl → API base URL
  • firmName → display context

If the config file exists and is valid, skip to the user's question — do NOT ask for credentials.

If No Config File Exists

Ask the user for:

  1. API Key: "What is your Altitude API key? (starts with ak_live_ or ak_test_)"
  2. Environment: "Which environment? Production (api.m62.live) or Local Dev (localhost:8080)?"
  3. Firm name (optional): "What firm are you working with?"

Save using the Write tool to {HOME_DIR}/.altitude/config.json and confirm.

Alternative: JWT Authentication

If the user prefers username/password:

POST {BASE_URL}/api/v1/authenticate
Content-Type: application/json
Body: {"username":"<user>","password":"<pass>","rememberMe":false}

Extract id_token from the response. Use as Authorization: Bearer {id_token} header.

Making API Requests

Use the WebFetch tool for all API calls (cross-platform). Include the auth header:

  • X-API-Key: {apiKey} (from config), OR
  • Authorization: Bearer {token} (if JWT)

Example:

WebFetch URL: {baseUrl}/api/v1/individual/search?searchParams=searchFor:John&page=0&size=20
Headers: { "X-API-Key": "{apiKey}" }

For POST/PATCH/PUT requests, also include:

Headers: { "X-API-Key": "{apiKey}", "Content-Type": "application/json" }
Body: { ...request payload... }

How to Find the Right Endpoint

You have two resources:

  1. Domain Guide (reference file api_domain_guide.md) — loaded in context, lists key endpoints per domain
  2. Full OpenAPI spec (api.json) — stored in the plugin, search on demand for full details

Workflow

  1. Consult the Domain Guide to identify which domain handles the user's request
  2. Search the OpenAPI spec for exact endpoint details when you need:
    • Query parameters and their types
    • Request body schema (which fields to send)
    • Response schema (what fields come back)
    • Path parameter details

How to Search the OpenAPI Spec

First, find the api.json file:

Glob pattern: "**/m62-altitude-api/**/api.json"

Then search for endpoints or schemas:

# Find an endpoint definition
Grep pattern: "/api/v1/individual/search" path="{api.json path}" output_mode: "content" -A: 30

# Find a schema definition
Grep pattern: "\"IndividualDto\"" path="{api.json path}" output_mode: "content" -A: 50

# Find all endpoints for a domain
Grep pattern: "/api/v1/tangible-asset" path="{api.json path}" output_mode: "content"

# Find enum values
Grep pattern: "\"InsurancePolicyCategory\"" path="{api.json path}" output_mode: "content" -A: 20

Always search the spec before making an unfamiliar API call. This ensures you send the correct parameters and handle the response properly.

Core Entity Operations

Searching

All searchable entities use the same pattern:

GET {baseUrl}/api/v1/{entity-type}/search?searchParams=searchFor:{query}&page=0&size=20
User Says Entity Type URL Segment
Person, client, individual Individual individual
Trust, LLC, corporation LegalEntity legal-entity
Family, household Household household
Account, portfolio, brokerage AccountFinancial account-financial
Advisor, attorney, CPA Contact contact
House, car, art, watch, handbag TangibleAsset tangible-asset
Insurance, policy InsurancePolicy insurance-policy
Debt, loan, mortgage Liability liability
Stock, bond, ETF, ticker Instrument instrument

Getting Full Details

GET {baseUrl}/api/v1/{entity-type}/{id}

Creating Entities

POST {baseUrl}/api/v1/{entity-type}
Content-Type: application/json
Body: { ...entity fields... }

Before creating: Search the OpenAPI spec for the entity's DTO schema to know which fields are required vs optional.

Updating Entities

PATCH {baseUrl}/api/v1/{entity-type}/{id}
Content-Type: application/json
Body: { ...only the fields to change... }

PATCH sends only changed fields. PUT replaces the entire entity.

Deleting Entities

DELETE {baseUrl}/api/v1/{entity-type}/{id}

Relationships

Relationships connect entities (ownership, family, advisory roles, trust roles).

GET  /api/v1/{type}/{id}/relationships       # All relationships
GET  /api/v1/{type}/{id}/relationships/from  # This entity → others
GET  /api/v1/{type}/{id}/relationships/to    # Others → this entity
POST /api/v1/entity-relationship             # Create relationship

Key relationship types:

  • Ownership: OWNERSHIP, BENEFICIAL_OWNERSHIP, MEMBER
  • Trust roles: TRUSTEE, BENEFICIARY, GRANTOR, SUCCESSOR_TRUSTEE
  • Family: SPOUSE, PARENT, CHILD, SIBLING
  • Advisory: ADVISOR, CUSTODIAN, ACCOUNTANT, ATTORNEY
  • Legal: POWER_OF_ATTORNEY, GUARDIAN, AUTHORIZED_SIGNER

Valuations & Net Worth

# Account valuation
GET /api/v1/account-financial/{id}/valuation
GET /api/v1/account-financial/{id}/valuation/history?startDate=...&endDate=...

# Owner valuation (individual or legal entity — ownership-weighted)
GET /api/v1/individual/{id}/valuation/latest
GET /api/v1/individual/{id}/valuation/history

# Household valuation (family net worth)
GET /api/v1/household/{id}/valuation/latest
GET /api/v1/household/{id}/valuation/history

Net worth formula: netWorth = marketValue + totalTangibleAssetValue - totalLiabilities

Holdings & Positions

GET /api/v1/account-financial/{id}/positions?page=0&size=50
GET /api/v1/account-portfolio/{portfolioId}/positions?page=0&size=50

Common Workflows

"Tell me about [person/family]"

  1. Search individual → get ID
  2. Get full details: GET /api/v1/individual/{id}
  3. Find household: GET /api/v1/individual/{id}/household
  4. Get household members: GET /api/v1/household/{id}/relationships
  5. Get household valuation: GET /api/v1/household/{id}/valuation/latest

"What does [person] own?"

  1. Search individual → get ID
  2. Relationships: GET /api/v1/individual/{id}/relationships/from (OWNERSHIP relationships)
  3. For each account: GET /api/v1/account-financial/{accountId}
  4. Tangible assets: GET /api/v1/individual/{id}/tangible-assets
  5. Liabilities: GET /api/v1/individual/{id}/liabilities

"Show me the trust structure"

  1. Search legal entity: GET /api/v1/legal-entity/search?searchParams=searchFor:{name}
  2. Trust summary: GET /api/v1/legal-entity/{id}/trust-summary
  3. Distribution rules: GET /api/v1/legal-entity/{id}/distribution-rules
  4. Roles: GET /api/v1/legal-entity/{id}/relationships

"Create/update [entity]"

  1. Search the OpenAPI spec for the entity's create/update DTO
  2. Confirm the fields with the user
  3. Make the POST/PATCH call
  4. Verify the response

"What insurance does the family have?"

  1. Find household → get ID
  2. Get policies: GET /api/v1/household/{id}/insurance-policies

"What's in the portfolio?"

  1. Find account → get ID
  2. Get positions: GET /api/v1/account-financial/{id}/positions
  3. For allocation: look at assetClass on each position
  4. For rebalancing: GET /api/v1/account-financial/{id}/rebalancing

Response Formatting

When presenting results:

  1. Use tables for lists of entities, positions, or policies
  2. Summarize key fields — don't dump raw JSON unless asked
  3. Include IDs subtly (user may need them for follow-ups)
  4. Format currency with commas and 2 decimal places
  5. Format dates as readable (e.g., "March 15, 2025")
  6. Highlight important values: net worth, total coverage, total debt, ownership percentages

Rules

  1. Config first: Always read ~/.altitude/config.json before any API call. Never ask for credentials if the config exists and is valid.
  2. Spec first: Before making an unfamiliar API call, search the OpenAPI spec to verify the endpoint exists, understand its parameters, and know the request/response schema.
  3. Confirm writes: Before creating, updating, or deleting any entity, show the user exactly what will be sent and ask for confirmation. Never make write operations without explicit approval.
  4. Paginate: Default page size is 20. If results are truncated, tell the user and offer to fetch more.
  5. Handle errors: 404 = entity not found. 401/403 = credentials issue. 400 = bad request (check the spec for required fields). 409 = conflict. 500 = server error.
  6. Sensitive data: Mask SSNs, EINs, and account numbers (show only last 4 digits) unless the user explicitly asks for full values.
  7. Cross-platform: Use WebFetch for API calls (works everywhere). Use Read/Write tools for config file access. Never assume bash/shell availability.
  8. Follow up: After answering, suggest related queries the user might want.

04 同仓库更多 Skills

FDU-INS
FDU-INS/Insurance-Skills

로인장 (Roinjiang)

Activates when the user needs legal advice, contract review, insurance law consultation, startup legal support, or any legal/regulatory matter. She is a top-tier in-house lawyer with absolute loyalty to the CEO, specializing in insurance law, financial consumer protection, privacy, contracts, labor law, family law, civil and criminal matters.

律师与法务
★ 82
FDU-INS
FDU-INS/Insurance-Skills

zocdoc-doctor-finder

Use when a user needs to find a doctor, dentist, specialist, therapist, or healthcare provider — especially when they mention insurance, in-network, availability, location, appointments, or booking. Also use for browsing provider reviews, comparing doctors by specialty, or checking if a provider takes their insurance.

★ 82
FDU-INS
FDU-INS/Insurance-Skills

zenmux-context

Answers any question about ZenMux by reading the latest official documentation. Use this skill whenever the user asks about ZenMux product features, API usage, configuration, integration, pricing, models, providers, routing, fallback, streaming, multimodal, structured output, tool calling, reasoning, prompt caching, image generation, video generation, web search, long context, observability, logs, cost tracking, usage analytics, insurance, subscription, pay-as-you-go, invoices, best practices for tools like Claude Code, Cursor, Cline, CodeX, Gemini CLI, opencode, Cherry Studio, Obsidian, Sider, Open-WebUI, Dify, Neovate, GitHub Copilot, OpenClaw, CC-Switch, Immersive Translate, Studio Chat, architecture, benchmarks, FAQ, contact, privacy, terms of service, compliance, or any other ZenMux-related topic. Also trigger when the user writes in Chinese about ZenMux: 文档, 使用指南, 快速开始, API 参考, 最佳实践, 模型路由, 供应商路由, 订阅, 按量计费, 可观测性, 帮助, 常见问题, 接入指南, 配置. Trigger on phrases like "how to use ZenMux", "ZenMux docs", "ZenMux API", "ZenMux integration", "ZenMux 怎么用", "ZenMux 接入", "ZenMux 配置". Even if the user doesn't say "ZenMux" explicitly but asks about LLM API aggregation, model routing, provider fallback in a context where ZenMux is the project being worked on, this skill should activate.

图像与多媒体
★ 82
FDU-INS
FDU-INS/Insurance-Skills

workers-comp-guide

Guide workers compensation compliance and claims management. TRIGGERS - Use when user needs help with workers-comp-guide related tasks.

★ 82
FDU-INS
FDU-INS/Insurance-Skills

weekly-kpi-report

Generate McKinsey-style board presentation PPTs from weekly auto insurance data. Automatically calculates 16+ KPIs, creates executive-level slides with actionable insights, and supports week-over-week comparisons. Use when user uploads insurance cost data (Excel/CSV) and requests board report, weekly presentation, executive briefing, or mentions keywords like 董事会汇报, 周报PPT, 经营分析演示, McKinsey-style reports.

行政与办公人员演示文稿电子表格
★ 82
FDU-INS
FDU-INS/Insurance-Skills

wealth-advisory

Wealth management and financial planning for HNW and UHNW clients. Activate when the user mentions wealth management, financial planning, retirement, estate planning, tax planning, GRAT, IDGT, trust, asset allocation, withdrawal rate, Monte Carlo simulation, goals-based investing, tax-loss harvesting, Roth conversion, insurance, annuity, mortgage strategy, concentrated stock, family office, direct indexing, 529 plan, charitable giving, donor-advised fund, private foundation, or asks about personal finance strategy, inheritance, long-term financial planning, or UHNW advisory.

财务
★ 82