Install
openclaw skills install debt-payoff-plan-comparisonCollect debt and mortgage inputs, call a plans API, and return payoff strategy comparisons (snowball, avalanche, refinance) with concise recommendations and...
openclaw skills install debt-payoff-plan-comparisonUse this skill when the user wants debt payoff strategy comparisons, mortgage optimization scenarios, refinance vs non-refi analysis, or personalized debt plan recommendations, and inputs must be collected before calling the backend.
https://loandoctor.app (or the provided --base-url override) for calculation.scripts/call_get_plans.mjs with --input (it defaults to https://loandoctor.app) and optionally --base-url for staging/self-hosted targets.Collect these required fields before calling the script:
debts[]:
debtType (required enum):
mortgagehome-equity-loanhelocauto-loancredit-cardpersonal-loanstudent-loanmedical-debtbusiness-loantax-debtotherbalance (positive number)rate (APR percent as non-negative number)payment (positive monthly payment number, and must exceed monthly interest)debtNameassumptions:
homeAppraisal (required; use 0 if no home)taxBracket, planningHorizon, newMortgageRate, mortgageTermdiApplyToOC (number)diApplyToDebt (number)If the user cannot provide rate, you may opt in to script inference by adding --infer-missing-rate (uses debt-type defaults).
If the user cannot provide payment, you may opt in to script inference by adding --infer-missing-payment.
node scripts/call_get_plans.mjs --input /tmp/payload.json
# Optional override:
# node scripts/call_get_plans.mjs --input /tmp/payload.json --base-url https://staging.loandoctor.app
Optional flags:
--output /tmp/result.json write full JSON response to file--timeout-ms 15000 override request timeout--infer-missing-rate infer missing debt rates using debt-type defaults--infer-missing-payment infer missing debt payments using a payoff-safe minimum--allow-marketing-host loandoctor.app allow additional HTTPS marketing URL hostnames (repeatable){
"debts": [
{
"debtType": "credit-card",
"debtName": "Visa",
"balance": 15000,
"rate": 24.9,
"payment": 450
}
],
"assumptions": {
"homeAppraisal": 400000,
"planningHorizon": 20,
"taxBracket": 22
},
"diApplyToOC": 200,
"diApplyToDebt": 150
}
https://loandoctor.app.On success (success: true):
plans.On failure (success: false):
error exactly.429, respect Retry-After and suggest retry timing.See references/api-contract.md for endpoint contract and examples.