Skillpedia
برمجة عامة5.9k · #14548

add-to-project

ما الذي تفعله

تضيف هذه المهارة أدوات وميزات إلى مشروع أُنشئ بـBetter-T-Stack، باستخدام أمر الإضافة الخاص بالأداة. وهي مناسبة لمطورين يريدون توسيع مشروع Better-T-Stack موجود دون ربط كل شيء يدوياً.

متى تستخدمها

  • ✓عندما يحتوي المشروع على ملف bts.jsonc وتريد إضافة أداة أو ميزة إليه.
  • ✓عندما تريد إضافة أدوات تدقيق أو خطافات git أو موقع توثيق إلى مشروع Better-T-Stack.
  • ✓عندما تريد إضافة حزمة مساحة عمل مشتركة إلى مشروع موجود.

رابط المهارة

https://github.com/AmanVarshney01/create-better-t-stack/blob/main/plugin/skills/add-to-project/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/AmanVarshney01/create-better-t-stack/blob/main/plugin/skills/add-to-project/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أضف دعم PWA وBiome إلى مشروع Better-T-Stack الخاص بي.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يقرأ وكيلك ملف إعداد المشروع، ويخطط التغيير بتشغيل تجريبي، ثم يطبّق الإضافات المختارة بحيث يبقى ملف الإعداد محدّثاً.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Add to an existing Better-T-Stack project

Add tooling to a Better-T-Stack project with its add flow instead of wiring it by hand. For a new project, use the scaffold-project skill.

bts.jsonc at the project root records the stack chosen at creation and a reproducibleCommand that recreates it. The add flow reads it to detect the stack and updates it afterwards.

Pick the interface

  • bts_add_addons tool: the local MCP server.
  • A shell: the CLI's add-json.
  • Neither: give the user the command bunx create-better-t-stack@latest add --addons <names>, using the project's package runner.

The hosted MCP server can't change an existing project.

Steps

  1. Read bts.jsonc. It tells you the current stack. If it's missing, add can't run. Tell the user instead of recreating the file. Never edit it by hand.

  2. Check nested options. Some addons take options in addonOptions: the Fumadocs template, search and AI chat, the WXT and OpenTUI templates, the MCP addon's servers and agents, and the Skills addon's sources. Get their shape from bts_get_schema or npx create-better-t-stack@latest schema --name addonOptions.

  3. Plan. Call bts_plan_addons, or run:

    npx create-better-t-stack@latest add-json --json '{
      "projectDir": "./my-app",
      "addons": ["pwa", "biome"],
      "dryRun": true
    }'
    

    Pass addons, a workspace package name, or both. Show the user what will change, including any conflict the plan reports.

  4. Apply after the user agrees: bts_add_addons, or add-json without dryRun.

  5. Prove it runs. Run <packageManager> install. With the user's OK, run the project's typecheck or build script. Report the exact error if a step fails.

  6. Report what changed and the follow-up commands.

What can be added

Addons: pwa, tauri, electrobun, starlight, fumadocs, biome, oxlint, ultracite, husky, lefthook, turborepo, nx, vite-plus, mcp, skills, opentui, wxt, evlog.

  • turborepo, nx and vite-plus are task runners. A project can have one.
  • axiom can't be added later. It sets up deployment infrastructure, so it must be chosen at creation. If the user asks for it, say so instead of planning it.
  • A workspace package (package: "shared", or add --package shared) scaffolds packages/shared with a manifest, the shared tsconfig and src/index.ts.

Rules

  • Plan before every apply.
  • Don't add addons the user didn't ask for.
  • Never hand-edit bts.jsonc.
الأسئلة الشائعة

ماذا إذا لم يكن في المشروع ملف bts.jsonc؟

لا يستطيع تدفق الإضافة العمل، فيخبرك الوكيل بذلك بدلاً من إعادة إنشاء الملف.

هل يجري تشغيلاً تجريبياً أولاً؟

نعم. يخطط التغيير قبل تطبيقه.

هل هي لمشروع جديد؟

لا. للمشروع الجديد تُستخدم مهارة الإنشاء المنفصلة.

التفاصيل

الوصف الأصلي من المؤلف

Add addons, tooling or a workspace package to an existing Better-T-Stack project, such as PWA, Tauri, Starlight or Fumadocs docs, Biome, Oxlint, Ultracite, Husky, Lefthook, Turborepo, Nx, the MCP or Skills addon, or a shared `packages/<name>`. Use when the project has a `bts.jsonc` file and the user wants to extend it or add tooling.

repo: AmanVarshney01/create-better-t-stack

الشعبية

نجوم GitHub
5.9k
الترتيب
#14548
الترخيص
MIT
آخر تحديث
24‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة