一键导入
s1-api-conventions
Python API coding conventions for this BookStore project. Use when writing or reviewing Python code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Python API coding conventions for this BookStore project. Use when writing or reviewing Python code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit codebase for consistency issues, anti-patterns, and missing test coverage
Book publishing domain knowledge including ISBN, BISAC codes, and industry pricing standards.
Generate pytest test suite for a given module
Read-only mode for exploring code safely. Restricts Claude to read, search, and glob operations only.
Run a security-focused code review identifying vulnerabilities
Explain code using visual ASCII diagrams and analogies
| name | s1-api-conventions |
| description | Python API coding conventions for this BookStore project. Use when writing or reviewing Python code. |
Follow these conventions when writing or reviewing Python code in this project.
@dataclass(slots=True) for all modelsint in cents (e.g., price_cents: int)field(default_factory=list) for mutable defaultsstr | None, not Optional[str])dict (not dataclass instances)"status" key in mutation responses ("created", "updated", "deleted")snake_case with a verb prefix: create_book, get_author, list_books_to_dict, _validate_inputEvery public function must have a docstring with:
"""One-line summary.
Args:
param_name: Description.
Returns:
Description of return value.
Raises:
ValueError: When and why.
"""
ValueError for invalid inputs (bad data from the caller)KeyError for missing resources (not found)from models.book import Book