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

customize

Skill0 starsChanged 3 months agoMITView on GitHub

Change how this user's Lightspeed reports behave. Use when they want reports limited to certain stores or their own region, want to change what counts as low stock or dead stock, want different reorder thresholds for a category, want to set their own-label brands or a vendor watchlist, want a different default comparison or week start, want exports saved somewhere specific, or say a report showed them the wrong scope. Also use for any "always do X in my reports" or "stop showing me Y" request.

  • Reads credentials

44 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-discord, add-slack and 10 more.

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

    add-discord

    Add Discord bot channel integration via Chat SDK.

    Also in 11 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 11 projects that use this

  • +10 more from microsoft

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 41 edited versions we read keep these.

  • 5

    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. Distinctive:

    You do the work: Read the current settings, make the change, show what you changed.

    line 8
  2. Very specific:

    1. Read before writing: Call lightspeed_get_config.

    line 25
  3. Distinctive:

    Read back the store names you resolved and get agreement before writing.

    line 35
  4. Very specific:

    4. Verify by reading, not by asserting: Call lightspeed_get_config again.

    line 46
  5. Very specific:

    Check the values changed, the From column now says file, the store scope resolved to the right names, and no new warnings appeared.

    line 47
  6. Distinctive:

    Write a house rules file instead:

    line 77
  7. Distinctive:

    Write it for them. Ask what they want different, put it in the file, and read it back.

    line 88
  8. Distinctive:

    If someone asks you to restrict what a colleague can see, this is the wrong tool and you should say so plainly.

    line 95

“Common” is measured: kept by at least 6 in 10 of the 41 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

Change how reports behave

You do the work. Read the current settings, make the change, show what you changed. Do not hand the user a file path and a schema and ask them to edit YAML.

Settings take effect on the next tool call. No restart, no reload.

What you are editing

One file: config.yaml, in the same directory as their credentials. lightspeed_get_config reports the exact path. It holds no credentials, so you can read it, quote it, and rewrite it freely.

Never touch credentials.env. Different file, same directory, and the only one with a secret in it. If a customization request seems to need the token, you have misread the request.

The loop

1. Read before writing. Call lightspeed_get_config. It returns every effective setting, whether each came from the file or a default, and any warnings. If no file exists yet, call it again with include_template: true to get a commented starter rather than inventing the schema.

2. Resolve anything the user said in words. They will say "my stores" and "the Omaha ones", not UUIDs. Call lightspeed_list_outlets and match names yourself. Write UUIDs to the file, not names: a name that gets edited in Lightspeed silently stops matching, and a UUID does not.

Read back the store names you resolved and get agreement before writing. Scope is the setting most likely to make later numbers look wrong, so it is the one worth confirming.

3. Back up, then write. Copy the existing file to config.yaml.bak first. There is one file and no history behind it.

Preserve comments and any settings you are not changing. Rewriting the whole file from the template because it was easier than editing two lines throws away work the user did.

4. Verify by reading, not by asserting. Call lightspeed_get_config again. Check the values changed, the From column now says file, the store scope resolved to the right names, and no new warnings appeared. Then show the user what changed, in their words.

What is adjustable

They saySetting
"only my stores", "just the stores I run"reporting.outlets
"our week starts Sunday"reporting.week_starts
"compare to last year, not last week"reporting.compare_to
"always show me margin"reporting.default_metrics
"we reorder at two weeks of stock"inventory.target_cover_days
"flower is different, it moves fast"inventory.rules, matched on category
"dead after a month, not two"inventory.dead_stock_days
"ignore special order items"inventory.exclude.suppliers
"these are our own brands"vendors.house_brands
"always tell me about this vendor"vendors.watchlist
"save exports here"exports.directory
"do not show me customer emails"privacy.customer_pii: none

Category rules are ordered and the first match wins, so put narrow rules above broad ones. A rule only overrides the fields it names; everything else inherits.

When the request does not fit a setting

Some requests are about judgment, not numbers: "lead with margin, not revenue", "never mention the outlet we are closing", "always call them guests, not customers". There is no config key for those, and inventing one would not help.

Write a house rules file instead:

<same directory as config.yaml>/rules/<skill-name>.md

For example rules/daily-brief.md. Every skill in this plugin reads its own house rules file if it exists and follows it, and house rules override everything else including this plugin's own instructions. Plain prose is fine. It survives plugin updates.

Write it for them. Ask what they want different, put it in the file, and read it back. If you are unsure whether something is a setting or a house rule: if it is a number or a list, it is a setting; if it is a preference about wording, emphasis or judgment, it is a house rule.

Scope is convenience, not permission

If someone asks you to restrict what a colleague can see, this is the wrong tool and you should say so plainly. Config changes what their own reports default to. It is not an access control: their Lightspeed token carries their full account permissions, Lightspeed offers no store-limited token scope, and anyone can widen their own config or open the back office directly.

Real restriction happens in Lightspeed user permissions, or by not giving someone a token.

Undo

config.yaml.bak is the previous version. If a change made reports worse, restore it. If they want a clean slate, delete config.yaml entirely: every setting reverts to its default and nothing else breaks.

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.