gemini-superpowers-antigravity: Skill for Claude Code

.agent/skills/superpowers-python-automation/SKILL.md

superpowers-python-automation is a skill for Claude Code, Codex from anthonylee991/gemini-superpowers-antigravity. It costs 50 tokens per session (666 once invoked), scanned A, original, MIT.

A Python guide for building reliable programs that call REST APIs, which are web services accessed through standard requests. It covers HTTP clients, configuration, logging, retries, pagination, typing, and tests.

In plain words
What is it for?
Use it to build API clients, data synchronizers, webhook handlers, ETL jobs, command-line tools, or small services in Python.
Why use it?
It helps avoid common integration failures such as missing timeouts, inconsistent retries, exposed secrets, and untested request handling.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is anthonylee991/gemini-superpowers-antigravity's own configuration. It tells Claude Code and Codex how to work on gemini-superpowers-antigravity 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 gemini-superpowers-antigravity configures →

Reuse

Borrowing it

Nothing to install: this file belongs to anthonylee991/gemini-superpowers-antigravity. 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/anthonylee991/gemini-superpowers-antigravity/main/.agent/skills/superpowers-python-automation/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/anthonylee991/gemini-superpowers-antigravity

Made for: Claude Code, Codex.

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 superpowers-python-automation

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthonylee991/gemini-superpowers-antigravity/superpowers-python-automation.svg)](https://agentmods.dev/skills/anthonylee991/gemini-superpowers-antigravity/superpowers-python-automation)
Your own site
<a href="https://agentmods.dev/skills/anthonylee991/gemini-superpowers-antigravity/superpowers-python-automation"><img src="https://agentmods.dev/badge/skills/anthonylee991/gemini-superpowers-antigravity/superpowers-python-automation.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 666 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.
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.00050 $0.00666
Opus 5 $0.00025 $0.00333
Sonnet 5 $0.00010 $0.00133
Haiku 4.5 $0.00005 $0.00067

Measured 8d ago against content hash 727af82cb399, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

superpowers-python-automation 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 8d 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.

.agent/skills/superpowers-python-automation/SKILL.md · 98 lines

How it starts

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

Python Automation Skill

This skill provides concrete Python patterns to implement robust REST API automations.

When to use this skill

  • Python scripts that call one or more REST APIs
  • ETL jobs, sync tools, webhook handlers
  • CLI tools or small services that integrate external systems

Preferred stack (defaults)

  • HTTP client: httpx (preferred) or requests
  • Config: env vars + .env (optional) with pydantic-settings if appropriate
  • Logging: stdlib logging with structured-ish fields
  • Testing: pytest (+ respx for httpx mocking when useful)

If the project already uses different tools, follow project conventions.


Reference architecture (small but scalable)

  • client.py: API client wrapper (auth headers, retries, pagination helpers)
  • models.py: typed payload models (dataclasses or pydantic)
  • sync.py: orchestration logic (fetch -> transform -> upsert)
  • main.py: CLI entrypoint
  • tests/: unit tests for transform + client behavior

HTTP rules (mandatory)

  • Always set timeouts (connect + read)
  • Centralize request sending in one function so retries/logging are consistent
  • Never log secrets (Authorization headers, tokens)

Retry policy guidance

Retry on:

  • network errors/timeouts
  • 429 (respect Retry-After when present)
  • 500–599 Optional: 408, and 409 only if operation is safe and semantics known

Do NOT retry on:

  • most 400–499 (unless explicitly safe)

Timeouts

  • Set explicit timeouts; do not rely on defaults.
  • Use smaller connect timeout; moderate read timeout.

Pagination patterns

Support at least one helper that can handle:

  • next URL in response
  • cursor token in response
  • page/limit parameters

Add a hard stop:

  • max pages OR max items OR max elapsed time

Idempotency patterns (Python)

Choose and document:

  • Use an Idempotency-Key header when supported
  • Upsert using a stable external_id
  • Persist a lightweight state store:
    • simplest: SQLite file (recommended for OSS)
    • alternative: JSONL log + compaction

Read the full file on GitHub · 98 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. 8d ago First seen · 98 lines · 0 tokens per session scan A 727af82cb399

Subscribe to this mod's changes

superpowers-python-automation is a skill published in the GitHub repository anthonylee991/gemini-superpowers-antigravity (828 stars, last pushed 7mo ago), licensed MIT. It adds 50 tokens to every session and 666 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.