integrate

integrate is a cursor rule for Cursor from VoTruongDanh/Skills-Agent. It costs 60 tokens per session (716 once invoked), scanned A, original, MIT.

A set of coding rules for adding sample code to an existing project with as few changes as possible. It requires checking the project’s memory file and clarifying missing details before editing.

In plain words
What is it for?
Use it to integrate a code snippet, adapter, or small feature while keeping interfaces and the user interface stable where required.
Why use it?
It reduces the risk of breaking existing behavior or changing unrelated files when merging code.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to integrate a code snippet, adapter, or small feature while keeping interfaces and the user interface stable where required.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/votruongdanh/skills-agent/integrate
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.

agentmods
npx agentmods add rules/votruongdanh/skills-agent/integrate
Clone the repo
git clone --depth 1 https://github.com/VoTruongDanh/Skills-Agent

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 integrate

README.md
[![agentmods](https://agentmods.dev/badge/rules/votruongdanh/skills-agent/integrate.svg)](https://agentmods.dev/rules/votruongdanh/skills-agent/integrate)
Your own site
<a href="https://agentmods.dev/rules/votruongdanh/skills-agent/integrate"><img src="https://agentmods.dev/badge/rules/votruongdanh/skills-agent/integrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00060 $0.00716
Opus 5 $0.00030 $0.00358
Sonnet 5 $0.00012 $0.00143
Haiku 4.5 $0.00006 $0.00072

Measured yesterday against content hash 9d94328e2234, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

integrate 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 yesterday.

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/integrate.mdc · 57 lines

How it starts

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

Memory Protocol

START: Read .ai-memory.md from project root. Focus on: entry points, key directories, conventions, and any integration decisions already logged. END: Update .ai-memory.md using Memory Compaction Rules with: integration points, files touched, behavior changes (if any), and verification notes.

Goal

Merge the requested sample code into the current codebase without broad refactors, keeping behavior stable and avoiding changes to unrelated files.

Socratic Gate (ask if missing)

Before editing, verify these inputs exist. If any is missing or ambiguous, ASK:

  1. The sample code to integrate (full snippet + expected behavior).
  2. The target location in this project (file/module/feature area).
  3. Constraints: must keep API stable? must keep UI stable? backward compatible?
  • Clean code chuẩn (Standard clean code applied)
  • Cập nhật đầy đủ tất cả các file liên quan (All related files fully updated)

Rules (Blast-radius control)

  • Touch the smallest possible set of files.
  • Do not reformat or restructure unrelated code.
  • Prefer adapters/wrappers over rewriting existing modules.
  • If the integration requires changing shared interfaces, introduce compatibility shims (or feature flag) instead of breaking changes.
  • If uncertain about side effects, stop and ask rather than guessing.

Workflow

  1. Read Memory — Load .ai-memory.md for architecture + conventions.
  2. Locate Integration Point — Identify the narrowest place to hook in (entry, router, service, component, util).
  3. Diff the Concepts — Map sample code concepts → existing abstractions (types, services, routes, state).
  4. Design Minimal Bridge:
    • Prefer adding a thin adapter layer rather than changing existing call sites.
    • Prefer dependency injection/config wiring over global edits.
  5. Implement in Small Steps:
    • Add new file(s) when that reduces risk (e.g., adapter/, integrations/).
    • Modify existing files only where the integration connects.
  6. Verification:
    • Run/adjust existing tests if present; otherwise add a minimal smoke test when feasible.
    • Ensure no unrelated behavior changes.
  7. Quality Gate — Read .kiro/skills/_scripts/checklist.md.
  8. Update Memory — Log only high-signal bullets (integration point, key decision, files touched, outcome).

Read the full file on GitHub · 57 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. yesterday Changed · +3 lines 9d94328e2234
  2. 6d ago First seen · 54 lines · 60 tokens per session scan A 86cee3d351f2

Subscribe to this mod's changes

integrate is a cursor rule published in the GitHub repository VoTruongDanh/Skills-Agent (2 stars, last pushed 2d ago), licensed MIT. It adds 60 tokens to every session and 716 once invoked, about $0.0003 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-31.