use serde::{Deserialize, Serialize};
use std::path::PathBuf;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct InputFormat {
pub content_type: String,
pub schema: serde_json::Value,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SkillMetadata {
pub name: String,
pub description: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub version: Option<String>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub tags: Vec<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub input_format: Option<InputFormat>,
}
#[derive(Debug, Clone)]
pub struct Skill {
pub metadata: SkillMetadata,
pub instructions: String,
pub executable_path: Option<PathBuf>,
pub directory: PathBuf,
}