rema-shared

rema-shared is a skill for Claude Code, Codex from Alfredvc/rema1000-cli. It costs 35 tokens per session (748 once invoked), scanned A, original, MIT.

A foundation skill for the rema command-line tool, which accesses the REMA 1000 grocery API.

In plain words
What is it for?
Use it before other rema skills to check authentication, choose JSON output, select fields, and understand where login tokens are stored.
Why use it?
It explains the shared rules for signing in, reading output, handling errors, and invoking other rema commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before other rema skills to check authentication, choose JSON output, select fields, and understand where login tokens are stored.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alfredvc/rema1000-cli/rema-shared
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Alfredvc/rema1000-cli --skill rema-shared
Clone the repo
git clone --depth 1 https://github.com/Alfredvc/rema1000-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rema-shared

README.md
[![agentmods](https://agentmods.dev/badge/skills/alfredvc/rema1000-cli/rema-shared.svg)](https://agentmods.dev/skills/alfredvc/rema1000-cli/rema-shared)
Your own site
<a href="https://agentmods.dev/skills/alfredvc/rema1000-cli/rema-shared"><img src="https://agentmods.dev/badge/skills/alfredvc/rema1000-cli/rema-shared.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 748 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00748
Opus 5 $0.00017 $0.00374
Sonnet 5 $0.00007 $0.00150
Haiku 4.5 $0.00003 $0.00075

Measured 7d ago against content hash 2f2086832ce5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

rema-shared scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/rema-shared/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

rema-shared

Foundation skill for the rema CLI — a wrapper around the REMA 1000 grocery API. Read this before using any other rema skill.

Authentication

Most commands require authentication. Auth is browser-based (one-time setup):

rema auth login     # Opens Chrome/Chromium for phone auth
rema auth status    # Verify logged in, check token expiry
rema auth logout    # Delete saved tokens

Tokens are stored in ~/.rema1000/tokens.json and auto-refresh before expiry. You do not need to re-authenticate between sessions.

Output Format

  • Success: JSON to stdout, exit code 0
  • Errors: {"error": "message"} to stderr, exit code 1
  • TTY: Pretty-printed JSON (indented)
  • Piped: Compact JSON (single line)
  • Binary commands (articles image, lists image): Raw bytes to stdout or --output <file>

Global Flags

Use these on any command:

Flag Purpose
--json Force compact JSON output (overrides TTY detection)
--fields f1,f2 Return only named fields — reduces token usage

Always use --json when parsing output programmatically. Use --fields to minimize tokens when you only need specific data.

Available Resources

Resource Commands Auth Required
version rema version No
customer get, minimal, update Yes
offers list Yes
campaigns list Yes
articles search, image Yes
stores get, search, hours Yes
transactions list, get Yes
lists list, get, create, delete, share, image Yes
items add, update, delete, clear, activate Yes

Error Handling

All errors produce JSON on stderr with exit code 1:

{"error": "Token not configured. Run `rema auth login`."}

If you receive an auth error, run rema auth status to check token state. Tokens auto-refresh, but if the refresh token itself has expired, run rema auth login again.

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 74 lines · 35 tokens per session scan A 2f2086832ce5

Subscribe to this mod's changes

rema-shared is a skill published in the GitHub repository Alfredvc/rema1000-cli (11 stars, last pushed 4mo ago), licensed MIT. It adds 35 tokens to every session and 748 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

product-showcase-page

Build a single-product deep-dive showcase page as a self-contained HTML file. Triggers on: "build a product showcase page", "deep dive landing page for [product]", "create a product spotlight page", "product feature page", "single product page", "detailed page about [product]", "build a page showing everything about…

Affitor/affiliate-skills · 110 tokens

show-off

Create polished self-contained HTML showcase pages and section screenshots for demos, launch posts, social media, article illustrations, and visual presentations. Use when the user wants to turn a project, feature, case study, markdown brief, or prompt into a bilingual scrollable showcase with reusable promo images.

vanducng/skills · 60 tokens

criador-de-portfolio

Construção de portfólio profissional digital: seleção e apresentação de projetos, estrutura de cases com problema-solução-resultado, showcase de habilidades e estratégia de distribuição para atrair clientes e recrutadores.

ricneves-ai/flowgrammers-skills · 46 tokens

mk:showcase

Create a self-contained, visually polished HTML showcase page for a topic or set of artifacts. Supply a mission (topic summary) and optional artifact paths explicitly — the skill never auto-scans the repo. Writes output to assets/showcase/ /. Screenshots are optional (requires Puppeteer). Publishing is local-only by…

ngocsangyem/MeowKit · 80 tokens

logo-generator

Generate professional SVG logos and high-end showcase images. Use when the user wants to: (1) Create a logo or icon for their product/brand, (2) Generate logo design concepts based on product information, (3) Create professional logo showcase presentations with multiple background styles, (4) Export logos in various…

nusabyte-my/jebat-core · 119 tokens

product-showcase-page

Build a single-product deep-dive showcase page as a self-contained HTML file. Triggers on: "build a product showcase page", "deep dive landing page for [product]", "create a product spotlight page", "product feature page", "single product page", "detailed page about [product]", "build a page showing everything about…

gabrielmoreira/agent-skills-mirror · 110 tokens