add-entity

add-entity is a command for Claude Code from mentilead/shopify-app-skill. It costs 0 tokens per session (512 once invoked), scanned A, original, MIT.

A coding command for creating a new type of stored record in DynamoDB, Amazon’s NoSQL database. It sets up the record’s keys, database helpers, and shop-specific data boundaries.

In plain words
What is it for?
Use it to add records such as notifications, export jobs, or other shop-owned data to a Shopify app.
Why use it?
It removes much of the design work needed to store and retrieve data safely when one app serves multiple Shopify shops. It helps keep each shop’s records separated.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

Part of the shopify-app-skill plugin — 1 skill, 10 commands shipped together

Good fit Use it to add records such as notifications, export jobs, or other shop-owned data to a Shopify app.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mentilead/shopify-app-skill/add-entity
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.

Clone the repo
git clone --depth 1 https://github.com/mentilead/shopify-app-skill

Made for: Claude Code.

Or install shopify-app-skill, the plugin that ships this one along with the rest of its 1 skill, 10 commands.

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 add-entity

README.md
[![agentmods](https://agentmods.dev/badge/commands/mentilead/shopify-app-skill/add-entity/github.svg)](https://agentmods.dev/commands/mentilead/shopify-app-skill/add-entity)
Your own site
<a href="https://agentmods.dev/commands/mentilead/shopify-app-skill/add-entity"><img src="https://agentmods.dev/badge/commands/mentilead/shopify-app-skill/add-entity/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-entity

Your own site · 80×15
<a href="https://agentmods.dev/commands/mentilead/shopify-app-skill/add-entity"><img src="https://agentmods.dev/badge/commands/mentilead/shopify-app-skill/add-entity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 512 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.00000 $0.00512
Opus 5.5 $0.00000 $0.00205
Sonnet 5.5 $0.00000 $0.00102
Haiku 4.5 $0.00000 $0.00051

Measured 3mo ago against content hash c547339f3a55, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-entity 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 3mo 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.

commands/add-entity.md · 34 lines

How it starts

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

Add Entity

Design and scaffold a new DynamoDB entity with single-table key design, service functions, and tenant scoping.

Arguments

$ARGUMENTS = entity name and optional description (e.g., "Notification user notifications for form events", "ExportJob")

Instructions

  1. Parse the entity name from $ARGUMENTS. If empty, ask the user what entity to create and its purpose.
  2. Read .claude/skills/shopify-app/references/dynamodb-patterns.md for key structure, the keys module pattern, and mapper conventions.
  3. Read .claude/skills/shopify-app/references/security-patterns.md for multi-tenancy scoping requirements.
  4. Design the key structure following existing patterns:
    • PK must start with SHOP#<domain> for tenant isolation (unless it's a cross-shop entity like Session)
    • SK must use the ENTITY#<id> pattern
    • Add GSI1PK/GSI1SK only if cross-partition queries are needed
    • If the entity has a time-based sort need, include a timestamp in the SK or GSI1SK
  5. Add key builder functions to app/services/dynamodb/keys.ts:
    • entityName(domain, id) — returns PK, SK, and optional GSI keys
    • entityNameByShop(domain) — returns PK and SKPrefix for queries
  6. Create a mapper in app/services/dynamodb/mappers.ts (or a new mapper file):
    • toEntityName(item: Record<string, any>): EntityType — DynamoDB item to typed object
    • fromEntityName(entity: EntityType): Record<string, any> — typed object to DynamoDB item
  7. Create service functions in app/services/<entity-name>.server.ts:
    • create<Entity>(shopDomain, data) — PutItem with condition to prevent overwrites
    • get<Entity>(shopDomain, id) — GetItem
    • query<Entities>ByShop(shopDomain) — Query with SKPrefix
    • update<Entity>(shopDomain, id, updates) — UpdateItem
    • delete<Entity>(shopDomain, id) — DeleteItem
    • Every function takes shopDomain as the first parameter
  8. Create unit tests for the key builders and service functions.
  9. Show the user the key design table and ask them to confirm before generating the code.

Read the full file on GitHub · 34 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. 3mo ago First seen · 34 lines · 0 tokens per session scan A c547339f3a55

Subscribe to this mod's changes

add-entity is a command published in the GitHub repository mentilead/shopify-app-skill (6 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 512 tokens. 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-31.

Related

add-entity compared with commands from other repositories

add-entity next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-entitymentilead/shopify-app-skillCommand68mo agoMITA0Claude Code
cloudflare-d1:create-migrationsecondsky/claude-skillsCommand2572d agoMITA50Claude Code
cloudflare-d1:setupsecondsky/claude-skillsCommand2572d agoMITA50Claude Code
aws-cliVincentChuWaiChow/vanguard-frontier-agenticCommand26todayApache-2.0A0Claude Code
performance-testVincentChuWaiChow/vanguard-frontier-agenticCommand26todayApache-2.0A0Claude Code
refactorVincentChuWaiChow/vanguard-frontier-agenticCommand26todayApache-2.0A0Claude Code
restoreVincentChuWaiChow/vanguard-frontier-agenticCommand26todayApache-2.0A0Claude Code