Text Metrics
Probability-based text analysis providing GLTR token rank histograms, DetectGPT curvature probes, and Coh-Metrix-inspired cohesion metrics. Designed to compose with ai-check for comprehensive AI writing pattern detection.
Install
/plugin marketplace add astoreyai/claude-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add astoreyai/claude-skills --skill text-metricsgit clone --depth 1 https://github.com/astoreyai/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/skills/utility/text-metrics ~/.claude/skills/text-metricsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Text-Metrics: Probability-Based Text Analysis ## Overview A utility skill providing advanced statistical and model-based text analysis for AI detection. Implements three core capabilities grounded in peer-reviewed research: 1. **Token Rank Histograms** (GLTR-style): Analyzes token probability distributions 2. **DetectGPT Curvature Probes**: Measures log-probability curvature through perturbations 3. **Cohesion Metrics** (Coh-Metrix-inspired): Evaluates discourse connectives, lexical diversity, and referential cohesion ## Primary Use Case This skill is designed to **compose with the ai-check skill** to provide Dimension 5 (Probability-Based) detection features. It can also be used standalone for text analysis research. ## Auto-Invoke Conditions This skill is typically invoked **by other skills** (particularly ai-check) rather than directly by users. It may be invoked when: - AI-check requests probability-based metrics - User explicitly requests "token rank analysis" or "GLTR" - User mentions "DetectGPT" or "curvature probe" - User asks for "lexical diversity" or "cohesion metrics" ## Scientific Foundation ### 1. GLTR Token Rank Histograms **Reference**: Gehrmann, S., Strobelt, H., & Rush, A. M. (2019). "GLTR: Statistical Detection and Visualization of Generated Text." ACL 2019. **Principle**: LLM-generated text tends to select higher-probability tokens (lower ranks) more consistently than human writing, which exhibits more variability and surprisal. **Method**:
Details
- Skill name
text-metrics- Repository
- astoreyai/claude-skills
- Path
skills/utility/text-metrics/SKILL.md- License
- MIT
- Repo updated
- 12 June 2026
FAQ
What does the Text Metrics skill do?
Probability-based text analysis providing GLTR token rank histograms, DetectGPT curvature probes, and Coh-Metrix-inspired cohesion metrics. Designed to compose with ai-check for comprehensive AI writing pattern detection.
How do I install the Text Metrics skill?
Claude Code plugin: /plugin marketplace add astoreyai/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Text Metrics popular?
It lives in astoreyai/claude-skills, which has 5 GitHub stars and 1 forks.
Related skills
Google Calendar Sync
5astoreyai/claude-skills
Manages Google Calendar through the Calendar API. Create, read, update, and delete events, manage multiple calendars, set reminders, handle recurring events, and sync with local schedules. Use when working with Google Calendar, scheduling events, checking availability, managing meetings, or automating calendar workflows.
Google Docs Collaboration
5astoreyai/claude-skills
Manages Google Docs, Sheets, and Slides through the Docs, Sheets, and Slides APIs. Create, read, and edit documents, spreadsheets, and presentations programmatically. Format content, manage collaboration, extract data, and automate document workflows. Use when working with Google Workspace documents, editing content, extracting data, or automating document creation.
Google Drive Management
5astoreyai/claude-skills
Manages Google Drive files and folders through the Drive API. Search for files, read content, create and update documents, organize folders, manage permissions, and sync files. Use when working with Google Drive, uploading/downloading files, searching Drive content, or managing Drive organization.
Add Agent
8ranbot-ai/awesome-skills
This agent helps create new microagents in the `.openhands/microagents` directory by providing guidance and templates.
Smart Screenshot
5astoreyai/claude-skills
Intelligent screenshot and screen capture with OCR, markdown conversion, and annotation. Triggered by PrtSc key, captures screen regions, extracts text with OCR, converts to markdown using MarkItDown, saves with auto-formatting. Similar to Windows Snipping Tool with AI enhancements for text extraction and document processing.
Agent Mail Automation
8ranbot-ai/awesome-skills
Automate Agent Mail tasks via Rube MCP (Composio). Always search tools first for current schemas.
Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.