aktools-pro: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from tchivs/aktools-pro. It costs 314 tokens per session, scanned A, original, from a forked repository, MIT.

A Cursor rule set for an MCP-based Python project using FastMCP, AkShare, Pydantic, pandas, and Ruff. It defines coding styles, tool documentation, data handling, return formats, and rules for different coding agents.

In plain words
What is it for?
It is for guiding agents while they add or fix Python code, MCP tools, data fetching, type hints, formatting, and tool descriptions in the project.
Why use it?
It gives agents repository-specific expectations, reducing inconsistent code and unsupported changes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is tchivs/aktools-pro's own configuration. It tells Cursor how to work on aktools-pro itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aktools-pro configures โ†’

Reuse

Borrowing it

Nothing to install: this file belongs to tchivs/aktools-pro. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tchivs/aktools-pro/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/tchivs/aktools-pro

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/tchivs/aktools-pro/cursorrules/github.svg)](https://agentmods.dev/rules/tchivs/aktools-pro/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/tchivs/aktools-pro/cursorrules"><img src="https://agentmods.dev/badge/rules/tchivs/aktools-pro/cursorrules/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 cursorrules

Your own site ยท 80ร—15
<a href="https://agentmods.dev/rules/tchivs/aktools-pro/cursorrules"><img src="https://agentmods.dev/badge/rules/tchivs/aktools-pro/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 314 This file is loaded in full into every session.
When invoked 314 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 fork From a forked repository.
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.00314 $0.00314
Opus 5.5 $0.00126 $0.00126
Sonnet 5.5 $0.00063 $0.00063
Haiku 4.5 $0.00031 $0.00031

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

Security

Grade A, and why

cursorrules 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.

.cursorrules ยท 27 lines

What it actually says

mcp-aktools AI Coding Rules

๐Ÿค– Model Specific Instructions

  • Codex/Copilot: Focus on PEP 8, Type Hints, and strict return types. Use ruff patterns for code fixes.
  • Claude Code: Prioritize updating MCP @mcp.tool descriptions. Maintain CSV return formats.
  • OpenCode/Sisyphus: Follow the SOPs defined in AGENTS.md. Always classify tasks into quick, ultrabrain, or visual-engineering.

๐Ÿ›  Tech Stack

  • Framework: FastMCP (Python)
  • Data: akshare
  • Formatting: Ruff

๐Ÿ“ Coding Standards

  • Naming: snake_case for everything except classes (PascalCase).
  • Tool Definitions:
    • Every tool must have title and description in @mcp.tool.
    • Parameters must use pydantic.Field with descriptions.
  • Data Flow:
    • All data-fetching must use ak_cache.
    • Returns must be str (usually CSV via df.to_csv()).
  • Types: Always include type hints for new functions. Use pd.DataFrame | None for data-related returns.

๐Ÿšซ Anti-Patterns

  • No raw JSON/List returns for MCP tools.
  • No direct akshare calls without ak_cache.
  • No suppression of type errors with # type: ignore unless absolutely necessary.
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 ยท 27 lines ยท 314 tokens per session scan A eb6437566e5d

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository tchivs/aktools-pro (6 stars, last pushed 8mo ago), licensed MIT. It adds 314 tokens to every session, about $0.0013 per session on Opus 5.5. A static security scan graded it A with 0 findings. It comes from a forked repository.