captain-hold-lifecycle
ما الذي تفعله
تضمن هذه المهارة أن يُسجَّل كل سؤال يحتاج إلى قرارك كمهمة محجوزة قبل أن يُعلن العمل منتهيًا. وهي موجهة للأشخاص الذين يستخدمون Firstmate ولا يريدون أن يفلت أي قرار.
متى تستخدمها
- ✓عندما توشك مراجعة أو تحقيق على الاكتمال وقد طرح سؤالًا لك.
- ✓عندما تجيب عن سؤال محجوز ويحتاج الوكيل إلى تسجيل إجابتك.
- ✓عندما يبلغ فحص الاستيقاظ عن عدم تطابق بين سجل وقائمة المهام.
رابط المهارة
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/captain-hold-lifecycle/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“قبل أن تعلّم هذا التحقيق منتهيًا، تأكد من أن كل سؤال يحتاج إلى قراري محفوظ كمهمة محجوزة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يسجل الوكيل كل سؤال مفتوح كمهمة معلّقة لك، مع خياراته. لا يمكن إعلان العمل مكتملًا قبل أن تحمل المهام المعلقة تلك الأسئلة.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Captain-hold lifecycle
A decision is not a separate thing: it is simply a task waiting on the captain.
The one primitive is an ordinary backlog task held for the captain through bin/fm-captain-hold.sh hold; its identity is the task id, and that wrapper owns the deterministic mechanics this policy relies on.
The agent performs the semantic inventory because scripts must not infer captain calls from report prose, visual-review artifacts, terminal output, or chat.
Policy
Every unresolved question that belongs to the captain and is discovered while producing, reading, presenting, or ending an investigation or visual review must be carried by a captain-held task in the authoritative backlog of the home that owns the originating work before that work or review may be treated as complete.
For a Lavish board-backed handoff, pass the reply through bin/fm-procevent-lavish.sh arm --agent-reply-file before appending the status; the adapter owns version-specific acceptance ordering.
Prefer holding the work item the question gates over minting a new row; create a new task only when no work item exists to hold.
The originating investigation or review is never its own inventory entry, so hold a separate task for the call and pass --origin <origin-id> so complete can check it.
Put the question and its options in the hold reason, and keep one held task per genuine gate: a multi-question review is one held task pointing at its report, not a row per question. Represent that task with exactly one board card that consolidates its questions and options; never fan one task id into duplicate same-key cards.
Register or re-hold through bin/fm-captain-hold.sh hold, which is idempotent per task id.
After inventorying the whole report and review surface, firstmate runs bin/fm-captain-hold.sh complete with every captain-held task id, or with --none when nothing waits on the captain.
A scout may attest its own empty inventory only through the narrow command exception in its generated brief's Definition of done.
For a non-empty inventory or a refused command, the scout reports to firstmate rather than writing metadata or backlog records.
A completed investigation and an ended visual review use this same owner and completion command; a visual tool, including Lavish, never owns a parallel completion policy.
Run the command in the originating work's authoritative FM_HOME; secondmate-owned work registers in that secondmate home's backlog, and a question already held anywhere is never re-registered as a second row.
Do not close a captain-held task merely because the originating investigation completed, its report was archived, its visual review ended, or its task was torn down.
Holding the work item the question gates is safe for exactly that reason: cleanup keeps such a row open with the finished work's deliverable recorded and returns it to the queue, so it still reads as the captain's own call.
Only answer with the captain's words or an evidence-backed reconcile close may resolve it.
Never close anything the captain owns without recording what he actually said: bin/fm-captain-hold.sh answer writes his exact words into the task and closes a question-shaped call, while --release frees a captain-gated work item to proceed.
A merge approval uses that existing release path because approval permits the merge to proceed; cleanup closes the work only after it lands and records what shipped.
Closing a held row at merge approval instead records completion before landing, so the backlog claims completion before the work actually ships.
When the answer changes what a task must build, follow AGENTS.md section 7's mid-task ask rule to preserve the captain's words in the brief and steer the worker.
When the captain says "later", that is an answer too: re-hold with bin/fm-captain-hold.sh hold <id> --reason "<reason>" --until <date> so the item leaves the live Captain's Call and resurfaces on its date, instead of leaving a live-looking card or fabricating a closure.
"A keyed answer resolves its matching captain-held task" is one capability with one owner, bin/fm-captain-hold.sh answers, and every channel that carries a captain answer feeds it the same task id and answer; a channel never maps keys to tasks, records a decision, or resolves anything itself.
Chat already feeds it through bin/fm-send.sh --resolve-key, and a captured-answer source feeds it once bound with bin/fm-captain-hold.sh bind <source-id>; bind before arming
الأسئلة الشائعة
أين يُحفظ السؤال؟
يُحفظ كمهمة محجوزة في قائمة المهام للمشروع الذي يملك العمل.
هل لكل سؤال مهمة واحدة؟
نعم، يأخذ كل قرار حقيقي مهمة محجوزة خاصة به، مرتبطة بالمراجعة التي نشأ منها.
ماذا لو لم توجد مهمة للسؤال؟
ينشئ الوكيل مهمة جديدة فقط حين لا يوجد عنصر عمل قائم يمكن أن يرتبط به السؤال.
التفاصيل
الوصف الأصلي من المؤلف
Load before treating an investigation, scout report, structured review, or Lavish review as complete, before ending a visual review that exposed a captain decision, when recording or routing the captain's answer, and on any RECORD DIVERGENCE line the wake drain prints.
repo: kunchenguid/firstmate
الشعبية
- نجوم GitHub
- 8.5k
- الترتيب
- #12432
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
afk
8.5kيتيح لوكيلك مواصلة العمل وأنت بعيد، مع حفظ القرارات لعودتك وإرسال موجز واضح حين تعود.
ahoy
8.5kيتيح لوكيلك أن يعطيك ملخصًا قصيرًا لما جرى في الجلسة، ويشرح لك أي قرارات ما زالت تنتظرك.
ask-user-authority
8.5kيساعد وكيلك على البت بنفسه في أسئلة المراجعة حين تتوافق بوضوح مع الخطة المتفق عليها، ولا يسألك إلا عندما يكون السؤال غامضًا أو محفوفًا بالمخاطر.
away-quiet-supervision
8.5kيضع قواعد أمان للإشراف على العمل في وضع الغياب أو الهدوء، حتى يبقى الوكيل واضحًا في رسائله ويحجز القرارات التي تحتاج إليك.
مهارات مشابهة
knowledge-capture
394kتعلّم وكيلك حفظ القرارات والتفضيلات والحقائق المهمة في خزنة Knowledge كملاحظات قصيرة مع ذكر المصدر.
knowledge-claim-consolidation
394kيساعد وكيلك على تنظيم خزنة Knowledge بدمج الإفادات المكررة ونقلها إلى صفحات موضوعاتها الصحيحة، وإلغاء ما أصبح قديماً.
knowledge-correct
394kيتيح لوكيلك تصحيح إفادة أو صفحة محفوظة محددة في Knowledge أو سحبها بناءً على طلبك، مع الاحتفاظ بسجل لما تغيّر.