GPT Analyzer
GPT-specific pattern detection with model fingerprinting and version identification
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- id
- gpt-analyzer
- name
- GPT Analyzer
- tags
- [ "ai-detection", "gpt", "pattern-matching", "model-fingerprinting" ]
- author
- NeoClaw Team
- version
- 1.0.0
- category
- detection
- description
- GPT-specific pattern detection with model fingerprinting and version identification
- dependencies
- []
03 SKILL.md 正文
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
}
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.