Iteratively refine essays to minimize false positives from oversensitive AI detectors by removing stereotypical AI writing patterns and aligning semantic density and syntactic complexity with native human writing norms.
text
1. User provides essay text
2. MEASURE: Run skill/scripts/measure.py → get AI score, MDD, TTR, CW ratio
3. CHECK: If all metrics pass → output essay + report. Done.
4. REWRITE: Generate targeted revision using feedback from measurement
5. RE-MEASURE: Run measure.py on rewritten text
6. REPEAT: Loop steps 3-5 until pass or max iterations (default 3)
7. OUTPUT: Final essay + iteration report table + change summary
AxisToolPass CriteriaAI Pattern Score24-regex weighted scan≤ 15 / 100MDD MeanspaCy dependency parse2.15 – 2.55MDD Varianceper-sentence MDD spread≥ 0.016Lexical TTRcontent-word type/token≥ 0.50Content-Word Ratiocontent / all tokens0.52 – 0.65
See skill/references/metrics.md for formulas and baselines.
See skill/references/iteration_strategy.md for full escalation logic.
All rewriting is performed locally by the orchestrating LLM based on targeted feedback from measure.py. No external API calls are made.
Rules for rewriting:
build_iteration_feedback()Plain text. Preserve the original heading structure if any. No markdown artifacts.
text
| Iter | AI Score | MDD Mean | MDD Var | TTR | CW Ratio | Status |
|------|----------|----------|----------|--------|----------|--------|
| 0 | 45.2 | 2.4821 | 0.0098 | 0.4712 | 0.6280 | FAIL |
| 1 | 18.6 | 2.3891 | 0.0142 | 0.4988 | 0.5932 | FAIL |
| 2 | 11.3 | 2.3504 | 0.0178 | 0.5124 | 0.5801 | PASS |
After the table, provide a brief bullet list of what changed across iterations:
measure.py for scoring — do not estimate scoresFilePurposeskill/scripts/measure.pyQuantitative scorer (AI patterns + MDD + semantic density)skill/scripts/iterate.pyIteration engine (measure + feedback generation)skill/references/patterns.md24 AI pattern definitions and fix strategiesskill/references/metrics.mdMetric formulas, baselines, thresholdsskill/references/iteration_strategy.mdPer-iteration focus and escalation logicdata/analysis/weights.jsonCorpus-derived pattern weights