google-search-console-mcp: Skill for Claude Code

.claude/skills/python-clean-code/SKILL.md

python-clean-code is a skill for Claude Code from FlorianBruniaux/google-search-console-mcp. It costs 55 tokens per session (753 once invoked), scanned A, original, MIT.

A read-only review of Python code in the gsc-mcp project. It checks readability, function size, type annotations, naming, error handling, and project-specific rules.

In plain words
What is it for?
Use it to review a Python file or module after adding a tool, during refactoring, or when the code has become difficult to follow.
Why use it?
It finds maintainability and consistency problems before code review or a pull request, without changing the files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is FlorianBruniaux/google-search-console-mcp's own configuration. It tells Claude Code how to work on google-search-console-mcp 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 google-search-console-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to FlorianBruniaux/google-search-console-mcp. 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/FlorianBruniaux/google-search-console-mcp/main/.claude/skills/python-clean-code/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/FlorianBruniaux/google-search-console-mcp

Made for: Claude Code.

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 python-clean-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/florianbruniaux/google-search-console-mcp/python-clean-code/github.svg)](https://agentmods.dev/skills/florianbruniaux/google-search-console-mcp/python-clean-code)
Your own site
<a href="https://agentmods.dev/skills/florianbruniaux/google-search-console-mcp/python-clean-code"><img src="https://agentmods.dev/badge/skills/florianbruniaux/google-search-console-mcp/python-clean-code/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 python-clean-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/florianbruniaux/google-search-console-mcp/python-clean-code"><img src="https://agentmods.dev/badge/skills/florianbruniaux/google-search-console-mcp/python-clean-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 753 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00055 $0.00753
Opus 5.5 $0.00022 $0.00301
Sonnet 5.5 $0.00011 $0.00151
Haiku 4.5 $0.00006 $0.00075

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

Security

Grade A, and why

python-clean-code 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.

.claude/skills/python-clean-code/SKILL.md · 74 lines

How it starts

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

Python Clean Code Review

Reviews Python code in gsc-mcp for quality issues. Read-only analysis: produces a findings report, applies no fixes.

When to use

Invoke before opening a PR, after adding a new tool, or when a module feels hard to read. Pass a file path or module name as the argument.

Review Dimensions

1. Function Size and Focus

Flag any function exceeding 30 lines (excluding docstring and blank lines). A function that does more than one thing usually has a name with "and" in it, or a docstring that lists multiple behaviors. Each tool function in tools/ should do exactly one thing: call the API, transform the response, and return the JSON string.

2. Type Hints

Every function signature must be fully annotated. Check for:

  • Missing return type (-> str:, -> None:)
  • Missing parameter types
  • Use of Any without justification
  • list and dict without subscripts where the shape is known (e.g. list[dict] not just list)

3. Naming

Private helpers must start with _. Constants at module level must be in _SCREAMING_SNAKE_CASE. Tool functions exposed to MCP must be lowercase with underscores. No abbreviations that require context to decode (r for rows; svc is acceptable because it appears consistently across the codebase).

4. Error Handling

Tool functions must not silently swallow exceptions. They may catch specific exceptions to convert them into user-friendly error messages, but they must not use bare except: or except Exception: without re-raising or returning a structured error response. Transient Google API errors belong in retry.py, not in tool functions.

5. Duplication

Check for logic duplicated across modules. Common candidates: date range calculation (already in analytics._date_range), URL normalization (already in cross._normalize_url), dimension filter construction (already in ga4._build_dimension_filter). If a function re-implements one of these, flag it.

6. Output Contract Compliance

Read the full file on GitHub · 74 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. 1mo ago First seen · 74 lines · 55 tokens per session scan A 4dede04073de

Subscribe to this mod's changes

python-clean-code is a skill published in the GitHub repository FlorianBruniaux/google-search-console-mcp (21 stars, last pushed 6d ago), licensed MIT. It adds 55 tokens to every session and 753 once invoked, about $0.0002 per session on Opus 5.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.