Skip to content

LeoYeAI/agent-master-skills / skills/ai-humanizer

humanizer

Verified

Humanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 24 pattern detectors, 500+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.

FileKindSize
README.mdmarkdown15.8 KB
SKILL.mdskill md7.8 KB
assets/banner.mdmarkdown331 B
docs/CONTRIBUTING.mdmarkdown2.0 KB
docs/EXAMPLES.mdmarkdown5.3 KB
docs/PATTERNS.mdmarkdown2.4 KB
eslint.config.jsscript559 B
package.jsonmanifest1.3 KB
references/ai-vocabulary.mdmarkdown5.5 KB
references/patterns.mdmarkdown10.0 KB
references/style-guide.mdmarkdown3.9 KB
scripts/analyze.shscript301 B
scripts/humanize.shscript315 B
src/analyzer.jsscript14.8 KB
src/cli.jsscript19.6 KB
src/humanizer.jsscript14.2 KB
src/patterns.jsscript28.1 KB
src/stats.jsscript9.5 KB
src/vocabulary.jsscript15.1 KB
tests/analyzer.test.jsscript13.2 KB
tests/calibration.test.jsscript7.2 KB
tests/edge-cases.test.jsscript7.1 KB
tests/fixtures/ai-sample-1.txtmarkdown2.2 KB
tests/fixtures/ai-sample-2.txtmarkdown1.1 KB
tests/fixtures/human-sample-1.txtmarkdown1.1 KB
tests/humanizer.test.jsscript6.4 KB
tests/performance.test.jsscript3.2 KB
tests/statistics.test.jsscript7.9 KB
vitest.config.jsscript152 B

tests/performance.test.js

View on GitHub
/**
 * performance.test.js — Benchmark tests.
 *
 * Analyze 10K words in under 1 second.
 */

import { describe, it, expect } from 'vitest';
import { analyze } from '../src/analyzer.js';
import { computeStats } from '../src/stats.js';

/**
 * Generate a large text block of approximately the target word count.
 */
function generateLargeText(targetWords) {
  const paragraphs = [
    "The project serves as a testament to innovation and transformative technology. In today's rapidly evolving landscape, these groundbreaking tools are reshaping how organizations navigate complexities.",
    'I tried three different approaches last week. The first one worked but was slow. The second broke in production. Third time was the charm — simple solution, no fancy tricks.',
    'Additionally, the comprehensive framework showcases seamless integration with cutting-edge platforms. Experts believe this plays a crucial role in fostering synergy across multifaceted teams.',
    'Found the bug at 2am. It was a race condition in the connection pool. Added a mutex, wrote a test, went to bed. PR got merged the next morning.',
    'It is worth noting that the landscape of modern software continues to evolve at a breathtaking pace. Despite challenges, the future looks bright as exciting times lie ahead.',
    "The API returns JSON. You POST to /users with a name and email. It gives you back an ID. That's it. No magic, just a REST endpoint.",
  ];

  let text = '';
  let words = 0;
  let i = 0;
  while (words < targetWords) {
    text += paragraphs[i % paragraphs.length] + '\n\n';
    words += paragraphs[i % paragraphs.length].split(/\s+/).length;
    i++;
  }
  return text;
}

describe('performance', () => {
  it('analyzes 10K words in under 1 second', () => {
    const text = generateLargeText(10000);
    const wordCount = text.split(/\s+/).filter(Boolean).length;
    expect(wordCount).toBeGreaterThanOrEqual(9000);

    const start = performance.now();
    const result = analyze(text);
    const elapsed = performance.now() - start;

    expect(elapsed).toBeLessThan(1000);
    expect(result.score).toBeGreaterThanOrEqual(0);
    expect(result.score).toBeLessThanOrEqual(100);
  });

  it('computes statistics on 10K words in under 500ms', () => {
    const text = generateLargeText(10000);

    const start = performance.now();
    const stats = computeStats(text);
    const elapsed = performance.now() - start;

    expect(elapsed).toBeLessThan(500);
    expect(stats.wordCount).toBeGreaterThan(5000);
  });

  it('handles 50K words without crashing', () => {
    const text = generateLargeText(50000);

    const start = performance.now();
    const result = analyze(text);
    const elapsed = performance.now() - start;

    expect(elapsed).toBeLessThan(5000);
    expect(result.score).toBeGreaterThanOrEqual(0);
  });

  it('many short analyses complete quickly (batch)', () => {
    const texts = Array.from(
      { length: 100 },
      (_, i) => `This is test text number ${i}. It has a few sentences. Nothing special here.`,
    );

    const start = performance.now();
    for (const text of texts) {
      analyze(text);
    }
    const elapsed = performance.now() - start;

    expect(elapsed).toBeLessThan(2000);
  });
});
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall