PurposeThe purpose of this study was to construct a gene signature comprising genes related to both inflammation and pyroptosis (GRIPs) to predict the prognosis of patients with cutaneous melanoma patients and the efficacy of immunotherapy, chemotherapy, and targeted therapy in these patients.MethodsGene expression profiles were collected from The Cancer Genome Atlas. Weighted gene co-expression network analysis was performed to identify GRIPs. Univariable Cox regression and Lasso regression further selected key prognostic genes. Multivariable Cox regression was used to construct a risk score, which stratified patients into high- and low-risk groups. Areas under the ROC curves (AUCs) were calculated, and Kaplan-Meier analyses were performed for the two groups, following validation in an external cohort from Gene Expression Omnibus (GEO). A nomogram including the GRIP signature and clinicopathological characteristics was developed for clinical use. Gene set enrichment analysis illustrated differentially enriched pathways. Differences in the tumor microenvironment (TME) between the two groups were assessed. The efficacies of immune checkpoint inhibitors (ICIs), chemotherapeutic agents, and targeted agents were predicted for both groups. Immunohistochemical analyses of the GRIPs between the normal and CM tissues were performed using the Human Protein Atlas data. The qRT-PCR experiments validated the expression of genes in CM cell lines, Hacat, and PIG1 cell lines.ResultsA total of 185 GRIPs were identified. A novel gene signature comprising eight GRIPs (TLR1, CCL8, EMP3, IFNGR2, CCL25, IL15, RTP4, and NLRP6) was constructed. The signature had AUCs of 0.714 and 0.659 for predicting 3-year overall survival (OS) in the TCGA entire and GEO validation cohorts, respectively. Kaplan-Meier analyses revealed that the high-risk group had a poorer prognosis. Multivariable Cox regression showed that the GRIP signature was an independent predictor of OS with higher accuracy than traditional clinicopathological features. The nomogram showed good accuracy and reliability in predicting 3-year OS (AUC = 0.810). GSEA and TME analyses showed that the high-risk group had lower levels of pyroptosis, inflammation, and immune response, such as lower levels of CD8+ T-cell infiltration, CD4+ memory-activated T-cell infiltration, and ICI. In addition, low-risk patients whose disease expressed PD-1 or CTLA-4 were likely to respond better to ICIs, and several chemotherapeutic and targeted agents. Immunohistochemical analysis confirmed the distinct expression of five out of the eight GRIPs between normal and CM tissues.ConclusionOur novel 8-GRIP signature can accurately predict the prognosis of patients with CM and the efficacies of multiple anticancer therapies. These GRIPs might be potential prognostic biomarkers and therapeutic targets for CM.