From 3811512750218076b109ce61d6dc8199f2264aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Sat, 17 Jan 2026 22:12:01 -0600 Subject: [PATCH] docs: add Customization section to README files --- README.md | 28 ++++++++++++++++++++++++++++ README.zh.md | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/README.md b/README.md index 575847c..0a38df5 100644 --- a/README.md +++ b/README.md @@ -245,6 +245,34 @@ Post content to WeChat Official Account (微信公众号). Two modes available: Prerequisites: Google Chrome installed. First run requires QR code login (session preserved). +## Customization + +All skills support customization via `EXTEND.md` files. Create an extension file to override default styles, add custom configurations, or define your own presets. + +**Extension paths** (checked in priority order): +1. `.baoyu-skills//EXTEND.md` - Project-level (for team/project-specific settings) +2. `~/.baoyu-skills//EXTEND.md` - User-level (for personal preferences) + +**Example**: To customize `baoyu-cover-image` with your brand colors: + +```bash +mkdir -p .baoyu-skills/baoyu-cover-image +``` + +Then create `.baoyu-skills/baoyu-cover-image/EXTEND.md`: + +```markdown +## Custom Styles + +### brand +- Primary color: #1a73e8 +- Secondary color: #34a853 +- Font style: Modern sans-serif +- Always include company logo watermark +``` + +The extension content will be loaded before skill execution and override defaults. + ## Disclaimer ### baoyu-gemini-web diff --git a/README.zh.md b/README.zh.md index c837ada..8d16d3f 100644 --- a/README.zh.md +++ b/README.zh.md @@ -245,6 +245,34 @@ npx add-skill jimliu/baoyu-skills 前置要求:已安装 Google Chrome,首次运行需扫码登录(登录状态会保存) +## 自定义扩展 + +所有技能支持通过 `EXTEND.md` 文件自定义。创建扩展文件可覆盖默认样式、添加自定义配置或定义个人预设。 + +**扩展路径**(按优先级检查): +1. `.baoyu-skills//EXTEND.md` - 项目级(团队/项目特定设置) +2. `~/.baoyu-skills//EXTEND.md` - 用户级(个人偏好设置) + +**示例**:为 `baoyu-cover-image` 自定义品牌配色: + +```bash +mkdir -p .baoyu-skills/baoyu-cover-image +``` + +然后创建 `.baoyu-skills/baoyu-cover-image/EXTEND.md`: + +```markdown +## 自定义风格 + +### brand +- 主色:#1a73e8 +- 辅色:#34a853 +- 字体风格:现代无衬线 +- 始终包含公司 logo 水印 +``` + +扩展内容会在技能执行前加载,并覆盖默认设置。 + ## 免责声明 ### baoyu-gemini-web