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 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
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(" ")