Budget cash flow

From sickn33/agentic-awesome-skills · View interactive version

Budget cash flow is an AI agent skill from the GitHub repository sickn33/agentic-awesome-skills. Budget against actual by department, category and period, with budget and actual amounts, variance, percentage used and linked expenses. Use for budget tracking or cash-flow reviews.

How to use this skill

Skill file

Budget & Cash Flow

What it is: Budget against actual by department and month, plus cash in and out.

Overview

Works out the smallest useful Budget & Cash Flow setup for the business in front of it, then

builds it only when asked. The default output is a short recommendation, not a

spreadsheet. Artifacts - CSV, SQL DDL, JSON Schema, Notion mapping - are produced on

request, from one field list so they cannot drift apart.

Layer: Layer 8: Operate. Fits: Growth stage. Table code: n/a.

When to Use This Skill

Also use it when the user says "budget against actual by department and month, plus cash in and out", or describes the same process happening in a

spreadsheet, a document or someone inboxes.

Do not use it for: payroll calculation, tax filing, or legal advice. This skill produces

empty templates only - it never holds or processes real employee or customer data.

How It Works

Follow the shared execution contract. The module-specific rules below define only domain fields, decisions, calculations, and safety constraints.

Step 1 - Identify intent

Read the request and pick the intent before asking anything.

Ask only if this is the highest-value missing fact; otherwise proceed without an opener:

Q: How far ahead do you budget?

Step 2 - Ask only what is missing

Skip anything the user already answered, in any earlier message. Ask the rest one at a

time, and stop as soon as the remaining answers would not change the output.

Never invent an answer. If the user does not know, record it as unknown and carry on.

Step 3 - Hold the internal context

Hold the answers in this shape. It stays internal - it is not shown to the user unless

they ask, and it never carries a value the user did not give.

module: budget-cash-flow
intent: null            # setup | advice | review | fix | build | convert | export
scale: null             # Starter | Growth | Scale, only if the answer changes it
areas:
  "Horizon": null
  "Inputs": null
  "Ownership": null
  "Current process": null
  "Outcome": null
requested_outputs: []   # csv | sql | json | notion | xlsx - requested formats only
confirmed_facts: []     # only what the user actually said
open_questions: []      # the unanswered ones, in the order worth asking

Step 4 - Recommend the smallest workflow

If an artifact was requested, build it after resolving essential missing facts. Otherwise give a short recommendation and offer the relevant artifact.

Recommended approach: Build the budget once per year and the cash view monthly, and record the variance rather than rewriting the whole forecast.

Why this one: Cash flow fails from stale forecasts, not from a missing template. A monthly refresh of a small model beats a detailed annual plan nobody updates.

Workflow: Budget set → Monthly actuals entered → Variance calculated → Cash position → Forecast revised

Step 5 - Build only on request

Once the user asks for it, derive the fields from the confirmed context and emit the

requested artifacts. For machine-readable text, keep prose outside the data; for files,

provide a usable link. Report material validation failures or limitations separately.

**A selected Notion output is rendered by notion-manual-import, so route the

Notion step there.** When the user selects Notion, hand that step to

@notion-manual-import: it holds the CSV, the property

mapping, the import steps and the verification checklist, and it renders the Field

Reference below instead of defining a table of its own. Do not restate the mapping

here and do not improvise the import steps. Manual CSV and mapping outputs need no

connection. For requested workspace changes, follow the shared contract: verify actual

tool access and the target before writing. A user saying "connected" is not tool evidence.

Never ask for a Notion password or token.

For an Excel-compatible CSV, use UTF-8 with a byte order mark so Excel opens the

text correctly. A CSV is not an .xlsx workbook; create .xlsx only when the user

requests a workbook.

A CSV carries no types, so after it, name the columns

that need a number, date or currency format applied.

Budget Line,Line Type,Department,Category,Period,Fiscal Year,Budget Amount,Actual Amount,Variance,Used %,Linked Expenses,Owner,Status,Notes,Budget ID,Currency
BL-2026-001,Income,Delivery,General,2026-03,FY2026,600.00,400.00,-200.00,67,EXP-EXAMPLE-001,Example Owner,Active,Forecast refreshed after the February numbers; the delivery line is still optimistic.,,USD
CREATE TABLE budget_cash_flow (
  budget_line VARCHAR(255) NOT NULL,
  line_type VARCHAR(100) NOT NULL,
  department VARCHAR(255),
  category VARCHAR(100) NOT NULL,
  period VARCHAR(255),
  fiscal_year VARCHAR(255),
  currency CHAR(3) NOT NULL,
  budget_amount NUMERIC(14,2) NOT NULL,
  actual_amount NUMERIC(14,2) NOT NULL,
  variance NUMERIC(14,2),
  used_pct NUMERIC,
  linked_expenses VARCHAR(255),  -- relation -> target record
  owner VARCHAR(255),
  status VARCHAR(100) NOT NULL,
  notes TEXT,
  budget_id SERIAL PRIMARY KEY,
  created_at TIMESTAMP DEFAULT NOW(),
  updated_at TIMESTAMP DEFAULT NOW()
);

CREATE INDEX idx_budget_cash_flow_status ON budget_cash_flow (status);
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Budget & Cash Flow",
  "type": "object",
  "additionalProperties": false,
  "properties": {
      "Budget Line": { "type": "string" },
      "Line Type": { "type": "string" },
      "Department": { "type": "string" },
      "Category": { "type": "string" },
      "Period": { "type": "string" },
      "Fiscal Year": { "type": "string" },
      "Currency": { "type": "string", "pattern": "^[A-Z]{3}$" },
      "Budget Amount": { "type": "number" },
      "Actual Amount": { "type": "number" },
      "Variance": { "type": "number" },
      "Used %": { "type": "number" },
      "Linked Expenses": { "type": "string" },
      "Owner": { "type": "string" },
      "Status": { "type": "string" },
      "Notes": { "type": "string" },
      "Budget ID": { "type": "integer" }
  },
  "required": [
      "Budget Line",
      "Line Type",
      "Currency",
      "Category",
      "Budget Amount",
      "Actual Amount",
      "Status"
  ]
}
| CSV column | Notion property | Set after import |
|---|---|---|
| Budget Line | Title | Use as the database title |
| Line Type | Select (add options after import) | Convert to Select, add options: "Income", "Expense", "Cash In", "Cash Out" |
| Department | Text | Leave as Text |
| Category | Select (add options after import) | Convert to Select, add options: "General", "Operations", "Finance", "People", "Compliance" |
| Period | Text | Leave as Text |
| Fiscal Year | Text | Leave as Text |
| Currency | Text | Use the agreed three-letter currency code |
| Budget Amount | Number (format: currency) | Convert to Number, set format to Currency |
| Actual Amount | Number (format: currency) | Convert to Number, set format to Currency |
| Variance | Number (format: currency) | Convert to Number, set format to Currency |
| Used % | Number | Convert to Number |
| Linked Expenses | Relation (link to the target database) | Convert to Relation, link to the target database |
| Owner | Text | Leave as Text |
| Status | Select (add options after import) | Convert to Select, add options: "Draft", "Approved", "Active", "Revised", "Closed" |
| Notes | Text | Leave as Text |
| Budget ID | Text (preserve source ID) | Keep imported IDs as Text; optionally add a separate Unique ID property |

The rows above are documentation examples only. Emit empty templates unless the user explicitly requests examples. Money stays currency, dates stay date,

and anything pointing at another table stays relation.

Field Reference

| # | Field | Type | SQL | JSON Schema | Notion | CSV example |

|---:|---|---|---|---|---|---|

| 1 | Budget Line | text | VARCHAR(255) | string | Title | BL-2026-001 |

| 2 | Line Type | select | VARCHAR(100) | string | Select (add options after import) | Income |

| 3 | Department | text | VARCHAR(255) | string | Text | Delivery |

| 4 | Category | select | VARCHAR(100) | string | Select (add options after import) | General |

| 5 | Period | text | VARCHAR(255) | string | Text | 2026-03 |

| 6 | Fiscal Year | text | VARCHAR(255) | string | Text | FY2026 |

| 7 | Budget Amount | currency | NUMERIC(14,2) | number | Number (format: currency) | 600.00 |

| 8 | Actual Amount | currency | NUMERIC(14,2) | number | Number (format: currency) | 400.00 |

| 9 | Variance | currency | NUMERIC(14,2) | number | Number (format: currency) | -200.00 |

| 10 | Used % | number | NUMERIC | number | Number | 67 |

| 11 | Linked Expenses | relation | VARCHAR(255) | string | Relation (link to the target database) | EXP-EXAMPLE-001 |

| 12 | Owner | text | VARCHAR(255) | string | Text | Example Owner |

| 13 | Status | select | VARCHAR(100) | string | Select (add options after import) | Active |

| 14 | Notes | long_text | TEXT | string | Text | Forecast refreshed after the February numbers; the delivery line is still optimistic. |

| 15 | Budget ID | id | SERIAL PRIMARY KEY | integer | Text (preserve source ID) | (blank) |

| 16 | Currency | text | CHAR(3) | string | Text | USD |

Select Options

Line Type

Income | Expense | Cash In | Cash Out

Category

General | Operations | Finance | People | Compliance

Status

Draft | Approved | Active | Revised | Closed

Relations

Link fields: Linked Expenses

Examples

Prompt

We set a budget once and lost track of the actual position by month three.

Context first - one question per message, nothing already answered:

Q: Horizon?

A: Twelve months.

Q: Numbers available?

A: From accounting, monthly.

Q: How often updated?

A: Rarely.

Recommended next step - offered, not built:

Build the budget once per year and the cash view monthly, and record the variance rather than rewriting the whole forecast.

Workflow: Budget set → Monthly actuals entered → Variance calculated → Cash position → Forecast revised

Want the CSV, SQL, JSON Schema and Notion mapping for this?

Best Practices

Limitations

Security & Safety Notes

External writes, messages, provisioning, and publication require authorization for that

action and target; existing explicit authorization does not need to be repeated.

the requested review needs; keep generated templates empty. Do not claim deletion

from the conversation or service storage.

is acted on.

Common Pitfalls

Solution: deliver manual mappings without a connection; claim a live change only

after the authorized tool operation succeeds.

Solution: ask one, wait, and drop any the first answer already covered.

Solution: build what was requested; mention the parent skill separately.

Solution: derive all four from the field list in this file, never by hand.

Solution: that is expected. Apply the property mapping table once, after import.

For the synthetic example, FY2026 means calendar year 2026. Define the organization’s fiscal-year boundaries before using another convention. Variance = actual minus budget; used percent = 100 × actual / budget, rounded for display (67 here). Leave used percent blank for a zero budget. Whether a variance is favorable depends on the line type; never infer this from its sign alone. Keep Notion Used % as a plain number when storing 67, rather than a fraction-formatted percent.

Budget and Cash Flow Control Rules

Keep budget, committed spend, actual spend, forecast, and cash movement as distinct measures. Record the period, department, currency, source, and approval state for every amount; never compare values from different periods or currencies without an explicit conversion basis. A variance is a calculation from confirmed inputs, not an explanation of why it happened.

For each material variance, capture the owner, evidence, expected timing, confidence, and next review date. Separate timing differences from permanent changes, and keep one-off items visible rather than smoothing them into a recurring run rate. Cash availability is not the same as profit: identify opening balance, inflows, outflows, restricted funds, and minimum reserve before presenting a runway figure.

Forecast Reconciliation

At each close, reconcile opening cash plus inflows minus outflows to the closing bank or treasury balance, then explain approved timing differences separately. Keep accrual budget, invoice commitments, paid cash, and forecast revisions as different columns. Do not use a favorable cash variance to hide an unpaid commitment or a delayed invoice.

For scenario planning, name the scenario, effective date, assumptions, sensitivity drivers, and approval owner. A runway estimate must state the balance source, burn definition, horizon, and excluded restricted cash. When a forecast changes, preserve the prior version and record the reason for the change.

Related Skills

Reusable Prompt

I want to set up budget against actual by department and month, plus cash in and out for my company.
Ask me one short question at a time, and only about what I have not already told you.
Then recommend the smallest setup that fits, and wait for me to ask before you build it.
When I ask, output CSV, SQL DDL, JSON Schema, a Notion property mapping or an Excel workbook. Data only.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.