사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/victorzhuk/skills --skill z-open-graph시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
Open Graph previews
Identify the target sharing platforms before choosing image constraints or diagnosing preview behavior.
Find the metadata owner
- Inspect templates, framework metadata APIs, CMS plugins, and generated image routes.
- Use one authoritative emitter for each page's metadata. Remove conflicting output at its source.
- Derive titles, descriptions, and URLs from the same published content as the page.
- Inspect the HTTP response delivered to the target crawler. A hydrated browser DOM alone is insufficient evidence.
- In Next.js, inspect streaming metadata and bot detection before changing rendering behavior.
- Verify image and page responses through the deployed proxy or CDN when available.
Implement the protocol
Emit Open Graph metadata with property and content attributes in the document head.
| Property | Rule |
|---|---|
og:title | Require a truthful title for the shared object. |
og:type | Require a supported type. Verify any additional properties that type requires. |
og:image | Require a representative image URL. |
og:url | Require the object's canonical URL and stable identity. |
og:description | Add a concise description supported by the page content. |
og:site_name | Use the verified site name when appropriate. |
og:locale | Use language_TERRITORY syntax when supplied. |
og:locale:alternate | Repeat for alternate locales that actually exist. |
- Include
og:image:altdescribing the image. - Supply verified image dimensions and media type through the corresponding structured properties.
- Place each image's structured properties immediately after its
og:imagetag. - Repeat root properties for multiple values. Put the preferred value first, as the protocol gives it precedence during conflicts.
- Keep
og:urlconsistent with the intended canonical page. Exclude transient tracking parameters from object identity. - Use absolute public HTTPS URLs for page and media resources when preparing public previews.
- Escape dynamic values as HTML attributes. Never concatenate untrusted text directly into markup.
Verify platform behavior
- Read the target platform's current image dimensions, file-size limits, formats, and cropping rules.
- Distinguish link-sharing requirements from advertising specifications on the same documentation page.
- Treat image dimensions as platform requirements, not universal Open Graph rules.
- Verify redirects, response status, content type, and media bytes without an authenticated browser session.
- Inspect access controls, CDN rules, and crawler-specific responses when a platform cannot retrieve an image.
- For Slack, account for partial page retrieval through HTTP Range requests and separate media retrieval.
- Inspect cache state before declaring that new markup failed. Refresh previews through documented platform tools where available.
- Keep X Cards and other platform extensions separate. Verify current fallback behavior before relying on Open Graph substitution.
Do not
- Promise a preview merely because the tags are valid.
- Assume all consumers execute JavaScript, honor robots directives, or share the same cache lifetime.
- Add duplicate generators to compensate for stale previews.
- Replace Schema.org entity markup, semantic HTML, or canonical link metadata with Open Graph tags.
- Publish invented authors, dates, images, or site identities.
Verify
- Inspect representative page responses with the target crawler's user agent.
- Verify required tags, escaping, canonical URLs, locale values, and image-property grouping.
- Retrieve each selected image. Verify its actual format, dimensions, size, and accessibility against the platform's rules.
- Exercise missing optional content, special characters, alternate locales, and multiple images when supported by the site.
- Inspect an actual platform preview or its diagnostic tool after deployment when authorized.
- Report protocol validation, retrieval, and platform rendering separately. Name unavailable external verification steps.
References
- Open Graph protocol
- Next.js metadata and crawler handling
- LinkedIn sharing requirements
- LinkedIn Post Inspector
- Slack retrieval and caching
Use [[z-schema-org]] for entity markup and search rich results, and [[z-react-core]] for React rendering conventions.

