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(" ")