Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Post articles and image-text content to WeChat Official Account via API or Chrome CDP, with markdown-to-WeChat HTML conversion.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/config/first-time-setup.md
1---2name: first-time-setup3description: First-time setup flow for baoyu-post-to-wechat preferences4---56# First-Time Setup78## Overview910When no EXTEND.md is found, guide user through preference setup.1112**BLOCKING OPERATION**: This setup MUST complete before ANY other workflow steps. Do NOT:13- Ask about content or files to publish14- Ask about themes or publishing methods15- Proceed to content conversion or publishing1617ONLY ask the questions in this setup flow, save EXTEND.md, then continue.1819## Setup Flow2021```22No EXTEND.md found23|24v25+---------------------+26| AskUserQuestion |27| (all questions) |28+---------------------+29|30v31+---------------------+32| Create EXTEND.md |33+---------------------+34|35v36Continue to Step 137```3839## Questions4041**Language**: Use user's input language or saved language preference.4243Use AskUserQuestion with ALL questions in ONE call:4445### Question 1: Default Theme4647```yaml48header: "Theme"49question: "Default theme for article conversion?"50options:51- label: "default (Recommended)"52description: "Classic layout - centered title with border, white-on-color H2 (default: blue)"53- label: "grace"54description: "Elegant - text shadows, rounded cards, refined blockquotes (default: purple)"55- label: "simple"56description: "Minimal modern - asymmetric rounded corners, clean whitespace (default: green)"57- label: "modern"58description: "Large rounded corners, pill headings, spacious (default: orange)"59```6061### Question 2: Default Color6263```yaml64header: "Color"65question: "Default color preset? (theme default if not set)"66options:67- label: "Theme default (Recommended)"68description: "Use the theme's built-in default color"69- label: "blue"70description: "#0F4C81 经典蓝"71- label: "red"72description: "#A93226 中国红"73- label: "green"74description: "#009874 翡翠绿"75```7677Note: User can choose "Other" to type any preset name (vermilion, yellow, purple, sky, rose, olive, black, gray, pink, orange) or hex value.7879### Question 3: Default Publishing Method8081```yaml82header: "Method"83question: "Default publishing method?"84options:85- label: "api (Recommended)"86description: "Fast, requires API credentials (AppID + AppSecret)"87- label: "browser"88description: "Slow, requires Chrome and login session"89- label: "remote-api"90description: "Fast, tunnels WeChat API calls through SSH to a server whose IP is on the WeChat allowlist"91```9293If the user selects `remote-api`, prompt for `remote_publish_host` and (optionally) `remote_publish_user`, `remote_publish_identity_file`. These can also be filled in later by editing EXTEND.md.9495### Question 4: Default Author9697```yaml98header: "Author"99question: "Default author name for articles?"100options:101- label: "No default"102description: "Leave empty, specify per article"103```104105Note: User will likely choose "Other" to type their author name.106107### Question 5: Open Comments108109```yaml110header: "Comments"111question: "Enable comments on articles by default?"112options:113- label: "Yes (Recommended)"114description: "Allow readers to comment on articles"115- label: "No"116description: "Disable comments by default"117```118119### Question 6: Fans-Only Comments120121```yaml122header: "Fans only"123question: "Restrict comments to followers only?"124options:125- label: "No (Recommended)"126description: "All readers can comment"127- label: "Yes"128description: "Only followers can comment"129```130131### Question 7: Save Location132133```yaml134header: "Save"135question: "Where to save preferences?"136options:137- label: "Project (Recommended)"138description: ".baoyu-skills/ (this project only)"139- label: "User"140description: "~/.baoyu-skills/ (all projects)"141```142143## Save Locations144145| Choice | Path | Scope |146|--------|------|-------|147| Project | `.baoyu-skills/baoyu-post-to-wechat/EXTEND.md` | Current project |148| User | `~/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md` | All projects |149150## After Setup1511521. Create directory if needed1532. Write EXTEND.md1543. Confirm: "Preferences saved to [path]"1554. Continue to Step 0 (load the saved preferences)156157## EXTEND.md Template158159### Single Account (Default)160161```md162default_theme: [default/grace/simple/modern]163default_color: [preset name, hex, or empty for theme default]164default_publish_method: [api/browser/remote-api]165default_author: [author name or empty]166need_open_comment: [1/0]167only_fans_can_comment: [1/0]168chrome_profile_path:169170# Remote API publishing — only fill in if default_publish_method is remote-api171# or you plan to pass --remote on the CLI.172remote_publish_host:173remote_publish_user:174remote_publish_port:175remote_publish_identity_file:176remote_publish_known_hosts_file:177remote_publish_strict_host_key_checking:178remote_publish_connect_timeout:179remote_publish_proxy_jump:180```181182Raw `ssh` / `scp` options are intentionally not supported; only the typed keys above are honored. Authentication is SSH key only.183184### Multi-Account185186```md187default_theme: [default/grace/simple/modern]188default_color: [preset name, hex, or empty for theme default]189190accounts:191- name: [display name]192alias: [short key, e.g. "baoyu"]193default: true194default_publish_method: [api/browser/remote-api]195default_author: [author name]196need_open_comment: [1/0]197only_fans_can_comment: [1/0]198app_id: [WeChat App ID, optional]199app_secret: [WeChat App Secret, optional]200# Remote API publishing (optional, per-account override of globals)201remote_publish_host:202remote_publish_user:203remote_publish_identity_file:204- name: [second account name]205alias: [short key, e.g. "ai-tools"]206default_publish_method: [api/browser/remote-api]207default_author: [author name]208need_open_comment: [1/0]209only_fans_can_comment: [1/0]210```211212## Adding More Accounts Later213214After initial setup, users can add accounts by editing EXTEND.md:2152161. Add an `accounts:` block with list items2172. Move per-account settings (author, publish method, comments) into each account entry2183. Keep global settings (theme, color) at the top level2194. Each account needs a unique `alias` (used for CLI `--account` arg and Chrome profile naming)2205. Set `default: true` on the primary account221222## Modifying Preferences Later223224Users can edit EXTEND.md directly or delete it to trigger setup again.225