-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathskill.go
More file actions
34 lines (28 loc) 路 1.1 KB
/
Copy pathskill.go
File metadata and controls
34 lines (28 loc) 路 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
_ "embed"
"fmt"
"github.com/spf13/cobra"
)
// popSkillDescription is the description used in skill frontmatter.
const popSkillDescription = `Send emails from the terminal. Use when the user asks to send, draft, or compose an email, attach files to an email, configure email delivery via Resend or SMTP, or asks about pop commands and environment variables. Triggers on mentions of "pop" in the context of email, mailing, SMTP, or Resend.`
//go:embed skill.md
var popSkillBody string
// popSkill is the full Crush-compatible skill definition (frontmatter + body).
var popSkill = "---\n" +
"name: pop\n" +
"description: '" + popSkillDescription + "'\n" +
"---\n\n" +
popSkillBody
// SkillCmd prints a Crush-compatible skill definition to stdout so AI agents
// can discover and use pop non-interactively.
var SkillCmd = &cobra.Command{
Use: "skill",
Short: "Print a skill definition for AI agents",
Long: `Print a skill that teaches AI agents how to use Pop non-interactively.`,
Args: cobra.NoArgs,
RunE: func(_ *cobra.Command, _ []string) error {
fmt.Print(popSkill)
return nil
},
}