zenstory-ai/oh-story-claudecode / skills/story-long-write
story-long-write
Verified长篇网文规划与写作。支持只讨论结构、只写大纲或指定细纲,明确要求正文后再写章节。触发方式:/story-long-write、/写长篇、「帮我开书」「定设定」「出卷纲」「规划剧情」「写大纲」「补细纲」「日更」「续写」「继续写」「修改第X章」「回炉」「重写第X章」。
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: 194k | 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: 194k | 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: 194k | Updated | Claude CodeCodex | Verified | Install |