installing-posthog-from-chat
하는 일
이 스킬은 터미널 없이 PostHog의 클라우드 설정 에이전트를 써서 GitHub 저장소에 PostHog를 설정하게 합니다. 채팅 도구를 쓰며 코드를 직접 편집할 수 없는 사람을 위한 스킬입니다.
사용하는 경우
- ✓ChatGPT나 웹의 Claude처럼 코드를 직접 편집할 수 없지만 PostHog를 설치하고 싶을 때.
- ✓채팅에서 GitHub 저장소에 PostHog를 설정하고 싶을 때.
- ✓설정 변경을 검토할 수 있는 풀 리퀘스트로 받고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/products/wizard/skills/installing-posthog-from-chat/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 GitHub 앱에 PostHog를 설치하고, 검토할 수 있도록 변경 사항을 담은 풀 리퀘스트를 열어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 GitHub 계정을 연결하고, 저장소를 고르게 한 다음 PostHog의 설정 에이전트를 시작합니다. 그 에이전트가 코드를 바꾸고 풀 리퀘스트를 열며, 메인 브랜치에 반영되기 전에 사용자가 검토합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Installing PostHog from chat
Wizard is PostHog's setup agent. With wizard-install-start it runs in a cloud workspace on a GitHub repository, makes the code changes, and opens a pull request. The user reviews and merges that pull request. Nothing changes on their default branch until they do.
Work through the steps in order. Skip a step when its outcome is already known from the conversation.
1. Connect GitHub
The run uses the project's GitHub connection, so the project needs one.
- Call
integrations-listand look for an integration with kindgithub. - When there is none, give the user this link, built from the base URL and project ID in your context:
<base URL>/integrations/connect/github/?project_id=<project id>&connect_from=mcp. They install the PostHog GitHub App and choose which repositories it can access. Wait until they say they are done, then callintegrations-listagain.
2. Pick the repository
Call integrations-github-repos-retrieve with the GitHub integration's ID. Use search when the user named the repository, and page with offset when has_more is true.
- One clear match: confirm it with the user in one line.
- Several matches: list them and ask which one.
- No match: the GitHub App cannot access it. Ask the user to add the repository to the app's repository access in GitHub, then search again.
Pass the repository as full_name (owner/name).
The setup agent works at the repository root. If the user describes a monorepo where the app lives in a subdirectory, tell them the run may not find it, and offer to try anyway.
3. Start the run
Call wizard-install-start with:
repository: theowner/namefrom step 2.branch: only when the user wants a branch other than the default one. The pull request targets that branch.idempotency_key: a fresh unique value for this request. Reuse the same value if you retry after a network error, so the retry returns the same run.
Errors the user can act on:
| Error code | What to do |
|---|---|
github_not_connected |
Go back to step 1. |
repository_not_accessible |
Ask the user to add the repository to the PostHog GitHub App, then retry with a new idempotency_key. |
run_already_active |
The user already has a run in progress in this project. Ask them to wait for it, or check it in PostHog. |
| HTTP 429 | The user reached the hourly or daily limit for setup runs. Relay the message. Don't retry right away. |
Tell the user the run started and share the url from the response, where they can follow it in PostHog.
4. Poll the run
Call wizard-install-status with the run_id about every 30 seconds while status is created or running. A run usually takes several minutes.
- Relay
next_stepto the user when it changes. It is written to be passed on as is. - Mention progress from
taskswhen it helps, but don't send an update on every poll. - Stop polling when
statusiscompleted,failed, orcancelled.
When the client cannot wait that long in one turn, tell the user the run is in progress and check again when they come back.
5. Share the result
completedwithpull_request_url: share the link. Say the user should review the changes and merge the pull request to finish setting up PostHog.completedwithoutpull_request_url: the setup agent changed nothing, often because PostHog is already set up. Relaynext_step.failed: relaynext_stepanderror_message. Offer to start a new run whennext_stepsuggests one.
자주 묻는 질문
메인 브랜치가 바로 바뀌나요?
아니요. 변경 사항은 사용자가 검토하고 병합할 때까지 풀 리퀘스트에 머뭅니다.
먼저 무엇을 해야 하나요?
PostHog GitHub 앱을 설치하고, 앱이 접근할 저장소를 고르세요.
저장소가 보이지 않으면 어떻게 하나요?
GitHub 앱에 그 저장소 접근 권한이 없을 가능성이 높으므로, 앱의 저장소 접근에 추가한 뒤 다시 검색하세요.
상세 정보
작성자의 원본 설명
Set up PostHog in a user's GitHub repository from a chat, without a terminal. Wizard, PostHog's setup agent, runs in the cloud, adds the SDK and first events, and opens a pull request. Use only when you can't read or edit the user's code, which is common in web chat apps such as ChatGPT on the web or Claude on the web. Typical requests: install, add, or set up PostHog in their app or repository, or open a pull request that adds PostHog. When you're working in the user's repository, use installing-posthog-in-a-codebase instead. Covers connecting GitHub, picking the repository, starting the run,
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6978
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.