03-code-quality-mcp

03-code-quality-mcp is a cursor rule for coding agents from sfc-gh-cconner/support-rules-mcp. It costs 2,185 tokens per session, scanned A, original, Apache-2.0.

A set of rules for using Context7, a service that provides current library documentation and code examples through MCP tools.

In plain words
What is it for?
Use it to resolve library identifiers, retrieve focused documentation, inspect code snippets, and check Snowflake libraries such as the Python connector and Snowpark.
Why use it?
It gives developers a repeatable way to find the right library documentation and examples before writing or reviewing code.

Cursor rule

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/sfc-gh-cconner/support-rules-mcp/03-code-quality-mcp
Clone the repo
git clone --depth 1 https://github.com/sfc-gh-cconner/support-rules-mcp

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 03-code-quality-mcp

README.md
[![agentmods](https://agentmods.dev/badge/rules/sfc-gh-cconner/support-rules-mcp/03-code-quality-mcp.svg)](https://agentmods.dev/rules/sfc-gh-cconner/support-rules-mcp/03-code-quality-mcp)
Your own site
<a href="https://agentmods.dev/rules/sfc-gh-cconner/support-rules-mcp/03-code-quality-mcp"><img src="https://agentmods.dev/badge/rules/sfc-gh-cconner/support-rules-mcp/03-code-quality-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,185 This file is loaded in full into every session.
When invoked 2,185 The same file — it is already loaded in full.
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 $0.02185 $0.02185
Opus 5 $0.01092 $0.01092
Sonnet 5 $0.00437 $0.00437
Haiku 4.5 $0.00218 $0.00218

Measured 4d ago against content hash 73d6698d3cd4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

03-code-quality-mcp 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 4d 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.

rules/core/03-code-quality-mcp.mdc · 347 lines

How it starts

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

Code Quality & Examples via Context7 MCP

PURPOSE: Access up-to-date code examples, best practices, and library documentation via Context7 MCP.

🎯 Core Principle

Use Context7 MCP for code examples, API usage patterns, and best practices when writing code.

📚 Context7 MCP Tools

Step 1: Resolve Library ID

mcp_context7_resolve-library-id(
    libraryName="snowflake-connector-python"
)

Returns: List of matching libraries with:

  • Context7-compatible library ID: Format /org/project or /org/project/version
  • Description: Library purpose
  • Code Snippets: Number of available examples
  • Trust Score: Authority indicator (prefer 7-10)

Step 2: Get Library Documentation

mcp_context7_get-library-docs(
    context7CompatibleLibraryID="/snowflakedb/snowpark-python",
    topic="stored procedures",  # Optional: focus area
    tokens=2000  # Optional: control response size (default: 5000)
)

Returns: Code snippets and documentation with:

  • TITLE: Snippet description
  • CODE: Actual code example
  • LANGUAGE: Programming language
  • SOURCE: GitHub URL reference

🗺️ Snowflake Library Map

Primary Libraries

Python
# Snowpark Python (data pipelines, transformations)
"/snowflakedb/snowpark-python"
# 539 code snippets, comprehensive examples

# Python Connector (connection, authentication, queries)
"/snowflakedb/snowflake-connector-python"
# 450 code snippets

# ML Python (machine learning, model training)
"/snowflakedb/snowflake-ml-python"
# 197 code snippets
Other Languages
# Go Driver
"/snowflakedb/gosnowflake"

# .NET Connector
"/snowflakedb/snowflake-connector-net"

# Node.js Connector
"/snowflakedb/snowflake-connector-nodejs"

# Terraform Provider
"/snowflakedb/terraform-provider-snowflake"

Documentation Sites

# Comprehensive web documentation
"/websites/snowflake_en"
# 47,390 code snippets

# Alternative docs
"/websites/snowflake-docs"
# 36,860 code snippets

Read the full file on GitHub · 347 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. 4d ago First seen · 347 lines · 2,185 tokens per session scan A 73d6698d3cd4

Subscribe to this mod's changes

03-code-quality-mcp is a cursor rule published in the GitHub repository sfc-gh-cconner/support-rules-mcp (0 stars, last pushed 11mo ago), licensed Apache-2.0. It adds 2,185 tokens to every session, about $0.0109 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.