{"record":{"id":"79c381668245f076","repo":"multica-ai/multica","slug":"decode-agent-skills-response-w","errorCode":null,"errorMessage":"decode agent skills response: %w","messagePattern":"decode agent skills response: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_agent.go","lineNumber":1095,"sourceCode":"\t\tid = strings.TrimSpace(id)\n\t\tif id != \"\" {\n\t\t\tcleanIDs = append(cleanIDs, id)\n\t\t}\n\t}\n\treturn cleanIDs\n}\n\nfunc printAgentSkillsMutationResult(cmd *cobra.Command, agentID string, result json.RawMessage) error {\n\toutput, _ := cmd.Flags().GetString(\"output\")\n\tif output == \"json\" {\n\t\tvar pretty any\n\t\tjson.Unmarshal(result, &pretty)\n\t\treturn cli.PrintJSON(os.Stdout, pretty)\n\t}\n\n\tvar skills []map[string]any\n\tif err := json.Unmarshal(result, &skills); err != nil {\n\t\treturn fmt.Errorf(\"decode agent skills response: %w\", err)\n\t}\n\tif len(skills) == 0 {\n\t\tfmt.Printf(\"No skills assigned to agent %s\\n\", agentID)\n\t\treturn nil\n\t}\n\theaders := []string{\"ID\", \"NAME\", \"DESCRIPTION\"}\n\trows := make([][]string, 0, len(skills))\n\tfor _, s := range skills {\n\t\trows = append(rows, []string{\n\t\t\tstrVal(s, \"id\"),\n\t\t\tstrVal(s, \"name\"),\n\t\t\tstrVal(s, \"description\"),\n\t\t})\n\t}\n\tcli.PrintTable(os.Stdout, headers, rows)\n\treturn nil\n}\n","sourceCodeStart":1077,"sourceCodeEnd":1113,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_agent.go#L1077-L1113","documentation":"Error \"decode agent skills response: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_agent.go:1095 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the server version compatibility; the response could not be decoded."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}