Documentation
¶
Index ¶
- Variables
- type AgentProfile
- type AmazonQAgent
- type AmpAgent
- type ClaudeAgent
- type ClineAgent
- type CodeBuddyAgent
- type CodexAgent
- type ContinueAgent
- type CopilotAgent
- type CursorAgent
- type GeminiAgent
- type HermesAgent
- type MimoAgent
- type OpenClawAgent
- type OpenCodeAgent
- type QClawAgent
- type QoderAgent
- type RooAgent
- type TraeAgent
- type WindsurfAgent
- type ZCodeAgent
Constants ¶
This section is empty.
Variables ¶
var RegisteredAgents = []AgentProfile{ &ClaudeAgent{}, &CursorAgent{}, &ContinueAgent{}, &AmazonQAgent{}, &CopilotAgent{}, &WindsurfAgent{}, &ClineAgent{}, &OpenCodeAgent{}, &CodexAgent{}, &GeminiAgent{}, &RooAgent{}, &AmpAgent{}, &TraeAgent{}, &OpenClawAgent{}, &QClawAgent{}, &HermesAgent{}, &CodeBuddyAgent{}, &QoderAgent{}, &MimoAgent{}, &ZCodeAgent{}, }
RegisteredAgents 是所有已注册的 Agent 列表
Functions ¶
This section is empty.
Types ¶
type AgentProfile ¶
type AgentProfile interface {
// Name 返回 Agent 名称(如 "claude", "cursor")
Name() string
// HasProjectSkills 返回是否支持项目级 skills 目录
HasProjectSkills() bool
// Detect 检测当前项目是否存在该 Agent 的目录/文件
Detect(projectDir string) bool
// SkillsDir 返回项目级 skills 安装的绝对路径
SkillsDir(projectDir string) string
// GlobalSkillsDir 返回全局 skills 安装的绝对路径(如 ~/.claude/skills/)
GlobalSkillsDir() string
}
AgentProfile 定义了一个 Coding Agent 的 skills 目录规范
func DetectAgents ¶
func DetectAgents(projectDir string) []AgentProfile
DetectAgents 检测当前项目中已安装的 Agent(项目级优先,全局型在后)
type AmazonQAgent ¶
type AmazonQAgent struct {
// contains filtered or unexported fields
}
AmazonQAgent 实现 Amazon Q 的 AgentProfile
func (*AmazonQAgent) Detect ¶
func (a *AmazonQAgent) Detect(projectDir string) bool
func (*AmazonQAgent) GlobalSkillsDir ¶
func (a *AmazonQAgent) GlobalSkillsDir() string
func (AmazonQAgent) HasProjectSkills ¶
func (AmazonQAgent) HasProjectSkills() bool
func (*AmazonQAgent) Name ¶
func (a *AmazonQAgent) Name() string
func (*AmazonQAgent) SkillsDir ¶
func (a *AmazonQAgent) SkillsDir(projectDir string) string
type AmpAgent ¶
type AmpAgent struct {
// contains filtered or unexported fields
}
AmpAgent 实现 Amp 的 AgentProfile
func (*AmpAgent) GlobalSkillsDir ¶
func (AmpAgent) HasProjectSkills ¶
func (AmpAgent) HasProjectSkills() bool
type ClaudeAgent ¶
type ClaudeAgent struct {
// contains filtered or unexported fields
}
ClaudeAgent 实现 Claude Code 的 AgentProfile
func (*ClaudeAgent) Detect ¶
func (a *ClaudeAgent) Detect(projectDir string) bool
func (*ClaudeAgent) GlobalSkillsDir ¶
func (a *ClaudeAgent) GlobalSkillsDir() string
func (ClaudeAgent) HasProjectSkills ¶
func (ClaudeAgent) HasProjectSkills() bool
func (*ClaudeAgent) Name ¶
func (a *ClaudeAgent) Name() string
func (*ClaudeAgent) SkillsDir ¶
func (a *ClaudeAgent) SkillsDir(projectDir string) string
type ClineAgent ¶
type ClineAgent struct {
// contains filtered or unexported fields
}
ClineAgent 实现 Cline 的 AgentProfile Cline 原为单文件型(.clinerules),统一目录结构后使用 .cline/skills/
func (*ClineAgent) Detect ¶
func (a *ClineAgent) Detect(projectDir string) bool
func (*ClineAgent) GlobalSkillsDir ¶
func (a *ClineAgent) GlobalSkillsDir() string
func (ClineAgent) HasProjectSkills ¶
func (ClineAgent) HasProjectSkills() bool
func (*ClineAgent) Name ¶
func (a *ClineAgent) Name() string
func (*ClineAgent) SkillsDir ¶
func (a *ClineAgent) SkillsDir(projectDir string) string
type CodeBuddyAgent ¶
type CodeBuddyAgent struct {
// contains filtered or unexported fields
}
CodeBuddyAgent 实现 CodeBuddy 的 AgentProfile(全局型)
func (*CodeBuddyAgent) Detect ¶
func (a *CodeBuddyAgent) Detect(projectDir string) bool
func (*CodeBuddyAgent) GlobalSkillsDir ¶
func (a *CodeBuddyAgent) GlobalSkillsDir() string
func (CodeBuddyAgent) HasProjectSkills ¶
func (CodeBuddyAgent) HasProjectSkills() bool
func (*CodeBuddyAgent) Name ¶
func (a *CodeBuddyAgent) Name() string
func (*CodeBuddyAgent) SkillsDir ¶
func (a *CodeBuddyAgent) SkillsDir(projectDir string) string
type CodexAgent ¶
type CodexAgent struct {
// contains filtered or unexported fields
}
CodexAgent 实现 Codex CLI 的 AgentProfile
func (*CodexAgent) Detect ¶
func (a *CodexAgent) Detect(projectDir string) bool
func (*CodexAgent) GlobalSkillsDir ¶
func (a *CodexAgent) GlobalSkillsDir() string
func (CodexAgent) HasProjectSkills ¶
func (CodexAgent) HasProjectSkills() bool
func (*CodexAgent) Name ¶
func (a *CodexAgent) Name() string
func (*CodexAgent) SkillsDir ¶
func (a *CodexAgent) SkillsDir(projectDir string) string
type ContinueAgent ¶
type ContinueAgent struct {
// contains filtered or unexported fields
}
ContinueAgent 实现 Continue 的 AgentProfile
func (*ContinueAgent) Detect ¶
func (a *ContinueAgent) Detect(projectDir string) bool
func (*ContinueAgent) GlobalSkillsDir ¶
func (a *ContinueAgent) GlobalSkillsDir() string
func (ContinueAgent) HasProjectSkills ¶
func (ContinueAgent) HasProjectSkills() bool
func (*ContinueAgent) Name ¶
func (a *ContinueAgent) Name() string
func (*ContinueAgent) SkillsDir ¶
func (a *ContinueAgent) SkillsDir(projectDir string) string
type CopilotAgent ¶
type CopilotAgent struct {
// contains filtered or unexported fields
}
CopilotAgent 实现 GitHub Copilot 的 AgentProfile
func (*CopilotAgent) Detect ¶
func (a *CopilotAgent) Detect(projectDir string) bool
func (*CopilotAgent) GlobalSkillsDir ¶
func (a *CopilotAgent) GlobalSkillsDir() string
func (CopilotAgent) HasProjectSkills ¶
func (CopilotAgent) HasProjectSkills() bool
func (*CopilotAgent) Name ¶
func (a *CopilotAgent) Name() string
func (*CopilotAgent) SkillsDir ¶
func (a *CopilotAgent) SkillsDir(projectDir string) string
type CursorAgent ¶
type CursorAgent struct {
// contains filtered or unexported fields
}
CursorAgent 实现 Cursor 的 AgentProfile
func (*CursorAgent) Detect ¶
func (a *CursorAgent) Detect(projectDir string) bool
func (*CursorAgent) GlobalSkillsDir ¶
func (a *CursorAgent) GlobalSkillsDir() string
func (CursorAgent) HasProjectSkills ¶
func (CursorAgent) HasProjectSkills() bool
func (*CursorAgent) Name ¶
func (a *CursorAgent) Name() string
func (*CursorAgent) SkillsDir ¶
func (a *CursorAgent) SkillsDir(projectDir string) string
type GeminiAgent ¶
type GeminiAgent struct {
// contains filtered or unexported fields
}
GeminiAgent 实现 Gemini CLI 的 AgentProfile
func (*GeminiAgent) Detect ¶
func (a *GeminiAgent) Detect(projectDir string) bool
func (*GeminiAgent) GlobalSkillsDir ¶
func (a *GeminiAgent) GlobalSkillsDir() string
func (GeminiAgent) HasProjectSkills ¶
func (GeminiAgent) HasProjectSkills() bool
func (*GeminiAgent) Name ¶
func (a *GeminiAgent) Name() string
func (*GeminiAgent) SkillsDir ¶
func (a *GeminiAgent) SkillsDir(projectDir string) string
type HermesAgent ¶
type HermesAgent struct {
// contains filtered or unexported fields
}
HermesAgent 实现 Hermes Agent 的 AgentProfile(全局型)
func (*HermesAgent) Detect ¶
func (a *HermesAgent) Detect(projectDir string) bool
func (*HermesAgent) GlobalSkillsDir ¶
func (a *HermesAgent) GlobalSkillsDir() string
func (HermesAgent) HasProjectSkills ¶
func (HermesAgent) HasProjectSkills() bool
func (*HermesAgent) Name ¶
func (a *HermesAgent) Name() string
func (*HermesAgent) SkillsDir ¶
func (a *HermesAgent) SkillsDir(projectDir string) string
type MimoAgent ¶ added in v0.0.6
type MimoAgent struct {
// contains filtered or unexported fields
}
MimoAgent 实现 MiMo Code 的 AgentProfile 文档来源:https://mimo.xiaomi.com/zh/mimocode/skills 项目级:.mimocode/skills/**/SKILL.md(单数 skill/ 亦可) 全局级:~/.config/mimocode/skills/**/SKILL.md
func (*MimoAgent) GlobalSkillsDir ¶ added in v0.0.6
func (MimoAgent) HasProjectSkills ¶ added in v0.0.6
func (MimoAgent) HasProjectSkills() bool
type OpenClawAgent ¶
type OpenClawAgent struct {
// contains filtered or unexported fields
}
OpenClawAgent 实现 OpenClaw 的 AgentProfile(同时支持项目级和全局)
func (*OpenClawAgent) Detect ¶
func (a *OpenClawAgent) Detect(projectDir string) bool
func (*OpenClawAgent) GlobalSkillsDir ¶
func (a *OpenClawAgent) GlobalSkillsDir() string
func (OpenClawAgent) HasProjectSkills ¶
func (OpenClawAgent) HasProjectSkills() bool
func (*OpenClawAgent) Name ¶
func (a *OpenClawAgent) Name() string
func (*OpenClawAgent) SkillsDir ¶
func (a *OpenClawAgent) SkillsDir(projectDir string) string
type OpenCodeAgent ¶
type OpenCodeAgent struct {
// contains filtered or unexported fields
}
OpenCodeAgent 实现 OpenCode 的 AgentProfile
func (*OpenCodeAgent) Detect ¶
func (a *OpenCodeAgent) Detect(projectDir string) bool
func (*OpenCodeAgent) GlobalSkillsDir ¶
func (a *OpenCodeAgent) GlobalSkillsDir() string
func (OpenCodeAgent) HasProjectSkills ¶
func (OpenCodeAgent) HasProjectSkills() bool
func (*OpenCodeAgent) Name ¶
func (a *OpenCodeAgent) Name() string
func (*OpenCodeAgent) SkillsDir ¶
func (a *OpenCodeAgent) SkillsDir(projectDir string) string
type QClawAgent ¶
type QClawAgent struct {
// contains filtered or unexported fields
}
QClawAgent 实现 QClaw 的 AgentProfile(全局型)
func (*QClawAgent) Detect ¶
func (a *QClawAgent) Detect(projectDir string) bool
func (*QClawAgent) GlobalSkillsDir ¶
func (a *QClawAgent) GlobalSkillsDir() string
func (QClawAgent) HasProjectSkills ¶
func (QClawAgent) HasProjectSkills() bool
func (*QClawAgent) Name ¶
func (a *QClawAgent) Name() string
func (*QClawAgent) SkillsDir ¶
func (a *QClawAgent) SkillsDir(projectDir string) string
type QoderAgent ¶
type QoderAgent struct {
// contains filtered or unexported fields
}
QoderAgent 实现 Qoder 的 AgentProfile(同时支持项目级和全局)
func (*QoderAgent) Detect ¶
func (a *QoderAgent) Detect(projectDir string) bool
func (*QoderAgent) GlobalSkillsDir ¶
func (a *QoderAgent) GlobalSkillsDir() string
func (QoderAgent) HasProjectSkills ¶
func (QoderAgent) HasProjectSkills() bool
func (*QoderAgent) Name ¶
func (a *QoderAgent) Name() string
func (*QoderAgent) SkillsDir ¶
func (a *QoderAgent) SkillsDir(projectDir string) string
type RooAgent ¶
type RooAgent struct {
// contains filtered or unexported fields
}
RooAgent 实现 Roo Code 的 AgentProfile
func (*RooAgent) GlobalSkillsDir ¶
func (RooAgent) HasProjectSkills ¶
func (RooAgent) HasProjectSkills() bool
type TraeAgent ¶
type TraeAgent struct {
// contains filtered or unexported fields
}
TraeAgent 实现 Trae 的 AgentProfile
func (*TraeAgent) GlobalSkillsDir ¶
func (TraeAgent) HasProjectSkills ¶
func (TraeAgent) HasProjectSkills() bool
type WindsurfAgent ¶
type WindsurfAgent struct {
// contains filtered or unexported fields
}
WindsurfAgent 实现 Windsurf 的 AgentProfile Windsurf 原为单文件型(.windsurfrules),统一目录结构后使用 .windsurf/skills/
func (*WindsurfAgent) Detect ¶
func (a *WindsurfAgent) Detect(projectDir string) bool
func (*WindsurfAgent) GlobalSkillsDir ¶
func (a *WindsurfAgent) GlobalSkillsDir() string
func (WindsurfAgent) HasProjectSkills ¶
func (WindsurfAgent) HasProjectSkills() bool
func (*WindsurfAgent) Name ¶
func (a *WindsurfAgent) Name() string
func (*WindsurfAgent) SkillsDir ¶
func (a *WindsurfAgent) SkillsDir(projectDir string) string
type ZCodeAgent ¶ added in v0.0.6
type ZCodeAgent struct {
// contains filtered or unexported fields
}
ZCodeAgent 实现 ZCode 的 AgentProfile 文档来源:https://zcode.z.ai/cn/docs/skill 全局级(用户级):~/.zcode/skills/<skill-name>/SKILL.md 项目级:.zcode/skills(文档提到支持项目级导入,路径按惯例推断)
func (*ZCodeAgent) Detect ¶ added in v0.0.6
func (a *ZCodeAgent) Detect(projectDir string) bool
func (*ZCodeAgent) GlobalSkillsDir ¶ added in v0.0.6
func (a *ZCodeAgent) GlobalSkillsDir() string
func (ZCodeAgent) HasProjectSkills ¶ added in v0.0.6
func (ZCodeAgent) HasProjectSkills() bool
func (*ZCodeAgent) Name ¶ added in v0.0.6
func (a *ZCodeAgent) Name() string
func (*ZCodeAgent) SkillsDir ¶ added in v0.0.6
func (a *ZCodeAgent) SkillsDir(projectDir string) string