Style Extractのロゴ

Style Extract

組織
yuque
style-extract

Analyze Yuque documents to extract vocabulary, sentence, and tone patterns into a reusable writing-style profile. Use when the user wants to understand or reproduce their voice or keep documents consistent; trigger phrases include “分析一下我的写作风格”, “用我的风格写一篇...”, “帮我生成一个风格画像”, “extract my writing style”, and “write like me”.

Add to TypingMind

概要

公開者yuque
リポジトリyuque-ecosystem
スキル名style-extract
スター
238
フォーク
20
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    yuqueがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Style Extract」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/yuque/yuque-ecosystem/tree/main/skills/style-extract
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yuque/yuque-ecosystem.git /tmp/yuque-ecosystem
mkdir -p .claude/skills
cp -r /tmp/yuque-ecosystem/skills/style-extract .claude/skills/style-extract
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでStyle Extractを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にStyle Extractを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Style Extractは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Style Extract — Your Writing Style Profile

Analyze your existing Yuque documents to extract your unique writing style — vocabulary habits, sentence structures, tone characteristics. Generate a reusable style profile that helps you (or AI) maintain a consistent voice when writing new content.

When to Use

  • User wants to understand their own writing style
  • User says "分析一下我的写作风格", "我的文风是什么样的", "extract my writing style"
  • User wants AI to write in their voice: "用我的风格写一篇...", "write like me"
  • User wants to ensure consistency across documents
  • User says "帮我生成一个风格画像", "create my style profile"

Required MCP Tools

All tools are from the yuque-mcp server:

  • yuque_list_books — List user's knowledge bases
  • yuque_list_docs — List documents in a knowledge base
  • yuque_get_doc — Read document content for style analysis
  • yuque_search — Find specific types of documents for analysis
  • yuque_create_doc — Save the style profile as a document

Workflow

Step 1: Gather Writing Samples

Ask the user for source material:

Case A — Specific documents: User provides links to documents they consider representative of their style.

Case B — Entire knowledge base: User specifies a knowledge base. Sample documents from it.

Case C — Auto-detect best samples: If the user isn't sure, search for their most substantial documents:

Tool: yuque_list_books
Tool: yuque_list_docs
Parameters:
  repo_id: "<namespace>"

Select 5-10 documents that are:

  • Written by the user (not copied/quoted content)
  • Substantial in length (> 500 characters)
  • Diverse in topic (to capture general style, not topic-specific patterns)

For each selected document:

Tool: yuque_get_doc
Parameters:
  repo_id: "<namespace>"
  doc_id: "<slug>"

Step 2: Analyze Writing Dimensions

Analyze the collected writing samples across these dimensions:

Vocabulary (用词习惯)
  • Formality level — Casual, semi-formal, or formal?
  • Jargon density — Heavy use of domain terms or plain language?
  • Favorite words — Recurring words or phrases the user gravitates toward
  • Filler patterns — Common transitions, connectors, hedging words
  • Language mixing — Do they mix Chinese/English? In what pattern?
Sentence Structure (句式结构)
  • Average sentence length — Short and punchy or long and flowing?
  • Complexity — Simple sentences or nested clauses?
  • Paragraph length — Brief paragraphs or dense blocks?
  • List usage — Frequent bullet points or prose-heavy?
  • Question usage — Do they use rhetorical questions?
Tone & Voice (语气特点)
  • Perspective — First person, second person, or impersonal?
  • Confidence level — Assertive ("X is Y") or hedged ("X might be Y")?
  • Humor — Dry wit, playful, or strictly serious?
  • Engagement style — Conversational or lecture-like?
  • Emotional range — Neutral/analytical or expressive/passionate?
Structural Habits (结构习惯)
  • Opening style — How do they start articles? (Question, statement, story, context)
  • Closing style — How do they end? (Summary, call-to-action, open question)
  • Heading style — Descriptive, concise, or creative headings?
  • Use of examples — Frequent concrete examples or abstract reasoning?
  • Formatting preferences — Heavy use of bold, quotes, code blocks, tables?

Step 3: Generate Style Profile

Create a structured style profile:

markdown
# ✍️ 写作风格画像

> 基于 [N] 篇文档分析生成
> 分析日期:YYYY-MM-DD

## 一句话风格概括

[用一句话描述用户的整体写作风格,如 "简洁直接的技术写作者,偏好短句和大量代码示例,语气自信但不傲慢"]

## 用词习惯

- **正式程度**:[描述 + 示例]
- **术语密度**:[描述 + 示例]
- **高频词汇**:[列出 5-10 个标志性用词]
- **过渡词偏好**:[常用的连接词和过渡表达]
- **中英混用**:[模式描述,如 "技术名词用英文,解释用中文"]

## 句式特征

- **句子长度**:[平均字数/句,与参考值对比]
- **段落长度**:[平均句数/段]
- **复杂度**:[简单句为主 / 复合句为主]
- **标志性句式**:[用户常用的句式模式,附原文示例]

## 语气画像

- **视角**:[第一人称 / 第二人称 / 无人称]
- **自信度**:[断言型 / 探讨型 / 谦逊型]
- **幽默感**:[描述]
- **互动性**:[对话式 / 独白式 / 教学式]

## 结构偏好

- **开头方式**:[描述 + 示例]
- **结尾方式**:[描述 + 示例]
- **标题风格**:[描述]
- **举例频率**:[高 / 中 / 低]
- **格式偏好**:[常用的 Markdown 元素]

## 风格指纹(供 AI 参考)

当需要模仿此风格写作时,遵循以下规则:

1. [具体规则 1,如 "每段不超过 4 句话"]
2. [具体规则 2,如 "技术概念首次出现时用中文解释 + 英文原词"]
3. [具体规则 3,如 "多用反问句引导思考"]
4. [具体规则 4,如 "避免使用'众所周知'等套话"]
5. [具体规则 5,如 "结尾倾向于提出开放性问题而非总结"]

## 示例对比

### 原文片段
> [从用户文档中摘取的典型段落]

### 风格要素标注
[标注该段落中体现的风格特征]

Step 4: Present and Refine

Show the style profile to the user and ask:

"这个风格画像准确吗?有没有哪些地方需要调整?"

Iterate based on user feedback. They might say:

  • "我觉得我没那么正式" → Adjust formality assessment
  • "这个高频词不是我的风格,是那篇文章特有的" → Remove outliers
  • "我希望新内容比我现在的风格更简洁" → Note as a style aspiration

Step 5: Save Style Profile (Optional)

Ask the user: "要把风格画像保存到语雀吗?以后写作时可以参考。"

If confirmed:

Tool: yuque_create_doc
Parameters:
  repo_id: "<target namespace>"
  title: "✍️ 我的写作风格画像"
  body: "<style profile in markdown>"

Confirm: "风格画像已保存到「[知识库名称]」:[文档链接]"

Using the Style Profile

When the user later asks to write content in their style:

  1. Retrieve the saved style profile
  2. Apply the "风格指纹" rules when generating content
  3. After drafting, self-check against the profile dimensions
  4. Present the draft with notes on which style elements were applied

Guidelines

  • Always answer in the same language the user used (Chinese or English)
  • Analyze at least 5 documents for a reliable profile — fewer may produce skewed results
  • Distinguish between the user's natural style and topic-specific writing (a tech doc vs. a personal reflection will differ)
  • High-frequency words should be genuinely characteristic, not just common words everyone uses
  • The style profile should be descriptive, not prescriptive — describe what the user does, don't judge it
  • When the user asks to "write like me", use the profile as a guide but don't produce robotic imitations
  • Update the profile periodically — writing style evolves over time

Error Handling

SituationAction
Document not found (404)Skip and note it; continue with other documents
Permission denied (403)Tell user they may lack permission to access this document
Too few documents (< 3)Inform user: "文档数量较少,风格分析可能不够准确。建议提供至少 5 篇文档"
Documents are mostly copied/quoted contentInform user: "这些文档大部分是引用内容,需要你原创的文档来分析风格"
yuque_create_doc failsPresent the style profile in chat for manual saving
Mixed authorshipAsk user to confirm which documents are their own writing

よくある質問

AIスキル「Style Extract」では何ができますか?

Analyze Yuque documents to extract vocabulary, sentence, and tone patterns into a reusable writing-style profile. Use when the user wants to understand or reproduce their voice or keep documents consistent; trigger phrases include “分析一下我的写作风格”, “用我的风格写一篇...”, “帮我生成一个风格画像”, “extract my writing style”, and “write like me”.

TypingMindでStyle Extractを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Style Extractはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにStyle Extractをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/yuque/yuque-ecosystem/tree/main/skills/style-extractを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Style Extractを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Style Extractで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもStyle Extractを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Style Extract」は無料ですか?

はい。yuqueがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇