@@ -169,7 +169,7 @@ func AddSkill(src string, opts AddOptions, cwd string) error {
169169 var err error
170170 cwd , err = os .Getwd ()
171171 if err != nil {
172- return fmt .Errorf ("failed to get current working directory: %w" , err )
172+ return fmt .Errorf ("get working directory: %w" , err )
173173 }
174174 }
175175
@@ -240,10 +240,10 @@ func AddSkill(src string, opts AddOptions, cwd string) error {
240240 for _ , agentType := range targetAgents {
241241 res , err := installSkillForAgent (skillName , dir , agentType , opts , cwd )
242242 if err != nil {
243- return fmt .Errorf ("failed to install skill for agent %s: %w" , agentType , err )
243+ return fmt .Errorf ("install skill for agent %s: %w" , agentType , err )
244244 }
245245 if ! res .Success {
246- return fmt .Errorf ("failed to install skill %q for agent %s: %s" , skillName , agentType , res .Error )
246+ return fmt .Errorf ("install skill %q for agent %s: %s" , skillName , agentType , res .Error )
247247 }
248248 if opts .Verbose {
249249 status := "Installed"
@@ -427,7 +427,7 @@ func downloadRemote(repoURL string, ref string, opts AddOptions) (string, error)
427427 resp , err := http .Get (zipURL )
428428 if err != nil {
429429 _ = os .RemoveAll (tmpDir )
430- return "" , fmt .Errorf ("failed to fetch from remote URL : %w" , err )
430+ return "" , fmt .Errorf ("fetch remote: %w" , err )
431431 }
432432 defer resp .Body .Close ()
433433
@@ -453,7 +453,7 @@ func downloadRemote(repoURL string, ref string, opts AddOptions) (string, error)
453453
454454 if err := extractZip (resp .Body , tmpDir , verbose ); err != nil {
455455 _ = os .RemoveAll (tmpDir )
456- return "" , fmt .Errorf ("failed to extract downloaded zip: %w" , err )
456+ return "" , fmt .Errorf ("extract zip: %w" , err )
457457 }
458458
459459 return tmpDir , nil
0 commit comments