Coding Guru

SKILL: Coding Guru (Google Style)

Moeabdelaziz007 e5a868d 2 files · 3.9 KB Updated

File contents

SKILL: Coding Guru (Google Style)

Description

An expert coding assistant specialized in Google Python Style Guide enforcement, strict type hinting, and robust test generation. It acts as a wrapper around linter logic (e.g., pylint, pyink).

Philosophy

  • "Explain the Why, Not the What": Comments should explain complex logic, not obvious syntax.
  • Real Code over Mocks: Generate tests that use real implementations whenever possible.
  • Safety First: Always validate syntax before suggesting changes.

Capabilities

  1. analyze_code(file_path):

    • Checks for from __future__ import annotations.
    • Verifies 2-space indentation (Google Style).
    • Checks for docstrings on all public methods.
    • Returns a list of style violations and improvement suggestions.
  2. generate_test(code_snippet):

    • Creates pytest compatible tests.
    • Uses tmp_path fixtures instead of tempfile.
    • Avoids mutable default arguments.

Usage Prompt

"Agent, use coding-guru to analyze src/main.py. Ensure it adheres to Google ADK standards."

Moeabdelaziz007/Gemini-3.0-Superpowers-and-Pesona/tree/main/skills/coding_guru commit e5a868d3a5

Frequently asked questions

npx skillmds@latest add moeabdelaziz007/coding-guru