شعار Bounded Code Repair

Bounded Code Repair

المجتمع
Firstp1ck
bounded-code-repair

Repair one focused, inspectable code behavior with a declared file boundary, actual validation, and a bounded retry count. Do not use for broad feature delivery, architecture decisions, security review, or documentation-only work.

Add to TypingMind

نظرة عامة

الناشرFirstp1ck
المستودعpi-coding-agent-forge
اسم المهارةbounded-code-repair
النجوم
93
التفريعات
22
الملفات المرفقة
3
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-extension-small-modal-reliability/skills/bounded-code-repair
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge.git /tmp/pi-coding-agent-forge
mkdir -p .claude/skills
cp -r /tmp/pi-coding-agent-forge/pi-extension-small-modal-reliability/skills/bounded-code-repair .claude/skills/bounded-code-repair
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Bounded code repair

Make the smallest patch that resolves one defined behavior, then prove the affected behavior with observed checks. A green command, a diff marker, or a model statement alone is not completion evidence.

When to Use

Should trigger

  • “Fix the focused failing test in this named module and add a regression test.”
  • “Make this small behavior-preserving refactor without changing the public API.”
  • “Repair this parser result in the two named files, then run its targeted checks.”

Should not trigger

  • “Design and deliver a new multi-area feature.”
  • “Audit the repository for security issues.”
  • “Update prose only, with no code behavior change.”
  • “Explain an unfamiliar repository without requesting a modification.”

Invocation Design

  • Invocation mode: model-invoked for a focused code patch with an inspectable target.
  • Leading concept: one behavioral objective inside one explicit write boundary.
  • Default scope: at most three files and one behavior; a user or governing workflow must explicitly widen it.
  • Completion criterion: a minimal in-scope diff and fresh, relevant observed validation both support the stated acceptance criteria.

Inputs and Assumptions

Establish the failing or desired behavior, acceptance criteria, allowed write paths, forbidden/shared paths, relevant symbols and callers, existing tests, exact validation commands, and any version-sensitive dependency surface. Repository instructions, user requirements, observed tool results, and model hypotheses remain separate trust sources.

Portable Workflow

  1. State one bug or bounded behavior and its acceptance criteria.
    • Completion criterion: the desired outcome is observable, not merely “improve” or “clean up.”
  2. Inspect the target, callers, tests, and relevant configuration before mutation.
    • Completion criterion: the patch target and its expected effect are evidence-backed.
  3. Declare the write boundary and forbidden/shared paths.
    • Completion criterion: a path outside the boundary has an escalation path rather than an implicit exception.
  4. Check version-sensitive dependencies when the patch relies on a framework, library, runtime, CLI, API, or schema.
    • Completion criterion: advice is tied to the exact installed version and source, or the work stops as unknown.
  5. Implement the smallest patch that satisfies the objective.
    • Completion criterion: the final diff has no unrelated cleanup, weakened tests, or broadened behavior without authorization.
  6. Run targeted checks, then affected broader checks when warranted.
    • Completion criterion: a host-observed result supports each material criterion; unavailable checks remain unknown.
  7. Inspect the final diff and retry at most twice after validation failure.
    • Completion criterion: each retry follows an observed failure; architecture, security, migration, dependency, or multi-subsystem decisions escalate.

Safety and Side Effects

Do not write existing files without a completed fresh inspection of their current content. A partial inspection can authorize only an exact targeted edit entirely inside the inspected span; it never authorizes whole-file overwrite. Do not convert model claims, Markdown checkboxes, test names, or command text into evidence. Do not weaken tests just to obtain green output. Stop for scope drift, an unapproved dependency/version decision, unsafe migration, or exhausted repair attempts.

Scripts, References, and Dependencies

No script or package installation is required. Read code scope and validation before widening a patch or interpreting validation results.

Verification

Confirm the final diff stays in scope, fresh target reads preceded existing-file writes, expected tests/checks were observed and relevant, unrelated tests were not weakened, and failures/unknowns are reported rather than hidden. Record dependency evidence when an external versioned contract materially affects the patch; do not require it for purely local logic.

Pi Adapter

  • Do not repair against unconfirmed ordinary or queued corrections. /reliability input confirm establishes a new native instruction; it does not certify earlier delivery. Revalidate affected old proof after confirmation.

  • Coding completion requires mapped host-observed executable validation; manual-only review is not a replacement. Recursive searches that include forbidden or protected descendants remain blocked: narrow the search root instead of relying on globs.

  • Set an explicit coding scope with reliability_scope; the host enforces allowed paths, tools, budgets, and exact validation commands.

  • Existing-file writes need receipt-bound fresh reads. A bounded partial read may support only a unique exact edit replacement wholly inside that span; write still needs a full current read.

  • All bash and powershell validation use requires a current native-confirmed coding scope plus a single-use native approval for that exact normalized command. /reliability map <criterion_id> bash <exact command> maps evidence coverage only; it grants no shell permission.

  • Use reliability_evidence action record-dependency for an external versioned contract after observing the manifest, optional supported lockfile, installed source, and relevant source passage through host receipts.

  • The coding completion gate independently detects static external imports in changed code. A detected package needs current verified dependency evidence even when no declared criterion names it; ambiguous or non-code changes require an exact-diff local-only review rather than an exemption.

  • Complete a complex canonical plan step only through reliability_record_progress or reliability_submit_worker_result with required host receipts/artifacts. Markdown is audit context, never completion authority.

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

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

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

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

Repair one focused, inspectable code behavior with a declared file boundary, actual validation, and a bounded retry count. Do not use for broad feature delivery, architecture decisions, security review, or documentation-only work.

لماذا تستخدم Bounded Code Repair على TypingMind؟

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

كيف أثبّت Bounded Code Repair في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-extension-small-modal-reliability/skills/bounded-code-repair. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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