dsp-public-api-changes

dsp-public-api-changes is a cursor rule for Cursor from k-kolomeitsev/data-structure-protocol. It costs 9 tokens per session (454 once invoked), scanned A, original, Apache-2.0.

A set of rules for keeping a module’s public API—the functions, classes, and interfaces other code can use—in sync with a shared dependency record.

In plain words
What is it for?
Use it when changing a module’s exported code. It covers registering new exports, checking their consumers, removing shared exports, and renaming them without changing their identity.
Why use it?
It prevents the dependency graph from becoming inaccurate when exports are added, removed, or renamed. This helps identify affected users before an export is removed.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when changing a module’s exported code. It covers registering new exports, checking their consumers, removing shared exports, and renaming them without changing their identity.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/k-kolomeitsev/data-structure-protocol/dsp-public-api-changes
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/k-kolomeitsev/data-structure-protocol

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 dsp-public-api-changes

README.md
[![agentmods](https://agentmods.dev/badge/rules/k-kolomeitsev/data-structure-protocol/dsp-public-api-changes/github.svg)](https://agentmods.dev/rules/k-kolomeitsev/data-structure-protocol/dsp-public-api-changes)
Your own site
<a href="https://agentmods.dev/rules/k-kolomeitsev/data-structure-protocol/dsp-public-api-changes"><img src="https://agentmods.dev/badge/rules/k-kolomeitsev/data-structure-protocol/dsp-public-api-changes/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 dsp-public-api-changes

Your own site · 80×15
<a href="https://agentmods.dev/rules/k-kolomeitsev/data-structure-protocol/dsp-public-api-changes"><img src="https://agentmods.dev/badge/rules/k-kolomeitsev/data-structure-protocol/dsp-public-api-changes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 454 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.00009 $0.00454
Opus 5.5 $0.00004 $0.00182
Sonnet 5.5 $0.00002 $0.00091
Haiku 4.5 $0.00001 $0.00045

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

Security

Grade A, and why

dsp-public-api-changes 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.

integrations/cursor/.cursor/rules/dsp-public-api-changes.mdc · 54 lines

What it actually says

DSP — Public API Changes

When changing a module's public API (exported functions, classes, interfaces), update DSP shared/exports to keep the graph accurate.

Shared entries are UIDs of existing entities, not export names. To share a new export, register it first (create-function/create-object), then pass its UID to create-shared.

When Adding a New Public Export

# Find the exporting module
dsp-cli find-by-source <file-path>

# Register the exported entity, then share its UID
dsp-cli create-function "<file-path>#<ExportName>" "<what it does>" --owner <module-uid>
# → func-1a2b3c4d
dsp-cli create-shared <module-uid> func-1a2b3c4d

When Removing a Public Export

# Check who consumes it first
dsp-cli get-recipients <export-uid>

# Remove only if no active consumers, or after updating consumers
dsp-cli remove-shared <module-uid> <export-uid>

When Renaming a Public Export

The UID stays the same — only the source reference changes:

dsp-cli move-entity <export-uid> "<file-path>#<NewName>"

# Update consumers' import reason if the meaning changed
dsp-cli update-import-why <consumer-uid> <export-uid> "<updated reason>" --exporter <module-uid>

If the export changed its purpose (not just the name), retire the old entity and create a new one: remove-shared + remove-entity, then create-function + create-shared.

Checklist

  • All new public functions/classes/interfaces have entities and are registered with create-shared
  • Removed exports are cleaned up with remove-shared
  • Consumers of changed exports are updated or notified
  • get-recipients returns expected results after changes
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 · 54 lines · 9 tokens per session scan A f3accdc7cc44

Subscribe to this mod's changes

dsp-public-api-changes is a cursor rule published in the GitHub repository k-kolomeitsev/data-structure-protocol (67 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 9 tokens to every session and 454 once invoked, about $0.0000 per session on Opus 5.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

dsp-public-api-changes compared with cursor rules from other repositories

dsp-public-api-changes next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsp-public-api-changesk-kolomeitsev/data-structure-protocolCursor rule673mo agoApache-2.0A9Cursor
1c-coding-standardsDesko77/cursor-1c-skillsCursor rule787d agoMITA0Cursor
1c-skd-two-pass-preprocessingDesko77/cursor-1c-skillsCursor rule787d agoMITA0Cursor
agent-working-memoryDesko77/cursor-1c-skillsCursor rule787d agoMITA22Cursor
testing-patternsDesko77/cursor-1c-skillsCursor rule787d agoMITA0Cursor
1c-extension-specificsDesko77/cursor-1c-skillsCursor rule787d agoMITA0Cursor
1c-skd-specificsDesko77/cursor-1c-skillsCursor rule787d agoMITA0Cursor