zenstory-ai/oh-story-claudecode / skills/story-deslop
story-deslop
Verified网文去AI味。从表达、叙事用笔、故事因果三层诊断并修复文本,保留作者文风与已定剧情。触发方式:/story-deslop、/去AI味、「去AI味」「这篇太AI了」「网文去AI味」。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.0 KB |
| references/agent-calls.md | markdown | 1.2 KB |
| references/banned-words.md | markdown | 10.9 KB |
| references/deslop-gates.md | markdown | 2.3 KB |
| references/expression.md | markdown | 9.6 KB |
| references/narrative-focus.md | markdown | 6.7 KB |
| references/short-deslop.md | markdown | 1.5 KB |
| references/story-logic.md | markdown | 5.9 KB |
| references/style-resolution.md | markdown | 3.0 KB |
| scripts/check-ai-patterns.jsexecutable | script | 79.8 KB |
| scripts/check-degeneration.js | script | 15.4 KB |
| scripts/normalize-punctuation.jsexecutable | script | 19.0 KB |
| scripts/style-whitelist.js | script | 1.1 KB |
scripts/style-whitelist.js
View on GitHub'use strict';
const fs = require('fs');
const path = require('path');
// Book-local only: never inherit an unrelated workspace or another book's choices.
function loadStyleWhitelist(file) {
const parent = path.dirname(path.resolve(file));
const book = path.basename(parent) === '正文' ? path.dirname(parent) : parent;
try {
return fs.readFileSync(path.join(book, '.deslop-whitelist'), 'utf8')
.split(/\r?\n/).map(line => line.trim())
.filter(line => line && !line.startsWith('#'))
.sort((a, b) => b.length - a.length);
} catch (error) {
if (error.code === 'ENOENT') return [];
throw error;
}
}
function styleSpans(text, whitelist) {
const spans = [];
for (const literal of whitelist) {
for (let at = text.indexOf(literal); at !== -1; at = text.indexOf(literal, at + 1)) {
spans.push([at, at + literal.length]);
}
}
return spans;
}
function maskStyleText(text, whitelist) {
const chars = text.split('');
for (const [start, end] of styleSpans(text, whitelist)) {
chars.fill('?', start, end);
}
return chars.join('');
}
module.exports = { loadStyleWhitelist, styleSpans, maskStyleText };
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |