← Back to Gene Catalog

hook-analyzer

Native content.hook.analysis

分析钩子结构与心理触发点,返回诊断与优化建议。

README

No documentation yet.

Gene authors can add a README when publishing.

Phenotype

Input

PropertyType Req
text string
locale string = zh-CN
targetCategories array

Output

PropertyType Req
suggestions array
overallScore number
detectedHooks array
Raw JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string"
    },
    "locale": {
      "type": "string",
      "default": "zh-CN"
    },
    "targetCategories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "detectedHooks",
    "overallScore",
    "suggestions"
  ],
  "properties": {
    "suggestions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "overallScore": {
      "type": "number",
      "maximum": 100,
      "minimum": 0
    },
    "detectedHooks": {
      "type": "array"
    }
  }
}