شعار Apx

Apx

مؤسسة
databricks-solutions
apx

Quick reference for building full-stack Databricks Apps with apx (React + FastAPI). Use when working on apx projects, creating routes, adding components, or managing dev servers.

نظرة عامة

الناشرdatabricks-solutions
المستودعapx
اسم المهارةapx
النجوم
89
التفريعات
25
الملفات المرفقة
2
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

apx Toolkit

apx is the toolkit for building full-stack Databricks Apps with React + FastAPI.

Prerequisites

Before using apx, verify the CLI is installed:

bash
apx --version

If not installed:

  • macOS/Linux: curl -fsSL https://databricks-solutions.github.io/apx/install.sh | sh
  • Windows (PowerShell): irm https://databricks-solutions.github.io/apx/install.ps1 | iex

When to Use This Skill

  • Working on a project that uses apx (check for pyproject.toml with apx entrypoint or databricks.yml)
  • Creating or modifying FastAPI routes, Pydantic models, or React pages
  • Managing dev servers, checking errors, or viewing logs
  • Adding shadcn/ui components or frontend dependencies
  • Deploying or debugging Databricks Apps

Quick Start

The project follows standard apx conventions. Use MCP tools and pattern files instead of exploring the codebase:

  1. routes — Call this first to see all API routes. Do NOT read source files to explore.
  2. docs — Search SDK docs for the method you need (e.g. "jobs list") before writing any ws.* call.
  3. Follow patterns — See backend-patterns.md for models, routers, pagination, and DI.
  4. refresh_openapi — Run after adding/modifying backend routes so frontend hooks update automatically.
  5. check — Run type checks to verify correctness after changes.

Project Structure

src/<app>/
├── ui/                    # React + Vite frontend
│   ├── components/        # UI components (shadcn/ui)
│   ├── routes/            # @tanstack/react-router pages
│   ├── lib/               # Utilities (api client, selector)
│   └── styles/            # CSS styles
└── backend/               # FastAPI backend
    ├── app.py             # Main FastAPI app
    ├── router.py          # API routes
    ├── models.py          # Pydantic models
    └── core.py            # Config, logging, Dependency class, bootstrap

CLI Commands

CommandDescription
apx dev startStart all dev servers (backend + frontend + OpenAPI watcher)
apx dev stopStop all dev servers
apx dev statusCheck status of running servers
apx dev checkCheck for TypeScript/Python errors
apx dev logsView recent logs (default: last 10m)
apx dev logs -fFollow/stream logs in real-time
apx buildBuild for production
apx bun <args>Run bun commands (install, add, etc.)
apx components add <name>Add a shadcn/ui component
apx init --as-memberAdd apx to an existing project as a uv workspace member
apx dev apply <addon>Apply an addon to an existing project

Addons

Addons extend the base project with additional capabilities (UI, assistant rules, database integrations, etc.). To list available addons, run apx dev apply --help. To apply an addon to an existing project: apx dev apply <addon> (e.g. apx dev apply lakebase). During apx init, addons are selected interactively or via --addons=ui,claude,sidebar.

Adding to an Existing Project

Use --as-member to add apx into an existing Python project or monorepo as a uv workspace member:

bash
# Recommended: explicit member path
apx init --as-member=packages/app

# Or just auto-detect (when pyproject.toml exists without [tool.apx])
apx init

Auto-detected: running apx init in a directory with an existing pyproject.toml (without [tool.apx]) automatically uses member mode with default path packages/app.

The command:

  • Creates app files in the member subdirectory (e.g. packages/app)
  • Configures [tool.uv.workspace] in the root pyproject.toml
  • Initializes git at the workspace root if needed

MCP Tools

When the apx MCP server is running, these tools are available:

ToolDescription
startStart the development server and return its URL. Call before testing UI or API changes.
stopStop the development server.
restartRestart the development server (preserves port). Use after backend code changes.
logsFetch recent dev server logs. Use to diagnose runtime errors or startup issues.
checkRun TypeScript and Python type checks in parallel. Returns categorized errors. Call after making changes to verify correctness.
routesList all API routes with their parameters, request/response schemas, and generated hook names. Call this first to understand the project's API surface before reading source files.
get_route_infoGet a complete frontend code example for a specific API route, including Suspense/ErrorBoundary scaffold and correct hook usage with parameters. Call this before writing any frontend code that uses an API route. Pass the operation_id from the routes tool.
refresh_openapiRegenerate the OpenAPI schema and TypeScript API client from backend routes. Run after adding or modifying backend routes.
search_registry_componentsSemantic search for UI components across configured registries (shadcn, etc). Returns component IDs usable with add_component.
add_componentInstall a UI component into the project. Accepts 'component-name' (default registry) or '@registry-name/component-name'.
list_registry_componentsList all available components in a registry. Defaults to shadcn registry if none specified.
docsSearch Databricks SDK documentation for Python code examples and API references. Always call this before writing any Databricks SDK (ws.*) call to verify the correct method signature.
databricks_apps_logsFetch logs from a deployed Databricks App using the Databricks CLI. Use for debugging deployed (not local dev) issues.
feedback_preparePrepare a feedback issue for review. Returns the formatted title, body, and a browser URL. Call feedback_submit to create the GitHub issue.
feedback_submitSubmit a prepared feedback issue as a public GitHub issue. Pass the exact title and body returned by feedback_prepare.

Recommended Workflow

  1. routes — List all API routes to understand the project's API surface
  2. get_route_info — Get a complete code example for a specific route
  3. search_registry_components / add_component — Find and install UI components
  4. refresh_openapi — Regenerate the API client after backend route changes
  5. check — Run type checks to verify correctness
  6. start / restart — Start or restart the dev server to test changes
  7. logs — Diagnose runtime errors if something goes wrong

Do's and Don'ts

  • OpenAPI client auto-regenerates on code changes when dev servers are running — don't manually regenerate.
  • Prefer running apx related commands via MCP server if it's available.
  • Use the apx MCP search_registry_components and add_component tools to find and add shadcn/ui components.
  • When using the API calls on the frontend, use error boundaries to handle errors.
  • Run apx dev check command (via CLI or MCP) to check for errors in the project code after making changes.
  • If agent has access to native browser tool, use it to verify changes on the frontend. If such tool is not present or is not working, use playwright MCP to automate browser actions.

Databricks SDK

  • SDK first: Always use databricks-sdk (WorkspaceClient) methods for Databricks operations. Never use raw requests/httpx calls or ws.api_client.do() to call Databricks REST APIs.
  • Verify signatures: Call the docs MCP tool before writing any ws.* call to confirm the exact method name, parameters, and return type.
  • SDK listing methods (e.g. ws.jobs.list(), ws.clusters.list()) return lazy iterators that auto-paginate — do NOT manually manage API pagination tokens when calling SDK methods.
  • SDK dataclasses are Pydantic-compatible — use them directly in response_model or compose into custom models: class MyResponse(BaseModel): payload: SdkDataclass.
  • Inject the WorkspaceClient via Dependencies.Client (service principal) or Dependencies.UserClient (OBO) — never construct it manually.
  • For paginated list endpoints, see Backend Patterns — SDK Listing with Pagination.

Package Management

  • Frontend: Use apx bun install or apx bun add <dependency> for frontend package management.
  • Python: Always use uv (never pip).

Component Management

  • Check configured registries first: Before creating custom components, check [tool.apx.ui.registries] in pyproject.toml for domain-specific registries (e.g. @ai-elements for chat/AI components, @animate-ui for animations). Use list_registry_components with the registry name to browse all available components.
  • Finding components: Use MCP search_registry_components to search across all registries. Results from project-configured registries are boosted in scoring.
  • Adding components: Use MCP add_component or CLI apx components add <component> --yes. For custom registries: @registry-name/component-name.
  • Component location: If a component was added to a wrong location (e.g. src/components/ instead of src/<app>/ui/components/), move it to the proper folder.
  • Component organization: Group components by functionality (e.g. src/<app>/ui/components/chat/).

Reference Files

For detailed patterns and code examples, see:

Resources

  • OpenAPI client: src/<app>/ui/lib/api.ts (auto-generated). Example:
    ts
    import { api } from "@/lib/api";
  • Selector: src/<app>/ui/lib/selector.ts Example:
    ts
    import { selector } from "@/lib/selector";
  • Routes: src/<app>/ui/routes/
  • Components: src/<app>/ui/components/
  • Backend: src/<app>/backend/

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

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

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

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

Quick reference for building full-stack Databricks Apps with apx (React + FastAPI). Use when working on apx projects, creating routes, adding components, or managing dev servers.

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

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

كيف أثبّت Apx في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/databricks-solutions/apx/tree/main/skills/apx. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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