تخطَّ إلى المحتوى
إضافةمستورديحتوي سكربتاتترخيص مشاركة بالمثل

goal-prompt

Drafts copy-ready /goal commands for goal mode in Claude Code and Codex: verifiable completion conditions with stop bounds, normalized to a single line under the 4,000-character cap.

وصف مستورد لم يراجعه محرر بعد

جاء هذا العنصر من مستودعه الأصلي وفحصناه آلياً فقط، ولم يكتب له محرر وصفاً عربياً بعد. اقرأ محتواه بنفسك قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.

التنزيل

اقرأ هذا قبل أن تنزّل

لا يشغّل تلقين أي شيء من هذا العنصر. لكن ما تنزّله يعمل على جهازك إن شغّلته أنت أو سمحت لكلود كود بتشغيله، فاقرأ الملفات أولاً.

  • في العنصر ملفات سكربت.

الملفات: 25 · الحجم: 57 ك.ب

نزّل ملف ZIP

يحمل الملف ترخيص المصدر الأصلي.

التثبيت

تُثبَّت الإضافات من سوق الإضافات في كلود كود، لا بنسخ الملفات. نزّل الحزمة لتقرأ محتواها وترخيصها.

التعليمات

goal-prompt

Turns a task description into a copy-paste-ready /goal command for goal mode in Claude Code or Codex.

What It Does

A goal prompt has to do two things at once: fit the format (/goal is a single line, max 4,000 characters in both harnesses) and actually terminate (goal mode keeps looping until the condition is judged met — a vague condition burns turns forever).

The skill:

  • drafts the objective as a termination contract: measurable end state, scope to read first, the command that proves completion, invariants, explicit stop bound
  • closes the easy-outs a lazy model would take: deleting code to silence a check, passing on a subset, gaming the gate
  • keeps the goal small — every constraint narrows what the model can explore
  • never invents missing elements — anything it cannot ground in your request or the repo comes back as a Missing: warning
  • hardens security-audit goals against reward hacking, following trailofbits/codex-config
  • formats deterministically to one line, warning on a missing stop clause and rejecting output over 4,000 characters instead of truncating

Example

User: turn this into a /goal command:
      Migrate the auth module:
        - replace legacyAuth() with auth.verify()
        - make sure the tests still work

Assistant:
/goal All legacyAuth() call sites use auth.verify(): `rg "legacyAuth\(" -t ts` prints nothing AND `npm test` exits 0 (run both, show the output), without modifying vendor/ or weakening any test. If blocked, stop and report attempted paths and the blocker, or stop after 20 turns.

Components

  • skills/goal-prompt/SKILL.md — drafting checklist and output contract
  • skills/goal-prompt/scripts/format_goal_prompt.py — stdlib-only formatter (--fenced, --objective-only, --max-chars)
  • evals/ — with/without-plugin ablation cases (claude plugin eval goal-prompt --ablation with-without)

الملفات

  • مجلد.claude-plugin301 بايت
    • plugin.json301 بايت
  • مجلدevals22 ك.بسكربت
    • مجلدeasy-out-closed4.2 ك.بسكربت
      • مجلدgraders1.9 ك.ب
        • has-stop-clause.md125 بايت
        • pairs-functional-proof.md978 بايت
        • single-line-command.md863 بايت
      • case.yaml1.1 ك.ب
      • scaffold.sh1.1 ك.بسكربت
    • مجلدgrounded-migration4.2 ك.بسكربت
      • مجلدgraders1.8 ك.ب
        • grounded-termination-contract.md848 بايت
        • has-stop-clause.md125 بايت
        • single-line-command.md863 بايت
      • case.yaml1.1 ك.ب
      • scaffold.sh1.3 ك.بسكربت
    • مجلدungrounded-vague4.1 ك.بسكربت
      • مجلدgraders2.8 ك.ب
        • flags-the-gaps.md787 بايت
        • no-invented-contract.md1.2 ك.ب
        • single-line-command.md863 بايت
      • case.yaml999 بايت
      • scaffold.sh318 بايتسكربت
    • .gitignore9 بايت
    • README.md2.6 ك.ب
    • check_contamination.py3.3 ك.بسكربت
    • test_check_contamination.py3.2 ك.بسكربت
  • مجلدskills13 ك.بسكربت
    • مجلدgoal-prompt13 ك.بسكربت
      • مجلدagents185 بايت
        • openai.yaml185 بايت
      • مجلدscripts6.8 ك.بسكربت
        • format_goal_prompt.py3.5 ك.بسكربت
        • test_format_goal_prompt.py3.3 ك.بسكربت
      • SKILL.md6 ك.ب
  • LICENSE20 ك.ب
  • README.md1.9 ك.ب

ما وجده الفحص الآلي

فحصنا الملفات آلياً وقت الاستيراد. هذا ما نبّه إليه الفحص، ولا يعني أن العنصر ضار ولا أنه سليم: اقرأه بنفسك.

  • يحتاج مراجعةملف سكربت

    في الملف plugins/goal-prompt/evals/check_contamination.py

التعليقات (0)

لا تعليقات بعد. كن أول من يعلّق.

سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).

أبلغ