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

setup

Skill0 starsChanged 3 months agoMITView on GitHub

Install and connect the Lightspeed X reporting tools for this user. Use when the Lightspeed tools return a credential or connection error, when the user says Lightspeed is not connected or not working, when they ask how to connect Lightspeed or where to put their token, when they ask you to set up or install Lightspeed, or when they run this skill directly.

  • Reads credentials

192 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

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 11 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you catch yourself writing "run this command," stop and run it instead.

    line 14
  2. Distinctive:

    Never ask the user to paste their token into the chat: Not into a prompt, not to confirm it, not to check it.

    line 18
  3. Distinctive:

    If they paste a token in chat anyway, tell them plainly that it is now in the transcript, that they should revoke it in Lightspeed and …

    line 24
  4. Distinctive:

    Never guess the credential file path.

    line 38
  5. Distinctive:

    Only needed if the tools are missing entirely.

    line 43
  6. Very specific:

    If claude is not found, Claude Code is not on PATH for the shell.

    line 54
  7. Distinctive:

    If Step 1 gave you a path, use it.

    line 63
  8. Very specific:

    Ask the user for their store subdomain: the part of their Lightspeed URL before .retail.lightspeed.app.

    line 68
  9. Distinctive:

    Create the directory and write the file with a placeholder, never a real token:

    line 71
  10. Distinctive:

    If they cannot find Personal Tokens under Setup, they are not an admin on the Lightspeed account, or it is not on a Plus plan.

    line 104
  11. Distinctive:

    Wait for them to confirm they saved it.

    line 108
  12. Distinctive:

    Verify by calling the API, not by reading the file:

    line 112
  13. Very specific:

    If the credential file was created during this session, the MCP server has not read it yet.

    line 128
  14. Very specific:

    After the restart, call lightspeed_setup_status, then run one real query such as yesterday's revenue and show them the table.

    line 133
  15. Distinctive:

    Only if the user asks for it.

    line 143
  16. Very specific:

    Add LIGHTSPEED_WRITE_ACCOUNTS=<account key> to the same credentials file (comma-separated keys, or *).

    line 149

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

Connect Lightspeed X

You do the work. Do not hand the user a list of commands to run.

You have a Bash tool. Every install step here is a shell command you can run yourself. The only thing the user does is copy their token out of Lightspeed and paste it into a text file, because a token must never enter the chat.

If you catch yourself writing "run this command," stop and run it instead.

The one rule about the token

Never ask the user to paste their token into the chat. Not into a prompt, not to confirm it, not to check it. It would land in the transcript.

They paste it into a file in Notepad. You never see it. You verify by calling the API, not by reading the value.

If they paste a token in chat anyway, tell them plainly that it is now in the transcript, that they should revoke it in Lightspeed and create a new one, then continue with the new one.

Step 1: check what state you are in

Call lightspeed_setup_status.

ResultGo to
Reports connectedStep 5. Just prove it works.
Reports not connected, gives a pathStep 3, using that path
Tool does not exist at allStep 2. The plugin is not installed.

Never guess the credential file path. The tool reports the real one, and it differs by platform and by how the server was installed.

Step 2: install the plugin, yourself

Only needed if the tools are missing entirely. Run these with Bash. They are shell commands, not slash commands, so you can execute them:

claude plugin marketplace add genvjacobc/lightspeed-x-mcp
claude plugin install lightspeed-x@lightspeed-x-mcp --scope user

Expected: "Successfully added marketplace" then "Successfully installed plugin." "already installed" or "already added" is fine, keep going.

If claude is not found, Claude Code is not on PATH for the shell. On Windows try "$LOCALAPPDATA/Programs/claude/claude.exe", or tell the user to update Claude Code.

A shell install does not load into the running session. Continue to Step 3 and have them restart at the end; do not stop here.

Step 3: work out the credential path and create the file

If Step 1 gave you a path, use it. Otherwise the plugin data directory is:

  • Windows: %USERPROFILE%\.claude\plugins\data\lightspeed-x-lightspeed-x-mcp\credentials.env
  • macOS / Linux: ~/.claude/plugins/data/lightspeed-x-lightspeed-x-mcp/credentials.env

Ask the user for their store subdomain: the part of their Lightspeed URL before .retail.lightspeed.app. That is not a secret, so it is fine in chat.

Create the directory and write the file with a placeholder, never a real token:

mkdir -p "$HOME/.claude/plugins/data/lightspeed-x-lightspeed-x-mcp"
cat > "$HOME/.claude/plugins/data/lightspeed-x-lightspeed-x-mcp/credentials.env" <<'ENVEOF'
LIGHTSPEED_DOMAIN=THEIR_SUBDOMAIN
LIGHTSPEED_TOKEN=PASTE_YOUR_TOKEN_HERE
ENVEOF

Substitute the real subdomain. Leave the token as PASTE_YOUR_TOKEN_HERE.

The file survives plugin updates but is deleted by /plugin uninstall.

Step 4: have them paste the token into the file

Open both the token page and the file, so all they do is copy and paste:

start "" "https://THEIR_SUBDOMAIN.retail.lightspeed.app/setup/personal_tokens"
notepad "$USERPROFILE\.claude\plugins\data\lightspeed-x-lightspeed-x-mcp\credentials.env"

On macOS use open and open -e instead.

Then tell them, in plain language:

In the Lightspeed tab, click Add Personal Token, name it "Claude", and copy the token. It is shown only once. In the Notepad window, replace PASTE_YOUR_TOKEN_HERE with it, keeping the LIGHTSPEED_TOKEN= part, then save and close. Do not paste it here.

If they cannot find Personal Tokens under Setup, they are not an admin on the Lightspeed account, or it is not on a Plus plan. Both are Lightspeed restrictions this plugin cannot work around; an admin has to create the token for them.

Wait for them to confirm they saved it.

Step 5: verify, then prove it

Verify by calling the API, not by reading the file:

node "$HOME/.claude/plugins/cache/lightspeed-x-mcp/lightspeed-x/"*/dist/index.js --doctor

Set LIGHTSPEED_ENV_FILE to the credential path if the doctor does not find it. Expect a line like 1 of 1 account(s) reachable.

Doctor saysCause and fix
rejected (401)Either the token is wrong or the subdomain is wrong. Lightspeed answers 401 for a store that does not exist, so a domain typo looks identical to a bad token. Check the subdomain first, since you can see it and the token you cannot.
forbidden (403)Token is valid but its user lacks API access.
No accounts configuredFile is empty, saved elsewhere, or still holds the placeholder. Confirm they saved in Notepad.
cannot resolve hostnameSubdomain typo, or the network blocks the host.

If the credential file was created during this session, the MCP server has not read it yet. Tell them to close and reopen Claude Code, or run /reload-plugins. This is one of the few things they must do themselves, because you cannot restart their session.

After the restart, call lightspeed_setup_status, then run one real query such as yesterday's revenue and show them the table. A generic "you are all set" is not proof; their own store's numbers are.

Close by telling them what to ask for in their own words rather than tool names. For example "what sold best yesterday", "revenue by store last week", "what needs reordering".

Optional: turning on writes

Only if the user asks for it. The plugin is read-only until they opt in, and a fresh setup should stay that way.

  1. Explain the model first: every change is previewed, and nothing is sent until they approve a lightspeed_apply_write call, which Claude Code asks about every single time.
  2. Add LIGHTSPEED_WRITE_ACCOUNTS=<account key> to the same credentials file (comma-separated keys, or *). For sales, registers, store credit, gift cards and loyalty they also need LIGHTSPEED_WRITE_HIGH_RISK=true; do not add that unless they ask for those specifically.
  3. Their token must belong to a Lightspeed user allowed to make those changes in the back office. The API inherits that user's permissions.
  4. Restart the session, then run the doctor: it prints writes: enabled for [...]. lightspeed_write_status shows the same from inside a session.

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.