计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
expense-management【效率与协作】Expense claim register: claim id, employee and department, amount and tax, approver and level, category, cost centre, budget line, receipt flag and status. Use for claim approvals.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
What it is: Claims.
Works out the smallest useful Expense Management 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 4: Manage. Fits: Starter stage. Table code: n/a.
Also use it when the user says "claims", 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.
Follow the shared execution contract. The module-specific rules below define only domain fields, decisions, calculations, and safety constraints.
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: What is your expense approval limit?
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.
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: expense-management
intent: null # setup | advice | review | fix | build | convert | export
scale: null # Starter | Growth | Scale, only if the answer changes it
areas:
"Policy": null
"Flow": null
"Data": 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
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 a claim form that forces receipt and amount, then route by limit. Keep the finance reconciliation as a separate monthly step.
Why this one: Most expense problems are missing receipts and unclear limits, both of which can be enforced at data entry rather than at approval.
Workflow: Claim submitted → Manager approval → Finance check → Reimbursement → Monthly reconciliation
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.
Expense Claim,Amount,Tax Amount,Approver,Approval Level,Category,Currency,Date of Expense,Department,Employee Name,Expense ID,Notes,Project/Cost Centre,Budget Line,Receipt Attached,Reimbursement Date,Status,Submission Date
EXP-2026-014,45000.00,8100.00,Sneha Iyer,Manager,General,INR,2026-01-15,Delivery,Aarav Sharma,,February claims reconciled against the bank feed; two receipts were missing.,CC-200 Website Redesign,BL-114 Travel,FALSE,2026-01-15,Approved,2026-01-15
CREATE TABLE expense_management (
expense_claim VARCHAR(255),
amount NUMERIC(14,2) NOT NULL,
tax_amount NUMERIC(14,2) NOT NULL,
approver VARCHAR(255),
approval_level VARCHAR(100) NOT NULL,
category VARCHAR(100) NOT NULL,
currency VARCHAR(255),
date_of_expense DATE NOT NULL,
department VARCHAR(255),
employee_name VARCHAR(255),
expense_id SERIAL PRIMARY KEY,
notes TEXT,
project_cost_centre VARCHAR(255),
budget_line VARCHAR(255),
receipt_attached BOOLEAN NOT NULL,
reimbursement_date DATE NOT NULL,
status VARCHAR(100) NOT NULL,
submission_date DATE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
CREATE INDEX idx_expense_management_status ON expense_management (status);
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Expense Management",
"type": "object",
"additionalProperties": false,
"properties": {
"Expense Claim": { "type": "string" },
"Amount": { "type": "number" },
"Tax Amount": { "type": "number" },
"Approver": { "type": "string" },
"Approval Level": { "type": "string" },
"Category": { "type": "string" },
"Currency": { "type": "string" },
"Date of Expense": { "type": "string", "format": "date" },
"Department": { "type": "string" },
"Employee Name": { "type": "string" },
"Expense ID": { "type": "integer" },
"Notes": { "type": "string" },
"Project/Cost Centre": { "type": "string" },
"Budget Line": { "type": "string" },
"Receipt Attached": { "type": "boolean" },
"Reimbursement Date": { "type": "string", "format": "date" },
"Status": { "type": "string" },
"Submission Date": { "type": "string", "format": "date" }
},
"required": [
"Amount",
"Tax Amount",
"Approval Level",
"Category",
"Date of Expense",
"Reimbursement Date",
"Status",
"Submission Date"
]
}
| CSV column | Notion property | Set after import |
|---|---|---|
| Expense Claim | Title | Use as the database title |
| Amount | Number (format: currency) | Convert to Number, set format to Currency |
| Tax Amount | Number (format: currency) | Convert to Number, set format to Currency |
| Approver | Text | Leave as Text |
| Approval Level | Select (add options after import) | Convert to Select, add options: "Manager", "Finance", "Owner", "Auto Approved" |
| Category | Select (add options after import) | Convert to Select, add options: "General", "Operations", "Finance", "People", "Compliance" |
| Currency | Text | Leave as Text |
| Date of Expense | Date | Convert to Date |
| Department | Text | Leave as Text |
| Employee Name | Text | Leave as Text |
| Expense ID | Text (preserve source ID) | Keep imported IDs as Text; optionally add a separate Unique ID property |
| Notes | Text | Leave as Text |
| Project/Cost Centre | Text | Leave as Text |
| Budget Line | Text | Leave as Text |
| Receipt Attached | Checkbox | Convert to Checkbox |
| Reimbursement Date | Date | Convert to Date |
| Status | Select (add options after import) | Convert to Select, add options: "Draft", "Submitted", "Approved", "Reimbursed", "Rejected" |
| Submission Date | Date | Convert to Date |
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 | Type | SQL | JSON Schema | Notion | CSV example |
|---|---|---|---|---|---|---|
| 1 | Expense Claim | text | VARCHAR(255) | string | Text | EXP-2026-014 |
| 2 | Amount | currency | NUMERIC(14,2) | number | Number (format: currency) | 45000.00 |
| 3 | Tax Amount | currency | NUMERIC(14,2) | number | Number (format: currency) | 8100.00 |
| 4 | Approver | text | VARCHAR(255) | string | Text | Sneha Iyer |
| 5 | Approval Level | select | VARCHAR(100) | string | Select (add options after import) | Manager |
| 6 | Category | select | VARCHAR(100) | string | Select (add options after import) | General |
| 7 | Currency | text | VARCHAR(255) | string | Text | INR |
| 8 | Date of Expense | date | DATE | string, format: date | Date | 2026-01-15 |
| 9 | Department | text | VARCHAR(255) | string | Text | Delivery |
| 10 | Employee Name | text | VARCHAR(255) | string | Text | Aarav Sharma |
| 11 | Expense ID | id | SERIAL PRIMARY KEY | integer | Text (preserve source ID) | (blank) |
| 12 | Notes | long_text | TEXT | string | Text | February claims reconciled against the bank feed; two receipts were missing. |
| 13 | Project/Cost Centre | text | VARCHAR(255) | string | Text | CC-200 Website Redesign |
| 14 | Budget Line | text | VARCHAR(255) | string | Text | BL-114 Travel |
| 15 | Receipt Attached | checkbox | BOOLEAN | boolean | Checkbox | FALSE |
| 16 | Reimbursement Date | date | DATE | string, format: date | Date | 2026-01-15 |
| 17 | Status | select | VARCHAR(100) | string | Select (add options after import) | Approved |
| 18 | Submission Date | date | DATE | string, format: date | Date | 2026-01-15 |
Approval Level
Manager | Finance | Owner | Auto Approved
Category
General | Operations | Finance | People | Compliance
Status
Draft | Submitted | Approved | Reimbursed | Rejected
Link fields: none
Prompt
Claims come on paper and nobody knows what was reimbursed.
Context first - one question per message, nothing already answered:
Q: Approval limit? A: 5,000 per claim.
Q: Receipt required? A: Always.
Q: How do you track it? A: A paper register.
Recommended next step - offered, not built:
Build a claim form that forces receipt and amount, then route by limit. Keep the finance reconciliation as a separate monthly step.
Workflow: Claim submitted → Manager approval → Finance check → Reimbursement → Monthly reconciliation
Want the CSV, SQL, JSON Schema and Notion mapping for this?
relation for anything that points at another table, text only for free text.currency, never text. Dates are date, never free text.I want to set up claims 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.