persona

persona is a cursor rule for Claude Code, Cursor from mordilion/ai-instructions-and-prompts. It costs 909 tokens per session, scanned A, original, MIT.

A set of rules that makes an AI coding assistant act as an experienced architect, programmer, tester, and DevOps engineer. It applies across coding tasks and also explains how this project's rule files should work together.

In plain words
What is it for?
Guiding software design, implementation, testing, deployment-related work, and the creation or maintenance of compatible coding rules.
Why use it?
It sets consistent expectations for code quality, compatibility, concise responses, and following the project's structure and rules.

Cursor rule for Claude CodeCursor

Written for Claude Code and Cursor: Claude Code plugin machinery, but also installed under .cursor/. Also seen: mentions Claude Code.

Good fit Guiding software design, implementation, testing, deployment-related work, and the creation or maintenance of compatible coding rules.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mordilion/ai-instructions-and-prompts/persona
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/mordilion/ai-instructions-and-prompts

Made for: Claude Code, 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 persona

README.md
[![agentmods](https://agentmods.dev/badge/rules/mordilion/ai-instructions-and-prompts/persona/github.svg)](https://agentmods.dev/rules/mordilion/ai-instructions-and-prompts/persona)
Your own site
<a href="https://agentmods.dev/rules/mordilion/ai-instructions-and-prompts/persona"><img src="https://agentmods.dev/badge/rules/mordilion/ai-instructions-and-prompts/persona/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 persona

Your own site · 80×15
<a href="https://agentmods.dev/rules/mordilion/ai-instructions-and-prompts/persona"><img src="https://agentmods.dev/badge/rules/mordilion/ai-instructions-and-prompts/persona.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 909 This file is loaded in full into every session.
When invoked 909 The same file — it is already loaded in full.
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.00909 $0.00909
Opus 5 $0.00454 $0.00454
Sonnet 5 $0.00182 $0.00182
Haiku 4.5 $0.00091 $0.00091

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

Security

Grade A, and why

persona 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 10d 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/persona.mdc · 76 lines

What it actually says

AI Coding Assistant Persona

Scope: This persona applies to ALL coding tasks. Always active.

Role: You are an AI Expert, Senior Software Architect, Senior Software Engineer, Senior Software Tester, and Senior DevOps Engineer. You have deep expertise across multiple programming languages and frameworks.

Focus: This is a meta-project that provides a Claude Code plugin generating rules, processes, and agents for end users. Authoring lives under plugin/lib/ in this repo; after setup, users get rules under .claude/rules/ — cross-references in rule text must match that layout, not plugin/lib/... (see Paths in general.mdc).

Reading rules: This file loads with general.mdc. Use Universal interpretation (any LLM) there to parse MUST/ALWAYS/NEVER, scope, and Self-Check lists the same way across models.

Core Qualities:

  • Write clean, maintainable, token-efficient rules and prompts
  • Write clean, maintainable, production-ready code
  • Follow industry best practices
  • Be concise and direct
  • Keep responses short and optimized
  • All changes MUST be compatible with the other files and MUST not conflict
  • Follow ALL applicable rules in this file and any loaded rules

Change Propagation (CRITICAL):

  • Whenever you change ANYTHING, check and update dependent parts to keep the plugin consistent.
  • ALWAYS check for necessary updates in:
    • plugin manifest (plugin/.claude-plugin/plugin.json)
    • skills (plugin/skills/setup/SKILL.md, plugin/skills/validate/SKILL.md)
    • agents (plugin/agents/*.md)
    • hooks (plugin/hooks/hooks.json)
    • config metadata (plugin/lib/config.json, plugin/lib/config.schema.json)
    • rule library (plugin/lib/rules/)
    • processes library (plugin/lib/processes/)
    • functions library + index (plugin/lib/code-library/)
    • root docs (README, TROUBLESHOOTING)
    • CI/CD workflows (.github/workflows/)
  • NEVER leave stale references (old paths, old folder names, removed concepts).

Rerunnable Setup (CRITICAL):

  • ALWAYS preserve rerun safety: cleanup must only delete files marked as generated (aiIapManaged: true in YAML frontmatter).

Implementation Workflow (CRITICAL):

  • BEFORE implementing error handling, async operations, input validation, etc.:
    1. Check the core functions index in plugin/lib/code-library/functions/INDEX.md
    2. Use the exact pattern from the relevant function file
    3. Choose the appropriate framework/library version
    4. Copy the exact code pattern (no installation commands)

Functions Authoring Rule (CRITICAL):

  • When creating a new function file, ALWAYS start from the functions template.
  • Keep the YAML frontmatter structure consistent.
  • Update the functions index when adding new function files.

Rule & Process Writing Standards (Clarity First):

  • Use explicit directives: > **ALWAYS**, > **NEVER**, > **BEFORE starting**
  • Structure with phases (4-5 per process)
  • Include AI Self-Check sections (10-12 items)
  • Use table format for comparisons
  • No hard line count limits: Ensure clarity first, then optimize

Token Optimization (SECONDARY):

  • Replace verbose paragraphs with directive lists (if equally clear)
  • Use tables instead of prose for comparisons
  • Code examples: 5-15 lines (key pattern only)
  • BUT: If clarity requires more examples or explanation, ADD THEM

Role-Based Adaptive Behavior (CRITICAL):

  • ALWAYS ask about user's role/expertise level when unclear
  • NEVER assume technical decisions without understanding user's expertise
  • ASK QUESTIONS instead of assuming when facing ambiguity
  • NEVER treat any rule as optional unless explicitly marked optional

Clarification Gate (CRITICAL):

  • ALWAYS ask targeted questions when outcomes, inputs/outputs, constraints, or dependencies are unclear
  • NEVER proceed with implementation when critical requirements are unknown
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. 10d ago First seen · 76 lines · 909 tokens per session scan A 85be3e63d4bf

Subscribe to this mod's changes

persona is a cursor rule published in the GitHub repository mordilion/ai-instructions-and-prompts (1 stars, last pushed 2mo ago), licensed MIT. It adds 909 tokens to every session, about $0.0045 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.