MCP HubMCP Hub
스킬 목록으로 돌아가기

md2wechat

geekjourneyx
업데이트됨 5 days ago
2,795
325
2,795
GitHub에서 보기
메타ai

정보

md2wechat은 WeChat 공식 계정용 서식을 위해 Markdown을 HTML로 변환하며, 글 미리보기, 초안 업로드 및 이미지 생성을 처리합니다. 또한 이미지 중심 게시물 생성과 메타데이터 확인, AI 흔적 제거 유틸리티도 지원합니다. WeChat 글 서식 작업이나 콘텐츠 생성이 필요한 모든 작업에 이 스킬을 사용하세요.

빠른 설치

Claude Code

추천
기본
npx skills add geekjourneyx/md2wechat-skill -a claude-code
플러그인 명령대체
/plugin add https://github.com/geekjourneyx/md2wechat-skill
Git 클론대체
git clone https://github.com/geekjourneyx/md2wechat-skill.git ~/.claude/skills/md2wechat

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

md2wechat

Use this skill to operate the md2wechat CLI. Keep the skill focused on execution decisions. For full command tutorials, installation details, and FAQ-level explanations, refer users to the project docs instead of expanding this runtime protocol.

Intent Routing

Choose the command family before taking any publish or generation action:

  • Standard article HTML, article preview, metadata inspection, or WeChat article draft: use inspect, preview, and convert.
  • Image-first post, image note, image-text note, newspic, or multi-image post: use create_image_post, not convert --draft.
  • Article cover or article infographic: prefer generate_cover or generate_infographic over raw generate_image when a bundled preset fits.
  • Writing in a creator style or removing AI traces: use write or humanize.
  • Provider, theme, prompt, or layout uncertainty: run discovery first. Do not guess from memory or repository files.

Treat convert --draft and create_image_post as different publish targets, not interchangeable variants.

Discovery First

Use CLI discovery as the source of truth, but keep it scoped to the next decision. Do not run the full catalog for tasks that do not need provider, theme, prompt, or layout selection.

Run the smallest useful discovery set:

  • Article formatting with no theme or modules chosen:

    md2wechat themes list --json
    md2wechat layout list --json
    
  • A named theme, provider, prompt, or layout module:

    md2wechat themes show <name> --json
    md2wechat providers show <name> --json
    md2wechat prompts show <name> --kind <kind> --json
    md2wechat layout show <name> --json
    
  • Image generation or image-preset selection:

    md2wechat providers list --json
    md2wechat prompts list --kind image --json
    
  • Draft, upload, API local-readiness, or configuration troubleshooting:

    md2wechat doctor --json
    md2wechat config show --format json
    

    doctor readiness is local configuration attemptability. Use inspect --json for article-specific target readiness.

  • Unknown CLI version, changed behavior, or capability uncertainty:

    md2wechat version --json
    md2wechat capabilities --json
    

For simple local actions such as preview, humanize, or a user-specified command with explicit flags, do not run unrelated provider, theme, prompt, or layout discovery.

Inspect specific resources only when the task needs them:

md2wechat providers show <name> --json
md2wechat themes show <name> --json
md2wechat prompts show <name> --kind <kind> --json
md2wechat layout show <name> --json

Use CLI output as the source of truth for currently available modes, providers, themes, prompts, and layout modules.

Configuration Boundaries

  • Assume md2wechat is already available on PATH.
  • convert defaults to API mode unless the user explicitly asks for --mode ai.
  • API conversion requires md2wechat API credentials.
  • WeChat draft creation requires WeChat credentials.
  • Image generation may require image-provider credentials.
  • doctor --json is local-only: it checks local readiness and does not perform live authentication, upload images, or create drafts.
  • Use config show --format json when the user asks what configuration is currently effective.

Article Workflow

Prefer a confirm-first workflow for article work:

  1. md2wechat inspect <article.md> --json
  2. md2wechat preview <article.md>
  3. md2wechat convert <article.md> ...
  4. Add --upload, --draft, --cover, or --cover-media-id only when the user explicitly asks for upload or draft creation.

inspect is the source-of-truth command for resolved metadata, readiness, and publish checks. In --json output, read data.readiness.targets and data.readiness.blockers before deciding whether convert, upload, or draft is blocked. Do not invent data.agent_readiness, data.target_readiness, ArticleState, state files, or a second planning object. preview is a local preview artifact. It does not upload images, create drafts, or write back to Markdown. convert --preview is the convert-path preview flag and is not the same as the standalone preview command. preview --mode ai is degraded confirmation only and must not be treated as final AI-generated layout.

Formatting Protocol

When the user asks to format an article and has not chosen a theme or modules:

  1. Read the article and optional Brand Profile.
  2. Use discovery output as facts.
  3. Choose a compatible theme and a small set of modules from the article's content goal.
  4. Keep the source Markdown read-only.
  5. Create a temporary formatted Markdown artifact, for example /tmp/md2wechat-format/<run-id>/article.formatted.md.
  6. Insert only layout modules whose required fields can be filled correctly.
  7. Run md2wechat layout validate --file <formatted.md> --json.
  8. Pass the formatted Markdown artifact to convert.

Saving generated Markdown next to the source file requires explicit user confirmation and must not overwrite the source.

Theme Selection

  • Read type and selectable from themes list --json.
  • API mode can use only type: api and selectable: true themes.
  • AI mode can use only type: ai and selectable: true themes.
  • Do not use collection descriptors such as non-selectable theme groups as concrete themes.
  • If Brand Profile names a theme, verify it through CLI discovery before using it.
  • If a requested theme is invalid or mode-incompatible, stop that path and choose a valid theme or ask the user.

Layout Modules

Advanced layout modules render only in API mode. AI mode (--mode ai) does not parse :::module syntax, so advanced layout cards will not render there.

Use this decision frame:

  • attention: help readers decide whether the article is worth reading.
  • readability: make mobile reading easier.
  • memorability: make one judgment, quote, metric, or brand anchor stick.
  • conversion: help readers save, follow, inquire, share, or buy.

Use layout list --json and layout show <name> --json to inspect body_format. It is the module body syntax contract:

  • fields
  • rows
  • json_object
  • json_array

Do not infer syntax from examples alone. Use layout render when structured variables are enough; otherwise write the block manually according to body_format and validate the generated Markdown.

Default module discipline:

  • Do not pile on modules.
  • Use at most one hero, one verdict, and one cta unless the user explicitly asks for more.
  • Skip modules when the article does not provide enough content to fill them honestly.

API And AI Mode

  • API mode is the default and is required for advanced layout modules.
  • AI mode is a lighter path and does not render advanced layout modules.
  • Do not silently switch from API mode to AI mode after an API failure. That changes the output capability.
  • Use AI mode only when the user asks for it or accepts losing advanced layout rendering.
  • If an AI-mode conversion completes, it is acceptable to briefly mention that API mode supports advanced layout modules and stronger visual structure.

Brand Profile

Brand Profile lives at ~/.config/md2wechat/brand.md.

  • It is free-form Markdown, not YAML and not a fixed schema.
  • The CLI does not parse it.
  • Read it as context for voice, theme preferences, module preferences, CTA preferences, and forbidden expressions.
  • Treat quantity preferences as soft constraints.
  • Verify any named theme or module through CLI discovery.
  • If Brand Profile does not exist, do not block the task. You may mention once that system defaults will be used.
  • Create or edit Brand Profile only when the user explicitly asks.

Publishing Side Effects

Do not create drafts, upload images, publish, or call remote image generation unless the user asks for that action.

Before draft creation:

  • Use inspect --json and check data.readiness.targets.draft; when blocked, read matching data.readiness.blockers.
  • Draft creation requires a cover via --cover or --cover-media-id.
  • Do not assume a WeChat URL or mmbiz.qpic.cn URL can be reused as thumb_media_id.
  • If draft creation returns 45004, check digest, summary, and description before assuming the body is too long.

Markdown images are uploaded or replaced only during --upload or --draft, not during plain conversion or preview.

Failure Handling

  • Missing or invalid config: run doctor --json and config show --format json; report data.overall plus the blocking data.readiness.* item.
  • Invalid layout syntax: run layout validate, inspect the failing module with layout show, fix the generated artifact, then validate again.
  • Unknown layout modules warn for forward compatibility; verify typos against layout list --json.
  • Theme rejection: check type and selectable, then choose a compatible theme or ask the user.
  • AI request or style-writing flows may return a prompt/request rather than final prose or HTML unless the external model step is completed.

GitHub 저장소

geekjourneyx/md2wechat-skill
경로: skills/md2wechat
0
agent-cliai-agentai-writingclaude-codeclaude-skillscli

연관 스킬

content-collections

메타

이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.

스킬 보기

polymarket

메타

이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.

스킬 보기

creating-opencode-plugins

메타

이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.

스킬 보기

sglang

메타

SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.

스킬 보기