AgentSkillsCN

sdamgia-api-maintainer

维护并持续演进用于sdamgia.ru的Async-SdamGia-Api Python库。当Codex需调整SdamGIA客户端行为、HTML解析/渲染/OCR逻辑、公共API合约、包/测试配置,或该库的仓库文档时使用。

SKILL.md
--- frontmatter
name: sdamgia-api-maintainer
description: Maintain and evolve the Async-SdamGia-Api Python library for sdamgia.ru. Use when Codex needs to change SdamGIA client behavior, HTML parsing/rendering/OCR logic, public API contracts, package/test configuration, or repository docs for this library.

SdamGIA API Maintainer

Maintain this repository with a domain-first, OOP style and explicit behavior changes.

Workflow

  1. Read baseline context.
  • Read AGENTS.md, README.md, pyproject.toml.
  • Read touched modules under sdamgia/ and related tests under tests/.
  • Check git status before editing to avoid clobbering user work.
  1. Load only required references.
  • Load references/coding-rules.md for coding, docstring, and testing constraints.
  • Load references/api-surface.md for public contracts and payload shapes.
  • Load only the reference relevant to the active task.
  1. Keep module ownership clear.
  • Change transport/retry/request behavior in sdamgia/client.py.
  • Change HTML extraction and payload shaping in sdamgia/parsers.py.
  • Change image-render backends in sdamgia/rendering.py.
  • Change OCR integration in sdamgia/images.py.
  • Re-export public API from sdamgia/__init__.py only.
  1. Implement with repository rules.
  • Use explicit domain names from the codebase.
  • Keep logic straightforward; avoid speculative helper layers.
  • Keep public APIs fully type hinted.
  • Use Google-style docstrings with Summary, Args:, Returns: only.
  • Handle failures explicitly; avoid silent broad exception swallowing.
  1. Validate in layers.
  • Run python3 -m compileall -q sdamgia first.
  • Run targeted tests for touched behavior.
  • Run pytest -q for deterministic coverage.
  • Run pytest -m live -q only when integration behavior changed.
  1. Sync external contracts.
  • Update README.md when user-facing behavior changes.
  • Update references/api-surface.md when signatures/payloads change.
  • Call out breaking changes explicitly in the final handoff.