reports
Skill0 starsChanged 3 months agoMITView on GitHub
Guidance for answering retail questions from Lightspeed X POS data. Use whenever the user asks about sales, revenue, top sellers, margin, gross profit, basket size, stock levels, what needs reordering, store or outlet comparisons, staff performance, busiest hours, payment mix, or a specific transaction, product, or customer. Also use when they paste Lightspeed figures and want analysis.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- mphaxise/gstack-port-for-codextheir own version, first seen Nov 29, 2026
- lubusIN/frappe-skillstheir own version, first seen Nov 4, 2026
- garrytan/gbraintheir own version, first seen Oct 17, 2026
- DenchHQ/ironclawtheir own version, first seen Oct 8, 2026
- DenchHQ/DenchClawtheir own version, first seen Oct 8, 2026
- hurttlocker/o8their own version, first seen Oct 4, 2026
Used with
Projects with it also use ship.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- garrytan/gbrain★ 34ksame name
- DenchHQ/DenchClaw★ 1.7ksame name
- DenchHQ/ironclaw★ 1.7ksame name
- lubusIN/frappe-skills★ 72same name
- msrv-tech/skills★ 68same name
- hurttlocker/o8★ 66same name
- mphaxise/gstack-port-for-codex★ 4same name
- supermodo/skills★ 1same name
- yuntian05/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Call lightspeed_get_config before the first report of a session.
- Distinctive: line 22
Say what you applied: If a total covers three outlets out of twenty because their config says so, the answer has to say so.
- Very specific: line 26
If they want different defaults, that is the customize skill, not a manual edit.
- Distinctive: line 97
If a report says it hit a sale ceiling, the numbers are incomplete.
- Very specific: line 116
Check for a rules/reports.md file in the same directory as config.yaml (lightspeed_get_config reports that path).
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Answering retail questions from Lightspeed X
Route the question to the right tool, then interpret the numbers rather than just relaying the table.
Start with their preferences
Call lightspeed_get_config before the first report of a session. It returns
this user's defaults: which stores their reports cover, what they want measured,
what to compare against, and how much customer detail to surface. Honour it.
Two rules about applying it:
- The question wins. Config is the default, not a filter on what they asked for. If they ask about a store outside their configured scope, answer about that store.
- Say what you applied. If a total covers three outlets out of twenty because their config says so, the answer has to say so. A scoped number that looks like a whole-company number is worse than no personalization at all.
If they want different defaults, that is the customize skill, not a manual
edit.
Pick the tool
| The question is about | Tool |
| Anything aggregated: rankings, trends, totals, mix, margin | lightspeed_sales_report |
| One transaction, a receipt, an audit, returns | lightspeed_list_sales |
| Stock on hand, what is low, what to reorder, inventory value | lightspeed_inventory_report |
| Finding a product, its price, cost, or stock by location | lightspeed_search_products, lightspeed_get_product |
| A specific customer, or their purchase history | lightspeed_search_customers, then lightspeed_list_sales with customer_id |
| Exact spelling of a brand, category, supplier, promotion | lightspeed_list_reference_data |
| Which stores exist, their UUIDs and timezones | lightspeed_list_outlets |
| An endpoint with no dedicated tool | lightspeed_api_get |
lightspeed_sales_report answers far more than its name suggests. Reach for it
with the right group_by instead of pulling raw sales and doing the arithmetic
yourself:
| Question | group_by |
| Top sellers | product, or sku for variant-level |
| Which store is winning | outlet |
| Trend over time | day, or month for long ranges |
| Busiest times, staffing decisions | hour, weekday |
| Category or brand mix, margin by brand | category, brand |
| Vendor performance | supplier |
| Staff performance | salesperson |
| Best customers | customer |
| Cash versus card | payment_type |
| One headline number | none |
Get the arguments right
- Dates are
YYYY-MM-DDand inclusive, read in the outlet's local timezone. A single day meansdate_fromanddate_toare the same value. - Resolve relative dates before calling. "Last week" and "yesterday" are ambiguous. Work out the actual dates and state them in your answer so the user can check your interpretation.
outlet_idis the speed lever. It is the one filter the API applies server side. When the question is about one store, always pass it. Get the UUID fromlightspeed_list_outlets.- Ask for the metrics the question needs. The default set is revenue, units,
sale count, gross profit, and margin. Add
basket_value,basket_size,discount,cogs,customer_count, orrevenue_incl_taxwhen relevant. limitdefaults to 25. Raise it for a full picture, lower it for a top-5.
Know what the numbers mean
- Revenue excludes tax unless you ask for
revenue_incl_tax. - Gross profit and margin are real, computed from cost of goods on each line item, not estimated from a markup.
- Returns are already netted out. Lightspeed books them as negative line items, so a negative row or a dip is genuine, not a bug.
payment_typerows are amounts tendered, which is tax inclusive, and cost based metrics do not apply to them. Their sum equals revenue including tax.- Only closed sales count by default, which matches what the Lightspeed back
office reports. Pass
statesto include parked or voided sales. - Inventory
statusmatters:low_stockis what is running low while still sellable;reorder_neededis the full buy list including anything already at zero. Do not answer a reorder question withlow_stockalone.
Expect the first call to be slow
The Lightspeed API cannot filter sales by date, so the server locates a range by searching the version sequence. A first report can take 15 to 20 seconds; later ones in the same session are much faster because the search and the product catalog are cached. Do not retry a slow call, and do not silently narrow the range the user asked for to make it faster.
If a report says it hit a sale ceiling, the numbers are incomplete. Say so plainly and narrow by outlet or date rather than presenting a partial total as if it were the answer.
Answer like an analyst
Lead with the number they asked for, then add the comparison that gives it meaning. A revenue figure alone is rarely the answer: week over week, versus another store, or as a share of the total is what makes it useful. Name the date range and scope you used so the figure is checkable, and flag anything that looks like a data problem rather than a business result, such as negative stock or a category holding most of the revenue because everything is tagged into it.
Handle customer data carefully. lightspeed_search_customers returns names,
emails, phone numbers, and dates of birth. Pull only what the question needs and
do not dump customer lists into a summary or a file without being asked.
House rules
Check for a rules/reports.md file in the same directory as config.yaml
(lightspeed_get_config reports that path). If it exists, follow it. It is
where this user has written how they want their reports to read, and it
overrides anything above.
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.

