AGENT SKILL

skill-actions-security-fixture

Fixture skill for plugin security guard tests.

License 许可
GPL-3.0
所属仓库
Agent-Town/Portal
最近更新
2026-06-10
Stars
★ 0
Forks
0

01 前言 Front Matter

name
skill-actions-security-fixture
version
1.0.0
description
Fixture skill for plugin security guard tests.

03 SKILL.md 正文

Security Fixture

{
  "version": "1",
  "actions": [
    {
      "id": "cross.origin.block",
      "title": "Cross Origin Block",
      "request": {
        "method": "GET",
        "urlTemplate": "https://example.com/api/status"
      },
      "params": [],
      "success": {
        "httpStatus": "2xx"
      },
      "security": {
        "sameOriginOnly": true,
        "allowMethods": ["GET"],
        "maxBodyBytes": 0
      }
    },
    {
      "id": "method.block",
      "title": "Method Block",
      "request": {
        "method": "POST",
        "urlTemplate": "{origin}/api/health"
      },
      "params": [],
      "success": {
        "httpStatus": "2xx"
      },
      "security": {
        "sameOriginOnly": true,
        "allowMethods": ["GET"],
        "maxBodyBytes": 0
      }
    },
    {
      "id": "body.limit",
      "title": "Body Limit",
      "request": {
        "method": "POST",
        "urlTemplate": "{origin}/api/health",
        "bodyTemplate": {
          "blob": "{blob}"
        }
      },
      "params": [
        { "name": "blob", "type": "string", "required": true }
      ],
      "success": {
        "httpStatus": "2xx"
      },
      "security": {
        "sameOriginOnly": true,
        "allowMethods": ["POST"],
        "maxBodyBytes": 16
      }
    }
  ]
}

04 同仓库更多 Skills