formatting-slack-messages
하는 일
이 스킬은 카드, 버튼, 메뉴, 표 같은 Slack 메시지 레이아웃을 AI가 쓰고 점검하도록 돕습니다. 깔끔하고 읽기 쉬운 결과를 원하는 Slack 봇이나 앱 개발자를 위한 것입니다.
사용하는 경우
- ✓Slack 봇이 버튼이나 표가 있는 명확한 업데이트를 게시하게 하고 싶을 때.
- ✓기존 Slack 메시지를 버튼이나 링크를 잃지 않고 바꿔야 할 때.
- ✓Slack 모달이나 App Home 화면을 만들고 제대로 표시되는지 확인하고 싶을 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/.agents/skills/formatting-slack-messages/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 팀의 일일 매출 요약을 승인 버튼과 함께 보여 주는 Slack 메시지 형식을 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
Slack의 공식 레이아웃 규칙을 따라 알맞은 구성 요소를 고르고, 메시지 데이터를 쓴 뒤 사용하기 전에 오류가 있는지 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Formatting Slack messages
Build a layout that makes the result, its context, and the next action clear. This workflow adapts Slack's official Block Kit skill. It is self-contained; another installed skill is not required. See sources for upstream attribution.
1. Identify the surface and the change
Infer the surface from the request or existing payload:
- A message has
blocksorattachmentsand goes to a channel or direct message. - A modal has
type: modaland a view lifecycle. - An App Home view has
type: homeand is published for a user.
Inspect the existing payload before changing its layout.
For modifications, preserve unchanged content, source links, block_id, action_id, values, and menu choices.
Ask only when missing information changes the implementation. Do not repeat questions the user already answered.
For a clear small edit, read the relevant schema, make the edit, and validate it.
For a broad redesign, establish the content order before building the payload.
2. Read live schemas
Use the Block Kit index to find the current component pages.
Fetch each selected block, element, and composition object's schema and example.
Append .md to Slack documentation URLs when a Markdown response is easier to read.
Follow index links rather than guessing slugs; select menus share one reference page.
Reuse pages already read during the task.
Check required fields, allowed nesting, text types, limits, and supported surfaces separately. Do not treat this skill's comparison tables as permanent schemas.
Common errors:
markdownis a block type. It is not a text-object type.- Text objects use
plain_textormrkdwn. Atextelement is valid inside the appropriaterich_textstructure, not as a standalone block. - Valid JSON does not establish valid Block Kit.
- A schema-validation success does not establish surface compatibility or block-count compliance.
3. Match the structure to the content
| Content | Starting point |
|---|---|
| One change or important number | A short sentence with its comparison and units |
| Independent facts about one item | section.fields with short labels and values |
| Several comparable rows | table |
| Rows that need sorting, pagination, filtering, or row actions | data_table |
| A compact entity with a short body and a few buttons | card |
| Optional peer items for browsing | A carousel of cards |
| A related group of blocks | container |
| A real task or investigation step with progress updates | task_card or plan |
| A view-wide notice in a modal | alert |
| Existing generated Markdown | markdown, if supported and safe for the intended message |
| Formatted text assembled in code | rich_text |
Use block selection for limits, table comparisons, and template patterns. Keep required findings visible outside carousels, pagination, and collapsed groups. Do not add dividers between every block or put a one-line notice in a card without a reason. Use a consistent size and hierarchy across comparable messages. Keep at most one visually primary action per message or view. Leave equal navigation choices unstyled.
For modals, check the view wrapper, title, callback, close, and submit requirements. An input-containing modal needs a submit action. Do not compete with Submit using another primary button. For App Home, handle first use, empty results, and view refresh for the current user. Use task cards for work with progress updates. Their sta
자주 묻는 질문
이 스킬이 Slack 워크스페이스를 설정해 주나요?
아니요. 워크스페이스나 앱 설정용이 아닙니다. 메시지 자체의 레이아웃에 집중합니다.
Slack에서 메시지가 어떻게 보일지 확인할 수 있나요?
네. 레이아웃을 검증하고 Slack이 어떻게 표시할지도 확인할 수 있습니다.
이미 있는 메시지를 바꿀 수도 있나요?
네. 레이아웃을 고치면서 기존 내용, 링크, 버튼, 값은 그대로 유지합니다.
상세 정보
작성자의 원본 설명
Builds and validates Slack Block Kit messages, modals, and App Home layouts. Use for Slack formatting, block selection, Markdown, cards, tables, charts, metadata, buttons, and menus. Covers live schemas, payload validation, accessibility, and actual Slack rendering. Not for workspace setup.
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6814
- 라이선스
- —
- 업데이트
- 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 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.
비슷한 스킬
discord-user-post
394k에이전트가 승인한 메시지를 정확한 채널을 확인한 뒤 Discord 데스크톱 앱에서 내 계정으로 올리도록 돕습니다.
configure-channel
394k에이전트에게 Telegram 같은 채팅 앱을 OpenClaw에 연결하고, 봇 토큰을 안전하게 보관하며, 메시지가 오가는지 확인하는 방법을 가르칩니다.
discord
394k에이전트가 OpenClaw를 통해 Discord 메시지를 읽고, 보내고, 수정하고, 반응을 달며, 변경 전에 정확한 메시지를 확인하도록 돕습니다.