Best use case
SKILL.md - market-sales-tracker is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
## Overview
Teams using SKILL.md - market-sales-tracker should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/market-sales-tracker/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How SKILL.md - market-sales-tracker Compares
| Feature / Agent | SKILL.md - market-sales-tracker | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
## Overview
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# SKILL.md - market-sales-tracker
## Overview
The market-sales-tracker skill records and queries direct-market farm sales data. It provides tools for creating sale events with line items, retrieving revenue summaries, and comparing performance across markets and products.
## Available Tools
### record_sale
Record a completed market day sale event with all line items.
**Input schema:**
```typescript
{
market_id: string; // UUID of the market
date: string; // ISO date: "2025-03-20"
start_time?: string; // "08:00"
end_time?: string; // "13:00"
customer_count?: number;
weather?: string; // free text: "Sunny 72F"
notes?: string;
cash?: number; // payment split
card?: number;
other?: number;
line_items: Array<{
product_id: string; // UUID of the product
quantity_sold: number; // decimal allowed
unit_price: number; // dollars
}>;
}
```
**Returns:**
```typescript
{
event_id: string;
total_revenue: number;
line_item_count: number;
}
```
**Rules:**
- Inserts event header and all line items in a single atomic transaction
- Computes `line_total = quantity_sold * unit_price` per line item
- Computes `total_revenue = sum(line_totals)`
- If payment split is provided, validates `cash + card + other` equals `total_revenue` within $0.01
---
### get_revenue_summary
Get aggregated revenue for a time range, optionally filtered by market.
**Input schema:**
```typescript
{
date_from: string; // ISO date
date_to: string; // ISO date
market_id?: string; // optional filter
group_by?: "day" | "week" | "month" | "season"; // default: "week"
}
```
**Returns:**
```typescript
{
total_revenue: number;
event_count: number;
avg_per_event: number;
best_event: { date: string; market: string; revenue: number } | null;
periods: Array<{
period_key: string; // "2025-W12", "2025-03", "Spring 2025"
revenue: number;
event_count: number;
}>;
}
```
---
### get_top_products
Get top products by revenue for a date range.
**Input schema:**
```typescript
{
date_from: string;
date_to: string;
market_id?: string; // optional filter
limit?: number; // default 10
}
```
**Returns:**
```typescript
{
products: Array<{
product_id: string;
product_name: string;
category: string;
unit: string;
total_revenue: number;
total_quantity: number;
avg_price: number;
event_count: number;
}>;
}
```
---
### get_market_summary
Get performance summary for a specific market.
**Input schema:**
```typescript
{
market_id: string;
date_from?: string; // defaults to current season start
date_to?: string; // defaults to today
}
```
**Returns:**
```typescript
{
market_id: string;
market_name: string;
market_type: string;
total_revenue: number;
event_count: number;
avg_per_event: number;
avg_customers: number | null;
top_products: Array<{ product_name: string; revenue: number }>;
recent_events: Array<{ date: string; revenue: number; customers: number | null }>;
}
```
---
### list_markets
List all markets with basic stats.
**Input schema:** `{}`
**Returns:**
```typescript
{
markets: Array<{
market_id: string;
name: string;
type: "farmers_market" | "farm_stand" | "csa" | "wholesale" | "restaurant" | "other";
schedule: string | null; // e.g. "Saturday 8am-1pm"
revenue_ytd: number;
event_count_ytd: number;
last_event_date: string | null;
}>;
}
```
---
### list_products
List all products with revenue data.
**Input schema:**
```typescript
{ category?: string } // optional filter
```
**Returns:**
```typescript
{
products: Array<{
product_id: string;
name: string;
category: string;
unit: string;
default_price: number;
revenue_ytd: number;
qty_sold_ytd: number;
avg_price_ytd: number;
}>;
}
```
## Usage Notes
- All monetary values are in US dollars rounded to 2 decimal places
- Dates are ISO 8601: `YYYY-MM-DD`
- Season grouping reads from the `settings` table; falls back to `month` if not configured
- The `record_sale` tool requires all `product_id` and `market_id` values to exist in the database; unknown IDs return a 422 error with a `not_found` field indicating which ID failed
- Revenue computations are performed in SQL (not in JavaScript) for correctness on large datasetsRelated Skills
habit-tracker
Self-hosted daily habit check-in app with streaks, calendar heatmap, and weekly email reports. Use when you need to record a habit check-in, query streak data, create or update habits, review weekly progress, or manage categories. Triggers include "log habit", "check in", "mark done", "streak", "habit progress", "weekly report", or any task involving personal habit tracking.
sleep-tracker
No description provided.
nutrition-tracker
No description provided.
medication-tracker
Track medications with dosage schedules, log doses taken or skipped, monitor adherence rates, manage refill reminders, and check basic drug interactions. Use when a user needs to manage their medication schedule, log dose history, or review adherence.
deployment-tracker
Track every deployment event via CLI or REST API. Searchable web dashboard with service timelines, rollback tracking, and per-service deploy tokens.
terminal-time-tracker
Track time spent on projects from the terminal. Use when starting/stopping timers, logging time, viewing daily or weekly reports, or exporting time data. Triggers include "track time", "time tracker", "ttm", "log hours", "time report", "how much time", "start timer".
soil-test-tracker
Record soil test results, track nutrient levels over time, and log soil amendments. Use when asked to add a soil test, check which nutrients are deficient, view field nutrient history, record a lime or fertilizer application, or compare field health across tests. Triggers include "soil test", "soil pH", "nutrient deficiency", "add lime", "compost application", "phosphorus low", "organic matter", "amendment record", or any task involving soil chemistry tracking.
Skill: germination-tracker
## Purpose
SKILL.md - sales-analytics
## Overview
livestock-tracker
Track individual animals, record health events, vaccinations, weights, and breeding events. Use when asked to add an animal to the herd, log a vaccination, record body weight, track a treatment, set up a breeding event, check overdue vaccinations, or view the animal timeline. Triggers include "add animal", "record vaccination", "log weight", "track treatment", "breeding event", "overdue vaccines", "animal health history", "herd overview", or any task involving individual animal management.
Skill: Uptime Monitoring
## Overview
Skill: Status Page
## Overview