{"id":47403011,"url":"https://github.com/comeonzhj/AutoContents","last_synced_at":"2026-04-03T18:00:50.919Z","repository":{"id":342025241,"uuid":"1172492476","full_name":"comeonzhj/AutoContents","owner":"comeonzhj","description":"基于 RSS 的 AI 资讯聚合、内容创作与 Agent 自动化工具","archived":false,"fork":false,"pushed_at":"2026-03-04T13:24:42.000Z","size":1820,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-04T18:26:32.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/comeonzhj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-04T11:20:58.000Z","updated_at":"2026-03-04T13:24:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/comeonzhj/AutoContents","commit_stats":null,"previous_names":["comeonzhj/autocontents"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/comeonzhj/AutoContents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comeonzhj%2FAutoContents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comeonzhj%2FAutoContents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comeonzhj%2FAutoContents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comeonzhj%2FAutoContents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comeonzhj","download_url":"https://codeload.github.com/comeonzhj/AutoContents/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comeonzhj%2FAutoContents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31368156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-20T14:00:37.288Z","updated_at":"2026-04-03T18:00:50.906Z","avatar_url":"https://github.com/comeonzhj.png","language":"JavaScript","readme":"# AutoContents  \n\n基于 RSS 的 AI 资讯聚合、内容创作与 Agent 自动化工具。\n\n订阅 RSS/RSSHub 信源 → 自动拉取资讯 → AI 翻译 / 筛选 → 一键推送微信 / 同步飞书 → 图文内容创作与渲染 → Agent 全自动运行。\n\n---\n\n## ⚠️安全提醒\n\n小红书官方与 3 月 10 日发布[《关于打击AI托管运营账号的治理公告》](http://xhslink.com/o/7WxTddvbmTu)\n\n建议关闭此项目中 Agent 直接发布到小红书的功能，改为手动发布（项目支持一键下载所有图片素材）\n\n---\n\n## 功能概览\n\n| 模块 | 功能 |\n|---|---|\n| **资讯聚合** | 支持 RSSHub 路由和标准 RSS，按信源分组展示，正向/黑名单关键词双重过滤 |\n| **AI 翻译** | 对指定信源自动调用大模型翻译为中文 |\n| **三类推送** | AINews（速报）/ AITopics（话题引导）/ AITools（工具推荐），并行推送微信、保存到指定飞书知识库 |\n| **内容创作** | 图片上传 + 大模型生成封面文案，渲染 1080×1440 封面图与详情图，小红书风格预览 |\n| **资源库** | 原始资讯归档、已保存资讯列表、已保存内容宫格展示 |\n| **飞书多维表** | 创作内容一键存入多维表，供人工审核后发布 |\n| **Agent 接口** | 暴露完整 API，配合 Agent Skills 实现全自动资讯筛选、推送、创作、归档、通知 |\n\n---\n\n## 技术栈\n\n- **后端**：Node.js + Express + SQLite（better-sqlite3）\n- **前端**：React 18 + React Router 6\n- **渲染**：Puppeteer（Headless Chromium）截图，支持彩色 Emoji 和中文字体\n- **信源**：RSSHub + rss-parser\n\n---\n\n## 本地开发\n\n### 前置要求\n\n- Node.js 20+\n- [非必须]本地运行中的 [RSSHub](https://github.com/DIYgod/RSSHub)（默认 `http://localhost:1200`）\n- macOS 需安装 Google Chrome（渲染图片用）\n\n### 启动\n\n```bash\ngit clone https://github.com/comeonzhj/AutoContents.git\ncd AutoContents\n\n# 复制环境变量模板\ncp backend/.env.example backend/.env\n\n# 一键启动（自动安装依赖）\n./start.sh\n```\n\n启动后访问：\n- 前端：`http://localhost:3711`\n- 后端 API：`http://localhost:3710/api`\n\n---\n\n## Docker 部署\n\n项目已包含完整的 Docker Compose 配置，内含 AutoContents 主服务 + RSSHub + Redis。\n\n```bash\ngit clone https://github.com/comeonzhj/AutoContents.git\ncd AutoContents\n\n# 构建并启动\ndocker compose -p makecontent up -d --build\n\n# 查看日志\ndocker compose -p makecontent logs -f makecontents\n```\n\n访问 `http://服务器IP:3710`。\n\n\u003e **说明**：若服务器已运行独立 RSSHub，可删除 `docker-compose.yml` 中的 `rsshub` 和 `redis` 服务，并修改 `RSSHUB_URL` 指向现有实例。\n\n### 数据持久化\n\nDocker Compose 自动创建两个 named volume：\n\n| Volume | 内容 |\n|---|---|\n| `makecontents-data` | SQLite 数据库 |\n| `makecontents-uploads` | 上传图片与渲染产物 |\n\n**数据库迁移**：服务每次启动时自动执行 schema 迁移，已有数据库会自动补全新字段，无需手动操作。\n\n---\n\n## 系统配置\n\n首次运行后进入「系统配置」页面完成以下配置：\n\n### 大模型\n\n翻译、编辑（推送）、创作三个场景可使用不同模型，兼容所有 OpenAI 接口格式（DeepSeek、通义、Kimi 等）。推送风格中 AITopics 和 AITools 可单独配置系统提示词。\n\n| 字段 | 说明 |\n|---|---|\n| 模型名称 | 如 `deepseek-chat`、`gpt-4o` |\n| Base URL | 如 `https://api.deepseek.com`（末尾无需加 `/v1`） |\n| API Key | 对应平台的密钥 |\n| 系统提示词 | 留空使用内置默认值 |\n\n### 飞书\n\n在[飞书开放平台](https://open.feishu.cn/)创建自建应用，开通文档/知识库/多维表读写权限。\n\n| 字段 | 说明 |\n|---|---|\n| App ID / App Secret | 应用凭证 |\n| Space ID | 知识库 ID |\n| 父节点 Token | AINews 文档存放的父节点 |\n| 多维表 URL | 直接粘贴浏览器地址栏 URL，自动解析参数 |\n| 机器人 Webhook | Agent 完成创作后的通知地址 |\n\n飞书多维表格字段类型：\n\n\u003e 务必严格按如下格式创建表格，否则无法存储。\n\n```json\n{\n    '资讯': '文本',\n    'url': '文本',\n    '标题': '文本',\n    '正文': '文本',\n    'Tags': '文本',\n    '封面': [附件],\n    '详情图': [附件],\n    '创作时间': '文本,\n  }\n```\n\n### 微信推送\n\n~使用微信机器人 API。支持配置多个 wxid 和群聊，发送间隔随机 5-10 秒。~\n\n存在风控风险，不建议配置此版块，可留空。\n\n### 关键词过滤\n\n- **正向关键词**：只有命中列表中任意关键词的资讯才显示（留空则全部显示），默认仅匹配标题\n- **屏蔽关键词**：包含关键词的资讯直接过滤，不进入数据库\n\n---\n\n## Agent 使用\n\n### 一键安装\n\n把下面的消息发给你的 Agent：\n\n\u003e 部署这个项目，把其中的 Skills 安装。安装好以后告诉我怎么帮你配置需要的信息。\n\u003e 项目地址：https://github.com/comeonzhj/AutoContents\n\n项目内置 Agent Skills（位于 `Skills/makecontents/`），可让 AI Agent 自主完成完整工作流：\n\n1. **资讯推送流程**：拉取 → 筛选 → 生成推送内容 → 微信+飞书分发\n2. **内容创作流程**：选题 → 生成文案 → 截图配图 → 渲染图片 → 存入多维表 → 通知审核\n3. **学习规律流程**：分析历史保存记录，归纳用户偏好，写入规则记忆文件\n\nAgent 调用接口自动去重：推送过的资讯标记 `ai_newsed=1`，调用 `GET /api/news/grouped?agent=1` 时自动过滤，无需人工干预。\n\n详细 API 文档见 `Skills/makecontents/references/api.md`。\n\n---\n\n## 目录结构\n\n```\nAutoContents/\n├── backend/\n│   ├── db/            # SQLite 初始化与迁移\n│   ├── routes/        # API 路由（sources/news/config/content）\n│   ├── services/      # 业务逻辑（RSS/LLM/微信/飞书/渲染）\n│   ├── .env.example   # 环境变量模板\n│   └── index.js       # 服务入口（端口 3710）\n├── frontend/\n│   └── src/\n│       ├── pages/     # 五个页面（首页/信源/资源库/配置/内容创作）\n│       ├── components/\n│       └── services/  # API 封装\n├── Skills/\n│   └── makecontents/  # Cursor Agent Skill\n│       ├── SKILL.md\n│       └── references/ # API 文档 \u0026 规律记忆模板\n├── style_demos/        # 封面/详情图样式参考\n├── docs/              # API 参考文档\n├── Dockerfile\n├── docker-compose.yml\n└── start.sh           # 本地一键启动脚本\n```\n\n---\n\n\n## License\n\nMIT\n","funding_links":[],"categories":["信息获取"],"sub_categories":["RSS + AI 增强"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomeonzhj%2FAutoContents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomeonzhj%2FAutoContents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomeonzhj%2FAutoContents/lists"}