360 Secure SkillHub
360 安全技能中心

Forge AI Skill

该 Skill 以命令行脚本 forge_client.py 调用 Forge AI 平台 API:支持登录、查看当前用户、登出;文章与评测的列表/创建/更新;标签列表与创建;以及把图片或文件上传到云存储。请求体需由用户提供本地 JSON 文件,令牌与标签缓存保存在 .forgeai/ 目录,使用需联网并具备 Python 运行环境。

分类:营销
scemoon
scemoon
热度 24.56
最近更新 2026-05-29 09:41:35

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add scemoon/forge-skill
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
forge-skill
description
Use ONLY when the user explicitly starts a message with /forge to interact with Forge AI platform. Manages articles, evaluations, tags, and authentication via Forge AI API. Trigger keywords: /forge, forge, forge-ai.

Forge AI Skill

Interacts with the Forge AI platform API using src/forge-skill/forge_client.py.

Quick Reference

python3 src/forge-skill/forge_client.py <command> [args]

Commands

Authentication

Command Usage
Login forge_client.py login <email> <password>
Me forge_client.py me
Logout forge_client.py logout

Articles

Command Usage
List forge_client.py article list [--name <keyword>]
Create forge_client.py article create <file.json>
Update forge_client.py article update <file.json>

Lists local .forgeai/articles/ JSON files. Use --name to filter by title.

Evaluations

Command Usage
List forge_client.py evaluation list [--name <keyword>]
Create forge_client.py evaluation create <file.json>
Update forge_client.py evaluation update <file.json>

Lists local .forgeai/evaluations/ JSON files. Use --name to filter by title.

Tags

Command Usage
List forge_client.py tag list
Create forge_client.py tag create <name> [--color #6366F1]

File Upload

Command Usage
Upload forge_client.py upload <file> [--storage-path <path>]

Uploads an image or file to cloud storage and returns a URL.

JSON File = HTTP Body

The JSON file is the exact data field sent in the API request body.

Article Create (article-crud)

{
  "title": "My Article Title",
  "content": "# Content in markdown...",
  "tags": ["tag_id_1", "tag_id_2"],
  "coverImage": "https://example.com/cover.jpg",
  "type": 0
}

Article Update (article-crud)

Add articleId with the pending wrapper:

{
  "articleId": "art_xxx",
  "pending": {
    "title": "Updated Title",
    "content": "# Updated content...",
    "tags": ["tag_id_1"],
    "coverImage": "https://example.com/new-cover.jpg"
  }
}

Evaluation Create (evaluation-crud)

{
  "pending": {
    "modelName": "GPT-4",
    "skillName": "Code Generation",
    "title": "Evaluation Title",
    "content": "# Evaluation content...",
    "modelVersion": "2024-05",
    "skillDescription": "Generate production code",
    "skillTags": "python, go",
    "overallScore": 85,
    "dimensions": {
      "准确性": 90,
      "推理能力": 80
    },
    "remark": "Good overall performance"
  }
}

Evaluation Update (evaluation-crud)

Add evaluationId:

{
  "evaluationId": "ev_xxx",
  "pending": {
    "modelName": "GPT-4",
    "skillName": "Code Generation",
    "title": "Updated Evaluation",
    "content": "# Updated content..."
  }
}

State

File Purpose
.forgeai/session.json Auth token and user info (auto-managed)
.forgeai/tags.json Cached tags (auto-managed)
.forgeai/articles/ Article JSON files (user-managed)
.forgeai/evaluations/ Evaluation JSON files (user-managed)

Typical Workflow

  1. forge_client.py login user@example.com mypassword
  2. Write .json file matching the HTTP body structure
  3. forge_client.py article create .forgeai/articles/my-article.json
  4. Take the returned ID, add it to the JSON file
  5. Edit content, run forge_client.py article update .forgeai/articles/my-article.json