Communitygithub.com

cdcoonce/Portfolio_Website

포트폴리오 채팅 에이전트 Lambda 함수를 AWS에 배포합니다. 사용자가 배포, 재배포, Lambda 업데이트, 채팅 에이전트 업데이트를 요청하거나 컨텍스트 파일이나 lambda_function.py를 수정한 후에 사용하세요. 지식 베이스를 재구축하고, 종속성을 패키징하며, AWS Lambda에 배포합니다.

Portfolio_Website란 무엇인가요?

이 스킬은 포트폴리오 웹사이트의 채팅 에이전트 Lambda 함수를 AWS에 배포하는 워크플로우를 자동화합니다. WebContent/context/ 디렉토리나 lambda/lambda_function.py 파일이 업데이트된 후, 또는 사용자가 'deploy', 'redeploy', 'push to Lambda' 같은 명령어를 입력할 때 실행됩니다. 스킬은 지식 베이스 재구축, 이전 빌드 정리, Linux/x86_64 타겟을 위한 Python 종속성 설치, 핸들러와 지식 베이스 파일을 압축하여 deployment.zip 생성, AWS CLI를 통한 Lambda 함수 코드 업데이트, 마지막으로 배포 상태 확인까지 총 5단계로 구성됩니다. 지원되는 플랫폼은 Claude Code, Cursor, Codex 등 AWS CLI와 Python 환경을 사용할 수 있는 모든 AI 에이전트 도구이며, 함수 이름 'portfolio-chat-agent', 런타임 python3.12, 리전 us-west-1, 메모리 256MB, 타임아웃 30초, 아키텍처 x86_64로 구성된 Lambda 함수를 대상으로 합니다. 이 스킬의 핵심 규칙은 Anthropic API 키를 절대 출력하거나 로깅하지 않고, 항상 지식 베이스를 먼저 재구축하며, 리포지토리 루트에서 명령어를 실행하고, 사용자가 명시적으로 요청하지 않는 한 Lambda 환경 변수를 수정하지 않는 것입니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cdcoonce/Portfolio_Website/tree/HEAD/.claude/skills/deploy

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

배포 스킬

포트폴리오 채팅 에이전트 Lambda 함수를 재구축하여 AWS에 배포합니다.

사용 시점

  • WebContent/context/ 디렉토리의 파일을 업데이트한 후
  • lambda/lambda_function.py를 수정한 후
  • 사용자가 "deploy", "redeploy", "push to Lambda", "update the chat agent"라고 말할 때

워크플로우

  1. 지식 베이스 재구축 — 컨텍스트 파일에서 lambda/knowledge_base.json을 다시 생성합니다.
  2. 이전 빌드 정리 — 기존 package/ 디렉토리와 deployment.zip을 제거합니다.
  3. 종속성 설치 — Linux/x86_64 타겟용 Python 패키지를 설치합니다.
  4. 패키징 — 핸들러와 지식 베이스를 패키지에 복사하고 zip 파일을 생성합니다.
  5. 배포 — AWS CLI를 통해 Lambda 함수 코드를 업데이트합니다.
  6. 확인 — 배포 성공 여부를 확인합니다.

명령어

1단계: 지식 베이스 재구축

python scripts/build_knowledge_base.py

출력에서 예상 프로젝트 수와 오류가 없는지 확인합니다.

2단계: 정리 및 종속성 설치

cd lambda
rm -rf package/ deployment.zip
pip install -r requirements.txt -t package/ \
  --platform manylinux2014_x86_64 \
  --only-binary=:all: \
  --implementation cp \
  --python-version 3.12

--platform과 --only-binary 플래그는 컴파일된 확장이 macOS가 아닌 Amazon Linux용으로 빌드되도록 보장합니다.

3단계: 배포 Zip 패키징

cp lambda_function.py knowledge_base.json package/
cd package && zip -r ../deployment.zip . && cd ..

4단계: Lambda에 배포

aws lambda update-function-code \
  --function-name portfolio-chat-agent \
  --zip-file fileb://lambda/deployment.zip

리포지토리 루트에서 실행하여 fileb:// 경로가 올바르게 해석되도록 합니다.

5단계: 확인

응답에 다음 항목이 포함되어 있는지 확인합니다.

  • "LastUpdateStatus": "InProgress" 또는 "Successful"
  • "FunctionName": "portfolio-chat-agent"
  • 업데이트된 CodeSha256 값

구성

설정값
함수 이름portfolio-chat-agent
런타임python3.12
리전us-west-1
메모리256 MB
타임아웃30초
아키텍처x86_64

규칙

  • Anthropic API 키를 절대 출력하거나 로깅하지 마십시오. AWS CLI 응답에 환경 변수가 포함되어 있어도 사용자에게 표시하지 마십시오.
  • 항상 지식 베이스를 먼저 재구축하십시오. lambda_function.py만 변경된 경우에도 재구축하여 지식 베이스가 최신 상태임을 보장합니다.
  • 리포지토리 루트에서 실행하십시오. 배포 명령어의 fileb:// 경로는 작업 디렉토리를 기준으로 합니다.
  • 사용자가 명시적으로 API 키 업데이트를 요청하지 않는 한 Lambda 환경 변수를 수정하지 마십시오.

문제 해결

문제해결 방법
No module named 'pydantic_core._pydantic_core'pip install 시 --platform 플래그 누락 — 종속성이 Linux 대신 macOS용으로 빌드됨
Unable to load paramfile fileb://잘못된 작업 디렉토리 — 배포 명령어를 리포지토리 루트에서 실행
ResourceNotFoundExceptionLambda 함수가 아직 존재하지 않음 — aws lambda create-function 사용 (docs/plans/chat-agent/aws-setup.md 7단계 참조)
CodeStorageExceededException배포 zip 파일이 너무 큼 — requirements.txt에서 불필요한 종속성 확인

참고 문서

  • aws-setup.md — 전체 AWS 계정 설정, IAM 역할, 초기 Lambda 생성 및 Function URL 구성

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cdcoonce/Portfolio_Website

Git commit workflow with enforced conventional commit style. Use when Claude needs to stage and commit changes, craft commit messages, or the user asks to commit, make a commit, or save their work. Ensures consistent commit message format, proper scoping, and atomic commits across the project.

cdcoonce/Portfolio_Website

AI-powered code quality analysis for Python, Markdown, and Mermaid diagrams. Use this skill when: (1) reviewing code for quality issues, (2) checking Python files for PEP8 violations, unused code, missing type hints, docstring problems, complexity issues, or potential runtime errors, (3) validating Markdown documentation for broken links, heading structure, or formatting issues, (4) validating Mermaid diagram syntax, (5) the user asks for a "code review" or "quality check", (6) analyzing code snippets pasted in conversation, or (7) suggesting and applying fixes for code quality issues.

cdcoonce/Portfolio_Website

Generate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice".

cdcoonce/Portfolio_Website

Orchestrate the full GitHub-issues-driven development lifecycle. 7-phase pipeline from brainstorm through PR with state tracking and cross-conversation resume. Use when user says "dev cycle", "development workflow", "full development pipeline", or invokes /dev-cycle.

cdcoonce/Portfolio_Website

Production Python coding standards with automatic version detection (3.10-3.13). Use when writing, reviewing, or refactoring Python to ensure adherence to modern type syntax, LBYL exception handling, pathlib operations, ABC-based interfaces, and production-tested patterns. Not Dagster-specific - applies to any Python project.

cdcoonce/Portfolio_Website

Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.

cdcoonce/Portfolio_Website

GitHub CLI (gh) integration for managing issues, pull requests, branches,

cdcoonce/Portfolio_Website

Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".

cdcoonce/Portfolio_Website

Explore a codebase to find opportunities for architectural improvement, focusing on making the codebase more testable by deepening shallow modules. Use when user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more AI-navigable.

cdcoonce/Portfolio_Website

CEO/founder-mode plan review. Rethink the problem, find the 10-star product, challenge premises, expand scope when it creates a better product. Three modes: SCOPE EXPANSION (dream big), HOLD SCOPE (maximum rigor), SCOPE REDUCTION (strip to essentials). Use when the user asks for a plan review, CEO review, mega review, or wants a plan challenged/stress-tested before implementation.

cdcoonce/Portfolio_Website

Break a PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices. Use when user wants to convert a PRD to issues, create implementation tickets, or break down a PRD into work items.

cdcoonce/Portfolio_Website

Turn a PRD into a multi-phase implementation plan using tracer-bullet vertical slices, saved as a local Markdown file in docs/plans/. Use when user wants to break down a PRD, create an implementation plan, plan phases from a PRD, or mentions "tracer bullets".

cdcoonce/Portfolio_Website

Generate or update the `.claude/docs/project.md` file that gives Claude project-specific context. Use this skill when the user asks to create, update, regenerate, or refresh project context, or says things like "update project.md", "generate project context", "this repo needs a project.md", or "Claude doesn't know about this project". Also trigger when onboarding Claude to a new repository for the first time.

cdcoonce/Portfolio_Website

Generate comprehensive, high-quality README.md files for code repositories. Use this skill whenever the user asks to create, write, generate, update, or improve a README for any project or repository. Also trigger when the user says things like "document this project", "write docs for this repo", "this repo needs a README", "help me onboard developers to this codebase", or asks for project documentation in markdown. Even if the user just says "README" or "readme" in the context of a codebase, use this skill.

cdcoonce/Portfolio_Website

Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

cdcoonce/Portfolio_Website

Set up pre-commit hooks for the current repo. Use when user wants to add pre-commit hooks, configure commit-time linting, formatting, type checking, or testing. Triggers on "pre-commit", "git hooks", "linting hooks", or /setup-pre-commit.

cdcoonce/Portfolio_Website

Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.

cdcoonce/Portfolio_Website

Triage a bug or issue by exploring the codebase to find root cause, then create a GitHub issue with a TDD-based fix plan. Use when user reports a bug, wants to file an issue, mentions "triage", or wants to investigate and plan a fix for a problem.

cdcoonce/Portfolio_Website

Rewrites the prose sections of wiki pages in-place. Reads source files to understand current context, then updates only the content inside <!-- claude:prose --> ... <!-- claude:prose:end --> markers. Never touches <!-- generated:start --> ... <!-- generated:end --> blocks. Supports targeting a single page with /update-wiki {PageName}.

cdcoonce/Portfolio_Website

Create a PRD through user interview, codebase exploration, and module design, then submit as a GitHub issue. Use when user wants to write a PRD, create a product requirements document, or plan a new feature.

관련 스킬