Skip to content
Agentmart
Submit a tool

python-fastapi-programmer:guard

Vertical Slice 패턴 강제 적용 및 Layer-based 코드 자동 리팩토링.

Skill by ureca-corp

IndexedMIT
Write a review

Chalk Labs

Need help deploying python-fastapi-programmer:guard?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ureca-corp-python-fastapi-programmer-guard

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Vertical Slice 패턴 강제 적용 및 Layer-based 코드 자동 리팩토링. 코드 작성 시 항상 적용되는 아키텍처 규칙. 1 파일 = 1 기능 (DTO + Service + Controller), 공유 로직은 언더스코어 prefix. 기존 layer-based 구조 발견 시 `/guard {domain}` 명령으로 변환.

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/python-fastapi-programmer-guard

What's inside

Skill name
python-fastapi-programmer:guard
Description
Vertical Slice 패턴 강제 적용 및 Layer-based 코드 자동 리팩토링. 코드 작성 시 항상 적용되는 아키텍처 규칙. 1 파일 = 1 기능 (DTO + Service + Controller), 공유 로직은 언더스코어 prefix. 기존 layer-based 구조 발견 시 `/guard {domain}` 명령으로 변환.
License
MIT
Instructions
379 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed
  • name: "python-fastapi-programmer:guard" does not match folder "guard"

Files (8)

  • SKILL.md
  • feature_template.py · assets/
  • init_template.py · assets/
  • shared_models_template.py · assets/
  • shared_repository_template.py · assets/
  • test_template.py · assets/
  • analysis-guide.md · references/
  • file-structure.md · references/

SKILL.md (first lines)

# Guard: Vertical Slice 아키텍처 지킴이

> 처음부터 엄격하게 - Vertical Slice 패턴 강제 적용 및 자동 리팩토링

---

## Part 1: Vertical Slice 패턴 규칙

**항상 적용되는 코드 작성 규칙**

### 핵심 원칙

**1 파일 = 1 기능 = 1 엔드포인트**

모든 기능은 완전히 독립된 단일 파일에 구현:
- DTO (Request/Response)
- Service (비즈니스 로직)
- Controller (엔드포인트)

### 모듈 구조

```
src/modules/{domain}/
├── __init__.py           # router 조합
├── {feature1}.py         # 기능 1 (완전한 Vertical Slice)
├── {feature2}.py         # 기능 2 (완전한 Vertical Slice)
├── _models.py            # 공유: SQLModel 정의
├── _repository.py        # 공유: DB 접근
└── _utils.py             # 공유: 유틸리티 (선택)
```

### 기능 파일 템플릿

각 기능 파일은 이 구조를 엄격히 따름:

```python
"""기능 설명 (한 줄)

METHOD /endpoint
"""

from fastapi import APIRouter
from pydantic import BaseModel

# ─────────────────────────────────────────────────
# Request/Response DTO
# ─────────────────────────────────────────────────

class SomeRequest(BaseModel):
    """요청 데이터"""
    ...

class SomeResponse(BaseModel):
    """응답 데이터"""
    ...

# ─────────────────────────────────────────────────
# Service (비즈니스 로직)
# ─────────────────────────────────────────────────

def do_something(...) -> SomeResponse:
    """비즈니스 로직 구현"""
    ...

# ─────────────────────────────────────────────────
# Controller (엔드포인트)
# ─────────────────────────────────────────────────

router = APIRouter()

@router.get("/endpoint")
def endpoint(...):
    """엔드포인트 핸들러"""
    ...
```

### __init__.py 템플릿

```python
"""{domain} 도메인"""

from fastapi import APIRouter

from .feature1 import router as feature1_router
from .feature2 import router as feature2_router

router = APIRouter(prefix="/{domain}", tags=["{domain}"])
router.include_router(feature1_router)
router.include_router(feature2_router)
```

### 공유 모듈 규칙

언더스코어 prefix로 공유 성격 표시:

| 파일 | 역할 | 예시 |
|------|------|------|
| `_models.py` | SQLModel 테이블 정의 | `class User(SQLModel, table=True): ...` |
| `_repository.py` | DB 접근 함수 | `async def get_user_by_id(...)` |
| `_utils.py` | 유틸리티 함수 | `def format_phone_number(...)` |

### 금지 사항

❌ **Controller/Service 분리 금지**
```python
# ❌ 잘못된 예
modules/users/
├── controllers/
│   └── user_controller.py
└── services/
    └── user_service.py
```

❌ **기능 간 직접 호출 금지**
```python
# ❌ users/create.py에서
from ..orders.create import create_order  # 순환 참조 위험
```

From ureca-corp/claude, MIT.

More from ureca-corp/claude

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Feb 21, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from ureca-corp

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get python-fastapi-programmer:guard running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying python-fastapi-programmer:guard?

CallGet help
Cite this page

python-fastapi-programmer:guard skill. Agent Mart. https://agentmart.dev/skills/ureca-corp-python-fastapi-programmer-guard (last updated 2026-10-24)