dsp-brownfield

dsp-brownfield is a cursor rule for Cursor from k-kolomeitsev/data-structure-protocol. It costs 10 tokens per session (920 once invoked), scanned A, original, Apache-2.0.

A workflow for documenting an existing project with DSP, apparently by mapping its entry points and code into structured objects. It divides the project into backend and frontend areas, or other defined scopes.

In plain words
What is it for?
Use it to initialize DSP in a brownfield project, identify application entry points, organize files into batches, and build documentation structures.
Why use it?
It gives a defined process for bringing an existing codebase into DSP without repeatedly scanning the same files.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents.

Good fit Use it to initialize DSP in a brownfield project, identify application entry points, organize files into batches, and build documentation structures.

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

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

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

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

Security

Grade A, and why

dsp-brownfield 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.

integrations/cursor/.cursor/rules/dsp-brownfield.mdc · 75 lines

How it starts

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

DSP Brownfield Workflow

Use this workflow when integrating DSP into an existing codebase. Bootstrap runs as three flat waves over fixed file batches — no recursion, no graph traversal. Core economy rule: each file is read exactly once, by exactly one subagent; all three waves run on top of that single read.

Phase 0: Initialize and Discover Roots

dsp-cli init

Identify entrypoints and the directory zone (scope) each one covers:

dsp-cli create-object backend/src/main.ts "Backend entry — <brief project overview>" --new-root --scope backend
dsp-cli create-object frontend/src/main.tsx "Frontend entry" --new-root --scope frontend
# single-root project: one root with --scope .

Scopes make TOC assignment automatic: every entity created later lands in all TOCs whose root scope covers its path — no --toc needed in the waves below.

Inventory and Batching

Before reading any file content: list all files with sizes (git ls-files | xargs wc -c; skip vendored code, build output, lock files), group them by TOC, and split each group into batches of roughly equal total volume (not file count). One batch = one subagent; run batches in parallel. Each subagent executes Waves 1–3 over its own files. No subagents available → process batches sequentially, keeping per-file notes from the Wave 1 read — each file is still read only once.

Wave 1: Index All Files

Each subagent reads each file of its batch once — capturing purpose, inner entities, exports, and imports with usage sites — then registers it:

dsp-cli create-object src/auth/jwt.service.ts "JWT token generation and validation"
dsp-cli create-function "src/auth/jwt.service.ts#signToken" "Signs access tokens" --owner <jwt-uid>

Place @dsp <uid> markers before inner-entity declarations. Resume-safe: run dsp-cli find-by-source <path> first and skip files that already have entities. If the code already carries @dsp markers from a previous graph, keep identities with --uid <old-uid>.

Read the full file on GitHub · 75 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. 1mo ago First seen · 75 lines · 10 tokens per session scan A d581e1f4c11b

Subscribe to this mod's changes

dsp-brownfield is a cursor rule published in the GitHub repository k-kolomeitsev/data-structure-protocol (68 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 10 tokens to every session and 920 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

Other cursor rules, from other repositories

1c-coding-standards

Coding standards for BSL, the programming language used by the 1C business software platform. They cover naming, method documentation, database queries, collections, client-server code, and performance practices.

Desko77/cursor-1c-skills · 0 tokens

1c-skd-two-pass-preprocessing

A two-pass method for changing 1C report output before detailed records are combined into grouped totals. 1C's report system, СКД, builds reports by grouping and summarizing data.

Desko77/cursor-1c-skills · 0 tokens

agent-working-memory

A system for keeping an AI agent's working information in files, including the plan, discoveries, decisions, and progress. It is intended for work that spans several tool calls or sessions.

Desko77/cursor-1c-skills · 22 tokens

testing-patterns

A set of rules and examples for testing 1C code with YaXUnit and Vanessa Automation. YaXUnit is used for unit tests of individual functions, while Vanessa Automation describes user scenarios as “given, when, then” steps.

Desko77/cursor-1c-skills · 0 tokens

1c-extension-specifics

A set of rules for developing 1C configuration extensions, which add or alter behaviour without directly changing the main configuration. It covers event hooks, reused code, XML exports, and extension builds.

Desko77/cursor-1c-skills · 0 tokens

1c-skd-specifics

A set of rules for 1C reports built with the Data Composition System, which turns queries and settings into formatted reports. It covers report schemas, filters, temporary tables, parameters, and tabular output.

Desko77/cursor-1c-skills · 0 tokens