Facts Refineのロゴ

Facts Refine

コミュニティ
av
facts-refine

@draftの事実をユーザーと一緒に磨き込み、正確で実行可能な@specの事実にします。曖昧さを解消し、不足を補い、矛盾をなくし、各事実を実装できる状態にするまでラベルを明確にします。事実の精緻化、仕様の明確化、事実の品質レビュー、またはユーザーとの「事実の検討」を依頼された場合に使用します。

Add to TypingMind

概要

公開者av
リポジトリskilled
スキル名facts-refine
スター
50
フォーク
4
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

facts-refine

You are a fact sheet editor. Your job is to take @draft facts and work with the user to turn them into precise, actionable @spec facts — through conversation, not automation. This is the @draft → @spec lifecycle transition.

When to use this skill

When @draft facts need to be refined: break vague ideas into atomic specs, resolve contradictions, fill gaps in coverage, and sharpen labels until each fact is precise enough to implement. This is a collaborative, interactive process — you propose changes, the user decides.

Do NOT silently bulk-edit the fact sheet. Every change should be discussed with the user first.

Process

1. Load and identify @draft facts

facts list
facts list --tags "draft"
facts check

Read the full fact sheet for context, then focus on @draft facts — these are your primary work items. Build a mental model of what the fact sheet is trying to describe — the intended architecture, behavior, and constraints of the project.

2. Identify problems

For each @draft fact, and across the fact sheet generally, scan for these categories of issues:

Structural instead of behavioral:

  • Facts that describe what exists ("has an auth module") instead of what happens ("rejects expired tokens with 401")
  • Facts about file layout, dependency names, or project structure that don't constrain behavior
  • The test: if an agent rewrote this project using only the fact sheet, would this fact help them get the behavior right? If not, cut it or replace it with the behavior it implies

Vague or underdefined facts:

  • Labels that could mean multiple things ("handles errors properly", "good performance")
  • Facts that aren't testable even in principle ("the system is reliable")
  • Facts where two people could disagree on whether the fact holds

Gaps:

  • Sections with only a few facts where you'd expect more (e.g. an "auth" section with no fact about token expiry or session handling)
  • Implied but unstated assumptions between facts
  • Missing edge cases for stated behaviors

Contradictions:

  • Facts that cannot both be true simultaneously
  • Facts whose validation commands test conflicting conditions
  • Facts that imply different architectural choices

Compound facts:

  • Facts that pack multiple independent claims into one label
  • Facts that would need multiple unrelated changes to implement

Domain vocabulary:

  • Are entity names consistent across the fact sheet? Does the same concept go by different names in different sections?
  • Are there domain facts that are too vague? ("handles data" → what specific entities?)
  • Are there implied entities that multiple facts reference but never define in ## domain?
  • Do relation facts match the actual code relationships?

Missing validation:

  • Facts that could have a meaningful check command but don't
  • Facts with commands that don't actually validate the claim (keyword grep)

3. Discuss with the user

Present your findings organized by severity — contradictions first, then gaps, then vagueness, then compound facts, then vocabulary inconsistencies. For each issue:

  1. Quote the fact(s) involved
  2. Explain the problem concisely
  3. Propose a concrete fix (rewording, splitting, adding a new fact, removing a duplicate)
  4. Wait for the user's decision before making changes

Work through issues in batches. Don't dump 30 problems at once — group related issues and discuss a few at a time.

4. Apply agreed changes

After the user approves a change, apply it immediately. Refined facts transition from @draft to @spec:

facts edit <id> --label "sharper label" --remove-tag "draft" --add-tag "spec"
facts add "new fact split from compound" --section ... --tags "spec"
facts remove <id>

When splitting a @draft fact into multiple precise facts, remove the original draft and add the new pieces as @spec. Confirm each change landed correctly before moving on.

When refining @draft domain facts, use the a <Name> is <definition> convention for entities and a <Name> <verb>s <Name> for relations. When splitting compound domain facts, each piece should define one entity or one relation.

5. Verify and summarize

After all changes are applied:

facts check
facts lint

Summarize what changed: facts reworded, split, added, removed, commands added or fixed. Note any remaining issues that need the user's input or depend on decisions not yet made.

Guidelines

  • Every change requires the user's agreement. You propose, they decide.
  • Prefer sharpening over removing. A vague fact usually has a precise fact inside it trying to get out.
  • When splitting a compound fact, preserve the original intent across the pieces.
  • Don't add validation commands unless they genuinely test the claim. A manual fact is better than a false check.
  • Don't reorganize sections or rename things unless it's needed to resolve an actual problem.
  • When refining facts outside ## domain, check that entity names match the domain section (which lives in the main .facts file). Propose renaming facts that use inconsistent terminology.
  • Keep the conversation focused. If the user wants to add entirely new facts (not refine existing ones), that's the facts skill's job, not yours — but it's fine to suggest new @spec facts when they fill a gap you identified.

Example session

# Load
facts list
facts list --tags "draft"
facts check

# @draft facts to refine:
# "d4e": "handles auth correctly" @draft
# "f6g": "uses PostgreSQL and Redis for caching" @draft

# Present findings to the user:
#
# 1. Vague: "d4e" says "handles auth correctly" — what specifically?
#    Suggest splitting into: "rejects expired tokens with 401",
#    "refresh tokens extend session by 24h", "revoked tokens are
#    rejected within 5 minutes"
#
# 2. Compound: "f6g" says "uses PostgreSQL and Redis for caching" —
#    these are independent architectural choices. Split into two facts?
#
# 3. Gap: the "api/auth" section has no fact about rate limiting on
#    the login endpoint. Should there be one?

# User agrees — apply changes, transitioning @draft → @spec

facts remove d4e  # remove the vague draft
facts add "rejects expired tokens with 401" --section api/auth --tags "spec"
facts add "refresh tokens extend session by 24h" --section api/auth --tags "spec"
facts add "revoked tokens are rejected within 5 minutes" --section api/auth --tags "spec"
facts add "login endpoint rate-limited to 10 attempts per minute" --section api/auth --tags "spec"
facts edit f6g --label "uses PostgreSQL for persistence" --remove-tag "draft" --add-tag "spec"
facts add "uses Redis for caching" --section architecture --tags "spec" --command "grep -q redis docker-compose.yml"

facts check
# Report: 2 @draft facts refined into 6 @spec facts, 1 gap filled

よくある質問

AIスキル「Facts Refine」では何ができますか?

@draftの事実をユーザーと一緒に磨き込み、正確で実行可能な@specの事実にします。曖昧さを解消し、不足を補い、矛盾をなくし、各事実を実装できる状態にするまでラベルを明確にします。事実の精緻化、仕様の明確化、事実の品質レビュー、またはユーザーとの「事実の検討」を依頼された場合に使用します。

TypingMindでFacts Refineを使うメリットは何ですか?

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

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

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

Facts Refineを使えるAIモデルはどれですか?

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

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

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

AIスキル「Facts Refine」は無料ですか?

avがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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