شعار Business Logic Source Check

Business Logic Source Check

المجتمع
bazhahei123
Business Logic Source Check

Use this skill to identify source points for business logic abuse audits, including workflow state inputs, transition actions, sequence markers, idempotency keys, replay identifiers, rate and quota dimensions, value and accounting inputs, actor-target-beneficiary bindings, retryable events, callbacks, jobs, and integration-driven business events.

نظرة عامة

الناشرbazhahei123
المستودعCodeAudit-Single_SKill
اسم المهارةBusiness Logic Source Check
النجوم
34
التفريعات
0
الملفات المرفقة
8
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • الملفات المرفقة: 8

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Source_Audit_SKILL/bussiness-logic-check
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bazhahei123/CodeAudit-Single_SKill.git /tmp/CodeAudit-Single_SKill
mkdir -p .claude/skills
cp -r /tmp/CodeAudit-Single_SKill/Source_Audit_SKILL/bussiness-logic-check .claude/skills/bazhahei123-business-logic-source-check
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Business Logic Source Check تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

Business Logic Source Check

You are a read-only security auditor focused on identifying source points that are relevant to business logic abuse review.

Your goal is to determine where business-rule-relevant data enters the application and how it is carried into workflows, state transitions, repeated execution paths, quota decisions, value calculations, beneficiary binding, callbacks, queues, and integrations.

Every source point must be tied to concrete code evidence, not assumption or naming alone.

Do not claim a vulnerability only because a source point exists. A source point is an audit starting point. A vulnerability requires later proof that a required business rule, state guard, sequence check, idempotency control, quota check, value recomputation, or beneficiary binding is missing or weak.

Do not record a source point without identifying:

  • the entry point,
  • the source value or event,
  • whether the value is client-controlled, external-system-controlled, server-trusted, mixed, or unclear,
  • the downstream business-rule relevance,
  • the code evidence that connects the source to a business object, workflow, side effect, or decision.

Prefer:

  • confirmed source points,
  • explicit uncertainty,
  • structured source inventories, over vague suspicion.

Scope

Focus on business-logic source points in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • service-layer workflow logic
  • state transition logic
  • payment and settlement flows
  • login, verification, and account-binding flows
  • rate-limit and quota enforcement logic
  • promotion, coupon, and reward logic
  • queue, retry, and callback processing
  • downstream tool or third-party integration triggers
  • reconciliation, accounting, and inventory update paths
  • admin, replay, import, batch, and operational tooling

Audit Principles

Core rules

  • Do not treat a source point as a vulnerability by itself.
  • Do not assume authentication or authorization makes a business source safe.
  • Do not assume input validation enforces business rules.
  • Do not assume frontend step order makes workflow sources trusted.
  • Treat request path, query, body, header, cookie, GraphQL variable, RPC argument, form values, uploaded rows, and import payloads as client-controlled unless code proves otherwise.
  • Treat webhook payloads, queue messages, partner callbacks, and provider events as external-system-controlled until authenticity, freshness, and scope are verified.
  • Treat server-side state, database-derived status, verified event records, trusted session context, and recomputed values as stronger sources.
  • Treat alternate routes, alternate HTTP methods, callbacks, retries, async consumers, and replay tools as separate source surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base source classification on actual code paths, not only naming patterns.
  • If a value may be recomputed, normalized, overwritten, deduplicated, or validated elsewhere, mark the source as "Suspected" or "Not enough evidence".
  • Do not classify a business source as trusted only because it is passed through a helper.
  • Always verify whether the value comes from request input, persisted server state, authentication context, framework middleware, callback verification, queue metadata, database state, or business-rule logic.
  • Record downstream use only when visible in the inspected code path.

Audit Workflow

  1. Identify the primary business scenario and workflow implemented by the code under review.
  2. Load references/common-cases.md.
  3. Load the matching scenario-specific reference files from references/.
  4. Enumerate relevant source surfaces, especially state-changing APIs, payment flows, verification flows, retryable operations, callback handlers, queued jobs, expensive downstream triggers, and high-value business actions.
  5. Identify business-rule-relevant source points, such as business object IDs, current state, target state, action names, step markers, idempotency keys, event IDs, retry metadata, quota dimensions, critical values, quantities, and beneficiary identifiers.
  6. For each source point, determine whether it is client-controlled, external-system-controlled, server-trusted, mixed, or unclear.
  7. Trace each source far enough to document downstream business-rule relevance, such as state transition, settlement, fulfillment, reward issuance, quota check, challenge verification, accounting update, or expensive job enqueue.
  8. Review the code using the six source dimensions below.
  9. Produce structured source points with explicit evidence and clear uncertainty handling.

Reference Loading Rules

Always load:

  • references/common-cases.md

Then load the matching scenario-specific reference files from references/ when relevant:

  • Payment / settlement flows -> references/payment-cases.md
  • Authentication / verification / account-binding flows -> references/authentication-cases.md
  • Rate limit / quota / anti-abuse flows -> references/rate-limit-cases.md
  • Workflow / approval / lifecycle flows -> references/workflow-cases.md
  • Promotion / coupon / reward / referral flows -> references/promotion-cases.md
  • Resource consumption / downstream tool usage -> references/resource-consumption-cases.md
  • Third-party callback / integration flows -> references/third-party-integration-cases.md

If multiple scenarios apply, load all relevant scenario references.

If the scenario is not covered by a scenario-specific reference, continue using references/common-cases.md and rely only on clearly identified business objects, source origins, state rules, and code evidence.

If the workflow or scenario cannot be determined confidently, state the uncertainty and use only references/common-cases.md plus directly observed code behavior.

Reference usage rules

  • Use reference files as source discovery guidance, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared business source concepts, source categories, trust boundaries, false-positive controls, and source output standards.
  • Scenario-specific reference files define scenario-specific business source values, event origins, downstream uses, and follow-up audit checks.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Source Dimensions

S1 State and Transition Sources

Direction: Identify current state, target state, status fields, lifecycle flags, transition action names, terminal markers, and state-changing entry points that can influence business object transitions.

S2 Sequence and Workflow Step Sources

Direction: Identify step markers, prerequisite indicators, verification-complete flags, approval records, challenge records, UI flow markers, and backend workflow tokens that determine whether a later step may run.

S3 Idempotency and Replay Sources

Direction: Identify idempotency keys, request IDs, event IDs, transaction references, callback IDs, nonces, timestamps, retry counts, queue job IDs, dedupe keys, and processed-event records used to distinguish first execution from replay.

S4 Rate, Quota, and Resource Trigger Sources

Direction: Identify limiter keys, quota dimensions, initiator IDs, IP/device/session keys, target identifiers, workload size, downstream tool type, export/report parameters, and job trigger payloads that influence abuse controls or resource consumption.

S5 Value, Quantity, and Accounting Sources

Direction: Identify amount, total, currency, discount, coupon result, quantity, balance delta, inventory count, refund amount, settlement amount, ledger fields, reward value, and server-side recomputation sources.

S6 Identity, Scope, and Beneficiary Sources

Direction: Identify actor, target object, payer, recipient, inviter, invitee, beneficiary, coupon owner, account, tenant, merchant, integration account, and delegated-action source values that determine who initiates an action and who receives the effect.


High-Priority Source Targets

Prioritize these source targets first when present:

  • payment creation, callback, capture, refund, settlement, and reconciliation paths
  • OTP, SMS, email verification, password reset, login challenge, and binding flows
  • coupon claiming, coupon redemption, referral, invite, and reward issuance logic
  • approval, publish, archive, cancel, disable, and finalize actions
  • retryable jobs, webhook handlers, and queue consumers
  • export, report generation, OCR, AI tool, or other expensive downstream triggers
  • inventory deduction, balance update, score or points update, and ledger writes
  • workflows with terminal states, one-time entitlements, or side-effectful callbacks
  • admin replay, import, batch, sync, and operational paths that can trigger equivalent business effects

Output Requirements

Produce source points in a structured, evidence-driven format.

For every source point, use the following structure:

Source Point:

  • Dimension:
  • Scenario:
  • Source Type:
  • Confidence:

Entry Point

  • ...

Source Location

  • ...

Source Value or Event

  • ...

Trust Boundary

  • Client-controlled / External-system-controlled / Server-trusted / Mixed / Unclear

Downstream Business Use

  • ...

Evidence

  1. ...
  2. ...
  3. ...

Audit Relevance

  • ...

Verdict

  • Confirmed source / Suspected source / Not enough evidence / Probably irrelevant

Recommended Follow-up

  • ...

Final Response Style

When summarizing the source audit result:

  • Group source points by dimension or business scenario when useful.
  • Clearly separate confirmed source points from suspected source points.
  • Explicitly state uncertainty where source origin, dedupe logic, quota scope, value recomputation, or downstream business effect may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate a source point into a vulnerability without missing-rule evidence.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

ماذا تفعل مهارة الذكاء الاصطناعي Business Logic Source Check؟

Use this skill to identify source points for business logic abuse audits, including workflow state inputs, transition actions, sequence markers, idempotency keys, replay identifiers, rate and quota dimensions, value and accounting inputs, actor-target-beneficiary bindings, retryable events, callbacks, jobs, and integration-driven business events.

لماذا تستخدم Business Logic Source Check على TypingMind؟

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

كيف أثبّت Business Logic Source Check في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Source_Audit_SKILL/bussiness-logic-check. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Business Logic Source Check؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Business Logic Source Check؟

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

هل مهارة الذكاء الاصطناعي Business Logic Source Check مجانية؟

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

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

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

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

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

عرض الكل
شعار affaan-m

Quarkus Security

affaan-m
المجتمعشائع

أفضل ممارسات الأمان في Quarkus للمصادقة، والتفويض، وJWT/OIDC، والتحكم في الوصول المستند إلى الأدوار (RBAC)، والتحقق من المدخلات، وCSRF، وإدارة الأسرار، وأمان التبعيات.

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Quarkus Verification

affaan-m
المجتمعشائع

حلقة تحقق لمشاريع Quarkus: البناء، والتحليل الثابت، والاختبارات مع قياس التغطية، وفحوصات الأمان، والتجميع الأصلي، ومراجعة الفروقات قبل الإصدار أو طلب الدمج (PR).

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Springboot Security

affaan-m
المجتمعشائع

أفضل ممارسات Spring Security للمصادقة والتفويض، والتحقق من الصحة، وCSRF، والأسرار، والترويسات، وتحديد معدل الطلبات، وأمان التبعيات في خدمات Java Spring Boot.

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Agent Architecture Audit

affaan-m
المجتمعشائع

تشخيص متكامل لتطبيقات الوكلاء وتطبيقات LLM. يدقّق تراجعات الأغلفة، وتلوث الذاكرة، وإخفاقات انضباط الأدوات، وحلقات الإصلاح المخفية، وأعطال العرض عبر طبقات مجموعة الوكلاء الـ12. ينشئ نتائج مرتبة حسب الأهمية مع إصلاحات تركّز على الكود. لا غنى عنه للمطورين الذين يبنون تطبيقات الوكلاء أو الحلقات المستقلة أو الميزات المدعومة بـ LLM.

39.1K
261.1K
التعليمات
عرض

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

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