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```9091### Question 4: Default Author9293```yaml94header: "Author"95question: "Default author name for articles?"96options:97- label: "No default"98description: "Leave empty, specify per article"99```100101Note: User will likely choose "Other" to type their author name.102103### Question 5: Open Comments104105```yaml106header: "Comments"107question: "Enable comments on articles by default?"108options:109- label: "Yes (Recommended)"110description: "Allow readers to comment on articles"111- label: "No"112description: "Disable comments by default"113```114115### Question 6: Fans-Only Comments116117```yaml118header: "Fans only"119question: "Restrict comments to followers only?"120options:121- label: "No (Recommended)"122description: "All readers can comment"123- label: "Yes"124description: "Only followers can comment"125```126127### Question 7: Save Location128129```yaml130header: "Save"131question: "Where to save preferences?"132options:133- label: "Project (Recommended)"134description: ".baoyu-skills/ (this project only)"135- label: "User"136description: "~/.baoyu-skills/ (all projects)"137```138139## Save Locations140141| Choice | Path | Scope |142|--------|------|-------|143| Project | `.baoyu-skills/baoyu-post-to-wechat/EXTEND.md` | Current project |144| User | `~/.baoyu-skills/baoyu-post-to-wechat/EXTEND.md` | All projects |145146## After Setup1471481. Create directory if needed1492. Write EXTEND.md1503. Confirm: "Preferences saved to [path]"1514. Continue to Step 0 (load the saved preferences)152153## EXTEND.md Template154155### Single Account (Default)156157```md158default_theme: [default/grace/simple/modern]159default_color: [preset name, hex, or empty for theme default]160default_publish_method: [api/browser]161default_author: [author name or empty]162need_open_comment: [1/0]163only_fans_can_comment: [1/0]164chrome_profile_path:165```166167### Multi-Account168169```md170default_theme: [default/grace/simple/modern]171default_color: [preset name, hex, or empty for theme default]172173accounts:174- name: [display name]175alias: [short key, e.g. "baoyu"]176default: true177default_publish_method: [api/browser]178default_author: [author name]179need_open_comment: [1/0]180only_fans_can_comment: [1/0]181app_id: [WeChat App ID, optional]182app_secret: [WeChat App Secret, optional]183- name: [second account name]184alias: [short key, e.g. "ai-tools"]185default_publish_method: [api/browser]186default_author: [author name]187need_open_comment: [1/0]188only_fans_can_comment: [1/0]189```190191## Adding More Accounts Later192193After initial setup, users can add accounts by editing EXTEND.md:1941951. Add an `accounts:` block with list items1962. Move per-account settings (author, publish method, comments) into each account entry1973. Keep global settings (theme, color) at the top level1984. Each account needs a unique `alias` (used for CLI `--account` arg and Chrome profile naming)1995. Set `default: true` on the primary account200201## Modifying Preferences Later202203Users can edit EXTEND.md directly or delete it to trigger setup again.204