humanizer-lint · v0.2.1 · 2026-10-30 · sha256 46ee42feb505b5f8

humanizer-lint v0.2.1A

Immutable. This exact content never changes and is served at /api/v1/blob/46ee42feb505b5f8.

---
name: humanizer-lint
description: Closed-loop stylometric linter and anti-AI-slop validator for Indonesian and English prose. Use when writing, editing, humanizing, or auditing articles, essays, documentation, and copy.
license: MIT
compatibility: Node.js >= 18.3.0 (zero external dependencies)
allowed-tools: Bash(node:*) Read Write
metadata:
  version: "0.2.1"
  author: "yanstd888"
  domain: "writing"
---

# Humanizer Lint

Use this skill when writing or revising Indonesian or English prose that must avoid uniform agent rhythm, repeated stock phrases, and excessive translation-style structure. The local analyzer is mandatory. It uses only Node.js built-ins and sends no text over the network.

## When to use

- Humanize an agent-generated draft in Indonesian or English.
- Check prose for uniform sentence rhythm and repeated lexical templates.
- Match a user voice profile generated from writing samples.
- Verify edited prose before returning it.

Do not use it to alter code, commands, structured data, quotations, legal language, or factual identifiers. The sanitizer excludes common Markdown structures, but the agent must still preserve meaning and supported facts.

## Prerequisites

- Node.js 18.3 or newer.
- Resolve this skill's installed directory as `<skill_dir>` at runtime.
- Optional custom profile: `<skill_dir>/profiles/custom-voice.json`.

## Closed-loop protocol

### 1. Resolve context

1. Resolve `<skill_dir>` from this `SKILL.md`; never assume the current working directory.
2. Determine `id`, `en`, or `auto` from the requested output.
3. If `<skill_dir>/profiles/custom-voice.json` exists, pass it with `--profile`. Otherwise use the bundled default profile.
4. Keep source facts, names, numbers, dates, quotations, citations, and technical terms unchanged unless the user explicitly requests a factual edit.

Completion criterion: language, analyzer path, and optional profile path are known before drafting.

### 2. Draft with asymmetric rhythm

Write the first draft with concrete subjects and verbs. Mix short 2 to 6 word sentences with longer 26 to 38 word sentences where the meaning supports them. Avoid generic introductions and summary paragraphs that merely repeat earlier content.

Do not distort meaning to hit a metric. Sentence-length variation must come from legitimate splitting, merging, or reordering of supported material.

Completion criterion: the draft preserves every source claim and contains no invented detail.

### 3. Run deterministic verification

Prefer stdin so the target repository remains clean:

```sh
node <skill_dir>/scripts/analyze.mjs --stdin --lang auto --json
```

Pipe the complete draft to stdin. With a custom profile:

```sh
node <skill_dir>/scripts/analyze.mjs --stdin --lang auto --profile <skill_dir>/profiles/custom-voice.json --json
```

Never skip this command. Read `status`, `score`, `metrics`, and every item in `violations`.

Completion criterion: a parseable JSON report exists for the exact draft being considered.

### 4. Correct only flagged prose

If `status` is `FAIL`:

1. Group overlapping violations by paragraph. Whole-text statistical diagnostics (`LOW_BURSTINESS`, `MISSING_SENTENCE_RANGE`, `LOW_ADJACENT_DELTA`, and `LOW_LEXICAL_DIVERSITY`) identify the global gate when no single sentence is solely responsible.
2. Edit only the cited sentences or paragraphs, or make the smallest whole-text rhythm correction named by a statistical diagnostic.
3. Follow each `fixInstruction` without adding or dropping facts.
4. Run the analyzer again on the complete revised draft.
5. Stop after three analyzer iterations.

If `status` is `SKIP`, statistical stylometry is unavailable. Fix any lexical violations that are still reported, preserve the short form, and state that the statistical gate was skipped because the text is too short.

If the third iteration still returns `FAIL`, do not present the draft as verified. Return the remaining diagnostics and ask whether the user wants a broader rewrite.

Completion criterion: return prose only after `PASS`, or an explicitly labeled short-text `SKIP` with no unresolved lexical violations.

## Analyzer commands

```sh
node <skill_dir>/scripts/analyze.mjs --file draft.md --lang id --json
node <skill_dir>/scripts/analyze.mjs --file draft.md --lang en
node <skill_dir>/scripts/analyze.mjs --stdin --lang auto --json
node <skill_dir>/scripts/fingerprint.mjs --input samples --output <skill_dir>/profiles/custom-voice.json
```

Exit codes:

- `0`: `PASS` or `SKIP`.
- `1`: analyzed successfully and returned `FAIL`.
- `2`: invalid arguments, unreadable input, or malformed profile.

## Pitfalls

- A high score does not prove human authorship. It proves only that the configured checks passed.
- Very short text cannot support statistical stylometry.
- Technical, legal, and intentionally repetitive prose may require a custom profile.
- Do not rewrite unflagged paragraphs merely to increase the score.
- Do not treat `voiceProfileDeviation` as an authorship probability; it is a relative distance from the selected profile.

## Verification

Before returning revised prose:

- [ ] Analyzer ran against the final exact text.
- [ ] Final status is `PASS`, or an honest lexical-clean `SKIP` for short text.
- [ ] No source fact, identifier, number, quotation, or citation changed unintentionally.
- [ ] Only flagged prose was revised after the first analyzer pass.
- [ ] No network service or external package was used.