py-async-patterns
신뢰할 수 있는 Python Async 서비스 구축
Async Python 코드는 세션을 누수하거나, 응답을 차단하거나, 부하 상황에서 deadlock을 일으킬 수 있습니다. 이 스킬은 더 안전한 async 데이터베이스 작업을 위한 FastAPI 및 SQLAlchemy 패턴을 제공합니다.
내 에이전트로 설치
이 요청을 에이전트에 복사하세요. 공식 Skill 페이지와 매니페스트가 포함되어 있습니다.
Review the Skillstore skill "py-async-patterns" from https://skillstore.io/skills/cjharmath-py-async-patterns.md and its manifest at https://skillstore.io/api/skills/cjharmath-py-async-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.에이전트는 계속해서 계획을 표시하고 보안 정책에서 요구하는 확인을 요청해야 합니다.
에이전트가 읽기 쉬운 리소스
AI 에이전트, 크롤러, 스크립트가 전체 페이지 대신 정리된 컨텍스트만 필요할 때 이 링크를 사용하세요.
테스트해 보기
"py-async-patterns" 사용 중입니다. 레코드를 생성하고 즉시 반환하는 async FastAPI 핸들러를 검토하세요.
예상 결과:
검토에서는 세션 범위를 어디에 두어야 하는지, commit이 어디에 있어야 하는지, 생성된 필드를 반환하기 전에 refresh가 필요한 이유를 설명합니다.
"py-async-patterns" 사용 중입니다. 여러 데이터베이스 읽기가 있는 대시보드 엔드포인트를 평가하세요.
예상 결과:
답변은 독립적인 읽기와 의존적인 읽기를 구분한 다음, 결과를 공유하지 않는 쿼리에만 안전한 동시성을 권장합니다.
"py-async-patterns" 사용 중입니다. 부하 상황의 async API에서 발생한 timeout을 조사하세요.
예상 결과:
응답은 먼저 점검할 가능성이 높은 세션 누수, 커넥션 풀 압박, 누락된 종료 지점을 나열합니다.
보안 감사
안전Static analysis flagged Markdown backticks, a placeholder DATABASE_URL, and database model examples as security issues. Manual review found these are documentation-only patterns with no prompt injection, exfiltration intent, or hidden execution behavior.
위험 요인
⚙️ 외부 명령어 (26)
🔑 환경 변수 (1)
이 보고서 공유 및 인용
버전이 지정된 평가 보고서, 중립 배지, 임베드 카드 및 인용을 공유하세요. Skillstore는 근거를 보고하지만 이 Skill의 안전 여부를 판단하지 않습니다.
보고서 링크 복사
https://skillstore.io/skills/cjharmath-py-async-patterns/audits/7?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 배지
[](https://skillstore.io/skills/cjharmath-py-async-patterns?utm_source=security_passport_badge)HTML 배지
<a href="https://skillstore.io/skills/cjharmath-py-async-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cjharmath-py-async-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a>임베드 카드
<iframe src="https://skillstore.io/embed/skills/cjharmath-py-async-patterns.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>학술 인용 (APA · BibTeX · CFF)
APA 인용
CJHarmath. (2026). py-async-patterns security audit report (audit version 7) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cjharmath-py-async-patterns/audits/7BibTeX 인용
@techreport{cjharmath-cjharmath-py-async-patterns-2026,
author = {CJHarmath},
title = {py-async-patterns security audit report (audit version 7)},
institution = {Skillstore},
year = {2026},
number = {7},
url = {https://skillstore.io/skills/cjharmath-py-async-patterns/audits/7},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "py-async-patterns security audit report (audit version 7)"
version: "unspecified"
type: report
authors:
- name: "CJHarmath"
date-released: "2026-07-06"
url: "https://skillstore.io/skills/cjharmath-py-async-patterns/audits/7"
identifiers:
- type: other
value: "skillstore:cjharmath-py-async-patterns:audit:7"
description: "Skillstore immutable audit report identifier"
Skillstore 점수
이 점수의 이유 증거 신뢰도: 높음만들 수 있는 것
FastAPI 데이터베이스 엔드포인트 개선
async API 핸들러를 만들 때 요청 범위 세션, 안전한 commit, refresh 패턴을 사용합니다.
Async 쿼리 성능 검토
어떤 쿼리를 동시에 실행할 수 있고, 어떤 쿼리는 데이터 의존성 때문에 순차적으로 유지해야 하는지 결정합니다.
Async 프로덕션 문제 조사
집중된 async 패턴으로 세션 누수, 커넥션 timeout, 오래된 데이터, deadlock, 느린 엔드포인트를 추적합니다.
이 프롬프트를 사용해 보세요
py-async-patterns를 사용하여 이 FastAPI 엔드포인트가 AsyncSession 사용 범위를 어떻게 설정해야 하는지 설명하세요. 세션 누수 위험을 식별하세요.
py-async-patterns를 사용하여 이 async 데이터베이스 쓰기 흐름을 검토하세요. commit, rollback, refresh, 트랜잭션 경계 변경을 권장하세요.
py-async-patterns를 사용하여 이 async 쿼리들을 독립적 또는 의존적으로 분류하세요. gather가 안전한 위치와 await 순서가 중요한 위치를 제안하세요.
py-async-patterns를 사용하여 이 서비스의 세션 누수, 풀 고갈, 오래된 데이터, deadlock, 누락된 사후 조건 검증을 감사하세요.
모범 사례
- 각 AsyncSession의 범위를 하나의 요청 또는 작업 단위로 제한하세요.
- 여러 쓰기가 함께 성공해야 하는 경우 명시적 트랜잭션을 사용하세요.
- 사용자에게 표시되는 결과를 반환하기 전에 async 사후 조건을 검증하세요.
피하기
- 요청 간에 전역 공유 AsyncSession을 사용하는 것.
- 필요한 데이터가 존재하기 전에 의존적인 데이터베이스 쿼리를 동시에 실행하는 것.
- 오류 처리를 고려하지 않고 fire-and-forget 작업을 시작하는 것.