techaiprojectpython
Create or modify Python application components using DDD boundaries, early returns, and deterministic pytest coverage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create or modify Python application components using DDD boundaries, early returns, and deterministic pytest coverage.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Produce concise, complete pull request descriptions aligned with the repository PR template.
Repository-specific topology, naming patterns, and validation guidance for working in the oneidentity repository.
Create or modify secure GitHub Actions workflows for CI/CD pipelines.
Create or modify governance policies for AWS SCP, Azure Policy, and GCP Org Policy.
Create or modify reusable GitHub composite actions with secure Bash and deterministic behavior.
Safely update structured JSON/YAML registry files (users, groups, teams, repositories, or policy maps).
| name | TechAIProjectPython |
| description | Create or modify Python application components using DDD boundaries, early returns, and deterministic pytest coverage. |
pytest.given_when_then style."""Purpose: Resolve account status based on domain rules."""
from dataclasses import dataclass
@dataclass(frozen=True)
class AccountId:
value: str
def __post_init__(self) -> None:
if not self.value.strip():
raise ValueError("account id is required")
def resolve_account_state(account_id: AccountId, is_locked: bool) -> str:
if is_locked:
return "locked"
return f"active:{account_id.value}"
import pytest
def test_given_blank_account_id_when_creating_then_raises_value_error() -> None:
with pytest.raises(ValueError):
AccountId(" ")