Token导航 LogoToken导航

Agent Skill · AI 工具

margin-management(保证金管理)

margin-management 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

margin-management 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描已通过,按安装量在AI 工具类的 2,536 个 Skill 里排第 1,829。

总安装 447周安装 19GitHub Stars 302下载 157核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:margin-management(保证金管理)
来源仓库:https://github.com/aojdevstudio/finance-guru
仓库路径:skills/margin-management
安装命令:
npx skills add https://github.com/aojdevstudio/finance-guru --skill margin-management
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/aojdevstudio/finance-guru --skill margin-management

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

用于处理 GitHub 仓库、Issue 和 Pull Request 信息。适合围绕代码变更和协作事项进行整理。可帮助理解项目结构和开发流程。margin-management 属于AI 工具类 Skill,可作为该场景下的辅助能力补充。使用前应确认 GitHub API 访问权限和速率限制。

适用于 Codex、Claude、Cursor 等宿主平台。

来源仓库内路径:skills/margin-management

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/aojdevstudio/finance-guru --skill margin-manag…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

margin-management 怎么安装?

在终端执行 npx skills add https://github.com/aojdevstudio/finance-guru --skill margin-management。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

margin-management 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

margin-management 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

margin-management 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

margin-management 用的人多吗?

公开数据是累计安装 447 次,近一周安装 19 次,下载 157 次,GitHub 302 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

margin-management 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理AI 工具类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

AI 工具类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
executing-plans

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
margin-management

保证金管理 · 本页

447302调用外部服务MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Margin Management

Purpose

Monitor and manage margin-living strategy by tracking margin balances, interest costs, dividend coverage ratios, and portfolio-to-margin safety thresholds. Provides data-driven scaling recommendations based on strategy milestones.

When to Use

Use this skill when:

  • Importing new Fidelity balances CSV
  • Updating margin balance or interest rate
  • Calculating coverage ratio (dividends ÷ interest)
  • User mentions: "margin dashboard", "margin balance", "coverage ratio", "margin strategy"
  • Assessing margin scaling decisions
  • Checking safety thresholds

Core Workflow

1. Read Fidelity Balances CSV

Location: notebooks/updates/Balances_for_Account_{account_id}.csv

Key Fields to Extract:

Balance,Day change
Total account value,228809.41,3447.61      → Portfolio Value
Margin buying power,193919.92,-4667.04
Net debit,-2992.70,-2191.14                 → Margin Balance (abs value)
Margin interest accrued this month,1.12,    → Monthly Interest (actual)

Calculations:

  • Margin Balance: Absolute value of "Net debit" = $2,992.70
  • Interest Rate: Default 10.875% (Fidelity $1k-$24.9k tier) unless specified
  • Monthly Interest Cost: Balance × Rate ÷ 12 = $2,992.70 × 0.10875 ÷ 12 = $27.11

2. Safety Check: Margin Jump Alert

Rule: If new margin balance > previous balance + $5,000, STOP

Reason: Large draws should be intentional per margin-living strategy

Example:

Previous: $2,992.70
Current: $9,500.00 (+$6,507.30) → 🚨 ALERT - Confirm intentional draw

Action:

  • Alert user immediately
  • Show diff: "Margin increased by $6,507 - Confirm this was intentional"
  • Wait for user confirmation before proceeding

3. Add Entry to Margin Dashboard

Insert new row with:

  • Date: Current date (use date +"%Y-%m-%d")
  • Margin Balance: From Balances CSV (Net debit absolute value)
  • Interest Rate: 10.875% (or updated rate from CSV if available)
  • Monthly Interest Cost: Calculate (Balance × Rate ÷ 12)
  • Notes: Auto-generate based on elapsed time since Oct 9, 2025

Example Entry:

Date: 2025-11-11
Margin Balance: $2,992.70
Interest Rate: 10.875%
Monthly Interest Cost: $27.11
Notes: Month 1 - Building foundation, on track per strategy

Notes Generation Logic:

months_elapsed = (current_date - datetime(2025, 10, 9)).days // 30

if months_elapsed < 6:
    note = f"Month {months_elapsed} - Building foundation, on track per strategy"
elif months_elapsed < 12:
    note = f"Month {months_elapsed} - Approaching Month 6 milestone"
elif months_elapsed < 18:
    note = f"Month {months_elapsed} - Approaching break-even milestone"
else:
    note = f"Month {months_elapsed} - Mature strategy, monitor scaling"

4. Update Summary Section

Recalculate Dashboard Metrics:

Current Margin Balance
= Latest entry from Margin Dashboard
Example: $2,992.70
Monthly Interest Cost
= Latest calculated cost
Example: $27.11/month
Annual Interest Cost
= Monthly Interest Cost × 12
Example: $27.11 × 12 = $325.32/year
Dividend Income (from Dividend Tracker)
= Pull from Dividend Tracker "TOTAL EXPECTED DIVIDENDS"
Example: $2,847.32/month
Coverage Ratio
= Dividend Income ÷ Monthly Interest Cost
Formula: =IFERROR(Dividends / Interest, 0)
Example: $2,847.32 ÷ $27.11 = 105.0x 🟢

Fix #DIV/0! if margin balance = $0:

Before: =B10 / B11  (causes #DIV/0! when margin = 0)
After: =IFERROR(B10 / B11, 0)  (returns 0 when no margin)

5. Calculate Strategy Metrics

Portfolio-to-Margin Ratio
= Total account value ÷ Margin Balance
Example: $228,809.41 ÷ $2,992.70 = 76.5:1 🟢🟢🟢

Safety Thresholds:

  • 🟢 Green: Ratio > 4.0:1 (target - healthy margin usage)
  • 🟡 Yellow: Ratio 3.5-4.0:1 (warning - pause scaling)
  • 🔴 Red: Ratio < 3.0:1 (alert - stop draws, inject business income)
  • ⚫ Critical: Ratio < 2.5:1 (emergency - inject $30k+, consider selling)
Current Draw vs Fixed Expenses
Current monthly draw: $4,500 (fixed expenses only)
Target: Start with $4,500, scale to $6,213, $8,000, $10,000 based on data

6. Scaling Alerts (Time-Based)

Strategy Start Date: October 9, 2025

Calculate months elapsed:

from datetime import datetime
start = datetime(2025, 10, 9)
current = datetime.now()
months_elapsed = (current - start).days // 30
Month 6 Alert (April 2026)
📊 MONTH 6 MILESTONE CHECK:
✅ Dividends: $2,847/month (need $2,000+)
✅ Portfolio-to-Margin Ratio: 76.5:1 (need 4:1+)
✅ Dividend Growth: On track

🎯 RECOMMENDATION: Scale margin draw to $6,213/month (add mortgage)
- Current: $4,500 (fixed expenses only)
- New: $6,213 (fixed + mortgage)
- Safety margin: Excellent
Month 12 Alert (October 2026)
📊 MONTH 12 BREAK-EVEN CHECK:
Expected Dividends: $4,500+/month (goal: break-even with margin interest)
✅ IF achieved: Consider scaling to $8,000/month (add some variable expenses)
⚠️ IF not: Hold at $6,213, assess strategy
Month 18 Alert (April 2027)
📊 MONTH 18 MATURE STRATEGY CHECK:
Expected Dividends: $7,000+/month
Expected Margin: Declining (dividends paying down debt)
✅ IF achieved: Consider scaling to $10,000/month (most variable expenses)
⚠️ IF not: Hold current level, reassess timeline

7. Alert Thresholds

Generate alerts based on conditions:

Green (Healthy)
✅ Ratio > 4:1 AND dividends covering interest
Status: On track, continue per strategy
Yellow (Caution)
⚠️ Ratio 3.5-4:1 OR dividend coverage declining
Action: Pause scaling, monitor weekly
Red (Alert)
🚨 Ratio < 3:1 OR dividend cuts detected
Action: STOP draws, inject $20k business income
Critical (Emergency)
⛔ Ratio < 2.5:1 OR margin call risk
Action: STOP draws, inject $30k+ business income, consider selling hedge (SQQQ)

Critical Rules

WRITABLE Columns (Margin Dashboard)

  • ✅ Date (Column A)
  • ✅ Margin Balance (Column B)
  • ✅ Interest Rate (Column C)
  • ✅ Monthly Interest Cost (Column D - calculated but writeable)
  • ✅ Notes (Column E)

SACRED Formulas (NEVER TOUCH)

  • ❌ Coverage Ratio (unless adding IFERROR wrapper)
  • ❌ Summary section totals (unless fixing #DIV/0!)

Margin Strategy Philosophy

Core Principle: Confidence-based scaling, not time-based mandates

Decision Framework:

  1. Data-driven: Decisions backed by actual dividend income, not projections
  2. Safety-first: Never scale if ratio drops below 3.5:1
  3. Business income as insurance: Available $22k/month, not primary strategy
  4. Monte Carlo backstop: 98.5% of scenarios used business income at some point

Business Income Backstop

Available: $22,000/month from business operations

Usage Scenarios:

  1. ⛔ Margin call (ratio < 3:1): MUST USE business income immediately
  2. ⚠️ Market correction (20-30% drop): OPTIONAL - assess need
  3. 🎯 Acceleration (reach FI faster): OPTIONAL - strategic choice

Current Philosophy: Insurance policy only, not active strategy component

Example Calculations

Scenario 1: Month 1 (Current State)

Portfolio Value: $228,809.41
Margin Balance: $2,992.70
Ratio: 76.5:1 🟢🟢🟢

Monthly Interest: $27.11
Dividend Income: $2,847.32
Coverage: 105.0x 🟢

Status: Excellent - building foundation

Scenario 2: Month 6 (Projected)

Portfolio Value: $280,000 (projected with W2 contributions)
Margin Balance: $25,000 (scaled to $6,213/month draw)
Ratio: 11.2:1 🟢

Monthly Interest: $227
Dividend Income: $4,500 (projected)
Coverage: 19.8x 🟢

Status: Healthy - on track for break-even

Scenario 3: Month 15 (Break-Even)

Portfolio Value: $350,000
Margin Balance: $50,000 (scaled to $8,000/month draw)
Ratio: 7.0:1 🟢

Monthly Interest: $453
Dividend Income: $6,800
Coverage: 15.0x 🟢

Status: Break-even achieved, dividends > interest

Google Sheets Integration

Spreadsheet ID: Read from fin-guru/data/user-profile.yaml → google_sheets.portfolio_tracker.spreadsheet_id

Use the mcp__gdrive__sheets tool:

// STEP 1: Read Spreadsheet ID from user profile
// Load fin-guru/data/user-profile.yaml
// Extract: google_sheets.portfolio_tracker.spreadsheet_id

// STEP 2: Read Margin Dashboard
mcp__gdrive__sheets(
    operation: "spreadsheets.values.get",
    params: {
        spreadsheetId: SPREADSHEET_ID,  // from user-profile.yaml
        range: "Margin Dashboard!A2:E50"
    }
)

// STEP 3: Add new margin entry
mcp__gdrive__sheets(
    operation: "spreadsheets.values.update",
    params: {
        spreadsheetId: SPREADSHEET_ID,  // from user-profile.yaml
        range: "Margin Dashboard!A2:E2",
        valueInputOption: "USER_ENTERED",
        requestBody: {
            values: [[date, balance, rate, monthly_cost, notes]]
        }
    }
)

Agent Permissions

Margin Specialist (Write-enabled):

  • Can add new entries to Margin Dashboard
  • Can update margin balance, rate, cost
  • Can generate scaling alerts
  • CANNOT modify summary formulas (without formula-protection skill)

Builder (Write-enabled):

  • Can repair broken formulas (#DIV/0!)
  • Can update summary section calculations
  • Can add new metrics

All Other Agents (Read-only):

  • Market Researcher, Quant Analyst, Strategy Advisor
  • Can read margin data for analysis
  • Cannot write to spreadsheet
  • Must defer to Margin Specialist or Builder

Reference Files

For complete strategy details, see:

  • Margin Strategy: fin-guru-private/fin-guru/strategies/active/margin-living-master-strategy.md
  • Portfolio Strategy: fin-guru-private/fin-guru/strategies/active/portfolio-master-strategy.md
  • User Profile: fin-guru/data/user-profile.yaml
  • Spreadsheet Architecture: fin-guru/data/spreadsheet-architecture.md

Pre-Flight Checklist

Before updating Margin Dashboard:

  • Fidelity Balances CSV is latest by date
  • CSV is in notebooks/updates/ directory
  • Margin Dashboard sheet exists in Google Sheets
  • Previous margin balance known (for jump detection)
  • Dividend Tracker is up-to-date (for coverage ratio)
  • Current date retrieved via date command

Example Scenario

Trigger: User downloads new Fidelity balances CSV

Agent workflow:

  1. ✅ Read Balances CSV - Portfolio: $228,809.41, Margin: $2,992.70
  2. ✅ Safety check - Previous: $0, Current: $2,992.70 (+$2,992.70 < $5k threshold) - PASS
  3. ✅ Calculate metrics:

- Monthly interest: $27.11 - Portfolio-to-margin ratio: 76.5:1 - Coverage ratio: 105.0x (dividends ÷ interest)

  1. ✅ Add entry to Margin Dashboard:

- Date: 2025-11-11 - Balance: $2,992.70 - Rate: 10.875% - Cost: $27.11 - Notes: "Month 1 - Building foundation, on track"

  1. ✅ Update summary section:

- Current balance: $2,992.70 - Monthly cost: $27.11 - Annual cost: $325.32 - Dividend income: $2,847.32 - Coverage: 105.0x

  1. ✅ Generate status: "🟢 Excellent health - Ratio 76.5:1, Coverage 105x"
  2. ✅ LOG: "Updated Margin Dashboard - Month 1, $2,992.70 balance, 76.5:1 ratio"

Skill Type: Domain (workflow guidance) Enforcement: BLOCK (financial risk critical) Priority: Critical Line Count: < 400 (following 500-line rule) ✅

平台分布

Claude Code

32.32%
按下载量换算51

windsurf

22.21%
按下载量换算35

trae

17.56%
按下载量换算28

OpenCode

13.09%
按下载量换算21

Codex

7.5%
按下载量换算12

Antigravity

3.23%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills