--- slug: fmode-skill-fmode-git-archive displayName: fmode-git-archive version: 0.1.0 name: fmode-git-archive description: Fmode 项目归档:源码进 git.fmode.cn,建 Gogs 账号/个人 token/建仓/推送/验证 SHA。 触发词:归档、git、Gogs、Gitea、git.fmode.cn、仓库、源码入库、git archive tags: [FmodeAgent, FmodeCode, 服务级, git-archive] platform: Both level: 服务级 category: 平台基础设施 icon: ⚙️ license: MPL-2.0 author: Fmode (未来飞马) --- # Fmode Git 归档(Gitea + 源码入库) ## 触发词 归档、git、Gogs、Gitea、git.fmode.cn、仓库、源码入库、git archive ## 快速开始(ESM) ```bash node scripts/index.mjs '{"...": ...}' ``` 或 Agent 直接按流程调用下述端点。 ## 端点清单 | 端点 | 作用 | |------|------| | `POST https://server.fmode.cn/api/functions` | Gogs admin proxy 建用户 {token,path:/gogs/admin/proxy,params:{method:POST,path:/admin/users,...}} | | `POST https://git.fmode.cn/api/v1/users//tokens` | 创建个人 token | | `POST https://git.fmode.cn/api/v1/user/repos` | 创建私有仓库 | ## 关键纪律 - ⚠️ 用户名强制 fmode-,请求值忽略占位 - ⚠️ token 绝不进 remote URL,用 HTTPS + token 密码 - ⚠️ 排除 .env/密钥/构建产物/日志 - ⚠️ git ls-remote 验证远端 SHA,发布与归档分开报告 ## References - 详见 `references/` 目录 - 完整平台规范见 skill-core-guide(`fmode-skills` 自带) ## License MPL-2.0 © 2026 Fmode (未来飞马)