agentleFS
noah-1106noah-1106/Skills_Repo/skills/style_fingerprint/SKILL.md

style-fingerprint

Skill32 starsChanged 7 days agoMITView on GitHub

Analyze and save Chinese writing style fingerprints (v2, zero dependencies). Extracts rhythm, function-word habits, rhetoric patterns and exemplar sentences. NEW in v2: compare (draft vs fingerprint deviation report), merge (multi-text), selftest (regression), exemplar few-shot export, low-confidence marking.

The file

Files
SKILL.md

Style Fingerprint v2 | 写作风格指纹

What changed in v2 | v2 变更

Fix/New说明
Fixed反问句检测(v1 正则语序错误,永远返回 0)
Fixed被动语态误伤「由于/自由」
Fixed省略主语字符类拆词误判
Fixed隐喻误报(排除副词「好像/似乎」)
Rewritten词汇层:滑窗伪分词 → 封闭集合功能词指纹(疑问/连接/情态/程度/人称/语气词)+ 跨句口头禅候选
Newcompare:新稿 vs 指纹,15 维度偏差报告 + 修正建议(写作质量闸门)
Newmerge:多文本合并指纹(按字数加权)
Newexport 范例句层:few-shot 例句比规则对 LLM 更有效
Newselftest:11 项内置回归用例
New<300 字自动标注低置信度
Format指纹 JSON v2:全部指标改为比率(每百句/每千字),跨文本可比

Recommended workflow | 推荐工作流

# 1. 提取作者指纹(建议 ≥300 字,多篇可用 merge 合并)
python3 style_fingerprint.py analyze --file author_a_1.txt --name 作者A
python3 style_fingerprint.py analyze --file author_a_2.txt --name 作者A2
python3 style_fingerprint.py merge --names "作者A,作者A2" --name 作者A综合

# 2. 导出风格指南(规则 + 范例句)给写作 Agent
python3 style_fingerprint.py export --name 作者A综合 --output style_guide.md

# 3. Agent 写作后,校验新稿是否还原了风格
python3 style_fingerprint.py compare --name 作者A综合 --file draft.txt

Notes | 注意

  • 指纹保存在技能目录 fingerprints/ 下(自包含设计,拷贝技能即带走数据)
  • <300 字的样本会标注 low_confidence,结论仅供参考
  • compare 一致率是参考值:句式类维度 ±30% 内为 ✅
  • 零外部依赖,Python 3.7+ 即可运行

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.