agent

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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(项目级优先,全局型在后)

func GetAgent

func GetAgent(name string) (AgentProfile, error)

GetAgent 按名称查找 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) Detect

func (a *AmpAgent) Detect(projectDir string) bool

func (*AmpAgent) GlobalSkillsDir

func (a *AmpAgent) GlobalSkillsDir() string

func (AmpAgent) HasProjectSkills

func (AmpAgent) HasProjectSkills() bool

func (*AmpAgent) Name

func (a *AmpAgent) Name() string

func (*AmpAgent) SkillsDir

func (a *AmpAgent) SkillsDir(projectDir string) string

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 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) Detect

func (a *RooAgent) Detect(projectDir string) bool

func (*RooAgent) GlobalSkillsDir

func (a *RooAgent) GlobalSkillsDir() string

func (RooAgent) HasProjectSkills

func (RooAgent) HasProjectSkills() bool

func (*RooAgent) Name

func (a *RooAgent) Name() string

func (*RooAgent) SkillsDir

func (a *RooAgent) SkillsDir(projectDir string) string

type TraeAgent

type TraeAgent struct {
	// contains filtered or unexported fields
}

TraeAgent 实现 Trae 的 AgentProfile

func (*TraeAgent) Detect

func (a *TraeAgent) Detect(projectDir string) bool

func (*TraeAgent) GlobalSkillsDir

func (a *TraeAgent) GlobalSkillsDir() string

func (TraeAgent) HasProjectSkills

func (TraeAgent) HasProjectSkills() bool

func (*TraeAgent) Name

func (a *TraeAgent) Name() string

func (*TraeAgent) SkillsDir

func (a *TraeAgent) SkillsDir(projectDir string) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL