Skill (skills/schema.py)

gitingest_Negai-ai_AgentClaw · agentclaw/skills/schema.py · python · Apache-2.0
ai, tag:knn-classified

Module exposing: Skill

# Source: https://github.com/Negai-ai/AgentClaw | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""
Skill 数据结构定义
"""

from dataclasses import dataclass, field
from pathlib import Path
from typing import Any, Dict, List, Optional


@dataclass
class Skill:
    """Skill 数据结构"""

    name: str  # 技能名称
    description: str  # 技能描述(用于触发判断)
    path: Path  # 技能目录路径
    content: str  # SKILL.md 的 Markdown 内容
    license: Optional[str] = None  # 许可证说明
    metadata: Optional[Dict[str, Any]] = None  # 扩展元数据
    scripts: List[Path] = field(default_factory=list)  # 脚本文件列表
    references: List[Path] = field(default_factory=list)  # 参考文档列表
    resources: List[Path] = field(default_factory=list)  

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key