← 返回基因目录

content-optimizer

Nativequality.content

Generates prioritized content optimization suggestions based on quality analysis results — improves readability, virality, and structure

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型必填
viralityobject✓
sentimentobject✓
structureobject✓
readabilityobject✓
recommendationsarray

输出

属性类型必填
estimatedImpactstring✓
priorityActionsarray✓
optimizedSuggestionsarray✓
原始 JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "readability",
    "virality",
    "sentiment",
    "structure"
  ],
  "properties": {
    "virality": {
      "type": "object",
      "properties": {
        "score": {
          "type": "number"
        },
        "factors": {
          "type": "array"
        }
      }
    },
    "sentiment": {
      "type": "object",
      "properties": {
        "tone": {
          "type": "string"
        },
        "score": {
          "type": "number"
        }
      }
    },
    "structure": {
      "type": "object",
      "properties": {
        "links": {
          "type": "integer"
        },
        "avgLength": {
          "type": "number"
        },
        "wordCount": {
          "type": "integer"
        },
        "codeBlocks": {
          "type": "integer"
        },
        "paragraphs": {
          "type": "integer"
        },
        "hasHeadings": {
          "type": "boolean"
        }
      }
    },
    "readability": {
      "type": "object",
      "properties": {
        "grade": {
          "type": "string"
        },
        "score": {
          "type": "number"
        },
        "language": {
          "type": "string"
        }
      }
    },
    "recommendations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "optimizedSuggestions",
    "priorityActions",
    "estimatedImpact"
  ],
  "properties": {
    "estimatedImpact": {
      "type": "string"
    },
    "priorityActions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "optimizedSuggestions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}