10cg/aria-plugin/forgejo-sync
Claude Code and agent skill by 10cg/aria-plugin
- community
Checking that the SKILL.md file is still in the repository.
同步 User Story 与 Forgejo Issue,发布 PRD 到 Wiki。 使用场景:"同步 Story 到 Forgejo Issue"、"发布 PRD 到 Wiki"
Install
npx vskill@latest install 10cg/aria-plugin/forgejo-syncSKILL.md
The same SKILL.md was published earlier as 10cg/aria-plugin/forgejo-sync.
Forgejo Sync Skill
版本: 1.0.0 | 层级: Layer 2 (Business Skill) | 分类: Requirements Skills
快速开始
我应该使用这个 Skill 吗?
使用场景:
- 将 Story 创建为 Forgejo Issue
- 从 Issue 同步状态回 Story
- 发布 PRD 到 Forgejo Wiki
- 检查 Story/Issue 状态差异
不使用场景:
- 验证文档格式 → 使用
requirements-validator - 同步到 UPM → 使用
requirements-sync
前置条件:
- 配置 Forgejo API 访问 (见 CONFIG.md)
核心功能
| 功能 | 描述 | |
|---|---|---|
| story-to-issue | Story → Issue 创建/更新 | |
| issue-to-story | Issue → Story 状态同步 | |
| bulk-sync | 批量同步所有 Story | |
| status-check | 检查状态差异 | |
| prd-to-wiki | PRD → Wiki 发布 |
Forgejo 配置引导 (v1.14.0 新增)
forgejo-sync 在 PRE_CHECK 步骤中自动检测 Forgejo 配置是否就位。
触发条件
- git remote URL 包含已知 Forgejo 实例 (
forgejo.10cg.pub) CLAUDE.local.md不存在,或文件存在但缺少forgejo:配置块
行为
文件不存在时:
- 从 git remote URL 推断
owner/repo(支持 SSHgit@host:owner/repo.git和 HTTPS 格式) - 对已知实例默认
cloudflare_access.enabled: true - 展示将要生成的完整配置内容
- 提示用户确认 [y/N]
- 确认 → 创建
CLAUDE.local.md,继续后续步骤 - 拒绝 → 输出 "跳过配置创建,forgejo-sync 可能因 Cloudflare 拦截而失败",继续执行
文件存在但缺少 forgejo 块时:
- 展示将要追加的 forgejo 配置块
- 提示用户确认 [y/N]
- 确认 → 在文件末尾追加 forgejo 配置块
- 拒绝 → 同上,继续执行
已有 forgejo 配置时: 不提示,直接进入原有 PRE_CHECK 流程。
生成模板
与现有配置 schema 字段一致:
设计约束
- 用户拒绝后不记忆状态,下次调用仍提示 (无状态设计)
- 仅对已知实例 (
forgejo.10cg.pub) 生效,硬编码白名单 - 不修改已有 forgejo 配置块内容
配置
必需配置
在 .claude/skills/forgejo-sync/CONFIG.md 或 CLAUDE.local.md 中配置:
可选配置
状态映射
Story → Issue
| Story Status | Issue State | Issue Labels | |
|---|---|---|---|
| draft | open | [draft] | |
| ready | open | [ready] | |
| in_progress | open | [in-progress] | |
| blocked | open | [blocked] | |
| done | closed | - |
Issue → Story
| Issue State | Issue Labels | Story Status | |
|---|---|---|---|
| open | draft | draft | |
| open | ready | ready | |
| open | in-progress | in_progress | |
| open | blocked | blocked | |
| closed | any | done |
Priority 映射
| Story Priority | Issue Label | |
|---|---|---|
| HIGH | priority:high | |
| MEDIUM | priority:medium | |
| LOW | priority:low |
执行流程
🔒 AI 执行前检查 (不可协商规则)
CRITICAL: 在执行任何 Forgejo API 调用前,AI 必须遵循以下检查流程。统一规范: 引用PRE_CHECK.md(同目录)
检查流程
API 调用模板 (引用统一规范)
标准模式 (cloudflare_access 未启用):
Cloudflare Access 模式 (cloudflare_access.enabled = true):
错误检测与自动提示
检测条件:
- HTTP 状态码: 403
- 响应包含关键词: "cloudflare" OR "challenge" OR "access denied"
自动提示模板:
Story → Issue
Issue → Story
PRD → Wiki
输出格式
API 调用
创建 Issue
更新 Issue
创建 Wiki 页面
使用示例
创建单个 Issue
批量同步
发布 PRD
与其他 Skills 的关系
相关文档
- 规范:
openspec/specs/forgejo-sync/spec.md - 配置模板:
CONFIG.md(同目录) - Story 模板:
standards/templates/user-story-template.md - PRD 模板:
standards/templates/prd-template.md
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/forgejo-sync/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/10cg/aria-plugin/forgejo-sync)