🔍

AI 生成文本智能识别与溯源

Gpt Analyzer · v1.0.0
这个包缺安装入口,装上也不会生效 缺 SKILL.md 或 frontmatter 不完整(BAD_NAME)。我们仍保留下载,方便你自行查看内容。
AI 增强 安全 B 级 作者 raghulpasupathi 公开目录收录
1.2k 下载 0 安装 5.7k 收藏 18 浏览

简介

GPT 生成内容专项检测工具,通过模型指纹特征与句式模式识别,快速判断文本是否由 GPT 系列模型生成。

原始描述

GPT-specific pattern detection with model fingerprinting and version identification

通过你的 Agent 添加

安装目录:gpt-analyzer/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/gpt-analyzer/
Codex CLI~/.codex/skills/gpt-analyzer/
DeepSeek Harness~/.agents/skills/gpt-analyzer/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心功能与用法

GPT Analyzer 是一款针对 GPT 系列大语言模型生成内容的专项检测工具。其核心机制建立在模型指纹特征识别与统计模式分析两大技术支柱之上:

1. 短语特征库匹配

  • 内置三层短语库:GPT-4 专属特征(如 "delve into", "multifaceted", "nuanced")、GPT-3.5 专属特征(如 "as an AI language model", "certainly", "furthermore")、以及通用 GPT 特征(如 "it's worth noting", "in conclusion")
  • 通过关键词命中频次与权重累加计算置信度分数

2. 结构模式分析

  • 检测编号列表与项目符号的密集使用(≥3 处)
  • 计算句子长度方差,识别 GPT 特有的低方差均匀句式特征

3. 模型版本推断

  • 对比 GPT-4 与 GPT-3.5 特征得分,输出最可能的模型来源
  • 置信度阈值可配置(默认 0.7)

显著优点

  • 轻量高效:纯规则匹配实现,无需 GPU 或外部 API 调用,延迟极低
  • 可解释性强:返回详细的命中短语列表与各项子分数,便于人工复核
  • 模型细分能力:能区分 GPT-4 / GPT-3.5 / 通用 GPT 三类来源
  • 零依赖部署:单文件 JavaScript 实现,易于嵌入现有系统

潜在局限与风险

检测效度问题:

  • 依赖静态短语库,对经过人工润色、提示词工程优化或风格迁移的 GPT 输出识别率显著下降
  • 无法检测基于检索增强生成(RAG)或微调模型的输出
  • 短语库可能随模型版本迭代而过时(如 GPT-4o、GPT-4.5 等新型号无对应特征)

误判风险:

  • 高置信度阈值(0.85)下仍可能存在误报——学术写作、商务报告中常见正式用语与工具特征库重叠
  • 短文本(<100 词)因样本不足,方差计算与结构分析可靠性下降

对抗性绕过:

  • 攻击者可通过同义词替换、句式重组、插入口语化表达轻易绕过检测
  • 工具未实现对抗样本鲁棒性机制

适用场景

适用 不适用
批量内容平台的初步筛查 高 stakes 学术诚信判定
内部文档的 AI 参与度估算 法律证据级别的来源鉴定
内容审核的优先级排序 检测对抗性伪造的人类写作

常规风险

  • 依赖过时数据:模型演进速度快,短语库维护滞后将导致检测率衰减
  • 合规敏感:用于学术或雇佣场景时,需明确告知用户检测逻辑与局限性,避免算法歧视争议
  • 安全等级:规则透明易被逆向,不建议作为唯一风控手段部署

结论

GPT Analyzer 适合作为快速预筛选工具集成至内容 pipeline,但须配合人工审核或其他检测手段形成防御纵深。对于需要高可靠性的场景,建议迁移至基于大语言模型判别器或水印检测的方案。

技能正文


id: gpt-analyzer version: 1.0.0 name: GPT Analyzer description: GPT-specific pattern detection with model fingerprinting and version identification author: NeoClaw Team category: detection tags:

  • ai-detection
  • gpt
  • pattern-matching
  • model-fingerprinting dependencies: []

GPT Analyzer

Specialized detection for GPT-generated content with model-specific pattern recognition.

Implementation

/**
 * Analyze text for GPT-specific patterns and fingerprints
 * @param {string} text - Text to analyze
 * @param {object} options - Configuration options
 * @returns {object} Analysis result with model identification
 */
async function analyzeGPTContent(text, options = {}) {
  const {
    detectVersion = true,
    checkWatermarks = true,
    minConfidence = 0.7
  } = options;

  const normalizedText = text.toLowerCase();
  const wordCount = text.split(/\s+/).length;

  // GPT-specific phrases (stronger indicators)
  const gptPhrases = {
    'gpt-4': [
      'delve into', 'landscape of', 'realm of', 'it\'s important to note',
      'multifaceted', 'nuanced', 'comprehensive', 'holistic approach'
    ],
    'gpt-3.5': [
      'as an ai language model', 'i don\'t have personal', 'i apologize for',
      'certainly', 'absolutely', 'furthermore', 'moreover'
    ],
    'common': [
      'it\'s worth noting', 'keep in mind', 'in conclusion',
      'to summarize', 'in summary', 'navigate the', 'tapestry of'
    ]
  };

  // Model fingerprinting
  let gpt4Score = 0;
  let gpt35Score = 0;
  let commonScore = 0;
  const foundPhrases = [];

  // Check GPT-4 specific patterns
  for (const phrase of gptPhrases['gpt-4']) {
    if (normalizedText.includes(phrase)) {
      gpt4Score += 0.2;
      foundPhrases.push({ phrase, model: 'gpt-4' });
    }
  }

  // Check GPT-3.5 specific patterns
  for (const phrase of gptPhrases['gpt-3.5']) {
    if (normalizedText.includes(phrase)) {
      gpt35Score += 0.2;
      foundPhrases.push({ phrase, model: 'gpt-3.5' });
    }
  }

  // Check common GPT patterns
  for (const phrase of gptPhrases['common']) {
    if (normalizedText.includes(phrase)) {
      commonScore += 0.1;
      foundPhrases.push({ phrase, model: 'common' });
    }
  }

  // Structure analysis
  const hasNumberedLists = (text.match(/\n\d+\./g) || []).length >= 3;
  const hasBulletPoints = (text.match(/\n[•\-\*]/g) || []).length >= 3;
  const structureScore = (hasNumberedLists || hasBulletPoints) ? 0.15 : 0;

  // Sentence uniformity
  const sentences = text.split(/[.!?]+/).filter(s => s.trim());
  const avgLength = sentences.reduce((sum, s) => sum + s.length, 0) / sentences.length;
  const variance = sentences.reduce((sum, s) => sum + Math.pow(s.length - avgLength, 2), 0) / sentences.length;
  const uniformityScore = variance < 500 ? 0.1 : 0;

  // Calculate confidence
  const totalScore = gpt4Score + gpt35Score + commonScore + structureScore + uniformityScore;
  const confidence = Math.min(totalScore, 1.0);

  // Determine model
  let detectedModel = 'unknown';
  if (gpt4Score > gpt35Score && gpt4Score > 0) {
    detectedModel = 'gpt-4';
  } else if (gpt35Score > gpt4Score && gpt35Score > 0) {
    detectedModel = 'gpt-3.5';
  } else if (commonScore > 0) {
    detectedModel = 'gpt-family';
  }

  const isGPT = confidence >= minConfidence;

  return {
    isGPT,
    confidence: Math.round(confidence * 100),
    detectedModel: isGPT ? detectedModel : 'not-gpt',
    scores: {
      gpt4: Math.round(gpt4Score * 100) / 100,
      gpt35: Math.round(gpt35Score * 100) / 100,
      common: Math.round(commonScore * 100) / 100,
      structure: Math.round(structureScore * 100) / 100,
      uniformity: Math.round(uniformityScore * 100) / 100
    },
    indicators: {
      foundPhrases: foundPhrases.length,
      hasStructure: hasNumberedLists || hasBulletPoints,
      avgSentenceLength: Math.round(avgLength),
      sentenceVariance: Math.round(variance)
    },
    recommendation: confidence >= 0.85 ? 'Very likely GPT' :
                     confidence >= 0.70 ? 'Likely GPT' :
                     confidence >= 0.50 ? 'Possibly GPT' :
                     'Unlikely GPT or human-written'
  };
}

// Export for OpenClaw
module.exports = {
  analyzeGPTContent
};

Usage

const result = await skills.gptAnalyzer.analyzeGPTContent(text);

if (result.isGPT) {
  console.log(`GPT detected: ${result.detectedModel} (${result.confidence}% confidence)`);
}

Configuration

{
  "detectVersion": true,
  "minConfidence": 0.7
}

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

ai-detectiongptpattern-matchingmodel-fingerprintingcontent-authenticationtext-analysis

同类 Skill