prompt-guide

prompt-guide is a cursor rule for Cursor from aliarghyani/vue-cursor-rules. It costs 0 tokens per session (600 once invoked), scanned A, original, MIT.

A set of guidelines for writing effective Cursor rules, which tell the coding agent how to work in a project.

In plain words
What is it for?
Use it when creating or improving Cursor rules for Vue projects and cross-cutting tools such as timers, event listeners, or observers.
Why use it?
It helps turn vague instructions into specific, reusable rules and gives guidance for Vue components, shared types, and common utilities.

Cursor rule for Cursor

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/aliarghyani/vue-cursor-rules/prompt-guide
Clone the repo
git clone --depth 1 https://github.com/aliarghyani/vue-cursor-rules

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 prompt-guide

README.md
[![agentmods](https://agentmods.dev/badge/rules/aliarghyani/vue-cursor-rules/prompt-guide.svg)](https://agentmods.dev/rules/aliarghyani/vue-cursor-rules/prompt-guide)
Your own site
<a href="https://agentmods.dev/rules/aliarghyani/vue-cursor-rules/prompt-guide"><img src="https://agentmods.dev/badge/rules/aliarghyani/vue-cursor-rules/prompt-guide.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 600 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.00000 $0.00600
Opus 5 $0.00000 $0.00300
Sonnet 5 $0.00000 $0.00120
Haiku 4.5 $0.00000 $0.00060

Measured 5d ago against content hash eabc15b3d99c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

prompt-guide 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 5d 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/prompt-guide.mdc · 73 lines

How it starts

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

Prompt Engineering Guide

Rule Structure Basics

Make rules specific and modular:

  • Keep full examples under ~4KB; link to longer versions when needed.
  • Use clear section delimiters: ### Props, ### Methods, ### Examples
  • Start with role definition: "You are a Vue 3 expert specializing in..."
  • Include 3-5 core rules as bullets
  • Add chain-of-thought instruction for consistency

Vue-Specific Patterns

For composables: Chain thoughts--plan reactivity first, then export:

Think step-by-step: 1. Define reactive state 2. Create computed/methods 3. Return interface

For components: Structure before implementation:

Think step-by-step: 1. Analyze props/emits 2. Plan template structure 3. Implement logic

Utility Defaults

  • For cross-cutting utilities (debounce/throttle, timers, event listeners, observers, etc.), prefer the matching helper from @vueuse/core instead of hand-written implementations.

Type Resolution Workflow

When the agent or linting surfaces unresolved types (e.g., "Cannot use namespace 'User' as a type"):

  • Look in the shared types/ directory first; reuse exports from types/index.ts or sibling files.
  • Prefer import type { Foo } from '@/types' (or alias types/*) over namespace or global references.
  • If the type does not exist, define it in types/, export it, then update the calling code to use the shared import.
  • Re-run the fix after updating imports to ensure the error clears instead of muting it with any.

Before/After Examples

Before (too vague):

Use composition API for components

After (modular + sized):

# Role: You are a Vue 3 component expert
Core Rules:
- Always use `<script setup>` syntax
- Type props with `defineProps<T>()`
- Use `defineEmits<T>()` for events
- Prefer `ref()` for primitives, `reactive()` for objects

Think step-by-step: 1. Analyze component needs 2. Define interface 3. Implement logic

Activation Patterns

Read the full file on GitHub · 73 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. 5d ago First seen · 73 lines · 0 tokens per session scan A eabc15b3d99c

Subscribe to this mod's changes

prompt-guide is a cursor rule published in the GitHub repository aliarghyani/vue-cursor-rules (11 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 600 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.