style-fingerprint

Analyze and save Chinese writing style fingerprints. Extracts syntax patterns, lexical preferences, rhetorical features from text. Saves fingerprints to ./fi...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 91 · 1 current installs · 1 all-time installs
bynoah@noah-1106
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name/description (Chinese writing style fingerprinting) matches the included Python implementation and requested runtime dependency (python3). No unrelated credentials, binaries, or external services are declared or required.
Instruction Scope
SKILL.md and the CLI commands (analyze, list, show, delete, export) align with the code's behavior. The only file I/O described is reading a provided input file or text and writing JSON fingerprints to ./fingerprints/. The skill does not instruct the agent to read arbitrary system files or environment variables beyond what the user supplies.
Install Mechanism
No install spec is present (instruction-only with an included Python script). This is low-risk compared to remote downloads or package installations.
Credentials
No environment variables, credentials, or external service tokens are requested. The skill is self-contained and uses only local filesystem access under its directory.
Persistence & Privilege
The skill creates and writes to a ./fingerprints/ directory inside the skill folder and persists JSON files including a source text sample (up to 500 characters). It does not request platform-wide privileges or 'always: true'. Persisted samples could contain sensitive text if you analyze such content.
Assessment
This skill appears to do what it says: local analysis and saving of Chinese writing fingerprints. Before installing, note that (1) it will create and write JSON files to ./fingerprints/ inside the skill directory and stores up to 500 characters of source text in the saved files — avoid analyzing sensitive secrets if you don't want them persisted, (2) the code shown is pure Python and contains no obvious network calls, but the file listing was truncated: if you need higher assurance, inspect the remainder of style_fingerprint.py to confirm there are no hidden network operations or calls that read other system paths, and (3) the heuristic regexes are simplistic and have some coding rough edges (not a security issue but affects accuracy). If you plan to analyze sensitive documents, run the script in an isolated environment or review/modify the save behavior first.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk978pnhmj0ktkcjba4ndfsf61s8321jp

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

🎨 Clawdis
Binspython3

SKILL.md

Style Fingerprint | 写作风格指纹

English: Analyze Chinese writing style and save fingerprints for AI writing agents.

中文: 分析中文写作风格并保存指纹,供 AI 写作助手使用。


Quick Start | 快速开始

# Analyze text | 分析文本
python3 style_fingerprint.py analyze --text "你的文本内容" --name "我的风格"

# Analyze file | 分析文件
python3 style_fingerprint.py analyze --file ./article.txt --name "作者A"

# List saved fingerprints | 列出保存的指纹
python3 style_fingerprint.py list

# Show fingerprint details | 显示指纹详情
python3 style_fingerprint.py show --name "我的风格"

# Export style guide for writing agent | 导出写作助手指南
python3 style_fingerprint.py export --name "我的风格" --output ./guide.txt

What It Analyzes | 分析维度

English:

  • Basic Stats: Sentence length, rhythm, comma density
  • Syntax Patterns: Rhetorical questions, passive voice, ellipsis
  • Lexical Fingerprint: Top words, word diversity
  • Logic Flow: Transition word preferences
  • Rhetoric: Metaphors, sensory description types

中文:

  • 基础统计: 句子长度、节奏感、逗号密度
  • 句法模式: 修辞问句、被动语态、省略号使用
  • 词汇指纹: 高频词汇、词汇多样性
  • 逻辑流: 过渡词偏好
  • 修辞手法: 隐喻、感官描述类型

Storage | 存储

English: Fingerprints are saved in ./fingerprints/ as JSON files.

中文: 指纹以 JSON 格式保存在 ./fingerprints/ 目录中。


For Writing Agents | 供写作助手使用

English: Use export command to get a compact style guide that can be included in prompts.

中文: 使用 export 命令获取紧凑的风格指南,可嵌入到提示词中使用。


Features | 特性

English:

  • No external dependencies - Pure Python implementation
  • Chinese optimized - Designed for Chinese text analysis
  • Persistent storage - Saves fingerprints to ./fingerprints/
  • Writing agent ready - Export compact style guides

中文:

  • 无外部依赖 - 纯 Python 实现
  • 中文优化 - 专为中文文本分析设计
  • 持久化存储 - 将指纹保存到 ./fingerprints/
  • 写作助手就绪 - 导出紧凑的风格指南

Files

3 total
Select a file
Select a file to preview.

Comments

Loading comments…