Payroll Forecast 标志

Payroll Forecast

组织
Amazon-Quick
payroll-forecast

根据您实际掌控的现金,预测在即将到来的发薪日能否支付工资。适用于用户说“发薪日现金检查”“预测发薪日的现金”“现金流预测”“工资发得出来吗”“这周能发工资吗”,或询问发薪日前的现金周转情况时。此技能会计算保守的现金底线(已到账的银行现金减去缓冲金额,再减去发薪日前所有必须支付的款项),并将预计的发票回款单独标注为潜在利好,绝不将其计入结论。

Add to TypingMind

概览

发布者Amazon-Quick
代码仓库Amazon-Quick-official-catalog
技能名称payroll-forecast
星标数
50
复刻数
4
附带文件
1
许可协议MIT-0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Amazon-Quick 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Payroll Forecast AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Amazon-Quick/Amazon-Quick-official-catalog/tree/main/skills/finance/payroll-forecast
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Amazon-Quick/Amazon-Quick-official-catalog.git /tmp/Amazon-Quick-official-catalog
mkdir -p .claude/skills
cp -r /tmp/Amazon-Quick-official-catalog/skills/finance/payroll-forecast .claude/skills/payroll-forecast
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Payroll Forecast,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Payroll Forecast。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Payroll Forecast 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Overview

Answers one question conservatively: can the owner make payroll from cash they actually control? It does NOT count unpaid invoices as available cash. Best practice for a payroll go/no-go is a direct cash forecast under the conservatism principle: recognize every obligation in full, and do not anticipate collections that have not landed. The skill is read-only.

Workflow

<Definition - Cash Floor> The conservative position that decides the verdict: cleared bank cash minus cash_buffer minus all must-pay obligations due on or before payday. "Cleared bank cash" is the sum of CurrentBalance across active Bank-type accounts only, excluding restricted accounts (trust/IOLTA/escrow/holding/reserve), Other Current Asset, and receivables. Floor at or above 0 means payroll is covered on cash the owner controls; below 0 means short by that amount. </Definition - Cash Floor>

<Definition - Must-Pay Obligations> Every committed cash outflow due on or before payday, not just QuickBooks Bill records:

  • Net wages for the pay run (see Definition - Payroll Breakdown).
  • Withheld and employer payroll taxes for the run (senior; personal-liability trust-fund taxes).
  • All open Bills due on or before payday, including bills with a missing or null DueDate (never let a null due date silently drop a real obligation).
  • Sales tax payable due in the window.
  • Scheduled debt, loan, line-of-credit, and credit-card payments, and known recurring auto-pay or ACH debits (rent, utilities, SaaS) due in the window even if not entered as a Bill. For a credit card or loan, the obligation is the PAYMENT DUE before payday, NOT the full account balance. Payroll, payroll taxes, rent, loans, and taxes are never deferral candidates. If a potential must-pay has an unknown amount or due date, resolve it before the verdict or compute the floor both ways with a caveat. </Definition - Must-Pay Obligations>

<Definition - Payroll Breakdown> Where the data exists, report gross pay, employer taxes, benefits, and net pay. Call out the SENIOR trust-fund portion explicitly and distinctly: withheld federal/state income tax and the employee share of Social Security and Medicare are trust-fund taxes held on behalf of employees and the government. They are non-deferrable, with personal owner liability (Trust Fund Recovery Penalty). The employer share of FICA and FUTA/SUTA are also must-pay. Many owners run payroll through a separate provider, so this is often not in QuickBooks; when it is not, ask for the gross and the tax portion rather than guessing, and treat the whole amount as senior must-pay. </Definition - Payroll Breakdown>

<Definition - Expected Collections> Open invoices with Balance > 0 and DueDate on or before payday, risk-adjusted before being shown as UPSIDE ONLY: weight by how current each invoice is (long-overdue balances are low-probability), respect clearing time (a payment within roughly 1 to 3 days of payday may not clear via ACH/check float), and never add them to the floor or the verdict. Show them only as a separate "if collected" line and as a ranked action list. </Definition - Expected Collections>

<Definition - Order-of-Magnitude Outlier> Within a set of comparable figures (expected invoices, bills due), any value at least 10x the median of the OTHER values, or at least 10x the next largest. Require a set of 4+ before applying. Flag EVERY qualifying record, not just the largest, across both invoices AND bills. Treat an outlier as possibly mis-keyed (an extra zero) and flag it for confirmation; never silently sum it. The ledger figure stands as the real number, and the skill never declares a record fake. Wording: never call a record "test data", "fake", "a typo", or "an error"; state only how it compares ("far larger than your other invoices") and ask, with any possible cause inside the question ("was an extra zero entered?"). </Definition - Order-of-Magnitude Outlier>

<Definition - Proactive Alert> A standing payroll-forecast skill is reactive. To meet a pre-payday warning, the skill may offer to schedule a recurring check via agent_management that fires alert_lead_days before each payday and re-runs this read-only projection, alerting only on a projected shortfall. Offer it only when no such scheduled check exists AND the owner has no recorded decision in memory. On accept, create the task; on decline, record the decision so it is not re-asked. When a shortfall is already projected, actively recommend the alert rather than offering it neutrally. Scheduled tasks run locally and fire only while the machine is on and Quick is running. </Definition - Proactive Alert>

<Workflow - Payday Cash Projection description="Compute the conservative cash floor for an upcoming payday and a covered/short verdict." tools=[quickbooks, agent_management, memory_management] triggers=["will I make payroll", "can I make payroll this week", "payday cash check", "project cash for payday", "cash flow projection"]

  1. [Agent] Read cleared bank cash. Query SELECT * FROM Account WHERE AccountType = 'Bank'. Sum CurrentBalance across active Bank accounts, excluding any whose name suggests restricted funds (trust/IOLTA/escrow/holding/reserve); list those separately. Do not query or include Other Current Asset. Validate: At least one Bank account with a numeric CurrentBalance; restricted accounts separated. If fails: Ask which account funds payroll, or check that QuickBooks is connected.

  2. [Agent] Read the payroll obligation. Query payroll liability accounts (AccountType = 'Other Current Liability') and recent Purchase/JournalEntry transactions near payday. Break payroll down per Definition - Payroll Breakdown (gross, employer taxes, benefits, net) and flag the senior trust-fund portion. Validate: A positive net wage figure and, where available, the tax portion, both flagged must-pay. If fails: Payroll is often run externally and absent from QuickBooks. Ask the owner for the gross and the tax portion (Rule 11). Never guess.

  3. [Agent] Read all other must-pay obligations due on or before payday per Definition - Must-Pay Obligations. Pull open Bills (Balance > '0') and bucket by date client-side so null-due-date bills are kept and shown as a distinct line. Read liability/credit-card accounts and recurring debits for loan/card/auto-pay PAYMENTS due in the window (the payment, not the balance); if a class cannot be read, state the assumption ("no loan/card payments found; confirm none are due") rather than treating it as $0. Run the outlier check across BILL amounts too, flagging any suspect bill. Validate: Each item has an amount; null-due bills included and shown distinctly; card/loan items reflect the payment due not the balance; unknown items marked "unresolved" for Step 7. If fails: Report which class could not be read and proceed with the explicit assumption stated.

  4. [Agent] Read expected collections per Definition - Expected Collections. Query SELECT * FROM Invoice WHERE DueDate <= '{{payday_date}}' AND Balance > '0', risk-adjust by aging and clearing time, and run the outlier check. This is UPSIDE ONLY and never added to the floor. Validate: Each invoice has a due date and balance; outliers flagged; nothing here enters the floor. If fails: Set expected collections to $0 and note it.

  5. [Think] Compute the Cash Floor per Definition - Cash Floor: cleared bank cash minus cash_buffer minus (net wages + payroll taxes + all other must-pay obligations). No receivables in this figure. Validate: Result is a number; receivables excluded; buffer subtracted. If fails: Present the component numbers for the owner to verify.

  6. [Think] Compute the upside: Floor plus risk-adjusted expected collections, labeled "if collected" and clearly uncertain. Never present it as the verdict. Validate: Upside is clearly distinguished from the floor.

  7. [Decide] Issue the verdict from the FLOOR, and always state days until payday. Before declaring "covered", check for any obligation marked unresolved in Step 3: if one exists, either ask the owner to resolve it or present the floor BOTH ways (with and without it) and state the caveat. Never bury it.

    • Floor at or above 0, no unresolved must-pay: "Covered. Funded from cash you control, above your buffer. N days until payday."
    • Floor at or above 0 with an unresolved must-pay: "Covered on what's confirmed (floor $X, N days to payday), but an unconfirmed [card/loan] payment of up to $Y is outstanding; confirm it. Even subtracting it, the floor is $Z."
    • Floor below 0, upside at or above 0: "Short $X on cash you control, N days until payday. Closeable only by collecting specific invoices in time."
    • Floor below 0, upside below 0: "Short $X even if expected collections land; needs action beyond collections. N days until payday." Validate: Verdict states days until payday and any dollar shortfall; unresolved items surfaced at the verdict; based on the floor not the upside.
  8. [Agent] When the floor is short, present options in priority order:

    • Accelerate collections: rank the top 3 receivables that, if collected and cleared before payday, would most close the gap, with how much each closes. If every receivable is long-overdue or a flagged outlier, say "no invoice is realistically collectible before payday" instead of skipping the list.
    • Defer non-senior bills: identify which non-senior obligations can be pushed past payday (largest first) with the math. Never defer payroll, payroll taxes, rent, loans, or taxes.
    • Line of credit / transfer: check for an LOC/credit account and state available headroom ("LOC shows $0 drawn, up to $X available"), or say none exists; suggest a transfer if multiple bank accounts exist.
    • Partial payroll: last resort only, with the warning that missed wages and unpaid trust-fund taxes carry legal and personal liability. Validate: Options shown only when short; senior obligations never in the defer list. If fails: If nothing can be safely deferred, say so and focus on collections and credit.
  9. [Agent] Render the projection using <Template - Projection Card>, leading with the floor verdict, then payroll (trust-fund taxes distinct), other must-pay, buffer, the floor, and the labeled upside. Validate: The floor verdict is the headline; trust-fund taxes are visually distinct; upside is secondary and labeled uncertain; numbers reconcile. If fails: Present the component data in a simple table.

  10. [Decide] Offer a proactive pre-payday alert per Definition - Proactive Alert. Check list_scheduled_agents and recall_memories ("payroll alert scheduling decision") first.

  • If a schedule exists, a decision is recorded, or this run was launched by that task: skip the offer.
  • Otherwise offer once; if a shortfall is projected, actively recommend it ("you're projected short on [date]; want me to check {{alert_lead_days}} days before and alert you?"). On accept, create_scheduled_agent to re-run this read-only projection alert_lead_days before payday and alert on a shortfall; confirm timing and how to cancel. On decline, record the decision. Validate: Either an existing schedule/decision was found and the offer skipped, or the offer was made once and the outcome recorded. If fails: If scheduling tools are unavailable, tell the owner to re-run manually before payday.

</Workflow - Payday Cash Projection>

<Template - Projection Card>

markdown
# Payday Cash Projection: {{payday_date}}

{{staleness_warning_if_any}}

Cash you control: {{cleared_bank_cash}} (Bank accounts; restricted funds shown separately)
Payroll due: {{payroll_total}} = net wages {{net_wages}} + trust-fund taxes {{trust_fund_taxes}} (withheld income tax + employee FICA: senior, personal-liability, non-deferrable) + other employer taxes {{employer_taxes}}
Other must-pay before payday: {{other_obligations_total}} ({{count}} items, incl. bills/taxes/loan+card payments due; null-due bills listed). Any unconfirmed item shown here, not hidden
Buffer: {{cash_buffer}}
CASH FLOOR (the verdict): {{floor}} ({{covered_or_short}}). {{days_until_payday}} days to payday
If you collect expected invoices: +{{upside_amount}} to {{upside_total}} (uncertain; not counted in the verdict)

{{options_if_short}}

</Template - Projection Card>

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Payroll Forecast AI 技能有什么作用?

根据您实际掌控的现金,预测在即将到来的发薪日能否支付工资。适用于用户说“发薪日现金检查”“预测发薪日的现金”“现金流预测”“工资发得出来吗”“这周能发工资吗”,或询问发薪日前的现金周转情况时。此技能会计算保守的现金底线(已到账的银行现金减去缓冲金额,再减去发薪日前所有必须支付的款项),并将预计的发票回款单独标注为潜在利好,绝不将其计入结论。

为什么在 TypingMind 中使用 Payroll Forecast?

因为您只需安装一次,就能搭配任何模型使用。Payroll Forecast 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Payroll Forecast?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Amazon-Quick/Amazon-Quick-official-catalog/tree/main/skills/finance/payroll-forecast。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Payroll Forecast?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Payroll Forecast 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Payroll Forecast 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Payroll Forecast AI 技能免费吗?

是的。Amazon-Quick 已在 GitHub 上根据 MIT-0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇