Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.
中文简介正在准备中。当前显示原文说明。
Use when ingesting text samples to extract quantitative writing style metrics. Produces a structured JSON style profile with vocabulary patterns, sentence structure, tone markers, and formatting preferences. Invoke before voice-clone-generator to establish style constraints.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Extract a structured, quantitative writing style profile from text samples. The profile captures vocabulary patterns, sentence structure, tone markers, and formatting preferences as measurable metrics that can constrain downstream content generation.
Core principle: Style is measurable. Every writer produces a statistical fingerprint across vocabulary, syntax, and formatting dimensions.
Accept text from one or more sources:
# Analyze a single file
node .claude/tools/cli/style-profiler.cjs /path/to/sample.txt
# Analyze a directory of text files
node .claude/tools/cli/style-profiler.cjs /path/to/samples/
# Output is written to .claude/context/data/user-style-profile.json
Alternatively, read files with the Read tool and analyze inline for smaller samples.
Minimum input requirements:
Analyze word usage across all samples:
Measure syntactic patterns:
Score the writing on five dimensions (each 1.0 to 5.0):
| Dimension | 1.0 (Low) | 5.0 (High) | How Measured |
|---|---|---|---|
| Formality | Very formal | Very casual | Contraction frequency, slang usage, punctuation |
| Directness | Hedged | Blunt | Hedge word frequency (maybe, perhaps, somewhat) |
| Emotion | Neutral | Expressive | Exclamation marks, emotional adjectives |
| Humor | Serious | Playful | Parenthetical asides, informal interjections |
| Authority | Tentative | Authoritative | Imperative sentences, certainty language |
Analyze structural patterns:
Assemble all metrics into a structured profile:
{
"version": "1.0.0",
"createdAt": "2026-03-21T00:00:00Z",
"sampleCount": 5,
"totalWords": 12450,
"vocabulary": {
"topWords": ["specific", "pattern", "implementation", "..."],
"typeTokenRatio": 0.42,
"signaturePhrases": ["in practice", "the key insight"]
},
"sentenceStructure": {
"avgLength": 18.3,
"lengthVariance": 7.2,
"shortSentenceRatio": 0.15,
"longSentenceRatio": 0.22,
"questionFrequency": 0.08,
"avgCommasPerSentence": 1.4
},
"tone": {
"formality": 2.8,
"directness": 4.1,
"emotion": 2.0,
"humor": 1.5,
"authority": 3.8
},
"formatting": {
"avgParagraphLength": 3.2,
"headingDepth": 3,
"listFrequencyPer1000": 2.1,
"codeBlockFrequencyPer1000": 0.8,
"emphasisFrequencyPer1000": 4.5,
"punctuation": {
"emDashFrequency": 0.03,
"semicolonFrequency": 0.01,
"ellipsisFrequency": 0.005,
"exclamationFrequency": 0.02
}
}
}
Save to .claude/context/data/user-style-profile.json.
.claude/context/data/user-style-profile.json -- downstream skills depend on this exact path.sampleCount and totalWords fields in the profile -- consumers need to assess the statistical reliability of the metrics.| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Analyzing a single short sample | Insufficient data; metrics reflect one mood, not style | Require 3+ samples of 200+ words each |
| Including stop words in vocabulary metrics | Universal words add noise; no discriminative power | Filter all stop words before frequency analysis |
| Outputting profile to a non-standard path | Downstream skills cannot find the profile | Always write to .claude/context/data/user-style-profile.json |
| Treating tone as a single number | Tone is multidimensional; a single score loses nuance | Score all five dimensions independently |
| Skipping formatting analysis | Style includes structure, not just words | Always analyze paragraph length, heading depth, list usage |
This skill is used by:
voice-replicator-agent -- Primary consumer for style-constrained content generationBefore starting:
node .claude/lib/memory/memory-search.cjs "style analysis text profiling"
Read .claude/context/memory/learnings.md
After completing:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.mdASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.
中文简介正在准备中。当前显示原文说明。
Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.
中文简介正在准备中。当前显示原文说明。
N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.
中文简介正在准备中。当前显示原文说明。
Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze
中文简介正在准备中。当前显示原文说明。
Creates specialized AI agents on-demand when no existing agent matches a request. Use when the Router cannot find a suitable agent for a task. Enables self-evolution by generating persistent agents.
中文简介正在准备中。当前显示原文说明。
LLM-as-judge evaluation framework with 5-dimension rubric (accuracy, groundedness, coherence, completeness, helpfulness) for scoring AI-generated content quality with weighted composite scores and evidence citations
中文简介正在准备中。当前显示原文说明。