track-cost
Skill0 starsChanged 8 months agoMITView on GitHub
Track project budget, costs, commitments, and forecast. Use when the user wants to view budget status, log an expense, update cost forecasts, track contingency, or get a cost summary between report periods.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- compareSkill
- dashboardSkill
- dashboard-uiSkill
- feedbackSkill
- generateSkill
- importSkill
- onboardSkill
- scheduleSkill
- setupSkill
- team-setupSkill
- track-actionsSkill
- track-changesSkill
- track-risksSkill
- validateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Read ./data/config/project-info.json for original budget
- Distinctive: line 65
Ask the user for:
- Distinctive: line 88
After logging, show updated category total and overall budget status.
- Distinctive: line 93
Ask which categories need forecast updates
- Distinctive: line 111
If contingency is below 5%, flag as critical
- Distinctive: line 112
If contingency is below 10%, flag as watch
- Very specific: line 170
If the file doesn't exist, create it from project-info.json budget data with empty categories and entries.
- Very specific: line 174
When run for the first time (no cost-tracker.json exists):
- Very specific: line 175
Read project-info.json for budget amount
- Distinctive: line 176
Ask the user for their cost categories (or suggest defaults based on project type):
- Distinctive: line 193
Ask for budget allocation per category
- Distinctive: line 199
Document-based analysis (invoices, pay apps, budget reports)
- Distinctive: line 203
Always show variance as both dollar amount and percentage
- Distinctive: line 206
Never delete cost entries - they form an audit trail
- Distinctive: line 207
When logging costs, update the category committed/spent totals automatically
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cost and Budget Tracker
Manage project cost data stored at ./data/config/cost-tracker.json.
This provides a living budget view between full SitRep reports.
Actions
View Budget Status (/csitrep-generator:track-cost view)
- Read
./data/config/cost-tracker.json - Read
./data/config/project-info.jsonfor original budget - Display a formatted budget summary:
BUDGET STATUS - [Project Name]
Updated: [last_updated]
Budget Committed Spent Remaining
Original Contract: $[X]
Approved Changes: $[X]
Current Budget: $[X] $[X] $[X] $[X]
[X]% [X]% [X]%
COST BY CATEGORY:
| Category | Budget | Committed | Spent | Variance | Status |
|-------------------|-----------|-----------|-----------|-----------|--------|
| [Category 1] | $[X] | $[X] | $[X] | $[X] (X%) | [OK/OVER/WATCH] |
| [Category 2] | $[X] | $[X] | $[X] | $[X] (X%) | [OK/OVER/WATCH] |
| ... | | | | | |
CONTINGENCY:
Original: $[X]
Used: $[X]
Remaining: $[X] ([X]% of budget)
Pending claims: $[X]
Projected remaining: $[X]
FORECAST:
Estimate at Completion (EAC): $[X]
Variance at Completion (VAC): $[X] ([over/under])
Burn Rate: $[X]/[period]
Projected Overrun/Underrun: $[X]
ALERTS:
- [Any categories over budget]
- [Contingency below 5% warning]
- [Burn rate above plan]Log Cost Entry (/csitrep-generator:track-cost log)
Ask the user for:
- Category (from existing categories, or create new)
- Description (what is the cost for)
- Amount
- Type: committed / spent / adjustment
- Date (default today)
- Reference (PO number, invoice number, etc.) - optional
Add to cost-tracker.json:
{
"id": "COST-001",
"category": "Site Work",
"description": "Additional soil stabilization",
"amount": 45000,
"type": "spent",
"date": "2026-03-07",
"reference": "INV-2026-0234",
"logged_by": "user",
"logged_date": "2026-03-07"
}After logging, show updated category total and overall budget status.
Update Forecast (/csitrep-generator:track-cost forecast)
- Show current budget status
- Ask which categories need forecast updates
- For each selected category, ask:
- Estimated cost to complete
- Reason for change (scope change, market conditions, productivity, etc.)
- Recalculate:
- Estimate at Completion (EAC) = Spent + Committed + Estimated to Complete
- Variance at Completion (VAC) = Budget - EAC
- Save updated forecast
- Flag if EAC exceeds budget
Contingency Status (/csitrep-generator:track-cost contingency)
- Show contingency breakdown:
- Original contingency amount
- Approved draws (list each with date, amount, reason)
- Pending claims against contingency
- Remaining contingency
- Projected remaining after pending claims
- If contingency is below 5%, flag as critical
- If contingency is below 10%, flag as watch
Cost Tracker Format (cost-tracker.json)
{
"last_updated": "2026-03-07",
"original_budget": 12800000,
"approved_changes": 155000,
"current_budget": 12955000,
"contingency": {
"original": 500000,
"draws": [
{
"date": "2026-02-15",
"amount": 85000,
"reason": "Soil stabilization - unforeseen conditions",
"reference": "CO-001"
}
],
"pending_claims": 192000,
"remaining": 350000
},
"categories": [
{
"name": "General Conditions",
"budget": 1200000,
"committed": 1150000,
"spent": 580000
},
{
"name": "Site Work",
"budget": 1370000,
"committed": 1440000,
"spent": 620000
}
],
"entries": [
{
"id": "COST-001",
"category": "Site Work",
"description": "Additional excavation - rock conditions",
"amount": 45000,
"type": "spent",
"date": "2026-03-05",
"reference": "INV-2026-0234",
"logged_by": "user",
"logged_date": "2026-03-07"
}
],
"forecast": {
"eac": 13100000,
"vac": -145000,
"updated": "2026-03-07"
}
}If the file doesn't exist, create it from project-info.json budget data with empty categories and entries.
Initial Setup
When run for the first time (no cost-tracker.json exists):
- Read project-info.json for budget amount
- Ask the user for their cost categories (or suggest defaults based on project type):
Construction defaults: General Conditions, Site Work, Concrete, Structural Steel, MEP (Mechanical/Electrical/Plumbing), Envelope, Interiors, Contingency
Software defaults: Personnel, Infrastructure/Cloud, Licenses/Tools, Contractors, QA/Testing, Contingency
Program defaults: Personnel, Travel, Equipment, Subgrants, M&E, Overhead, Contingency
Product defaults: R&D, Tooling, Raw Materials, Manufacturing, QA/Compliance, Contingency
Consulting defaults: Senior Staff, Junior Staff, Travel, Subcontractors, Technology, Contingency
- Ask for budget allocation per category
- Save the initial cost-tracker.json
Integration with SitRep
The cost agent in the generate skill should read cost-tracker.json (if it exists) alongside the documents in the cost data folder. This gives the agent both:
- Document-based analysis (invoices, pay apps, budget reports)
- Tracker-based data (logged entries, forecast, contingency status)
Rules
- Always show variance as both dollar amount and percentage
- Flag categories over budget in the display
- Contingency below 5% = CRITICAL, below 10% = WATCH
- Never delete cost entries - they form an audit trail
- When logging costs, update the category committed/spent totals automatically
- EAC calculation: Spent to Date + Remaining Committed + Estimated Remaining Work
- Sort categories by variance (worst first) when displaying
- Currency follows project-info.json currency setting
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

