@@ -20,17 +20,20 @@ func SetupAIInstructions(agentName string, workspace string) error {
2020 agentName = strings .ToLower (agentName )
2121
2222 switch agentName {
23- case "copilot" , "cursor" :
24- targetFile = ".cursorrules"
23+ case "copilot" :
24+ targetFile = filepath . Join ( ".github" , "copilot-instructions.md" )
2525 instructions = getCopilotInstructions ()
26+ case "cursor" :
27+ targetFile = filepath .Join (".cursor" , "rules" , "efctl.md" )
28+ instructions = getCursorInstructions ()
2629 case "claude" :
27- targetFile = ".clauderules "
30+ targetFile = "CLAUDE.md "
2831 instructions = getClaudeInstructions ()
2932 case "gemini" :
3033 targetFile = filepath .Join (".agents" , "instructions.md" )
3134 instructions = getGeminiInstructions ()
3235 default :
33- return fmt .Errorf ("unsupported agent: %s; supported agents are: copilot, claude, gemini" , agentName )
36+ return fmt .Errorf ("unsupported agent: %s; supported agents are: copilot, cursor, claude, gemini" , agentName )
3437 }
3538
3639 absPath := filepath .Join (workspace , targetFile )
@@ -64,7 +67,7 @@ func SetupAIInstructions(agentName string, workspace string) error {
6467 return os .WriteFile (absPath , []byte (newContent ), 0600 ) // #nosec G306 G703
6568}
6669
67- func getCopilotInstructions () string {
70+ func getSharedInstructions () string {
6871 return `
6972# efctl Context
7073You are working on a project using 'efctl', the EVE Frontier CLI.
@@ -80,10 +83,22 @@ Reference AGENTS.md for core principles.
8083`
8184}
8285
86+ func getCopilotInstructions () string {
87+ return getSharedInstructions ()
88+ }
89+
90+ func getCursorInstructions () string {
91+ return `---
92+ description: efctl usage instructions
93+ globs: **/*
94+ ---
95+ ` + getSharedInstructions ()
96+ }
97+
8398func getClaudeInstructions () string {
84- return getCopilotInstructions ()
99+ return getSharedInstructions ()
85100}
86101
87102func getGeminiInstructions () string {
88- return getCopilotInstructions ()
103+ return getSharedInstructions ()
89104}
0 commit comments