instruction
stringclasses
100 values
code
stringlengths
78
193k
response
stringlengths
259
170k
file
stringlengths
59
203
Replace inline comments with docstrings
from __future__ import annotations import argparse import json import sqlite3 import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from config import DB_PATH from db import Database db = Database() db.init() def _connect() -> sqlite3.Connection: conn = sqlite3.connect(DB_PATH) ...
--- +++ @@ -1,3 +1,12 @@+""" +Análise inteligente de dados do Instagram (SQL puro, sem dependências externas). + +Uso: + python scripts/analyze.py --best-times # Melhores horários para postar + python scripts/analyze.py --top-posts --limit 10 # Top posts por engajamento + python scripts/analyze.py --g...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/analyze.py
Write docstrings for algorithm functions
import re from datetime import datetime from pathlib import Path from config import ( PROJECT_REGISTRY_PATH, SKILLS_ROOT, KNOWN_PROJECTS, ) from models import ProjectInfo def load_registry() -> list[ProjectInfo]: if not PROJECT_REGISTRY_PATH.exists(): return _discover_projects() text = ...
--- +++ @@ -1,3 +1,7 @@+""" +Registro e tracking de projetos/skills. +Mantém PROJECT_REGISTRY.md atualizado. +""" import re from datetime import datetime @@ -12,6 +16,7 @@ def load_registry() -> list[ProjectInfo]: + """Carrega projetos do PROJECT_REGISTRY.md.""" if not PROJECT_REGISTRY_PATH.exists(): ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/context-agent/scripts/project_registry.py
Write docstrings for this repository
from __future__ import annotations import json import uuid from datetime import datetime, timezone from typing import Any, Dict, Optional from config import ( ACTION_CATEGORIES, RATE_LIMIT_DMS_PER_HOUR, RATE_LIMIT_HASHTAGS_PER_WEEK, RATE_LIMIT_PUBLISHES_PER_DAY, RATE_LIMIT_REQUESTS_PER_HOUR, R...
--- +++ @@ -1,3 +1,10 @@+""" +Governança: rate limiting, audit log e confirmações para ações do Instagram. + +Rate limits são rastreados via SQLite (action_log table). +Confirmações usam padrão 2-step: retorna JSON com requires_confirmation, +Claude apresenta ao usuário, e na segunda chamada com --confirm executa. +"""...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/governance.py
Help me comply with documentation standards
from __future__ import annotations import argparse import asyncio import json import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from api_client import InstagramAPI from auth import auto_refresh_if_needed from db import Database from governance import GovernanceManager db = Database(...
--- +++ @@ -1,3 +1,13 @@+""" +Gestão de comentários do Instagram. + +Uso: + python scripts/comments.py --list --media-id 12345 + python scripts/comments.py --reply --comment-id 67890 --text "Obrigado!" + python scripts/comments.py --delete --comment-id 67890 + python scripts/comments.py --mentions + pyth...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/comments.py
Add docstrings with type hints explained
from __future__ import annotations import argparse import asyncio import json import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from api_client import InstagramAPI from auth import auto_refresh_if_needed from db import Database from governance import GovernanceManager, RateLimitExcee...
--- +++ @@ -1,3 +1,11 @@+""" +Pesquisa e tracking de hashtags do Instagram. + +Uso: + python scripts/hashtags.py --search "artificialintelligence" --limit 25 + python scripts/hashtags.py --top "tecnologia" + python scripts/hashtags.py --info "marketing" +""" from __future__ import annotations import argpar...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/hashtags.py
Provide clean and structured docstrings
from __future__ import annotations import argparse import asyncio import json import os import sys from pathlib import Path from typing import Optional sys.path.insert(0, str(Path(__file__).parent)) from api_client import InstagramAPI from auth import auto_refresh_if_needed from db import Database from governance im...
--- +++ @@ -1,3 +1,21 @@+""" +Publicação de conteúdo no Instagram. + +Suporta: foto, vídeo, reel, story, carrossel. +Upload local automático via Imgur. +Pipeline de conteúdo: draft → approved → published. + +Uso: + python scripts/publish.py --type photo --image foto.jpg --caption "Texto" + python scripts/publish....
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/publish.py
Add missing documentation to my Python functions
from typing import Dict, List, Any, Optional, Tuple import re from collections import Counter class KeywordAnalyzer: # Competition level thresholds (based on number of competing apps) COMPETITION_THRESHOLDS = { 'low': 1000, 'medium': 5000, 'high': 10000 } # Search volume cat...
--- +++ @@ -1,3 +1,7 @@+""" +Keyword analysis module for App Store Optimization. +Analyzes keyword search volume, competition, and relevance for app discovery. +""" from typing import Dict, List, Any, Optional, Tuple import re @@ -5,6 +9,7 @@ class KeywordAnalyzer: + """Analyzes keywords for ASO effectivenes...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/app-store-optimization/keyword_analyzer.py
Write docstrings that follow conventions
#!/usr/bin/env python3 import json import os import socket import subprocess import sys import time from datetime import datetime from pathlib import Path # Garante que psutil está disponível try: import psutil except ImportError: print("Instalando psutil...") subprocess.check_call([sys.executable, "-m", ...
--- +++ @@ -1,4 +1,16 @@ #!/usr/bin/env python3 +""" +Claude Monitor — Diagnóstico Rápido de Performance + +Analisa CPU, RAM, browsers, disco e rede em ~3 segundos. +Identifica o gargalo principal e sugere ações corretivas. + +Uso: + python health_check.py # Diagnóstico completo + python health_c...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/claude-monitor/scripts/health_check.py
Provide clean and structured docstrings
from __future__ import annotations import asyncio import logging import os from abc import ABC, abstractmethod from dataclasses import dataclass, field from datetime import datetime, timezone from typing import Any, List, Optional logger = logging.getLogger(__name__) def should_verify_tls() -> bool: return os.g...
--- +++ @@ -1,3 +1,8 @@+""" +Base abstrata para scrapers de leiloeiros das Juntas Comerciais do Brasil. +Cada estado herda desta classe e implementa parse_leiloeiros(). +Suporta httpx (sites estáticos) e Playwright (sites com JavaScript). +""" from __future__ import annotations import asyncio @@ -52,6 +57,7 @@ ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/junta-leiloeiros/scripts/scraper/base_scraper.py
Create docstrings for reusable components
from __future__ import annotations import argparse import asyncio import json import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from api_client import InstagramAPI from auth import auto_refresh_if_needed async def list_media(limit: int = 25, after: str = None) -> None: await au...
--- +++ @@ -1,3 +1,10 @@+""" +Listagem e detalhes de mídia do Instagram. + +Uso: + python scripts/media.py --list [--limit 10] + python scripts/media.py --details --media-id 12345 +""" from __future__ import annotations import argparse @@ -13,6 +20,7 @@ async def list_media(limit: int = 25, after: str = N...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/media.py
Help me comply with documentation standards
from __future__ import annotations import logging import re from typing import List from .base_scraper import AbstractJuntaScraper, Leiloeiro logger = logging.getLogger(__name__) RE_MATRICULA_MG = re.compile(r"[Mm]atr[íi]cula:?\s*(\d+)\s+de\s+(\d{2}/\d{2}/\d{4})|[Mm]atr[íi]cula:?\s*n[º°]?\s*(\d+)", re.IGNORECASE) R...
--- +++ @@ -1,3 +1,14 @@+""" +Scraper JUCEMG — Junta Comercial do Estado de Minas Gerais +URLs descobertas em 2026-02-25: + - /pagina/139 = menu principal (links para sub-paginas) + - /pagina/140 = lista alfabetica com contatos completos (USAR ESTA) + - /pagina/141 = lista por antiguidade com tabela (apenas nome + m...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/junta-leiloeiros/scripts/scraper/jucemg.py
Please document this code using docstrings
from __future__ import annotations import argparse import csv import json import sys from datetime import datetime, timezone from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from config import EXPORTS_DIR from db import Database db = Database() db.init() def export_json(records: list, outpu...
--- +++ @@ -1,3 +1,13 @@+""" +Exportação de dados do Instagram para diferentes formatos. + +Uso: + python scripts/export.py --type insights --format csv + python scripts/export.py --type comments --format json + python scripts/export.py --type posts --format jsonl + python scripts/export.py --type all --for...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/export.py
Generate consistent docstrings
#!/usr/bin/env python3 import re from typing import Dict, List, Set import json class SEOOptimizer: def __init__(self): # Common stop words to filter self.stop_words = { 'the', 'a', 'an', 'and', 'or', 'but', 'in', 'on', 'at', 'to', 'for', 'of', 'with', 'by', 'from', 'as', '...
--- +++ @@ -1,4 +1,7 @@ #!/usr/bin/env python3 +""" +SEO Content Optimizer - Analyzes and optimizes content for SEO +""" import re from typing import Dict, List, Set @@ -26,6 +29,7 @@ def analyze(self, content: str, target_keyword: str = None, secondary_keywords: List[str] = None) -> Dic...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/content-creator/scripts/seo_optimizer.py
Document this module using docstrings
#!/usr/bin/env python3 import json import sys import os from datetime import datetime from pathlib import Path # ── Paths ────────────────────────────────────────────────────────────────── SCRIPT_DIR = Path(__file__).resolve().parent SKILL_DIR = SCRIPT_DIR.parent DATA_DIR = SKILL_DIR / "data" # ── Functions ────────...
--- +++ @@ -1,4 +1,18 @@ #!/usr/bin/env python3 +""" +Context Guardian — Snapshot Manager. + +Cria, lista e le snapshots de contexto para preservacao +pre-compactacao. Os snapshots sao arquivos .md estruturados +com todas as informacoes criticas de uma sessao. + +Uso: + python context_snapshot.py save --project "nom...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/context-guardian/scripts/context_snapshot.py
Add standardized docstrings across the file
import shutil from datetime import datetime from pathlib import Path from config import SESSIONS_DIR, ARCHIVE_DIR, ARCHIVE_AFTER_SESSIONS def should_archive(session_number: int, current_session: int) -> bool: return (current_session - session_number) > ARCHIVE_AFTER_SESSIONS def archive_session(session_path: ...
--- +++ @@ -1,3 +1,7 @@+""" +Compressão inteligente e arquivamento de sessões antigas. +Mantém o histórico enxuto sem perder informação crítica. +""" import shutil from datetime import datetime @@ -7,10 +11,12 @@ def should_archive(session_number: int, current_session: int) -> bool: + """Verifica se uma sess...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/context-agent/scripts/compressor.py
Create docstrings for reusable components
import json from pathlib import Path from datetime import datetime from typing import Optional from config import CLAUDE_SESSION_DIR, FILE_MODIFYING_TOOLS from models import SessionEntry def parse_session_file(path: Path) -> list[SessionEntry]: entries = [] with open(path, "r", encoding="utf-8") as f: ...
--- +++ @@ -1,3 +1,7 @@+""" +Parser dos logs JSONL do Claude Code. +Lê arquivos de sessão e extrai informações estruturadas. +""" import json from pathlib import Path @@ -9,6 +13,7 @@ def parse_session_file(path: Path) -> list[SessionEntry]: + """Lê um arquivo JSONL e retorna lista de SessionEntry.""" e...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/context-agent/scripts/session_parser.py
Add docstrings with type hints explained
import sqlite3 from pathlib import Path from config import DB_PATH, MAX_SEARCH_RESULTS from models import SearchResult def _get_connection() -> sqlite3.Connection: DB_PATH.parent.mkdir(parents=True, exist_ok=True) conn = sqlite3.connect(str(DB_PATH)) conn.execute("PRAGMA journal_mode=WAL") return co...
--- +++ @@ -1,3 +1,6 @@+""" +Busca full-text via SQLite FTS5 no histórico de sessões. +""" import sqlite3 from pathlib import Path @@ -7,6 +10,7 @@ def _get_connection() -> sqlite3.Connection: + """Retorna conexão SQLite com FTS5.""" DB_PATH.parent.mkdir(parents=True, exist_ok=True) conn = sqlite3....
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/context-agent/scripts/search.py
Write docstrings for data processing functions
from dataclasses import dataclass, field from datetime import datetime from typing import Optional @dataclass class SessionEntry: type: str # "user" | "assistant" | "queue-operation" timestamp: str # ISO 8601 session_id: str slug: str = "" role: str = ...
--- +++ @@ -1,3 +1,7 @@+""" +Modelos de dados do Context Agent. +Dataclasses puras sem dependências externas. +""" from dataclasses import dataclass, field from datetime import datetime @@ -6,6 +10,7 @@ @dataclass class SessionEntry: + """Uma entrada individual do log JSONL do Claude Code.""" type: str ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/context-agent/scripts/models.py
Add docstrings to make code maintainable
from __future__ import annotations import argparse import asyncio import json import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from api_client import InstagramAPI, InstagramAPIError from db import Database db = Database() db.init() async def check_account() -> None: account =...
--- +++ @@ -1,3 +1,11 @@+""" +Configuração e verificação de conta Instagram. + +Uso: + python scripts/account_setup.py --check # Detecta tipo de conta + python scripts/account_setup.py --guide # Guia de setup/migração + python scripts/account_setup.py --verify # Verifica pré-requisitos +""" from __...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/account_setup.py
Help me comply with documentation standards
from __future__ import annotations import argparse import asyncio import json import sys from datetime import datetime, timedelta, timezone from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from api_client import InstagramAPI from auth import auto_refresh_if_needed from db import Database db =...
--- +++ @@ -1,3 +1,11 @@+""" +Analytics e insights do Instagram. + +Uso: + python scripts/insights.py --media --media-id 12345 + python scripts/insights.py --user --period day --since 7 + python scripts/insights.py --fetch-all --limit 20 +""" from __future__ import annotations import argparse @@ -18,6 +26,...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/insights.py
Add missing documentation to my Python functions
from __future__ import annotations from typing import List, Optional from .base_scraper import AbstractJuntaScraper, Leiloeiro class GenericJuntaScraper(AbstractJuntaScraper): estado: str junta: str url: str municipio_default: Optional[str] = None # para estados com capital única dominante as...
--- +++ @@ -1,3 +1,7 @@+""" +Scraper genérico para juntas que usam formato padrão de tabela HTML. +Estados sem scraper customizado herdam deste. +""" from __future__ import annotations from typing import List, Optional @@ -6,6 +10,10 @@ class GenericJuntaScraper(AbstractJuntaScraper): + """ + Scraper gené...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/junta-leiloeiros/scripts/scraper/generic_scraper.py
Write docstrings for data processing functions
#!/usr/bin/env python3 import sys import re import json from pathlib import Path # Fix Windows console encoding for Unicode output try: sys.stdout.reconfigure(encoding='utf-8', errors='replace') sys.stderr.reconfigure(encoding='utf-8', errors='replace') except AttributeError: pass # Python < 3.7 # Patter...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +i18n Checker - Detects hardcoded strings and missing translations. +Scans for untranslated text in React, Vue, and Python files. +""" import sys import re import json @@ -47,6 +51,7 @@ ] def find_locale_files(project_path: Path) -> list: + """Find translatio...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/i18n-localization/scripts/i18n_checker.py
Write docstrings describing each step
#!/usr/bin/env python3 import json import os import signal import subprocess import sys import time from datetime import datetime from pathlib import Path try: import psutil except ImportError: subprocess.check_call([sys.executable, "-m", "pip", "install", "psutil", "--quiet"]) import psutil sys.path.ins...
--- +++ @@ -1,4 +1,15 @@ #!/usr/bin/env python3 +""" +Claude Monitor — Monitor Contínuo de Performance + +Coleta snapshots periódicos de CPU, RAM e browsers. +Gera relatório com tendências e alertas ao final. + +Uso: + python monitor.py # 5 min, amostras a cada 30s + python monitor.py --i...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/claude-monitor/scripts/monitor.py
Generate docstrings with examples
import argparse import json import sys from datetime import datetime from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from config import ( HUMANIZATION_LEVELS, LIGHTING_OPTIONS, MODES, SHOT_TYPES, PROMPT_TEMPLATES, IMAGE_FORMATS, FORMAT_ALIASES, DEFAULT_HUMANIZAT...
--- +++ @@ -1,3 +1,13 @@+""" +AI Studio Image — Motor de Humanizacao de Prompts (v2 — Enhanced) + +Transforma qualquer prompt em uma foto genuinamente humana usando 5 camadas +de realismo + tecnicas avancadas da documentacao oficial do Google AI Studio. + +Principio-chave da Google: "Describe the scene, don't just list...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/ai-studio-image/scripts/prompt_engine.py
Add clean documentation to messy code
#!/usr/bin/env python3 import sys import json import re from pathlib import Path # Fix Windows console encoding for Unicode output try: sys.stdout.reconfigure(encoding='utf-8', errors='replace') sys.stderr.reconfigure(encoding='utf-8', errors='replace') except AttributeError: pass # Python < 3.7 def find...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +API Validator - Checks API endpoints for best practices. +Validates OpenAPI specs, response formats, and common issues. +""" import sys import json import re @@ -12,6 +16,7 @@ pass # Python < 3.7 def find_api_files(project_path: Path) -> list: + """Find...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/api-patterns/scripts/api_validator.py
Add docstrings to improve collaboration
from typing import Dict, List, Any, Optional from collections import Counter import re class CompetitorAnalyzer: def __init__(self, category: str, platform: str = 'apple'): self.category = category self.platform = platform self.competitors = [] def analyze_competitor( self, ...
--- +++ @@ -1,3 +1,7 @@+""" +Competitor analysis module for App Store Optimization. +Analyzes top competitors' ASO strategies and identifies opportunities. +""" from typing import Dict, List, Any, Optional from collections import Counter @@ -5,8 +9,16 @@ class CompetitorAnalyzer: + """Analyzes competitor app...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/app-store-optimization/competitor_analyzer.py
Write docstrings for data processing functions
#!/usr/bin/env python3 import os import sys import re import shutil import subprocess from datetime import datetime from pathlib import Path # --- Configuration --- DESKTOP = Path(os.environ.get("DESKTOP_PATH", str(Path(os.environ.get("USERPROFILE", "")) / "OneDrive" / "Desktop"))) DESKTOP_FALLBACK = Path(os.environ....
--- +++ @@ -1,4 +1,15 @@ #!/usr/bin/env python3 +""" +Master Diary Sync Script v2 +Two-mode operation: + --inject-only : Scan desktop projects, inject today's diaries into global diary. + --sync-only : Push the global diary to Notion and Obsidian. + +Usage: + python master_diary_sync.py --inject-only + python mas...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/diary/scripts/master_diary_sync.py
Add docstrings for internal functions
# Thresholds de alerta THRESHOLDS = { "cpu": { "ok": 60, "warning": 85, # acima de warning = critical }, "ram_percent": { "ok": 70, "warning": 85, }, "browsers_ram_gb": { "ok": 3.0, "warning": 6.0, }, "browsers_processes": { "o...
--- +++ @@ -1,3 +1,6 @@+""" +Configurações e thresholds para o Claude Monitor. +""" # Thresholds de alerta THRESHOLDS = { @@ -47,6 +50,7 @@ def classify(value, metric_name): + """Classifica um valor como 'ok', 'warning' ou 'critical'.""" t = THRESHOLDS.get(metric_name, {}) # Métricas onde "abaixo...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/claude-monitor/scripts/config.py
Generate docstrings with examples
from __future__ import annotations import argparse import asyncio import json import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from api_client import InstagramAPI from auth import auto_refresh_if_needed from db import Database from governance import GovernanceManager db = Database(...
--- +++ @@ -1,3 +1,11 @@+""" +Mensagens diretas do Instagram (DMs). + +Uso: + python scripts/messages.py --send --user-id 12345 --text "Olá!" + python scripts/messages.py --conversations + python scripts/messages.py --thread --conversation-id 12345 +""" from __future__ import annotations import argparse @@...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/instagram/scripts/messages.py
Annotate my code with docstrings
from __future__ import annotations import logging import re from typing import List from .base_scraper import AbstractJuntaScraper, Leiloeiro logger = logging.getLogger(__name__) RE_MATRICULA_RO = re.compile(r"[Mm]atr[íi]cula:?\s*(.+)") RE_POSSE_RO = re.compile(r"[Dd]ata\s+da\s+[Pp]osse:?\s*(.+)") RE_CIDADE_RO = re...
--- +++ @@ -1,3 +1,21 @@+""" +Scraper JUCER — Junta Comercial do Estado de Rondonia +URL: https://rondonia.ro.gov.br/jucer/lista-de-leiloeiros-oficiais/ +Metodo: httpx + BeautifulSoup com parser DL/DT/DD +Estrutura descoberta em 2026-02-25: + WordPress CMS com estrutura DL/DT/DD aninada e malformada: + <dt><strong>NO...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/junta-leiloeiros/scripts/scraper/jucer.py
Add docstrings that explain purpose and usage
#!/usr/bin/env python3 import argparse import io import sys from pathlib import Path # Fix Windows console encoding for Unicode output if sys.stdout.encoding != "utf-8": sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace") if sys.stderr.encoding != "utf-8": sys.stderr = io.Text...
--- +++ @@ -1,4 +1,18 @@ #!/usr/bin/env python3 +""" +Context Manager — Entry point CLI do Context Agent. +Orquestra save, load, status, search, archive e maintain. + +Uso: + python context_manager.py init # Bootstrap do sistema + python context_manager.py save [--session PATH] # Salvar contexto da sess...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/context-agent/scripts/context_manager.py
Add docstrings explaining edge cases
import json import re import sys from typing import Any, Dict, List, Optional from . import http def _log_error(msg: str): sys.stderr.write(f"[REDDIT ERROR] {msg}\n") sys.stderr.flush() OPENAI_RESPONSES_URL = "https://api.openai.com/v1/responses" # Depth configurations: (min, max) threads to request # Req...
--- +++ @@ -1,3 +1,4 @@+"""OpenAI Responses API client for Reddit discovery.""" import json import re @@ -8,6 +9,7 @@ def _log_error(msg: str): + """Log error to stderr.""" sys.stderr.write(f"[REDDIT ERROR] {msg}\n") sys.stderr.flush() @@ -65,6 +67,7 @@ def _extract_core_subject(topic: str) -...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/openai_reddit.py
Add documentation for all methods
import re from typing import Any, Dict, List, Optional from urllib.parse import urlparse from . import http, dates def extract_reddit_path(url: str) -> Optional[str]: try: parsed = urlparse(url) if "reddit.com" not in parsed.netloc: return None return parsed.path except: ...
--- +++ @@ -1,3 +1,4 @@+"""Reddit thread enrichment with real engagement metrics.""" import re from typing import Any, Dict, List, Optional @@ -7,6 +8,14 @@ def extract_reddit_path(url: str) -> Optional[str]: + """Extract the path from a Reddit URL. + + Args: + url: Reddit URL + + Returns: + ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/reddit_enrich.py
Create docstrings for each class method
import os import sys import time import threading import random from typing import Optional # Check if we're in a real terminal (not captured by Claude Code) IS_TTY = sys.stderr.isatty() # ANSI color codes class Colors: PURPLE = '\033[95m' BLUE = '\033[94m' CYAN = '\033[96m' GREEN = '\033[92m' YE...
--- +++ @@ -1,3 +1,4 @@+"""Terminal UI utilities for last30days skill.""" import os import sys @@ -132,6 +133,7 @@ class Spinner: + """Animated spinner for long-running operations.""" def __init__(self, message: str = "Working", color: str = Colors.CYAN): self.message = message @@ -182,6 +184...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/ui.py
Add structured docstrings to improve clarity
import json from pathlib import Path from typing import List, Optional from . import schema OUTPUT_DIR = Path.home() / ".local" / "share" / "last30days" / "out" def ensure_output_dir(): OUTPUT_DIR.mkdir(parents=True, exist_ok=True) def _assess_data_freshness(report: schema.Report) -> dict: reddit_recent ...
--- +++ @@ -1,3 +1,4 @@+"""Output rendering for last30days skill.""" import json from pathlib import Path @@ -9,10 +10,12 @@ def ensure_output_dir(): + """Ensure output directory exists.""" OUTPUT_DIR.mkdir(parents=True, exist_ok=True) def _assess_data_freshness(report: schema.Report) -> dict: + ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/render.py
Write docstrings that follow conventions
from dataclasses import dataclass, field, asdict from typing import Any, Dict, List, Optional from datetime import datetime, timezone @dataclass class Engagement: # Reddit fields score: Optional[int] = None num_comments: Optional[int] = None upvote_ratio: Optional[float] = None # X fields li...
--- +++ @@ -1,3 +1,4 @@+"""Data schemas for last30days skill.""" from dataclasses import dataclass, field, asdict from typing import Any, Dict, List, Optional @@ -6,6 +7,7 @@ @dataclass class Engagement: + """Engagement metrics.""" # Reddit fields score: Optional[int] = None num_comments: Optio...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/schema.py
Fill in missing docstrings in my code
from __future__ import annotations import re from html import unescape from typing import List, Optional import httpx from bs4 import BeautifulSoup from .base_scraper import AbstractJuntaScraper, Leiloeiro class JucespScraper(AbstractJuntaScraper): estado = "SP" junta = "JUCESP" url = "https://www.inst...
--- +++ @@ -1,3 +1,48 @@+""" +Scraper JUCESP — Junta Comercial do Estado de São Paulo + +MECANISMO REAL (descoberto em 2025-02-25): + A URL https://www.institucional.jucesp.sp.gov.br/tradutores-leiloeiros.html + é apenas uma página institucional com links para downloads e um accordeon. + O accordion "Localizar Leilo...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/junta-leiloeiros/scripts/scraper/jucesp.py
Help me document legacy Python code
import re from datetime import datetime, timedelta from typing import Any, Dict, List, Optional, Tuple from urllib.parse import urlparse from . import schema # Month name mappings for date parsing MONTH_MAP = { "jan": 1, "january": 1, "feb": 2, "february": 2, "mar": 3, "march": 3, "apr": 4, "april":...
--- +++ @@ -1,3 +1,14 @@+"""WebSearch module for last30days skill. + +NOTE: WebSearch uses Claude's built-in WebSearch tool, which runs INSIDE Claude Code. +Unlike Reddit/X which use external APIs, WebSearch results are obtained by Claude +directly and passed to this module for normalization and scoring. + +The typical...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/websearch.py
Generate documentation strings for clarity
from __future__ import annotations import json import os from datetime import datetime from pathlib import Path # Diretorio de dados DATA_DIR = Path(__file__).parent.parent / "data" DATA_DIR.mkdir(exist_ok=True) LOG_FILE = DATA_DIR / "action_log.jsonl" RATE_LIMIT_WINDOW = 60 # segundos RATE_LIMIT_MAX = 30 # max ac...
--- +++ @@ -1,3 +1,9 @@+""" +Modulo de governanca para leiloeiro-ia. + +Implementa action_log, rate_limit, confirmation_request e warning_threshold +para skills baseadas em conhecimento (knowledge-only). +""" from __future__ import annotations import json @@ -16,6 +22,7 @@ def log_action(action: str, details: d...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/leiloeiro-edital/scripts/governance.py
Please document this code using docstrings
import json import os import sys import time import urllib.error import urllib.request from typing import Any, Dict, Optional from urllib.parse import urlencode DEFAULT_TIMEOUT = 30 DEBUG = os.environ.get("LAST30DAYS_DEBUG", "").lower() in ("1", "true", "yes") def log(msg: str): if DEBUG: sys.stderr.wri...
--- +++ @@ -1,3 +1,4 @@+"""HTTP utilities for last30days skill (stdlib only).""" import json import os @@ -13,6 +14,7 @@ def log(msg: str): + """Log debug message to stderr.""" if DEBUG: sys.stderr.write(f"[DEBUG] {msg}\n") sys.stderr.flush() @@ -22,6 +24,7 @@ class HTTPError(Excep...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/http.py
Add docstrings for internal functions
import math from typing import List, Optional, Union from . import dates, schema # Score weights for Reddit/X (has engagement) WEIGHT_RELEVANCE = 0.45 WEIGHT_RECENCY = 0.25 WEIGHT_ENGAGEMENT = 0.30 # WebSearch weights (no engagement, reweighted to 100%) WEBSEARCH_WEIGHT_RELEVANCE = 0.55 WEBSEARCH_WEIGHT_RECENCY = 0...
--- +++ @@ -1,3 +1,4 @@+"""Popularity-aware scoring for last30days skill.""" import math from typing import List, Optional, Union @@ -24,12 +25,17 @@ def log1p_safe(x: Optional[int]) -> float: + """Safe log1p that handles None and negative values.""" if x is None or x < 0: return 0.0 retur...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/score.py
Add docstrings following best practices
#!/usr/bin/env python3 import argparse import json import sys from typing import Dict, List, Any, Optional from datetime import datetime import html as html_module def escape(text: str) -> str: return html_module.escape(str(text)) # --------------------------------------------------------------------------- # ...
--- +++ @@ -1,4 +1,14 @@ #!/usr/bin/env python3 +"""Landing Page Scaffolder — Generate landing pages as HTML or Next.js TSX from config. + +Creates production-ready landing pages with hero sections, features, +testimonials, pricing, CTAs, and responsive design. + +Usage: + python landing_page_scaffolder.py config.js...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/landing-page-generator/scripts/landing_page_scaffolder.py
Can you add docstrings to this Python file?
from __future__ import annotations import logging import re from typing import List from .base_scraper import AbstractJuntaScraper, Leiloeiro logger = logging.getLogger(__name__) # Regex para extrair dados do formato plano JUCISRS RE_MATRICULA_NOME = re.compile(r"(\d+)\s*-\s*(.+)") RE_POSSE = re.compile(r"[Pp]osse\...
--- +++ @@ -1,3 +1,17 @@+""" +Scraper JUCISRS — Junta Comercial, Industrial e Servicos do Rio Grande do Sul +URL: https://sistemas.jucisrs.rs.gov.br/leiloeiros/ +Metodo: httpx POST com verify=False (SSL invalido mas conteudo OK) +Mecanismo real descoberto em 2026-02-25: + - GET https://sistemas.jucisrs.rs.gov.br/leil...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/junta-leiloeiros/scripts/scraper/jucisrs.py
Write beginner-friendly docstrings
#!/usr/bin/env python3 import argparse import json import os import sys from concurrent.futures import ThreadPoolExecutor, as_completed from datetime import datetime, timezone from pathlib import Path # Add lib to path SCRIPT_DIR = Path(__file__).parent.resolve() sys.path.insert(0, str(SCRIPT_DIR)) from lib import (...
--- +++ @@ -1,4 +1,18 @@ #!/usr/bin/env python3 +""" +last30days - Research a topic from the last 30 days on Reddit + X. + +Usage: + python3 last30days.py <topic> [options] + +Options: + --mock Use fixtures instead of real API calls + --emit=MODE Output mode: compact|json|md|context|path (...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/last30days.py
Add standardized docstrings across the file
from __future__ import annotations import argparse import asyncio import json import logging import subprocess import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent)) from db import Database from scraper.base_scraper import should_verify_tls from scraper.states import SCRAPERS logger = lo...
--- +++ @@ -1,3 +1,16 @@+""" +Integração com a skill web-scraper para extração inteligente de fallback. + +Quando um scraper nativo retorna 0 registros, este módulo aciona o web-scraper +para tentativa adicional de extração estruturada dos dados de leiloeiros. + +Uso direto: + python web_scraper_fallback.py --estado...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/junta-leiloeiros/scripts/web_scraper_fallback.py
Create docstrings for all classes and functions
from __future__ import annotations from typing import Type from .base_scraper import AbstractJuntaScraper from .generic_scraper import GenericJuntaScraper # Scrapers customizados — lógica específica por estado from .jucesp import JucespScraper # SP from .jucerja import JucerjaScraper # RJ (Playwright) from...
--- +++ @@ -1,3 +1,10 @@+""" +Registro de todos os 27 scrapers das Juntas Comerciais do Brasil. +Cada entrada define estado, junta, URL e scraper a ser usado. + +URLs verificadas e atualizadas em 2026-02-25. +Scrapers customizados têm lógica específica para cada site. +""" from __future__ import annotations from ty...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/junta-leiloeiros/scripts/scraper/states.py
Add docstrings to meet PEP guidelines
import os from pathlib import Path from typing import Optional, Dict, Any CONFIG_DIR = Path.home() / ".config" / "last30days" CONFIG_FILE = CONFIG_DIR / ".env" def load_env_file(path: Path) -> Dict[str, str]: env = {} if not path.exists(): return env with open(path, 'r') as f: for line ...
--- +++ @@ -1,3 +1,4 @@+"""Environment and API key management for last30days skill.""" import os from pathlib import Path @@ -8,6 +9,7 @@ def load_env_file(path: Path) -> Dict[str, str]: + """Load environment variables from a file.""" env = {} if not path.exists(): return env @@ -30,6 +32,...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/env.py
Create docstrings for each class method
import hashlib import json import os from datetime import datetime, timezone from pathlib import Path from typing import Any, Optional CACHE_DIR = Path.home() / ".cache" / "last30days" DEFAULT_TTL_HOURS = 24 MODEL_CACHE_TTL_DAYS = 7 def ensure_cache_dir(): CACHE_DIR.mkdir(parents=True, exist_ok=True) def get_...
--- +++ @@ -1,3 +1,4 @@+"""Caching utilities for last30days skill.""" import hashlib import json @@ -12,19 +13,23 @@ def ensure_cache_dir(): + """Ensure cache directory exists.""" CACHE_DIR.mkdir(parents=True, exist_ok=True) def get_cache_key(topic: str, from_date: str, to_date: str, sources: str) ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/cache.py
Add docstrings for internal functions
#!/usr/bin/env python3 import sys import re import subprocess from pathlib import Path # Fix Windows console encoding for Unicode output try: sys.stdout.reconfigure(encoding='utf-8', errors='replace') sys.stderr.reconfigure(encoding='utf-8', errors='replace') except AttributeError: pass # Python < 3.7 de...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Type Coverage Checker - Measures TypeScript/Python type coverage. +Identifies untyped functions, any usage, and type safety issues. +""" import sys import re import subprocess @@ -12,6 +16,7 @@ pass # Python < 3.7 def check_typescript_coverage(project_path...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/lint-and-validate/scripts/type_coverage.py
Annotate my code with docstrings
from datetime import datetime, timedelta, timezone from typing import Optional, Tuple def get_date_range(days: int = 30) -> Tuple[str, str]: today = datetime.now(timezone.utc).date() from_date = today - timedelta(days=days) return from_date.isoformat(), today.isoformat() def parse_date(date_str: Option...
--- +++ @@ -1,15 +1,25 @@+"""Date utilities for last30days skill.""" from datetime import datetime, timedelta, timezone from typing import Optional, Tuple def get_date_range(days: int = 30) -> Tuple[str, str]: + """Get the date range for the last N days. + + Returns: + Tuple of (from_date, to_date...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/dates.py
Improve my code by adding docstrings
from typing import Any, Dict, List, TypeVar, Union from . import dates, schema T = TypeVar("T", schema.RedditItem, schema.XItem, schema.WebSearchItem) def filter_by_date_range( items: List[T], from_date: str, to_date: str, require_date: bool = False, ) -> List[T]: result = [] for item in it...
--- +++ @@ -1,3 +1,4 @@+"""Normalization of raw API data to canonical schema.""" from typing import Any, Dict, List, TypeVar, Union @@ -12,6 +13,20 @@ to_date: str, require_date: bool = False, ) -> List[T]: + """Hard filter: Remove items outside the date range. + + This is the safety net - even if ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/normalize.py
Write docstrings for algorithm functions
import re from typing import List, Set, Tuple, Union from . import schema def normalize_text(text: str) -> str: text = text.lower() text = re.sub(r'[^\w\s]', ' ', text) text = re.sub(r'\s+', ' ', text) return text.strip() def get_ngrams(text: str, n: int = 3) -> Set[str]: text = normalize_text...
--- +++ @@ -1,3 +1,4 @@+"""Near-duplicate detection for last30days skill.""" import re from typing import List, Set, Tuple, Union @@ -6,6 +7,12 @@ def normalize_text(text: str) -> str: + """Normalize text for comparison. + + - Lowercase + - Remove punctuation + - Collapse whitespace + """ te...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/dedupe.py
Add structured docstrings to improve clarity
#!/usr/bin/env python3 import subprocess import sys import json from pathlib import Path from datetime import datetime # Fix Windows console encoding try: sys.stdout.reconfigure(encoding='utf-8', errors='replace') except: pass def detect_project_type(project_path: Path) -> dict: result = { "type...
--- +++ @@ -1,4 +1,15 @@ #!/usr/bin/env python3 +""" +Lint Runner - Unified linting and type checking +Runs appropriate linters based on project type. + +Usage: + python lint_runner.py <project_path> + +Supports: + - Node.js: npm run lint, npx tsc --noEmit + - Python: ruff check, mypy +""" import subprocess...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/lint-and-validate/scripts/lint_runner.py
Add docstrings that explain logic
import re from typing import Dict, List, Optional, Tuple from . import cache, http # OpenAI API OPENAI_MODELS_URL = "https://api.openai.com/v1/models" OPENAI_FALLBACK_MODELS = ["gpt-5.2", "gpt-5.1", "gpt-5", "gpt-4o"] # xAI API - Agent Tools API requires grok-4 family XAI_MODELS_URL = "https://api.x.ai/v1/models" X...
--- +++ @@ -1,3 +1,4 @@+"""Model auto-selection for last30days skill.""" import re from typing import Dict, List, Optional, Tuple @@ -17,6 +18,13 @@ def parse_version(model_id: str) -> Optional[Tuple[int, ...]]: + """Parse semantic version from model ID. + + Examples: + gpt-5 -> (5,) + gpt-5...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/models.py
Add missing documentation to my Python functions
import json import re import sys from typing import Any, Dict, List, Optional from . import http def _log_error(msg: str): sys.stderr.write(f"[X ERROR] {msg}\n") sys.stderr.flush() # xAI uses responses endpoint with Agent Tools API XAI_RESPONSES_URL = "https://api.x.ai/v1/responses" # Depth configurations...
--- +++ @@ -1,3 +1,4 @@+"""xAI API client for X (Twitter) discovery.""" import json import re @@ -8,6 +9,7 @@ def _log_error(msg: str): + """Log error to stderr.""" sys.stderr.write(f"[X ERROR] {msg}\n") sys.stderr.flush() @@ -62,6 +64,20 @@ depth: str = "default", mock_response: Optiona...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/last30days/scripts/lib/xai_x.py
Write beginner-friendly docstrings
def is_palindrome(string: str) -> bool: return string == string[::-1] def make_palindrome(string: str) -> str: if not string: return '' for i in range(len(string)): if is_palindrome(string[i:]): return string + string[:i][::-1] return string
--- +++ @@ -1,8 +1,20 @@ def is_palindrome(string: str) -> bool: + """ Test if given string is a palindrome """ return string == string[::-1] def make_palindrome(string: str) -> str: + """ Find the shortest palindrome that begins with a supplied string. + Algorithm idea is simple: + - Find the lon...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/loki-mode/benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/10.py
Write docstrings including parameters and return values
def encode_shift(s: str): return "".join([chr(((ord(ch) + 5 - ord("a")) % 26) + ord("a")) for ch in s]) def decode_shift(s: str): return "".join([chr(((ord(ch) - 5 - ord("a")) % 26) + ord("a")) for ch in s])
--- +++ @@ -1,6 +1,12 @@ def encode_shift(s: str): + """ + returns encoded string by shifting every character by 5 in the alphabet. + """ return "".join([chr(((ord(ch) + 5 - ord("a")) % 26) + ord("a")) for ch in s]) def decode_shift(s: str): + """ + takes as input string encoded with encode_shi...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/loki-mode/benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/50.py
Write docstrings for data processing functions
# HumanEval/10 # Loki Mode Multi-Agent Solution # Attempts: 1 # Passed: True def is_palindrome(string: str) -> bool: return string == string[::-1] def make_palindrome(string: str) -> str: if not string: return '' for i in range(len(string)): if is_palindrome(string[i:]): ...
--- +++ @@ -4,10 +4,22 @@ # Passed: True def is_palindrome(string: str) -> bool: + """ Test if given string is a palindrome """ return string == string[::-1] def make_palindrome(string: str) -> str: + """ Find the shortest palindrome that begins with a supplied string. + Algorithm idea is simple: ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/loki-mode/benchmarks/results/humaneval-loki-solutions/10.py
Write clean docstrings for readability
import math def poly(xs: list, x: float): return sum([coeff * math.pow(x, i) for i, coeff in enumerate(xs)]) def find_zero(xs: list): # Use Newton-Raphson method to find a zero # First, find a suitable starting point and bounds # For a polynomial with odd degree (even number of coefficients), ...
--- +++ @@ -2,10 +2,25 @@ def poly(xs: list, x: float): + """ + Evaluates polynomial with coefficients xs at point x. + return xs[0] + xs[1] * x + xs[1] * x^2 + .... xs[n] * x^n + """ return sum([coeff * math.pow(x, i) for i, coeff in enumerate(xs)]) def find_zero(xs: list): + """ xs are co...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/loki-mode/benchmarks/results/2026-01-05-00-49-17/humaneval-solutions/32.py
Replace inline comments with docstrings
# HumanEval/38 # Loki Mode Multi-Agent Solution # Attempts: 2 # Passed: True def encode_cyclic(s: str): # split string to groups. Each of length 3. groups = [s[(3 * i):min((3 * i + 3), len(s))] for i in range((len(s) + 2) // 3)] # cycle elements in each group. Unless group has fewer elements than 3. gr...
--- +++ @@ -4,6 +4,9 @@ # Passed: True def encode_cyclic(s: str): + """ + returns encoded string by cycling groups of three characters. + """ # split string to groups. Each of length 3. groups = [s[(3 * i):min((3 * i + 3), len(s))] for i in range((len(s) + 2) // 3)] # cycle elements in each g...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/loki-mode/benchmarks/results/humaneval-loki-solutions/38.py
Replace inline comments with docstrings
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import re import sys import json import argparse from pathlib import Path # Fix Unicode output on Windows (cp1252 terminal) if sys.platform == 'win32': try: sys.stdout.reconfigure(encoding='utf-8', errors='replace') sys.stderr.reconfigure(en...
--- +++ @@ -1,5 +1,15 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +""" +Prof. Euler — Complexity Analyzer +Análise automática de complexidade ciclomática, cognitiva e acoplamento +para projetos Kotlin/Android. + +Uso: + python complexity_analyzer.py [path] [--module MODULE] [--threshold N] + python complexity_...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/matematico-tao/scripts/complexity_analyzer.py
Add professional docstrings to my codebase
import json import time import random from patchright.sync_api import Playwright, BrowserContext, Page from config import BROWSER_PROFILE_DIR, STATE_FILE, BROWSER_ARGS, USER_AGENT class BrowserFactory: @staticmethod def launch_persistent_context( playwright: Playwright, headless: bool = Tru...
--- +++ @@ -1,3 +1,7 @@+""" +Browser Utilities for NotebookLM Skill +Handles browser launching, stealth features, and common interactions +""" import json import time @@ -8,6 +12,7 @@ class BrowserFactory: + """Factory for creating configured browser contexts""" @staticmethod def launch_persisten...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/notebooklm/scripts/browser_utils.py
Document functions with clear intent
#!/usr/bin/env python3 import argparse import sys import time import re from pathlib import Path from patchright.sync_api import sync_playwright # Add parent directory to path sys.path.insert(0, str(Path(__file__).parent)) from auth_manager import AuthManager from notebook_manager import NotebookLibrary from config...
--- +++ @@ -1,4 +1,13 @@ #!/usr/bin/env python3 +""" +Simple NotebookLM Question Interface +Based on MCP server implementation - simplified without sessions + +Implements hybrid auth approach: +- Persistent browser profile (user_data_dir) for fingerprint consistency +- Manual cookie injection from state.json for sessio...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/notebooklm/scripts/ask_question.py
Generate docstrings for script automation
#!/usr/bin/env python3 import os import re import sys import json import argparse from pathlib import Path from dataclasses import dataclass, field from typing import Dict, List, Set, Optional, Tuple # Fix Windows terminal encoding (cp1252 doesn't support emojis/unicode) if sys.platform == 'win32': try: s...
--- +++ @@ -1,4 +1,14 @@ #!/usr/bin/env python3 +""" +Prof. Euler — Dependency Graph Analyzer +Gera grafo de dependências de projetos Kotlin/Android com análise matemática +de grafos: componentes, ciclos, centralidade, instabilidade. + +Uso: + python dependency_graph.py [path] [--format dot|json|text] [--output FILE] ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/matematico-tao/scripts/dependency_graph.py
Provide docstrings following PEP 257
#!/usr/bin/env python3 import os import sys import subprocess from pathlib import Path def ensure_venv_and_run(): # Only do this if we're not already in the skill's venv skill_dir = Path(__file__).parent.parent venv_dir = skill_dir / ".venv" # Check if we're in a venv in_venv = hasattr(sys, 'rea...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +NotebookLM Skill Scripts Package +Provides automatic environment management for all scripts +""" import os import sys @@ -7,6 +11,10 @@ def ensure_venv_and_run(): + """ + Ensure virtual environment exists and run the requested script. + This is calle...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/notebooklm/scripts/__init__.py
Document my Python code with docstrings
#!/usr/bin/env python3 import json import time import argparse import shutil import re import sys from pathlib import Path from typing import Optional, Dict, Any from patchright.sync_api import sync_playwright, BrowserContext # Add parent directory to path sys.path.insert(0, str(Path(__file__).parent)) from config ...
--- +++ @@ -1,4 +1,14 @@ #!/usr/bin/env python3 +""" +Authentication Manager for NotebookLM +Handles Google login and browser state persistence +Based on the MCP server implementation + +Implements hybrid auth approach: +- Persistent browser profile (user_data_dir) for fingerprint consistency +- Manual cookie injection...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/notebooklm/scripts/auth_manager.py
Create documentation for each function signature
#!/usr/bin/env python3 import shutil import argparse from pathlib import Path from typing import Dict, List, Any class CleanupManager: def __init__(self): # Skill directory paths self.skill_dir = Path(__file__).parent.parent self.data_dir = self.skill_dir / "data" def get_cleanup_pa...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Cleanup Manager for NotebookLM Skill +Manages cleanup of skill data and browser state +""" import shutil import argparse @@ -7,13 +11,34 @@ class CleanupManager: + """ + Manages cleanup of NotebookLM skill data + + Features: + - Preview what will ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/notebooklm/scripts/cleanup_manager.py
Document functions with clear intent
#!/usr/bin/env python3 import time import sys from typing import Any, Dict, Optional from pathlib import Path from patchright.sync_api import BrowserContext, Page # Add parent directory to path sys.path.insert(0, str(Path(__file__).parent)) from browser_utils import StealthUtils class BrowserSession: def __i...
--- +++ @@ -1,4 +1,9 @@ #!/usr/bin/env python3 +""" +Browser Session Management for NotebookLM +Individual browser session for persistent NotebookLM conversations +Based on the original NotebookLM API implementation +""" import time import sys @@ -14,8 +19,23 @@ class BrowserSession: + """ + Represents a ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/notebooklm/scripts/browser_session.py
Document all endpoints with docstrings
#!/usr/bin/env python3 import json import argparse import uuid import os from pathlib import Path from typing import Dict, List, Optional, Any from datetime import datetime class NotebookLibrary: def __init__(self): # Store data within the skill directory skill_dir = Path(__file__).parent.parent...
--- +++ @@ -1,4 +1,9 @@ #!/usr/bin/env python3 +""" +Notebook Library Management for NotebookLM +Manages a library of NotebookLM notebooks with metadata +Based on the MCP server implementation +""" import json import argparse @@ -10,8 +15,10 @@ class NotebookLibrary: + """Manages a collection of NotebookLM n...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/notebooklm/scripts/notebook_manager.py
Write docstrings for algorithm functions
#!/usr/bin/env python3 import os import sys import subprocess import venv from pathlib import Path class SkillEnvironment: def __init__(self): # Skill directory paths self.skill_dir = Path(__file__).parent.parent self.venv_dir = self.skill_dir / ".venv" self.requirements_file = s...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Environment Setup for NotebookLM Skill +Manages virtual environment and dependencies automatically +""" import os import sys @@ -8,6 +12,7 @@ class SkillEnvironment: + """Manages skill-specific virtual environment""" def __init__(self): # S...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/notebooklm/scripts/setup_environment.py
Document functions with detailed explanations
#!/usr/bin/env python3 import subprocess import json import sys import os import tempfile def run_lighthouse(url: str) -> dict: try: with tempfile.NamedTemporaryFile(suffix='.json', delete=False) as f: output_path = f.name result = subprocess.run( [ ...
--- +++ @@ -1,4 +1,12 @@ #!/usr/bin/env python3 +""" +Skill: performance-profiling +Script: lighthouse_audit.py +Purpose: Run Lighthouse performance audit on a URL +Usage: python lighthouse_audit.py https://example.com +Output: JSON with performance scores +Note: Requires lighthouse CLI (npm install -g lighthouse) +"""...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/performance-profiling/scripts/lighthouse_audit.py
Document all public functions with docstrings
#!/usr/bin/env python3 import re from typing import Dict, List, Tuple, Set from collections import Counter, defaultdict import json class InterviewAnalyzer: def __init__(self): # Pain point indicators self.pain_indicators = [ 'frustrat', 'annoy', 'difficult', 'hard', 'confus', 'sl...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Customer Interview Analyzer +Extracts insights, patterns, and opportunities from user interviews +""" import re from typing import Dict, List, Tuple, Set @@ -6,6 +10,7 @@ import json class InterviewAnalyzer: + """Analyze customer interviews for insights and...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/product-manager-toolkit/scripts/customer_interview_analyzer.py
Add verbose docstrings with examples
#!/usr/bin/env python3 import os import sys import json import argparse from pathlib import Path from typing import Dict, List, Optional class DependencyAnalyzer: def __init__(self, target_path: str, verbose: bool = False): self.target_path = Path(target_path) self.verbose = verbose s...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Dependency Analyzer +Automated tool for senior architect tasks +""" import os import sys @@ -8,6 +12,7 @@ from typing import Dict, List, Optional class DependencyAnalyzer: + """Main class for dependency analyzer functionality""" def __init__(self...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/senior-architect/scripts/dependency_analyzer.py
Generate consistent documentation across files
#!/usr/bin/env python3 import sys import json import re from pathlib import Path from datetime import datetime # Fix Windows console encoding try: sys.stdout.reconfigure(encoding='utf-8', errors='replace') except: pass # Directories to skip SKIP_DIRS = { 'node_modules', '.next', 'dist', 'build', '.git', ...
--- +++ @@ -1,4 +1,22 @@ #!/usr/bin/env python3 +""" +SEO Checker - Search Engine Optimization Audit +Checks HTML/JSX/TSX pages for SEO best practices. + +PURPOSE: + - Verify meta tags, titles, descriptions + - Check Open Graph tags for social sharing + - Validate heading hierarchy + - Check image accessibi...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/seo-fundamentals/scripts/seo_checker.py
Document all public functions with docstrings
#!/usr/bin/env python3 import argparse import os import sys from pathlib import Path from datetime import datetime # Component templates TEMPLATES = { "client": '''\'use client\'; import {{ useState }} from 'react'; import {{ cn }} from '@/lib/utils'; interface {name}Props {{ className?: string; children?:...
--- +++ @@ -1,4 +1,15 @@ #!/usr/bin/env python3 +""" +React Component Generator + +Generates React/Next.js component files with TypeScript, Tailwind CSS, +and optional test files following best practices. + +Usage: + python component_generator.py Button --dir src/components/ui + python component_generator.py Prod...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/senior-frontend/scripts/component_generator.py
Generate docstrings with examples
#!/usr/bin/env python3 import os import sys import subprocess from pathlib import Path def get_venv_python(): skill_dir = Path(__file__).parent.parent venv_dir = skill_dir / ".venv" if os.name == 'nt': # Windows venv_python = venv_dir / "Scripts" / "python.exe" else: # Unix/Linux/Mac ...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Universal runner for NotebookLM skill scripts +Ensures all scripts run with the correct virtual environment +""" import os import sys @@ -7,6 +11,7 @@ def get_venv_python(): + """Get the virtual environment Python executable""" skill_dir = Path(__file...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/notebooklm/scripts/run.py
Add inline docstrings for readability
#!/usr/bin/env python3 import json import csv from typing import List, Dict, Tuple import argparse class RICECalculator: def __init__(self): self.impact_map = { 'massive': 3.0, 'high': 2.0, 'medium': 1.0, 'low': 0.5, 'minimal': 0.25 ...
--- +++ @@ -1,4 +1,9 @@ #!/usr/bin/env python3 +""" +RICE Prioritization Framework +Calculates RICE scores for feature prioritization +RICE = (Reach x Impact x Confidence) / Effort +""" import json import csv @@ -6,6 +11,7 @@ import argparse class RICECalculator: + """Calculate RICE scores for feature priorit...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/product-manager-toolkit/scripts/rice_prioritizer.py
Add docstrings for better understanding
#!/usr/bin/env python3 import argparse import json import os import sys from pathlib import Path from typing import Dict, List, Optional # Project templates TEMPLATES = { "nextjs": { "name": "Next.js 14+ App Router", "description": "Modern Next.js with App Router, Server Components, and TypeScrip...
--- +++ @@ -1,4 +1,15 @@ #!/usr/bin/env python3 +""" +Frontend Project Scaffolder + +Generates a complete Next.js/React project structure with TypeScript, +Tailwind CSS, and best practice configurations. + +Usage: + python frontend_scaffolder.py my-app --template nextjs + python frontend_scaffolder.py dashboard -...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/senior-frontend/scripts/frontend_scaffolder.py
Insert docstrings into my code
#!/usr/bin/env python3 import os import sys import json import argparse from pathlib import Path from typing import Dict, List, Optional class ProjectScaffolder: def __init__(self, target_path: str, verbose: bool = False): self.target_path = Path(target_path) self.verbose = verbose se...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Project Scaffolder +Automated tool for senior fullstack tasks +""" import os import sys @@ -8,6 +12,7 @@ from typing import Dict, List, Optional class ProjectScaffolder: + """Main class for project scaffolder functionality""" def __init__(self, t...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/senior-fullstack/scripts/project_scaffolder.py
Generate helpful docstrings for debugging
#!/usr/bin/env python3 import os import sys import json import argparse from pathlib import Path from typing import Dict, List, Optional class ProjectArchitect: def __init__(self, target_path: str, verbose: bool = False): self.target_path = Path(target_path) self.verbose = verbose sel...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Project Architect +Automated tool for senior architect tasks +""" import os import sys @@ -8,6 +12,7 @@ from typing import Dict, List, Optional class ProjectArchitect: + """Main class for project architect functionality""" def __init__(self, targ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/senior-architect/scripts/project_architect.py
Add detailed docstrings explaining each function
#!/usr/bin/env python3 import os import sys import json import argparse from pathlib import Path from typing import Dict, List, Optional class ArchitectureDiagramGenerator: def __init__(self, target_path: str, verbose: bool = False): self.target_path = Path(target_path) self.verbose = verbose...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Architecture Diagram Generator +Automated tool for senior architect tasks +""" import os import sys @@ -8,6 +12,7 @@ from typing import Dict, List, Optional class ArchitectureDiagramGenerator: + """Main class for architecture diagram generator functionality...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/senior-architect/scripts/architecture_diagram_generator.py
Add docstrings that explain logic
#!/usr/bin/env python3 import sys import zipfile from pathlib import Path from quick_validate import validate_skill def package_skill(skill_path, output_dir=None): skill_path = Path(skill_path).resolve() # Validate skill folder exists if not skill_path.exists(): print(f"❌ Error: Skill folder not...
--- +++ @@ -1,4 +1,14 @@ #!/usr/bin/env python3 +""" +Skill Packager - Creates a distributable .skill file of a skill folder + +Usage: + python utils/package_skill.py <path/to/skill-folder> [output-directory] + +Example: + python utils/package_skill.py skills/public/my-skill + python utils/package_skill.py ski...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-creator/scripts/package_skill.py
Create docstrings for reusable components
#!/usr/bin/env python3 import os import sys import json import subprocess from pathlib import Path from typing import Dict, Optional, List from dataclasses import dataclass @dataclass class EnvConfig: shopify_api_key: Optional[str] = None shopify_api_secret: Optional[str] = None shop_domain: Optional[str...
--- +++ @@ -1,4 +1,10 @@ #!/usr/bin/env python3 +""" +Shopify Project Initialization Script + +Interactive script to scaffold Shopify apps, extensions, or themes. +Supports environment variable loading from multiple locations. +""" import os import sys @@ -11,6 +17,7 @@ @dataclass class EnvConfig: + """Enviro...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/shopify-development/scripts/shopify_init.py
Add docstrings that explain logic
#!/usr/bin/env python3 import os import sys import json import re import zipfile from pathlib import Path # ── Configuration ────────────────────────────────────────────────────────── SKILLS_ROOT = Path(r"C:\Users\renat\skills") DEFAULT_OUTPUT = Path(os.path.expanduser("~")) / "Desktop" # Directories to exclude fro...
--- +++ @@ -1,4 +1,22 @@ #!/usr/bin/env python3 +""" +Skill Packager - Create ZIP files for Claude.ai web/desktop upload. + +Claude Code (CLI) and Claude.ai (web/desktop) have SEPARATE skill systems. +Skills in .claude/skills/ work in the terminal but do NOT appear in the +Claude.ai web Habilidades (Skills) settings pa...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-installer/scripts/package_skill.py
Write docstrings for data processing functions
#!/usr/bin/env python3 import argparse import json import os import re import sys from pathlib import Path from typing import Dict, List, Optional, Any, Tuple # Known heavy packages and their lighter alternatives HEAVY_PACKAGES = { "moment": { "size": "290KB", "alternative": "date-fns (12KB) or d...
--- +++ @@ -1,4 +1,15 @@ #!/usr/bin/env python3 +""" +Frontend Bundle Analyzer + +Analyzes package.json and project structure for bundle optimization opportunities, +heavy dependencies, and best practice recommendations. + +Usage: + python bundle_analyzer.py <project_dir> + python bundle_analyzer.py . --json + ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/senior-frontend/scripts/bundle_analyzer.py
Improve my code by adding docstrings
#!/usr/bin/env python3 from __future__ import annotations import os import sys import json import shutil import hashlib import subprocess import re from pathlib import Path from datetime import datetime # Add scripts directory to path for imports SCRIPT_DIR = Path(__file__).parent.resolve() sys.path.insert(0, str(SC...
--- +++ @@ -1,4 +1,25 @@ #!/usr/bin/env python3 +""" +Skill Installer v3.0 - Enterprise-grade installer with 11-step redundant workflow. + +Detects, validates, copies, registers, and verifies skills in the ecosystem +with maximum redundancy, safety, auto-repair, rollback, and rich diagnostics. + +Usage: + python ins...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-installer/scripts/install_skill.py
Add docstrings with type hints explained
#!/usr/bin/env python3 import os import sys import json import argparse from pathlib import Path from typing import Dict, List, Optional class CodeQualityAnalyzer: def __init__(self, target_path: str, verbose: bool = False): self.target_path = Path(target_path) self.verbose = verbose ...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Code Quality Analyzer +Automated tool for senior fullstack tasks +""" import os import sys @@ -8,6 +12,7 @@ from typing import Dict, List, Optional class CodeQualityAnalyzer: + """Main class for code quality analyzer functionality""" def __init__...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/senior-fullstack/scripts/code_quality_analyzer.py
Add verbose docstrings with examples
#!/usr/bin/env python3 import os import sys import json import argparse from pathlib import Path from typing import Dict, List, Optional class FullstackScaffolder: def __init__(self, target_path: str, verbose: bool = False): self.target_path = Path(target_path) self.verbose = verbose ...
--- +++ @@ -1,4 +1,8 @@ #!/usr/bin/env python3 +""" +Fullstack Scaffolder +Automated tool for senior fullstack tasks +""" import os import sys @@ -8,6 +12,7 @@ from typing import Dict, List, Optional class FullstackScaffolder: + """Main class for fullstack scaffolder functionality""" def __init__(s...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/senior-fullstack/scripts/fullstack_scaffolder.py
Document all endpoints with docstrings
#!/usr/bin/env python3 import os import time import json from typing import Dict, List, Optional, Any, Generator from dataclasses import dataclass from urllib.request import Request, urlopen from urllib.error import HTTPError # API Configuration API_VERSION = "2026-01" MAX_RETRIES = 3 RETRY_DELAY = 1.0 # seconds ...
--- +++ @@ -1,4 +1,16 @@ #!/usr/bin/env python3 +""" +Shopify GraphQL Utilities + +Helper functions for common Shopify GraphQL operations. +Provides query templates, pagination helpers, and rate limit handling. + +Usage: + from shopify_graphql import ShopifyGraphQL + + client = ShopifyGraphQL(shop_domain, access_...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/shopify-development/scripts/shopify_graphql.py
Generate missing documentation strings
#!/usr/bin/env python3 from __future__ import annotations import os import sys import json import re from pathlib import Path from datetime import datetime # ── Configuration ────────────────────────────────────────────────────────── SKILLS_ROOT = Path(r"C:\Users\renat\skills") USER_HOME = Path(os.path.expanduser("...
--- +++ @@ -1,4 +1,16 @@ #!/usr/bin/env python3 +""" +Skill Detector - Find uninstalled skills in common locations. + +Scans known directories where skills might have been created +(skill-creator workspaces, Desktop, Downloads, temp dirs) and +identifies candidates that are not yet installed in the ecosystem. + +Usage:...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-installer/scripts/detect_skills.py
Write documentation strings for class attributes
from __future__ import annotations import re from pathlib import Path from typing import Any, Dict, List, Tuple def analyze_cross_skill(all_skills: List[Dict[str, Any]]) -> Tuple[float, List[Dict[str, Any]]]: findings: List[Dict[str, Any]] = [] if len(all_skills) < 2: return 100.0, findings # -...
--- +++ @@ -1,3 +1,9 @@+""" +Analyzer cross-skill. + +Identifica padroes compartilhados entre skills que poderiam ser +extraidos em modulos comuns, reducindo duplicacao. +""" from __future__ import annotations import re @@ -6,6 +12,11 @@ def analyze_cross_skill(all_skills: List[Dict[str, Any]]) -> Tuple[float, ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-sentinel/scripts/analyzers/cross_skill.py
Document classes and their methods
from __future__ import annotations import ast from pathlib import Path from typing import Any, Dict, List, Tuple from config import ( MAX_CYCLOMATIC_COMPLEXITY, MAX_FILE_LINES, MAX_FUNCTION_LINES, PENALTY_BARE_EXCEPT, PENALTY_BROAD_EXCEPT, PENALTY_HIGH_COMPLEXITY, PENALTY_LONG_FILE, PE...
--- +++ @@ -1,3 +1,9 @@+""" +Analyzer de qualidade de codigo. + +Usa AST (stdlib) para medir complexidade ciclomatica, tamanho de funcoes, +cobertura de docstrings e padroes de error handling. +""" from __future__ import annotations import ast @@ -18,6 +24,7 @@ def _cyclomatic_complexity(node: ast.AST) -> int: ...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-sentinel/scripts/analyzers/code_quality.py
Document this code for team use
#!/usr/bin/env python3 import os import sys import json import re from pathlib import Path # ── Constants ────────────────────────────────────────────────────────────── FORBIDDEN_PATTERNS = [ ".env", "credentials.json", "credentials.yaml", "credentials.yml", "*.key", "*.pem", "*.p12", ...
--- +++ @@ -1,4 +1,15 @@ #!/usr/bin/env python3 +""" +Skill Validator - Deep validation of a skill directory. + +Performs 10 checks on a skill directory to ensure it's properly structured +and ready for installation. + +Usage: + python validate_skill.py "C:\\path\\to\\skill" + python validate_skill.py "C:\\path\\...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-installer/scripts/validate_skill.py
Add docstrings that explain logic
from __future__ import annotations import re from pathlib import Path from typing import Any, Dict, List, Tuple from config import SKILL_MD_RECOMMENDED_SECTIONS, SKILL_MD_REQUIRED_SECTIONS def _check_frontmatter(content: str) -> Dict[str, bool]: has = {} if content.startswith("---"): end = content.f...
--- +++ @@ -1,3 +1,9 @@+""" +Analyzer de documentacao. + +Verifica completude do SKILL.md, secoes obrigatorias, frontmatter, +triggers, exemplos e cobertura de reference files. +""" from __future__ import annotations import re @@ -8,6 +14,7 @@ def _check_frontmatter(content: str) -> Dict[str, bool]: + """Ver...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-sentinel/scripts/analyzers/documentation.py
Create docstrings for all classes and functions
from __future__ import annotations import re from pathlib import Path from typing import Any, Dict, List, Set, Tuple def _extract_imports(source: str) -> Set[str]: imports = set() for match in re.finditer(r'^(?:import|from)\s+(\w+)', source, re.MULTILINE): pkg = match.group(1) # Ignorar stdli...
--- +++ @@ -1,3 +1,9 @@+""" +Analyzer de dependencias. + +Verifica: requirements.txt existe, versoes pinadas, dependencias nao usadas, +dependencias importadas mas nao listadas. +""" from __future__ import annotations import re @@ -6,6 +12,7 @@ def _extract_imports(source: str) -> Set[str]: + """Extrai nomes...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-sentinel/scripts/analyzers/dependencies.py
Generate docstrings with examples
from __future__ import annotations import re from pathlib import Path from typing import Any, Dict, List, Tuple from config import GOVERNANCE_LEVELS def _detect_governance_level(skill_data: Dict[str, Any], skill_path: Path) -> int: has_action_log = False has_rate_limit = False has_confirmation = False ...
--- +++ @@ -1,3 +1,9 @@+""" +Analyzer de governanca. + +Avalia maturidade de governanca: logging, rate limits, confirmacoes, +audit trail, alertas. Baseado no padrao de referencia do instagram/scripts/governance.py. +""" from __future__ import annotations import re @@ -8,6 +14,7 @@ def _detect_governance_level(...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-sentinel/scripts/analyzers/governance_audit.py
Write docstrings describing each step
from __future__ import annotations import re from pathlib import Path from typing import Any, Dict, List, Tuple def analyze(skill_data: Dict[str, Any]) -> Tuple[float, List[Dict[str, Any]]]: score = 100.0 findings: List[Dict[str, Any]] = [] skill_name = skill_data["name"] skill_path = Path(skill_data...
--- +++ @@ -1,3 +1,9 @@+""" +Analyzer de performance. + +Verifica: chamadas API sequenciais, caching, N+1 queries, +connection reuse, retry/backoff, timeouts. +""" from __future__ import annotations import re @@ -6,6 +12,7 @@ def analyze(skill_data: Dict[str, Any]) -> Tuple[float, List[Dict[str, Any]]]: + ""...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-sentinel/scripts/analyzers/performance.py
Generate consistent documentation across files
from __future__ import annotations import re from pathlib import Path from typing import Any, Dict, List, Tuple from config import SECRET_EXCEPTIONS, SECRET_PATTERNS, SQL_INJECTION_PATTERNS def _check_secrets(source: str, rel_path: str, skill_name: str) -> List[Dict[str, Any]]: findings = [] for i, line in ...
--- +++ @@ -1,3 +1,9 @@+""" +Analyzer de seguranca. + +Verifica: secrets hardcoded, SQL injection, validacao de input, +HTTPS enforcement, tokens em logs, padroes de autenticacao. +""" from __future__ import annotations import re @@ -8,6 +14,7 @@ def _check_secrets(source: str, rel_path: str, skill_name: str) -...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-sentinel/scripts/analyzers/security.py
Add docstrings to existing functions
from __future__ import annotations from pathlib import Path from typing import Any, Dict, List, Tuple def analyze(skill_data: Dict[str, Any]) -> Tuple[float, List[Dict[str, Any]]]: score = 100.0 findings: List[Dict[str, Any]] = [] skill_name = skill_data["name"] skill_path = Path(skill_data["path"]) ...
--- +++ @@ -1,3 +1,9 @@+""" +Cost Optimizer: analisa padroes que impactam consumo de tokens e custos de API. + +Identifica SKILL.md muito grandes (impacto direto em tokens consumidos pelo Claude), +output verboso, oportunidades de cache, e padrao de chamadas API. +""" from __future__ import annotations from pathlib...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-sentinel/scripts/cost_optimizer.py
Add detailed docstrings explaining each function
from __future__ import annotations from datetime import datetime, timezone from pathlib import Path from typing import Any, Dict, List, Optional from config import DIMENSION_WEIGHTS, REPORTS_DIR, SEVERITY_ORDER, get_score_label def _severity_icon(severity: str) -> str: icons = { "critical": "[CRITICO]",...
--- +++ @@ -1,3 +1,9 @@+""" +Gerador de relatorios Markdown. + +Produz relatorio estruturado com resumo executivo, scores por skill, +findings por severidade, recomendacoes e plano de acao. +""" from __future__ import annotations from datetime import datetime, timezone @@ -8,6 +14,7 @@ def _severity_icon(severi...
https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/HEAD/skills/skill-sentinel/scripts/report_generator.py