[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77JVBJP1HYYDJ5CS6DNJ9D0":3,"skill-same:01M77JVBJP1HYYDJ5CS6DNJ9D0":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M77JVBJP1HYYDJ5CS6DNJ9D0","python-clean-code",null,"Review Python code in the gsc-mcp codebase for clean code violations. Checks function size, single responsibility, type hints, naming, error handling patterns, and adherence to the project's module contracts. Use when refactoring a module or before code review.","FlorianBruniaux\u002Fgoogle-search-console-mcp","FlorianBruniaux","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3902606?v=4","01M71VA3JB0M2XMP2VHSG5FFBQ","Florian BRUNIAUX","01M77JS7X33E0TF79YRV98VNNF",25,"MIT","https:\u002F\u002Fgithub.com\u002FFlorianBruniaux\u002Fgoogle-search-console-mcp\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpython-clean-code\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: python-clean-code\ndescription: Review Python code in the gsc-mcp codebase for clean code violations. Checks function size, single responsibility, type hints, naming, error handling patterns, and adherence to the project's module contracts. Use when refactoring a module or before code review.\nallowed-tools: Read, Grep, Glob\n---\n\n# Python Clean Code Review\n\nReviews Python code in gsc-mcp for quality issues. Read-only analysis: produces a findings report, applies no fixes.\n\n## When to use\n\nInvoke 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.\n\n## Review Dimensions\n\n### 1. Function Size and Focus\n\nFlag 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\u002F` should do exactly one thing: call the API, transform the response, and return the JSON string.\n\n### 2. Type Hints\n\nEvery function signature must be fully annotated. Check for:\n- Missing return type (`-> str:`, `-> None:`)\n- Missing parameter types\n- Use of `Any` without justification\n- `list` and `dict` without subscripts where the shape is known (e.g. `list[dict]` not just `list`)\n\n### 3. Naming\n\nPrivate 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).\n\n### 4. Error Handling\n\nTool 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.\n\n### 5. Duplication\n\nCheck 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.\n\n### 6. Output Contract Compliance\n\nEvery public tool function must return `json.dumps(with_meta(...))`. Flag any function that:\n- Returns raw `json.dumps({...})` without `with_meta`\n- Returns a plain string or dict\n- Nests the main data under a `\"data\"` key inside `with_meta`\n\n### 7. Docstrings\n\nMCP uses the function docstring as the tool description visible to the user. The docstring must be present, must describe what the tool does (not how), and must mention key parameters and any data lag (GSC has a 3-day lag by default).\n\n## Output Format\n\n```\n## Clean Code Review: \u003Cfile>\n\n### Critical\n- [function:line] [issue]: [why it matters]\n\n### Improvement\n- [function:line] [issue]: [suggested fix]\n\n### Minor\n- [function:line] [issue]\n\n### Passed\n- Type hints: complete on all public functions\n- Output contract: all tools use with_meta\n```\n\n## Evidence Rule\n\nEvery finding must cite the exact function name and line number. Do not flag something as a violation without reading the code to confirm it.\n","# Python Clean Code Review\n\nReviews Python code in gsc-mcp for quality issues. Read-only analysis: produces a findings report, applies no fixes.\n\n## When to use\n\nInvoke 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.\n\n## Review Dimensions\n\n### 1. Function Size and Focus\n\nFlag 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\u002F` should do exactly one thing: call the API, transform the response, and return the JSON string.\n\n### 2. Type Hints\n\nEvery function signature must be fully annotated. Check for:\n- Missing return type (`-> str:`, `-> None:`)\n- Missing parameter types\n- Use of `Any` without justification\n- `list` and `dict` without subscripts where the shape is known (e.g. `list[dict]` not just `list`)\n\n### 3. Naming\n\nPrivate 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).\n\n### 4. Error Handling\n\nTool 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.\n\n### 5. Duplication\n\nCheck 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.\n\n### 6. Output Contract Compliance\n\nEvery public tool function must return `json.dumps(with_meta(...))`. Flag any function that:\n- Returns raw `json.dumps({...})` without `with_meta`\n- Returns a plain string or dict\n- Nests the main data under a `\"data\"` key inside `with_meta`\n\n### 7. Docstrings\n\nMCP uses the function docstring as the tool description visible to the user. The docstring must be present, must describe what the tool does (not how), and must mention key parameters and any data lag (GSC has a 3-day lag by default).\n\n## Output Format\n\n```\n## Clean Code Review: \u003Cfile>\n\n### Critical\n- [function:line] [issue]: [why it matters]\n\n### Improvement\n- [function:line] [issue]: [suggested fix]\n\n### Minor\n- [function:line] [issue]\n\n### Passed\n- Type hints: complete on all public functions\n- Output contract: all tools use with_meta\n```\n\n## Evidence Rule\n\nEvery finding must cite the exact function name and line number. Do not flag something as a violation without reading the code to confirm it.\n",{"name":5,"description":7,"allowed-tools":24},"Read, Grep, Glob","main","d0d039fbe3fbbd21177cdcd338e26e00dabd7bd3",".claude\u002Fskills\u002Fpython-clean-code",4,"https:\u002F\u002Fgithub.com\u002FFlorianBruniaux\u002Fgoogle-search-console-mcp","https:\u002F\u002Fsearch-console.bruniaux.com\u002F","https:\u002F\u002Fgithub.com\u002FFlorianBruniaux","https:\u002F\u002Fwww.florian.bruniaux.com\u002F","Hands-on Fractional Chief AI Officer. Harness & context engineering. RTK’s first contributor. Claude Code Ultimate Guide author.","2026-10-18 20:35:58",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add FlorianBruniaux\u002Fgoogle-search-console-mcp --skill python-clean-code",{"tool":41,"command":42},"bunx","bunx skills add FlorianBruniaux\u002Fgoogle-search-console-mcp --skill python-clean-code",{"tool":44,"command":45},"pnpm","pnpm dlx skills add FlorianBruniaux\u002Fgoogle-search-console-mcp --skill python-clean-code","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFlorianBruniaux\u002Fgoogle-search-console-mcp\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpython-clean-code\u002FSKILL.md",true,[],[50,56,62,68,74,80],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M77JVJM0DD9QZY6MP440TNCW","traffic-drop-diagnosis","https:\u002F\u002Fgithub.com\u002FFlorianBruniaux\u002Fgoogle-search-console-mcp\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftraffic-drop-diagnosis\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M77JVGZ5C44H8KXHYWRBXQXK","sitemap-audit","https:\u002F\u002Fgithub.com\u002FFlorianBruniaux\u002Fgoogle-search-console-mcp\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fsitemap-audit\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M77JVFT2XR0WHQ4VRBM9J7R2","seo-weekly-report","https:\u002F\u002Fgithub.com\u002FFlorianBruniaux\u002Fgoogle-search-console-mcp\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fseo-weekly-report\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M77JVEQVHYKG5F6CZVAZKFW2","schema-audit","https:\u002F\u002Fgithub.com\u002FFlorianBruniaux\u002Fgoogle-search-console-mcp\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fschema-audit\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M77JVA7Z7W89DCFC4TXPJ6WB","page-deep-dive","https:\u002F\u002Fgithub.com\u002FFlorianBruniaux\u002Fgoogle-search-console-mcp\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpage-deep-dive\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M77JV95XFVAQCB40RF7PWV0W","onpage-audit","https:\u002F\u002Fgithub.com\u002FFlorianBruniaux\u002Fgoogle-search-console-mcp\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fonpage-audit\u002FSKILL.md",[],[]]