neon-postgres-branches
ما الذي تفعله
تساعدك هذه المهارة على إنشاء «فروع» (نسخ معزولة) في Neon Postgres. هذه الفروع مفيدة لاختبار التغييرات أو تطوير ميزات جديدة دون التأثير على قاعدة البيانات الرئيسية.
متى تستخدمها
- ✓عندما تريد اختبار كيف تعمل التغييرات الجديدة (الترحيلات) مع بيانات حقيقية.
- ✓عندما تريد إنشاء بيئة منفصلة للاختبار دون المساس بقاعدة البيانات الرئيسية.
- ✓عندما تعمل مع بيانات حساسة وتحتاج إلى البنية (المخطط) فقط دون البيانات نفسها.
رابط المهارة
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/neon-postgres-branches/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أريد إنشاء فرع لاختبار ترحيل قاعدة بيانات باستخدام بيانات الإنتاج.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقرر المهارة أولًا أي نوع من الفروع يناسبك (بالبيانات الحقيقية أو بالبنية فقط). ثم تستخدم أدوات مثل Neon CLI أو MCP لإنشاء هذا الفرع الجديد لك.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Neon Postgres Branching
When to Use
Use this skill when you need choose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated test environments, schema-only branch workflows for sensitive data, or branch creation via Neon CLI or Neon MCP. Triggers...
The outcome of this skill should be a created Neon branch (or a clear, actionable next step if creation cannot proceed). Choose the correct branch type, then execute branch creation via MCP or CLI.
- Normal branch for realistic migration and query testing with real data.
- Schema-only branch (Beta) for sensitive data workflows where structure is needed without copying rows.
Branch Type Decision
Use this decision rule first:
- If the user wants to test complex migrations, performance, or behavior against production-like data, choose a normal branch.
- If the user needs to avoid copying sensitive data, choose a schema-only branch.
If the request is ambiguous, ask one clarifying question: "Do you need realistic data for testing, or only schema structure because the data is sensitive?"
Tool Selection: CLI or MCP
Always support both Neon CLI and Neon MCP server. Prefer the tool the user already has installed and authenticated.
MCP link: https://neon.com/docs/ai/neon-mcp-server.md CLI link: https://neon.com/docs/reference/cli-quickstart
Selection order
- Check MCP first in MCP-enabled environments:
- If Neon MCP tools are available and authenticated (for example, listing projects works), use MCP.
- If MCP is unavailable or not authenticated, check CLI:
- Run
neon --versionto confirm CLI is installed. - Run
neon projects listto confirm auth/context.
- Run
- If CLI is missing, direct installation via quickstart.
- If CLI is installed but not authenticated, guide the user through
neon auth(or API key auth), then continue. - If both MCP and CLI paths are unsuccessful, use the Neon REST API:
MCP branch flow
- Choose normal vs schema-only based on data sensitivity and migration-testing goals.
- Use branch tools (for example,
create_branch) to create the branch. - Validate with read tools (for example,
describe_branch). - For migration workflows, prefer branch-based migration flows before applying to main.
Create a Normal Branch (Preferred for Real-Data Migration Testing)
Use this when the user needs realistic testing conditions. Real production-like data can expose edge cases your seed or data migration scripts miss, which helps catch migration issues before going live.
Link: https://neon.com/docs/introduction/branching.md
Steps
- Use MCP if already available/authenticated; otherwise verify CLI with
neon --version. - Ensure project context is set (
neon set-context --project-id <your-project-id>) or include--project-idon commands. - Create branch:
neon branches create \
--name <branch-name> \
--parent <parent-branch-id-or-name> \
--expires-at 2026-12-15T18:02:16Z
- Optionally fetch a connection string for the new branch:
neon connection-string <branch-name>
Create a Schema-Only Branch (Beta, Sensitive Data)
Use this when users must not copy production rows into the test branch.
Link: https://neon.com/docs/guides/branching-schema-only.md
Steps
- Use MCP if already available/authenticated; otherwise verify CLI with
neon --version. - Create schema-only branch:
neon branches create \
--name <schema-only-branch-name> \
--parent <parent-branch-id-or-name> \
--schema-only \
--expires-at 2026-12-15T18:02:16Z
If multiple projects exist, include:
neon branches create \
--name <schema-only-branch-name> \
--parent <parent-branch-id-or-name> \
--schema-only \
--project-id <your-project-id> \
--expires-at 2026-12-15T18:02:16Z
Beta Support Guidance (Mandatory)
Schema-only branching is in Beta. If users report unexpected behavior, errors, or missing capabilities:
- Ask them to share feedback in the Neon Console:
- Recommend opening a support conversation in the Neon Discord:
Reset from parent
Use this when a child branch has drifted and the user wants a clean refresh from the parent branch's latest schema and data.
…
الأسئلة الشائعة
ما الفرق بين الفرع العادي والفرع «المخطط فقط»؟
الفرع العادي ينسخ البيانات الحقيقية لاختبار كامل. أما الفرع «المخطط فقط» فينسخ بنية قاعدة البيانات فقط (الجداول والأعمدة)، مما يجعله مثاليًا للبيانات الحساسة.
كيف تقرر المهارة استخدام Neon CLI أو MCP؟
تحاول أولًا استخدام MCP إذا كان متاحًا ومُعدًّا. وإن لم يكن كذلك، تتحقق مما إذا كانت Neon CLI مثبتة ومُعدّة، فتستخدمها.
ماذا يحدث إذا لم تكن Neon CLI مثبتة لديّ؟
ستُرشدك المهارة إلى تثبيت Neon CLI وإعدادها حتى تستطيع إنشاء الفرع.
التفاصيل
الوصف الأصلي من المؤلف
Choose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated test environments, schema-only branch workflows for sensitive data, or branch creation via Neon CLI or Neon MCP.
الشعبية
- نجوم GitHub
- 48k
- الترتيب
- #5284
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
discrawl
394kيتيح لوكيلك البحث في أرشيف محلي محفوظ لرسائل Discord وتلخيصه، والتحقق من مدى حداثته، وقراءة الرسائل المباشرة.
clickhouse-io
280kيساعد وكيلك على تحسين الاستعلامات والمخططات في ClickHouse وتطبيق أفضل ممارسات التحليل عالي الأداء، ويفيد عندما تكون الاستعلامات التحليلية بطيئة.
scientific-db-pubmed-database
280kيساعد وكيلك على البحث عن المقالات العلمية في المجال الطبي الحيوي. مفيد للبحوث التي تحتاج إلى معلومات طبية محددة.