شعار Just Do It

Just Do It

المجتمع
etr
just-do-it

Execute all remaining tasks in sequence until completion. Pass --project <name> to pin the monorepo package for this whole run. Pass --take-over to resume past a possibly-live prior session without asking (a provably-live worker still refuses). Pass --on-unrelated-failure stop-and-ask|expand-and-fix|ignore-and-merge to choose how validation handles gate failures confidently unrelated to the active project (default stop-and-ask). Usage /groundwork:just-do-it [--project name] [--take-over] [--on-unrelated-failure mode]

نظرة عامة

الناشرetr
المستودعgroundwork
اسم المهارةjust-do-it
النجوم
45
التفريعات
4
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

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

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Just Do It - Batch Task Execution

Executes all remaining tasks in sequence until completion, stopping on first failure.

Pre-flight: Model Recommendation

Your current effort level is {{effort_level}}.

Skip this step silently if effort is high, xhigh, or max (the scale is low < medium < high < xhigh < max, so xhigh and max are already above high) AND you are Sonnet or Opus. If effort is low or medium (i.e. below high), you MUST show the recommendation prompt — regardless of model. If you are not Sonnet or Opus, you MUST show the recommendation prompt - regardless of effort level.

Otherwise → use AskUserQuestion:

json
{
  "questions": [{
    "question": "Do you want to switch? Batch orchestration with dependency ordering and failure handling benefits from consistent reasoning.\n\nTo switch: cancel, run `/effort high` (and `/model sonnet` if on Haiku), then re-invoke this skill.",
    "header": "Recommended: Sonnet or Opus at high effort",
    "options": [
      { "label": "Continue" },
      { "label": "Cancel — I'll switch first" }
    ],
    "multiSelect": false
  }]
}

If the user selects "Cancel — I'll switch first": output the switching commands above and stop. Do not proceed with the skill.

Workflow

Sequential execution contract

Keep exactly one active task through planning, implementation, validation, finalization, merge, and cleanup. Do not plan, prepare, implement, or validate a later task until that sequence finishes. A blocked task stops the batch; it does not authorize an independent task detour. Same-task reviewers may run together. Parallel task implementation requires the explicitly invoked swarming workflow or explicit user authorization; “build everything” and “keep going” preserve sequential execution.

Step 0: Resolve Project Context

Before loading tasks, ensure project context is resolved:

  1. Explicit project argument (highest precedence): If the invocation arguments include --project <name> and <name> is configured in .groundwork.yml, that project is authoritative for this entire run. If they include --take-over, remember it: it is forwarded to every resume-gate check invocation in this run (see Steps 1.5 and 3). If they include --on-unrelated-failure <mode> (stop-and-ask, expand-and-fix, or ignore-and-merge), remember it for this entire run: it is forwarded to every Phase C validate invocation and Phase E finalize-task invocation (see Phase C). An invalid mode value → stop the batch with a usage error. Resolve its root directly from .groundwork.yml (<repo root>/<configured path>); do not read or consult {{project_name}}.
    • Do NOT invoke select-project, do NOT persist or change the stored selection, and do NOT run the CWD mismatch check below. Other sessions may be running concurrently on different packages and must not be disturbed by a global switch.
    • Substitute the resolved project's paths for the template vars everywhere below: <project root>/specs for {{specs_dir}} and <project root>/.groundwork-plans for {{plans_dir}}.
    • Thread the project explicitly through every downstream invocation instead of relying on the shared selection: pass --project <name> to validate and finalize-task, call the worktree helper as node ${CLAUDE_PLUGIN_ROOT}/lib/worktree-identity.js TASK-NNN --project <name>, and prefix other lib calls with GROUNDWORK_PROJECT=<name>.
    • Then skip directly to Step 1.
  2. Monorepo check: Does .groundwork.yml exist at the repo root?
    • If yes → Is {{project_name}} non-empty?
      • If empty → Invoke Skill(skill="groundwork:select-project") to select a project, then restart this skill. (select-project is interactive setup for a single session — never run it when an explicit --project was provided; item 0 already resolved the project in that case.)
      • If set → Project is {{project_name}}, specs at {{specs_dir}}/.
    • If no → Continue (single-project repo).
  3. CWD mismatch check (monorepo only):
    • Skip if not in monorepo mode or if the project was just selected in item 1 above.
    • If CWD is the repo root → fine, proceed.
    • Check which project's path CWD falls inside (compare against all projects in .groundwork.yml).
    • If CWD is inside the selected project's path → fine, proceed.
    • If CWD is inside a different project's path → warn via AskUserQuestion:

      "You're working from <cwd> (inside [cwd-project]), but the selected Groundwork project is [selected-project] ([selected-project-path]/). What would you like to do?"

      • "Switch to [cwd-project]"
      • "Stay with [selected-project]" If the user switches, invoke Skill(skill="groundwork:select-project").
    • If CWD doesn't match any project → proceed without warning (shared directory).
  4. Proceed with the resolved project context. All {{specs_dir}}/ paths will resolve to the correct location.

Step 1: Load and Analyze Tasks

  1. Read the tasks file to find all tasks:

    • Single file: {{specs_dir}}/tasks.md
    • Directory: {{specs_dir}}/tasks/ (aggregated in sorted order)
  2. Parse all tasks and extract:

    • Task ID (e.g., TASK-001)
    • Title
    • Status (Not Started, In Progress, Complete, Blocked)
    • Dependencies (Blocked by: field)
  3. Build dependency graph and calculate execution order:

    • Topological sort respecting dependencies
    • Blocked tasks cannot execute until dependencies complete

Detection: Check for file first (takes precedence), then directory.

Step 1.5: Sweep Stale Worktrees and Gate the First Task

Killed runs leave worktrees behind. Before presenting the summary:

  1. Sweep: node ${CLAUDE_PLUGIN_ROOT}/lib/task-resume.js sweep (add --project <name> in monorepos). Remove every entry in cleanable automatically from the repo root (git worktree remove <absolute path> then git branch -d <branch>, exactly as the protocol specifies); list needs_review entries for the user without touching them.
  2. Gate the first remaining task: node ${CLAUDE_PLUGIN_ROOT}/lib/task-resume.js check <TASK-NNN> (same project flag; append --take-over when the invocation carried --take-over). It prints one JSON line classifying existing work-in-progress — resume_at, skip_phases, live_owner, live_owner_reason, and ready-to-run actions.

Follow ${CLAUDE_PLUGIN_ROOT}/references/task-resume-protocol.md exactly: the standdown rule applies whenever live_owner is not none (only heartbeat-worker-alive survives --take-over), and conflict stops the batch with the evidence surfaced.

Step 2: Present Summary and Confirm

Present a summary to the user:

Batch Task Execution Summary

Total tasks: X Already complete: Y Remaining: Z

Worktree Isolation

Each task will execute in an isolated git worktree:

  • Branch and working directory: resolved per task via the worktree-identity helper (node ${CLAUDE_PLUGIN_ROOT}/lib/worktree-identity.js TASK-NNN) — project-qualified in monorepos (task/<project>/TASK-NNN, <repo>/.worktrees/<project>-TASK-NNN)
  • Branch created from current HEAD
  • Changes merged automatically after each task completes successfully
  • Worktrees cleaned up after successful merge

This ensures each task starts from a clean baseline and changes are integrated incrementally.

Execution Order

  1. TASK-NNN: [Title]
  2. TASK-NNN: [Title] ...

In-Progress Tasks (resumed, not restarted)

  • TASK-NNN: [Title] — In Progress, resuming at [plan|implement|validate|finalize] per the resume gate (omit this section when the gate reports every remaining task fresh)

Blocked Tasks (will execute after dependencies complete)

  • TASK-NNN: [Title] (blocked by TASK-XXX)

Ask for confirmation before proceeding only when the user has not already authorized the batch.

If user declines, stop and suggest alternatives:

  • /groundwork:work-on N to work on a specific task
  • /groundwork:work-on-next-task to work on just the next available task

Step 3: Execute Sequentially

For every harness, this coordinator conversation owns the phase transitions below. Hold only the task list and the active task's plan, implementation, validation, and finalization results. Honor any user-specified task range or stop boundary when selecting tasks and before advancing. The standalone external runner remains separately launchable from outside this skill.

For each remaining task in dependency order:

  1. Read the task section from {{specs_dir}}/tasks.md (or aggregated from {{specs_dir}}/tasks/) to extract the full task definition (goal, action items, acceptance criteria, dependencies).

  2. Announce start: "Starting TASK-NNN: [Title]"

  3. Run the resume gate: node ${CLAUDE_PLUGIN_ROOT}/lib/task-resume.js check TASK-NNN (add --project <name> in monorepos; append --take-over when the batch was invoked with it). Act on the one-line JSON exactly as ${CLAUDE_PLUGIN_ROOT}/references/task-resume-protocol.md specifies:

    • live_owner_reason: heartbeat-worker-alive → hard standdown (report and stop the batch; even --take-over cannot override a provably-live process).
    • Other live_owner values → soft standdown: stop and ask unless --take-over was supplied, in which case proceed (the check already resolved it).
    • resume_at: conflict → surface the evidence and stop the batch; the worktree is preserved.
    • Skip every phase listed in skip_phases: when plan.present is true, reuse plan.file as plan_file_path instead of Phase A; when validate or beyond is done, jump straight to that phase.
    • resume_at: done → run the clear-checkpoint action, log the task complete, advance.
    • Run each actions command verbatim at its annotated moment (record … --phase plan right after persisting the plan; record … --phase implemented right after a successful Phase B; clear after Phase E lands).
  4. Keep task status changes inside the active task worktree. Implementation records In Progress; validation/finalization record Complete. The batch does not premark queued tasks.

Phase A: Plan
Agent(
  subagent_type="Plan",
  description="Plan TASK-NNN",
  prompt="Create implementation plan for TASK-NNN: [task title]

Task definition:
[goal, action items, acceptance criteria from task file]

Relevant product specs:
[extracted from {{specs_dir}}/product_specs.md or {{specs_dir}}/product_specs/]

Relevant architecture:
[extracted from {{specs_dir}}/architecture.md or {{specs_dir}}/architecture/]

REQUIREMENTS FOR THE PLAN:
1. All work happens in the task worktree reported by the executor (not main workspace)
2. Must follow TDD: write test → implement → verify cycle
3. Plan covers implementation only — validation and merge are handled separately by the caller
"
)

If the plan does not mention worktree or TDD, reject it and re-invoke the Plan agent.

After validation, persist the plan to disk in the same turn as receiving the Plan agent's output:

  1. mkdir -p {{plans_dir}} && grep -qxF '.groundwork-plans/' .gitignore 2>/dev/null || printf '.groundwork-plans/\n' >> .gitignore, then set plan_file_path={{plans_dir}}/TASK-NNN-plan.md (substitute the actual task ID; {{plans_dir}} is project-scoped, mirroring {{specs_dir}}). Re-running on the same task overwrites — intentional.
  2. Use the Write tool to save the Plan agent's full output to plan_file_path, formatted as:
    markdown
    # Implementation Plan: TASK-NNN [Title]
    
    <verbatim Plan agent output>
  3. From this point on, refer only to plan_file_path. Do NOT re-quote the plan in subsequent turns.
Phase B: Implement
Agent(
  subagent_type="groundwork:task-executor:task-executor",
  description="Implement TASK-NNN",
  prompt="You are implementing a task as part of an automated batch run.

PROJECT ROOT: [absolute path to project root]

TASK:
- task_id: [TASK-NNN]
- tasks_path: [absolute path to {{specs_dir}}/tasks.md or {{specs_dir}}/tasks/]

Read the '### TASK-NNN:' section from tasks_path for goal, action items,
and acceptance criteria. Do not ask the caller for task details.

PLAN FILE: [plan_file_path]
Read this file first with the Read tool — it contains the validated implementation plan.

[When the resume gate returned resume_existing_worktree=true, include the three lines below verbatim, substituting the gate's values]
WORKTREE PATH: [expected_worktree from the check result]
TASK BRANCH: [expected_branch from the check result]
RESUME EXISTING WORKTREE=true

INSTRUCTIONS:
1. Follow your preloaded skills to create a worktree, implement with TDD, and commit.
2. Read the task section from tasks_path and the plan from PLAN FILE — they provide all session context.
3. Do NOT use AskUserQuestion — proceed automatically.
4. When complete, output your final line in EXACTLY this format:
   RESULT: IMPLEMENTED | <worktree_path> | <branch> | <base_branch>
   OR:
   RESULT: FAILURE | [one-line reason]

Your LAST line of output MUST be the RESULT line.
"
)

Parse the result:

  • RESULT: IMPLEMENTED | <path> | <branch> | <base_branch> → Save these values, proceed to Phase C
  • RESULT: FAILURE | ... → STOP immediately, report failure
  • No parseable RESULT line → Treat as failure
Phase C: Validate

Run the shared validation state machine from the task worktree in noninteractive mode (--noninteractive):

Skill(skill="groundwork:validate", args="--noninteractive")

If Step 0 item 0 resolved an explicit --project <name>, include it: args="--project <name> --noninteractive". If the invocation carried --on-unrelated-failure <mode> other than the default, include it too: args="--on-unrelated-failure <mode> --noninteractive" (combine all present flags).

Parse its terminal line:

  • Validation PASSED (...) → proceed to Phase E.
  • Validation PASSED-WITH-WAIVERS (...) (only possible with --on-unrelated-failure ignore-and-merge) → proceed to Phase E. Relay the waived-gate lines into the per-task log line and the completion report; never present a waived gate as passed.
  • Validation INCOMPLETE (...) or an unparseable result → stop the batch. Report the reason and preserved worktree.

Do not implement a separate reviewer/fixer loop here. The validate skill owns the frozen baseline, repair envelopes, causal closure reviews, unworked-finding persistence, and cleanup.

Phase E: Finalize

Invoke the shared finalizer from the validated task worktree:

Skill(skill="groundwork:finalize-task")

If Step 0 item 0 resolved an explicit --project <name>, include it: args="[TASK-NNN] --project <name>". If the invocation carried --on-unrelated-failure ignore-and-merge, include that too: args="[TASK-NNN] --on-unrelated-failure ignore-and-merge" (combine all present flags) so the finalizer accepts a waived-pass validation state.

Require verified integration into the recorded base branch, complete task status, and cleanup of the merged task worktree/branch before advancing. The finalizer owns commits, status bookkeeping, merge ancestry checks, and cleanup; do not duplicate them here. Any incomplete or unparseable finalization result stops the batch and preserves its worktree.

  1. Log result: "Completed TASK-NNN: [Title] — [one-line summary]"

On Failure at any phase: Report the failed task, phase, reason, tasks completed this session, and tasks remaining. Note that the failed task's worktree is preserved at its recorded <worktree_path> for investigation.

Step 4: Completion Report

When all tasks complete successfully, report:

markdown
## Batch Execution Complete

**Session Summary:**
- Tasks completed: X
- Total tasks complete: Y/Z
- All worktrees merged and cleaned up

### Completed Tasks
| Task | Title | Branch | Status |
|------|-------|--------|--------|
| TASK-001 | [Title] | task/TASK-001 | Merged |
| TASK-002 | [Title] | task/TASK-002 | Merged |
...

### Worktree Summary
- Worktrees created: X
- Successfully merged: X
- Cleaned up: X

### Next Steps
- Run `/source-product-specs-from-code` to update specs with any implementation changes
- Plan next phase if milestone complete
- Review merged changes with `git log --oneline -10`

Edge Cases

SituationResponse
No tasks file"Tasks file not found. Run /groundwork:create-tasks to generate tasks."
No remaining tasks"All tasks are already complete! Nothing to execute."
All remaining blocked"All remaining tasks are blocked. Cannot proceed automatically."
Single task remainingExecute normally (still confirm before starting)

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

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

Execute all remaining tasks in sequence until completion. Pass --project <name> to pin the monorepo package for this whole run. Pass --take-over to resume past a possibly-live prior session without asking (a provably-live worker still refuses). Pass --on-unrelated-failure stop-and-ask|expand-and-fix|ignore-and-merge to choose how validation handles gate failures confidently unrelated to the active project (default stop-and-ask). Usage /groundwork:just-do-it [--project name] [--take-over] [--on-unrelated-failure mode]

لماذا تستخدم Just Do It على TypingMind؟

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

كيف أثبّت Just Do It في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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