enhance

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

A set of rules for improving existing code while keeping its purpose and working behavior. It covers tasks such as refactoring, performance, security, user-interface improvements, backend changes, and database queries.

In plain words
What is it for?
Use it when optimizing, tightening security, improving the interface, refactoring backend code, or improving database queries.
Why use it?
It makes the agent check the specific improvement needed, the current problem, and existing tests before changing code. It also records the change and its tradeoffs in the project's memory file.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when optimizing, tightening security, improving the interface, refactoring backend code, or improving database queries.

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/votruongdanh/skills-agent/enhance.svg)](https://agentmods.dev/rules/votruongdanh/skills-agent/enhance)
Your own site
<a href="https://agentmods.dev/rules/votruongdanh/skills-agent/enhance"><img src="https://agentmods.dev/badge/rules/votruongdanh/skills-agent/enhance.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 786 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.00058 $0.00786
Opus 5 $0.00029 $0.00393
Sonnet 5 $0.00012 $0.00157
Haiku 4.5 $0.00006 $0.00079

Measured 2d ago against content hash 16855beca26f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

enhance 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 2d 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/enhance.mdc · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 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. Check past enhancements, known pain points, tech debt notes, performance baselines, and architecture decisions. END: Update .ai-memory.md using Memory Compaction Rules with: what changed, impact, tradeoffs, and remaining tech debt.

Goal

Improve an existing implementation without breaking working behavior.

Agent Routing

  • If enhancing performance → read .kiro/skills/agents/agents/performance-optimizer.md and apply its knowledge
  • If tightening security → read .kiro/skills/agents/agents/security-auditor.md and apply its knowledge
  • If improving UI/UX → read .kiro/skills/agents/agents/frontend-specialist.md and apply its knowledge
  • If refactoring backend/API → read .kiro/skills/agents/agents/backend-specialist.md and apply its knowledge
  • If improving database queries → read .kiro/skills/agents/agents/database-architect.md and apply its knowledge

Socratic Gate

Before enhancing, verify:

  1. What specific aspect needs improvement? (performance, security, UX, maintainability?)
  2. What is the current pain point or metric?
  3. Are there existing tests that must continue to pass? If any answer is unclear, ASK before proceeding.

Workflow

  1. Read Memory — Load .ai-memory.md for project context and past enhancement history.
  2. Understand the current state and pain points.
  3. Identify high-impact improvements in quality, maintainability, performance, reliability, or UX.
  4. Prioritize improvements by value versus effort.
  5. Implement or recommend the top changes.
  6. Explain tradeoffs and validation steps.
  7. Quality Gate — Read .kiro/skills/_scripts/checklist.md and verify enhancements don't break existing behavior.
  8. Update Memory — Save enhancement details and outcomes to .ai-memory.md.

Checklist

  • Current state documented
  • Pain points identified
  • Improvements prioritized by value/effort
  • Existing behavior preserved
  • Tradeoffs explained
  • Tests still passing
  • Memory file updated

Read the full file on GitHub · 66 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. 2d ago Changed · +3 lines 16855beca26f
  2. 7d ago First seen · 63 lines · 58 tokens per session scan A 489f450ffd0c

Subscribe to this mod's changes

enhance is a cursor rule published in the GitHub repository VoTruongDanh/Skills-Agent (2 stars, last pushed 3d ago), licensed MIT. It adds 58 tokens to every session and 786 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.