storage-plugin

storage-plugin is a cursor rule for Cursor from trueLoving/Pixuli. It costs 0 tokens per session (300 once invoked), scanned A, original, MIT.

Rules for creating storage-provider plug-ins in the Pixuli application. A storage provider is a component that can list, upload, delete, and create links for stored files.

In plain words
What is it for?
Use it when adding or changing a storage provider, its registration, configuration, supported operations, or related tests.
Why use it?
It defines where provider code belongs and prevents storage packages from depending on the user interface or placing provider-specific code in the shared core.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding or changing a storage provider, its registration, configuration, supported operations, or related tests.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/trueloving/pixuli/storage-plugin
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/trueLoving/Pixuli

Made for: Cursor.

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 storage-plugin

README.md
[![agentmods](https://agentmods.dev/badge/rules/trueloving/pixuli/storage-plugin/github.svg)](https://agentmods.dev/rules/trueloving/pixuli/storage-plugin)
Your own site
<a href="https://agentmods.dev/rules/trueloving/pixuli/storage-plugin"><img src="https://agentmods.dev/badge/rules/trueloving/pixuli/storage-plugin/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 storage-plugin

Your own site · 80×15
<a href="https://agentmods.dev/rules/trueloving/pixuli/storage-plugin"><img src="https://agentmods.dev/badge/rules/trueloving/pixuli/storage-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 300 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.00300
Opus 5.5 $0.00000 $0.00120
Sonnet 5.5 $0.00000 $0.00060
Haiku 4.5 $0.00000 $0.00030

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

Security

Grade A, and why

storage-plugin 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 1mo 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.

.cursor/rules/storage-plugin.mdc · 39 lines

What it actually says

Storage Plugin

契约(@pixuli/core/plugins)

  • StoragePluginManifest + StorageProviderFactory → registry.register(manifest, factory)
  • registry.create(pluginId, ProviderContext) 返回 StorageProvider
  • ProviderContext:platform、platformAdapter

官方插件结构

packages/plugin-provider-{id}/src/
  manifest.ts          # id、capabilities、configSchema
  register.ts          # registerXxxProvider(registry)
  *StorageProvider.ts  # 实现 list/upload/delete/buildImageUrl
  index.ts             # 公开 API

应用侧

  • Bootstrap:app/src/storage/registry.ts
  • 配置后创建:createConfiguredStorageProvider(pluginId, config) → provider.configure(config)

禁止

  • Provider 包内引入 React / app/src/ui(@/ui)
  • core 内写 GitHub/Gitee API 具体实现(应在 provider 包)

参考

  • docs/02-system-design/03-plugin-system.md
  • 单测:packages/*/src/__tests__/register.test.ts、packages/core/src/plugins/__tests__/
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. 1mo ago First seen · 39 lines · 0 tokens per session scan A 932d476ae483

Subscribe to this mod's changes

storage-plugin is a cursor rule published in the GitHub repository trueLoving/Pixuli (64 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 300 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-30.

Related

Other cursor rules, from other repositories

cursor

You are working on the checkout service. Preserve transaction integrity and auditability.

mrwogu/promptscript · 53 tokens

tray-api

Regras e documentação da API Tray. Aplica quando o desenvolvedor trabalhar com autenticação OAuth, produtos, pedidos, clientes, webhooks, frete, pagamentos ou qualquer outro recurso da plataforma Tray. Inclui convenções obrigatórias de autenticação, formato de payload, rate limit e índice completo de skills com…

tray-tecnologia/tray-api-ai-plugin · 70 tokens

headless-all

Composite skill for the headless track. Apply when designing or modifying a BFF (Backend-for-Frontend) layer, middleware, or API proxy for a headless VTEX storefront. Covers BFF middleware architecture, public vs private API classification, VtexIdclientAutCookie management, API key protection, and secure request…

vtex/skills · 26,100 tokens

marketplace-all

Composite skill for the marketplace track. Apply when building catalog or SKU synchronization logic for VTEX marketplace seller connectors. Covers the changenotification endpoint, SKU suggestion lifecycle, product data mapping, price and inventory sync, and fulfillment simulation. Use for implementing seller-side…

vtex/skills · 25,584 tokens

payment-payment-provider-framework

Apply when designing or implementing a Payment Connector in VTEX IO. Covers PPF implementation, TypeScript 3.9.7 builder-hub constraints and safe dependency resolutions, configuration.json schema validation, PaymentProviderService clients wiring, Secure Proxy scope (authorize-only), ExternalClient vs…

vtex/skills · 94 tokens

payment-payment-ppp-pos

Apply when implementing a VTEX Payment Provider Protocol connector for Point of Sale (POS) payments on VTEX Sales App. Covers Venda Direta Credito and Venda Direta Debito manifest methods, the two-phase Payment App challenge (terminal connector then wait-for-confirmation), null card data on Create Payment…

vtex/skills · 7,970 tokens