agentleFS
genvjacobcgenvjacobc/lightspeed-x-mcp/skills/reports/SKILL.md

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

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.
  • AWSSkill

    ship

    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

    1. garrytan/gbrain★ 34ksame name
    2. DenchHQ/DenchClaw★ 1.7ksame name
    3. DenchHQ/ironclaw★ 1.7ksame name
    4. lubusIN/frappe-skills★ 72same name
    5. msrv-tech/skills★ 68same name
    6. hurttlocker/o8★ 66same name
    7. mphaxise/gstack-port-for-codex★ 4same name
    8. supermodo/skills★ 1same name
    9. 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.

  • In this repository4 other files it gives its agents.

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
  1. Very specific:

    Call lightspeed_get_config before the first report of a session.

    line 13
  2. Distinctive:

    Say what you applied: If a total covers three outlets out of twenty because their config says so, the answer has to say so.

    line 22
  3. Very specific:

    If they want different defaults, that is the customize skill, not a manual edit.

    line 26
  4. Distinctive:

    If a report says it hit a sale ceiling, the numbers are incomplete.

    line 97
  5. Very specific:

    Check for a rules/reports.md file in the same directory as config.yaml (lightspeed_get_config reports that path).

    line 116

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 aboutTool
Anything aggregated: rankings, trends, totals, mix, marginlightspeed_sales_report
One transaction, a receipt, an audit, returnslightspeed_list_sales
Stock on hand, what is low, what to reorder, inventory valuelightspeed_inventory_report
Finding a product, its price, cost, or stock by locationlightspeed_search_products, lightspeed_get_product
A specific customer, or their purchase historylightspeed_search_customers, then lightspeed_list_sales with customer_id
Exact spelling of a brand, category, supplier, promotionlightspeed_list_reference_data
Which stores exist, their UUIDs and timezoneslightspeed_list_outlets
An endpoint with no dedicated toollightspeed_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:

Questiongroup_by
Top sellersproduct, or sku for variant-level
Which store is winningoutlet
Trend over timeday, or month for long ranges
Busiest times, staffing decisionshour, weekday
Category or brand mix, margin by brandcategory, brand
Vendor performancesupplier
Staff performancesalesperson
Best customerscustomer
Cash versus cardpayment_type
One headline numbernone

Get the arguments right

  • Dates are YYYY-MM-DD and inclusive, read in the outlet's local timezone. A single day means date_from and date_to are 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_id is 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 from lightspeed_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, or revenue_incl_tax when relevant.
  • limit defaults 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_type rows 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 states to include parked or voided sales.
  • Inventory status matters: low_stock is what is running low while still sellable; reorder_needed is the full buy list including anything already at zero. Do not answer a reorder question with low_stock alone.

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.