شعار Nextjs Security Stinger

Nextjs Security Stinger

مؤسسة
legioncodeinc
nextjs-security-stinger

Deep Next.js security audit (13 to 16, App and Pages Router). Version advisories, proxy and middleware auth, Server Actions, Route Handlers, data exposure, caching, config. Read-only.

نظرة عامة

الناشرlegioncodeinc
المستودعvibe-coding-tools
اسم المهارةnextjs-security-stinger
النجوم
94
التفريعات
44
الملفات المرفقة
19
الترخيصAGPL-3.0-or-later
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/nextjs-security-stinger
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/legioncodeinc/vibe-coding-tools.git /tmp/vibe-coding-tools
mkdir -p .claude/skills
cp -r /tmp/vibe-coding-tools/plugins/code-audit-tools/skills/nextjs-security-stinger .claude/skills/nextjs-security-stinger
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Next.js Security Stinger

Designed and built by Legion Code Inc.

Where this skill's files are

Every path below (guides/, references/, scripts/) is relative to the folder that contains this SKILL.md. In Claude Code that folder is ${CLAUDE_SKILL_DIR}. If that text was not replaced with a real path, find the folder yourself (for example with Glob for **/nextjs-security-stinger/SKILL.md) and use it as the skill directory in every command.

Purpose

Run the Next.js-specific part of the security dimension of an /audit-my-code run. It finds the installed next version in every app of the repo and matches it against a normalized table of 61 GitHub Security Advisories (2024 to 2026-09-30, including CVE-2025-29927 and the React2Shell RSC remote code execution CVE-2025-55182), then reviews the places Next.js apps actually break: authorization that lives only in middleware or proxy.ts, Server Actions and Route Handlers that are public endpoints without auth or ownership checks, private data passed to Client Components or baked into static and cached output, NEXT_PUBLIC_ secrets, broad images.remotePatterns, dynamic-host rewrites, CSP and header gaps, and auth-library misuse (Auth.js, Clerk, Supabase SSR). It writes contract-shaped SEC-NEXT-NNN findings, metrics, and notes to the run workspace and never changes the audited repository.

When to use

  • The orchestrator routes a basic, full, or mario tier run with nextjs in intake.json.stacks.
  • "Security audit this Next.js app", "are my Server Actions safe", "is our middleware auth enough", "is our Next.js version vulnerable", "check us for CVE-2025-29927 or React2Shell".
  • A vibe-coded Next.js app (v0, Cursor, Claude Code, Lovable, Bolt) needs a deep framework pass before launch.

When not to use

  • Generic OWASP review, non-next dependency CVEs, SQL injection in plain helpers, secrets scanning of the whole repo: security-stinger through security-wasp-drone (the generic pass runs alongside this one).
  • React client-side patterns (XSS through dangerouslySetInnerHTML, unsafe URLs in href, client storage of tokens): the react-security pair.
  • SvelteKit or non-JavaScript backends: sveltekit-security and polyglot-security pairs.
  • Fixing the code. This skill is research-only; remediation planning belongs to the mario tier's remediation Drone.
  • Testing a live site from the outside: web-security-posture-stinger.

Procedure

  1. Read guides/00-scoping.md and run scripts/next_audit_scan.py against the repo with output into <workspace>/02-security/raw/. Record versions, router type, deployment target, auth library, and data access pattern in notes-nextjs-security-wasp-drone.md.
  2. Follow guides/01-version-and-advisory-check.md: confirm lockfile versions, settle advisory preconditions, rewrite or drop scanner findings, append them to findings-nextjs-security-wasp-drone.jsonl.
  3. Follow guides/02-proxy-middleware-and-auth-boundaries.md: build the boundary map, test middleware-only auth, matcher gaps, unverified sessions, and the auth library checks.
  4. Follow guides/03-server-actions-and-route-handlers.md: read every action and handler for authentication, ownership, input trust, return values, CSRF, CORS, and SSRF.
  5. Follow guides/04-data-exposure-and-caching.md: secrets and NEXT_PUBLIC_, props to Client Components, server-only, source maps, taint, use cache, unstable_cache, static and ISR output.
  6. Follow guides/05-config-and-headers.md: images, rewrites and redirects, headers, CSP, build switches, next/og.
  7. At the end of steps 3 to 6, sweep references/ai-failure-patterns.md and confirm hits through their owning checks.
  8. Follow guides/06-writing-findings.md: write and validate findings, metrics measures, and notes. Report the counts and the verdict input to the orchestrator.

References map

PathLoad when
guides/00-scoping.md to guides/06-writing-findings.mdIn order, for every run
references/REFERENCE.mdIndex of all references and the script's inputs, outputs, and limits
references/advisory-table.mdAny version or advisory question
references/next-advisories.jsonRead by the scanner; edit only when refreshing research
references/checks-proxy-and-auth-boundaries.mdGuide 02
references/checks-server-actions-and-route-handlers.mdGuide 03
references/checks-data-exposure-and-caching.mdGuide 04
references/checks-config-and-headers.mdGuide 05
references/ai-failure-patterns.mdEnd of guides 02 to 05
references/finding-templates.mdGuide 06
references/research/distilled-nextjs-security.mdVerifying a claim or settling a dispute
Source research archive (not shipped with the plugin)Source-repository only; the shipped distillation summarizes it, do not require it
scripts/next_audit_scan.pyRun once in guide 00; rerun after refreshing the advisory table

Related drones and stingers

  • nextjs-security-wasp-drone - The paired agent. The orchestrator dispatches it for every app with the nextjs stack.
  • audit-my-code-stinger - Owns the run contract this skill writes against (references/audit-contract.md).
  • security-stinger - Generic security pass that runs next to this one; overlapping findings are merged by the brief renderer.
  • react-security pair - Client component patterns in the same app.
  • web-security-posture-stinger - Passive outside-in checks of a deployed site, if the user wants headers confirmed live.

Critical Directive

  • You must read all files and context contained within your skill.
  • In the event your core knowledge does not provide sufficient guidance you must make every attempt to search the internet, related knowledge base documentation files, and other available resources to supplement your knowledge prior to proceeding with your task.
  • Additional related skills can be found here:
    • security-stinger (core Wasp Nest, when installed) - Generic security audit pass that runs alongside this one in the security dimension.
    • web-security-posture-stinger - Passive external posture checks of a deployed site.

Designed and built by Legion Code Inc. Licensed under AGPL-3.0-or-later.

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

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

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

ماذا تفعل مهارة الذكاء الاصطناعي Nextjs Security Stinger؟

Deep Next.js security audit (13 to 16, App and Pages Router). Version advisories, proxy and middleware auth, Server Actions, Route Handlers, data exposure, caching, config. Read-only.

لماذا تستخدم Nextjs Security Stinger على TypingMind؟

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

كيف أثبّت Nextjs Security Stinger في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/nextjs-security-stinger. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Nextjs Security Stinger؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Nextjs Security Stinger؟

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

هل مهارة الذكاء الاصطناعي Nextjs Security Stinger مجانية؟

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

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

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

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

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

عرض الكل

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

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