شعار Comet Design

Comet Design

مؤسسةشائع
rpamis
comet-design

Complete the Classic technical design and obtain user confirmation. Use when the user invokes /comet-design or Classic Runtime enters Design.

نظرة عامة

الناشرrpamis
المستودعcomet
اسم المهارةcomet-design
النجوم
3.1K
التفريعات
295
الملفات المرفقة
1
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Comet Phase 2: Design

After the entry returns layout, use comet-classic/reference/classic-layout.md to resolve each logical root. Reuse this protocol if it is already in context. Route all OpenSpec CLI calls through the adapter and use the bound <classic-*> roots for file paths; do not run an extra root show first.

Prerequisites

  • An active change exists and its required Open artifacts have passed checks.
  • Runtime is in the design phase. Resume existing design work where applicable; a design file alone does not replace user confirmation.

Document responsibilities: proposal records goals and scope; spec defines behavior and acceptance requirements; the Design Doc records technical decisions; the plan describes implementation steps; tasks.md records completion. Extend an existing design.md in place instead of creating another copy of the design. Use the file referenced by design_doc as the formal technical design, preserving a different path already recorded for an older change. Other files reference that design rather than maintaining duplicate decisions.

Steps

0. Entry Check

Use the supported Comet CLI described in comet-classic/reference/scripts.md. When resuming from any entry, first follow comet-classic/reference/context-recovery.md to check recovery state:

bash
comet state select <change-name>
comet state check <name> design --json

After a successful check, use the returned layout, configuration, nextAction, and coordination progress summary. Avoid individual field queries or another root show. Normal entry requires only the entry check; follow context-recovery.md when resuming without context or retrieving details. Address the reported cause if validation fails.

Recovery: Check existing artifacts and confirmation records, then complete only unfinished steps. Both normal entry and recovery preserve a registered, still-valid design and inspect data.designReadiness, data.issues, and data.nextAction. Restore missing files, correct the change associated with a file, or refresh an outdated handoff without clearing design_doc. Once the user has confirmed the design, execute the returned complete-design action; it preserves completed work. If Runtime is already in Build, the command only returns that phase's entry information.

1a. Generate the OpenSpec → Superpowers Context Pack

The script must generate this pack; an Agent-written summary cannot replace it.

bash
comet handoff <change-name> design --write

The script generates and records the pack using the context_compression snapshot in the change's .comet.yaml.

The default context_compression: off generates:

text
<classic-change-dir>/.comet/handoff/design-context.json
<classic-change-dir>/.comet/handoff/design-context.md

With beta enabled through classic.context_compression: beta in project .comet/config.yaml, copied into .comet.yaml when the change is created, it generates:

text
<classic-change-dir>/.comet/handoff/spec-context.json
<classic-change-dir>/.comet/handoff/spec-context.md

It also records these fields in .comet.yaml:

yaml
handoff_context: <classic-change-ref>/.comet/handoff/design-context.json
handoff_hash: <sha256>

The default pack contains script-generated source excerpts and their provenance:

  • design-context.json: a machine-readable index with change, phase, canonical spec, source paths, and hash.
  • design-context.md: context for Superpowers with script markers, source path, line range, sha256, and excerpts produced by fixed rules.
  • Content beyond the excerpt limit is marked [TRUNCATED], with a Full source path retained.

The beta pack organizes specification content in a fixed structure, reducing the OpenSpec text loaded into context while retaining the requirements needed for implementation:

  • spec-context.json: a machine-readable index with change, phase, mode=beta, source paths, context_hash, and each file's role under files.
  • spec-context.md: context for Superpowers that preserves delta spec files verbatim and references related artifacts by hash.
  • OpenSpec delta specs remain authoritative. If specification content in the pack is missing or outdated, regenerate the pack or read the source spec; do not substitute an Agent summary.

When full source context is actually needed, run:

bash
comet handoff <change-name> design --write --full

The pack uses OpenSpec Open artifacts:

  • proposal.md: goals, motivation, scope, and non-goals.
  • design.md, when present: existing technical decisions and constraints.
  • tasks.md: initial task scope.
  • specs/**/spec.md: capability delta specs, preserving complete paths for nested capabilities.

1b. Run Brainstorming with Context

Immediately execute: Use the Skill tool to load the Superpowers brainstorming skill. Skipping this step is prohibited.

Include this in ARGUMENTS when loading the skill:

text
Language: Use the Comet artifact language from entry configuration.language

After the skill loads, follow its guidance and use the following context:

text
Change: <change-name>
OpenSpec Context Pack: <classic-change-dir>/.comet/handoff/design-context.md

For context_compression: beta, use:
OpenSpec Context Pack: <classic-change-dir>/.comet/handoff/spec-context.md

OpenSpec artifacts define the confirmed requirements. Reference them during brainstorming and discuss only unresolved technical choices; do not ask again about confirmed requirements.
Read only the selected Markdown context pack by default. Runtime validates the machine JSON; read it only to diagnose index problems. When excerpts are truncated or acceptance clauses are missing, use source path/line range to read the relevant source text. Do not read the JSON, Markdown, and every source file together.
Use the pack for technical design: implementation approach, technical risks, test strategy, and boundary conditions.
Clarify any remaining gaps in goals, scope, non-goals, acceptance scenarios, or key constraints. If the information is sufficient, develop the design directly; there is no minimum number of question rounds.
Before asking questions, read comet-classic/reference/decision-point.md. Each question needs a clear decision, a recommendation with reasons based on current constraints, and the effects of each option. Prefer an available AskUserQuestion and wait for the answer. If missing facts do not support genuine options, request the missing information directly. Reuse valid confirmations; a single technical solution does not replace the formal design confirmation in Step 1c.
Do not rewrite proposal/spec. If an OpenSpec delta spec lacks acceptance scenarios, propose a Spec Patch and write it back to that delta spec, rather than creating another requirements spec in the Design Doc. Limit Spec Patches to missing acceptance scenarios, ambiguous wording, or boundary conditions; do not substantially rewrite the delta spec's structure or scope. If a larger change is needed, record the requirements issue found during design and return to brainstorming for user confirmation.

Keep Design Doc frontmatter minimal, with only:
---
comet_change: <change-name>
role: technical-design
canonical_spec: openspec
---

Match design depth to risk. Compare 2-3 options when there are real tradeoffs. When existing architecture already determines the solution, explain why rather than inventing alternatives. High-risk interfaces, migrations, security, and concurrency require failure paths and a validation strategy.
Use only brainstorming's exploration and design methods. Present related design sections together and obtain formal confirmation once in Comet Step 1c. The external Skill must not require another approval of the complete design document, automatically invoke writing-plans, switch workspaces, or begin implementation. Do not write the Design Doc before confirmation.

Do not continue without loading the skill.

If Superpowers brainstorming is unavailable, stop and ask the user to install or enable Superpowers skills. Do not replace the required step with ordinary conversation.

After the skill loads, use its method to present the proposed design in the conversation:

  • Technical approach: architecture, data flow, key technology choices, and risks.
  • Test strategy.
  • Requirements or scope gaps and proposed Spec Patches.
  • Any acceptance scenarios to add, identifying the delta spec changes to write back.

Brainstorming produces proposals for user confirmation in Step 1c, not a formal Design Doc. Create or update the formal design and delta spec only after confirmation. Preserve existing Open-stage design.md content; record proposed changes in a checkpoint without overwriting confirmed decisions.

Keep brainstorm-summary.md updated throughout brainstorming so discussion can resume after context compression. After any clarification or design revision that adds confirmed facts, key constraints, proposals, tradeoffs, risks, test strategy, or proposed Spec Patches, update the file. Mark unconfirmed content as “pending confirmation” or “proposed.” This checkpoint records discussion progress; it is not the Design Doc and does not replace Step 1c confirmation.

1c. Ask the User to Confirm the Design

After brainstorming produces a design, follow comet-classic/reference/decision-point.md and wait for the user to explicitly confirm the design. Before that confirmation, do not create the final Design Doc, set design_doc, run the design guard, or enter /comet-build.

Present the necessary summary:

  • Selected technical approach.
  • Key tradeoffs and risks.
  • Test strategy.
  • Any Spec Patch changes to write back to delta specs.

Continue to Step 2 only after explicit confirmation. If the user requests changes, continue brainstorming until they confirm the revised design.

1d. Save the Confirmed Design Summary

After confirmation and before creating the Design Doc, create or update the checkpoint with the user's confirmed design.

Use file tools to ensure <classic-change-dir>/.comet/handoff/ exists; do not depend on POSIX-only directory commands.

Structure of <classic-change-dir>/.comet/handoff/brainstorm-summary.md:

markdown
# Brainstorm Summary

- Change: <change-name>
- Date: <YYYY-MM-DD>

## Confirmed Technical Approach

<Summary of the approach confirmed by the user>

## Key Tradeoffs and Risks

<Main tradeoffs and risks>

## Test Strategy

<Overview of the test approach>

## Spec Patch

<Delta spec changes to write back, or "None">

Context compression: Use brainstorm-summary.md to resume interrupted discussions. Defer proactive compression until the formal design, state, and handoff are saved. If compression has already occurred, load the following as needed before continuing to Step 2:

  • <classic-change-dir>/.comet/handoff/brainstorm-summary.md.
  • Relevant sections of <classic-change-dir>/.comet/handoff/design-context.md, or beta spec-context.md, and missing source passages. Machine JSON is not required reading.

1e. Continue Writing the Design Before Compressing Context

brainstorm-summary.md supports recovery, but do not proactively discard the design context before saving the Design Doc. Continue directly to Step 2 and compress only after the Design Doc, state, and latest handoff have been saved.

2. Create the Design Doc

Create the Design Doc from the full brainstorming context in the main session.

Keep frontmatter minimal:

yaml
---
comet_change: <change-name>
role: technical-design
canonical_spec: openspec
---

Choose one <design-doc-path>: preserve an existing design_doc; otherwise prefer <classic-change-dir>/design.md and extend the Open-stage technical decisions in place. Use docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md only when an existing project convention requires a separate Superpowers document. In that case, Open's design.md keeps only the summary required by the schema and a link to the formal design, without duplicating technical detail. Match detail to risk instead of creating empty sections or repetitive alternatives.

Write any Spec Patch to the relevant specs/**/spec.md at the same time. Maintain behavioral requirements only in the spec. The formal design references the relevant capability or acceptance clauses and must not introduce another requirements specification.

After context compression: Read brainstorm-summary.md and the handoff to restore the design discussion. If the user has not confirmed the proposal, return to Step 1b/1c. If they have, continue creating the Design Doc. The checkpoint supplies recovery details, but use the full restored context when writing the design.

3. Update Comet State

After explicit user confirmation and saving the formal design, use the repository-relative path from data.artifactRefs.designDoc as <design-doc-ref>. If the user confirmed another design file, use its path relative to projectRoot. File reads and writes still use the absolute <design-doc-path>. Register the design, refresh the handoff when needed, and apply the existing Guard checks in one command:

bash
comet state complete-design <name> --design-doc "<design-doc-ref>" --json

Refresh the handoff whenever any source content changes, including proposal, design, task meaning, delta specs, or OpenSpec metadata; checking only Spec Patches is insufficient and the design guard will reject an outdated handoff. Skip regeneration only when all source content is unchanged. Checking task completion boxes alone does not change the requirements hash. Runtime updates state automatically; do not manually edit other fields.

3a. Optional Proactive Context Compression

Consider proactive compression only after the Design Doc and state records are saved, before Build. Confirm that design_doc, the latest handoff, handoff_hash, and the design guard result are all saved so recovery can use files without losing unrecorded design decisions.

  • If context capacity is under pressure and a native compression mechanism is callable, invoke it once. Include the change, next step, and Design Doc/handoff files to reload in the recovery prompt.
  • If compression requires a manual user action, offer one nonblocking suggestion and continue. Do not block or create another confirmation step.
  • Do not fake context compression with shell commands or summaries.

Exit Conditions

  • The Design Doc has been created and saved.
  • Its frontmatter includes comet_change, role: technical-design, and canonical_spec: openspec.
  • handoff_context and handoff_hash are recorded in .comet.yaml, enforced by the guard.
  • handoff_hash matches the current OpenSpec Open artifacts, enforced by the guard.
  • design-context.md, or beta spec-context.md, is script-generated with traceable source path, mode, and sha256 markers, enforced by the guard.
  • In beta mode, spec-context.json is structurally valid and references current source files, enforced by the guard.
  • OpenSpec delta specs have been created or updated for any new capabilities or additional acceptance scenarios.
  • design_doc is recorded in .comet.yaml.
  • Phase guard: Run comet guard <change-name> design --apply. After all checks PASS, the guard advances to phase: build; this updates phase independently of auto_transition.

If Step 3 successfully returned data.phase: build, the Guard has already passed and been applied; do not run it again. On failure, address data.issues, preserve completed work, and retry the same complete-design command.

Recovery After Context Compression

Follow comet-classic/reference/context-recovery.md with phase design.

Automatic Transition to the Next Phase

Follow comet-classic/reference/auto-transition.md and the successful result's agent.continuation without another next query. Query again only when resuming without context, external state changes, or an older response did not include the next action:

bash
comet state next <change-name>
  • NEXT: auto → Load the skill named by SKILL to enter the next phase.
  • NEXT: manual → Do not load the next skill. Return control using HINT and end this invocation without another confirmation.
  • NEXT: done → The workflow is complete.

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

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

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

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

Complete the Classic technical design and obtain user confirmation. Use when the user invokes /comet-design or Classic Runtime enters Design.

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

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

كيف أثبّت Comet Design في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/rpamis/comet/tree/master/assets/skills/comet-design. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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