شعار Financial Insights

Financial Insights

مؤسسة
stripe
financial-insights

يقرأ البيانات المالية للمستخدم في Link — المعاملات والأرصدة ومصادر المحفظة — حتى يتمكن وكلاء الذكاء الاصطناعي من الإجابة عن الأسئلة المتعلقة بالإنفاق وإمكانات المصادر المتاحة. استخدمه عندما يقول المستخدم: «تحقق من رصيدي»، أو «كم أنفقت؟»، أو «اعرض معاملاتي»، أو «ما الحسابات المرتبطة؟»، أو «لخّص إنفاقي»، أو «المشتريات الأخيرة»، أو يسأل عن نشاطه المالي أو أرصدة حساباته أو المصادر المرتبطة.

Add to TypingMind

نظرة عامة

الناشرstripe
المستودعlink-cli
اسم المهارةfinancial-insights
النجوم
813
التفريعات
126
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها stripe على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Financial Insights في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/stripe/link-cli/tree/main/skills/financial-insights
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/stripe/link-cli.git /tmp/link-cli
mkdir -p .claude/skills
cp -r /tmp/link-cli/skills/financial-insights .claude/skills/financial-insights
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Financial Insights في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Financial Insights تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Financial Insights بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Financial insights

Use this skill to answer questions about a user’s Link-connected financial data, including:

  • Recent transactions
  • Spending patterns
  • Account balances
  • Linked wallet sources
  • Basic summaries derived from the user’s financial data

All commands are read-only. They do not move money, initiate payments, modify accounts, or expose payment credentials.

Safety and privacy

Do not retrieve financial data until the user is authenticated with the required source actions.

Only retrieve the data needed to answer the user’s request. Do not run every list command by default.

Do not expose sensitive identifiers, access tokens, credentials, or payment instrument details. Summarize financial information at the level needed to answer the user’s question.

If the user asks for an action that would move money, reference skills/create-payment-credential/SKILL.md instead.

Authentication

Before retrieving financial data, check whether the user is authenticated and whether the current session has the required source actions.

bash
link-cli auth status --format json

When present, inspect authorization_details in the response for entries with type: "source" and the required actions. The field may be absent when the token endpoint did not return authorization details or when authentication comes from LINK_ACCESS_TOKEN; in that case, run only the minimum data command needed and handle a permission error as described below.

If the user is not authenticated, start a login that requests only the source actions needed for the requested data. If the user is already authenticated but one or more required source actions are missing, use auth upgrade instead of auth login. auth upgrade preserves the current session while the user approves the additional access and replaces it only after approval succeeds.

Use the minimum required source actions:

  • Transactions processed through Link: read_link_transactions
  • Transactions imported from bank connections: read_external_transactions
  • Account balances: read_balances
  • Data source details and descriptions: read_source_details. This action is broadly useful, for example if you will ever need to tie a transaction or balance to a particular account name.

If the user asks a question that requires multiple data types, request all relevant actions together.

Example for a new login that needs all financial data types:

bash
link-cli auth login \
  --client-name "<your-agent-name>" \
  --source-actions read_link_transactions \
  --source-actions read_balances \
  --source-actions read_external_transactions \
  --source-actions read_source_details \
  --format json

Example for adding balance access to an existing session:

bash
link-cli auth upgrade \
  --client-name "<your-agent-name>" \
  --source-actions read_balances \
  --format json

Replace <your-agent-name> with a clear name for the agent or application. Present the returned verification_url to the user, then follow the response's _next instruction or poll with:

bash
link-cli auth status --interval 5 --max-attempts 60 --format json

Do not proceed until authentication or the access upgrade succeeds. If the approval expires, is denied, or times out, report that outcome instead of repeatedly starting new authorization flows.

Choosing the right command

Use the smallest command set that answers the user’s question.

User asks aboutCommand
Recent purchases, merchants, spend, transaction history, income, deposits, subscriptionslink-cli transactions list
Current available balance, account balance, cash positionlink-cli balances list
Connected accounts, cards, banks, wallet sources, source metadatalink-cli sources list

Examples:

  • “How much did I spend on restaurants last month?” → Use transactions only.
  • “What is my current checking account balance?” → Use balances only.
  • “Which accounts are connected?” → Use sources only.
  • “Summarize my cash position and recent spending.” → Use balances and transactions.

Output format

Use JSON for agent-readable structured output.

bash
link-cli transactions list --format json
link-cli balances list --format json
link-cli sources list --format json

The default toon format is intended for humans. Prefer --format json whenever parsing, filtering, aggregating, or summarizing results.

All monetary amounts across all endpoints are integers in the currency's smallest unit (e.g. 152340 = $1,523.40 USD). Format amounts with a currency-aware formatter that uses the currency's ISO 4217 minor-unit exponent; do not assume every currency has two decimal places or always divide by 100.

Keep sign interpretation field-specific. Only transactions.amount uses negative for money leaving the account and positive for money entering it. Do not apply transaction sign semantics to balance fields; interpret current, cash.available, and credit.used according to the balance type.

Sources (concept)

A source is a financial account connected to the user's Link wallet — a bank account, credit card, savings account, etc. Each source has a unique id (e.g. csmrpd_abc123) that other endpoints may expose as source_id:

  • In transactions list, source_id indicates which account a transaction belongs to.
  • In balances list, each balance entry includes a source_id identifying the account.
  • In sources list, the full source metadata (name, institution, type, status) is returned.

Use a source_id to correlate data across commands — for example, to find transactions for a specific account or to match a balance to its source type. Do not assign transactions with a null source_id to a source by guessing from their description.

Transactions

Use transactions to answer questions about spending, income, merchants, categories, recurring payments, deposits, or account activity.

bash
link-cli transactions list --format json

Common options:

bash
link-cli transactions list --format json --start-date 2025-01-01 --end-date 2025-01-31
link-cli transactions list --format json --category groceries
link-cli transactions list --format json --origin external_connection
link-cli transactions list --format json --source <source_id> --source <source_id>
FlagDescription
--start-dateOnly transactions on or after this date (YYYY-MM-DD).
--end-dateOnly transactions on or before this date (YYYY-MM-DD).
--categoryFilter by category.
--originFilter by origin: link or external_connection.
--sourceFilter by source ID (repeatable).

See Pagination for shared list controls.

Response fields

FieldNote
amountNegative = money leaving the account (debit/purchase), positive = money entering (credit/deposit).
originexternal_connection (from linked bank/card) or link (Link-native transaction).
categoryMay be null if unclassified.
statusAPI-provided status string. Do not assume a closed set of values; observed values include succeeded. Interpret or filter a status only when its meaning is known.

For transaction summaries:

  • Normalize signs consistently before calculating totals.
  • Distinguish debits from credits when possible.
  • Group by merchant, category, account, currency, or time period only when relevant.
  • Mention if the answer is based on a limited retrieved window.

Balances

Use balances to answer questions about current account balances or available funds.

bash
link-cli balances list --format json
link-cli balances list --format json --source <source_id>
FlagDescription
--sourceFilter by source ID (repeatable).

See Pagination for shared list controls.

Response fields

FieldNote
typecash (bank/savings) or credit (credit card/line of credit). Determines which sub-object is present.
currentBalance before pending transactions. Not the same as available funds.
cash.availableObject mapping currency codes to available funds (current minus outbound pending plus inbound pending). Only present when type is cash.
credit.usedObject mapping currency codes to credit used. Only present when type is credit.
as_ofWhen the balance was last updated — may be stale by hours or days.

When summarizing balances:

  • Preserve currencies.
  • Do not add balances across different currencies unless the user explicitly asks and exchange-rate data is available.
  • Use the current field as the default definition of a balance, unless the user's question requires considering pending transactions.
  • If multiple sources are returned, summarize by account/source.

Sources

Use sources to answer questions about connected wallet sources, linked accounts, or available financial data sources. See Pagination for shared list controls.

bash
link-cli sources list --format json

Response fields

FieldDescription
idUnique source identifier (same as source_id in other endpoints).
nameDisplay name of the source.
typeSource type (e.g. card, bank_account).
capabilitiesObject indicating what data is available. Each key (e.g. balances, transactions) maps to an object with a status field (e.g. eligible).
external_connection.statusConnection status to the external institution.
granted_actionsList of actions the user has granted for this source.

When summarizing sources:

  • Include only non-sensitive metadata needed for the answer.
  • Avoid exposing full account numbers, credentials, tokens, or payment instrument details.
  • Prefer labels such as institution, account type, source status, and last updated time when available.

Pagination

All three list commands support the same pagination flags:

FlagDescription
--limitMaximum results per page (1-100). Prefer 100 when multiple pages may be needed.
--starting-afterFetch the next page after a cursor value.
--ending-beforeFetch the previous page before a cursor value. Use for reverse navigation, not normal forward collection.

JSON responses contain a data array and may contain has_more. They do not provide a separate next-cursor field. When has_more is true, derive the next cursor from the final item in data:

CommandNext cursor
transactions listFinal transaction's id.
balances listFinal balance's source_id.
sources listFinal source's id.

For example:

bash
link-cli transactions list --format json --limit 100 --starting-after <last_transaction_id>

Keep all filters identical across pages and change only --starting-after. Stop when has_more is false or absent, or when enough data has been retrieved for a non-exhaustive lookup. If has_more is true but data is empty or the required cursor is null or missing, stop and report that pagination could not continue.

Do not exhaustively paginate unless the user’s request requires a complete bounded result, such as a total for a specified time range.

Answering user questions

When answering:

  • State the direct answer first.
  • Mention the relevant time range and data source.
  • Note any limitations, such as partial pagination, missing categories, pending transactions, or unsupported currencies.
  • Avoid dumping raw records and object IDs unless the user asks for them.
  • Prefer concise summaries, totals, and notable patterns.

Example response style:

text
You spent $342.18 on restaurants across 12 transactions in July. The largest restaurant transaction was $86.40 at Example Bistro on July 18. This is based on the transactions returned for your connected Link sources.

Error handling

If authentication fails, ask the user to re-authenticate.

If a command returns no data, say that no matching Link financial data was available for the requested scope.

If the CLI returns an error indicating missing permissions or source actions, request only the specific missing action. Use auth upgrade when a session is already authenticated and auth login when it is not, then wait for approval before retrying the data command once.

If data is incomplete or paginated, clearly state that the answer is based on the data retrieved so far.

Guardrails

Do not:

  • Move money.
  • Initiate payments.
  • Modify financial sources.
  • Retrieve unrelated financial data.
  • Request broader source actions than needed.
  • Expose credentials, tokens, or full payment details.
  • Present uncertain derived insights as definitive.

Do:

  • Use read-only commands.
  • Authenticate before retrieval.
  • Request the minimum required source actions.
  • Use --format json for parsing.
  • Retrieve only the data needed.
  • Summarize clearly and note limitations.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Financial Insights؟

يقرأ البيانات المالية للمستخدم في Link — المعاملات والأرصدة ومصادر المحفظة — حتى يتمكن وكلاء الذكاء الاصطناعي من الإجابة عن الأسئلة المتعلقة بالإنفاق وإمكانات المصادر المتاحة. استخدمه عندما يقول المستخدم: «تحقق من رصيدي»، أو «كم أنفقت؟»، أو «اعرض معاملاتي»، أو «ما الحسابات المرتبطة؟»، أو «لخّص إنفاقي»، أو «المشتريات الأخيرة»، أو يسأل عن نشاطه المالي أو أرصدة حساباته أو المصادر المرتبطة.

لماذا تستخدم Financial Insights على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Financial Insights عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Financial Insights في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/stripe/link-cli/tree/main/skills/financial-insights. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Financial Insights؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Financial Insights؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Financial Insights معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Financial Insights مجانية؟

نعم. نشرها stripe على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇