AGENT SKILL

gnhf

Use when the user asks to run GNHF, says they are going to sleep or leaving and wants an agent-managed coding run, asks to supervise, steer, or review an active GNHF run, or gives feedback on GNHF results.

License 许可
Apache-2.0
最近更新
2026-10-05
Stars
★ 1
Forks
0

01 前言 Front Matter

name
gnhf
description
Use when the user asks to run GNHF, says they are going to sleep or leaving and wants an agent-managed coding run, asks to supervise, steer, or review an active GNHF run, or gives feedback on GNHF results.

03 SKILL.md 正文

GNHF

Overview

GNHF is an agent orchestrator: it repeatedly calls another coding agent until a natural-language stop condition is met. This skill teaches the host agent to prepare one durable run and, in Companion mode, steer or review it.

Core rule: the host agent orchestrates; GNHF executes. Do not manually implement inside the same scope while a GNHF worker is responsible for it unless the user explicitly changes the delegation.

In Companion mode, GNHF completion is not user acceptance. "Stop condition met" only means the worker stopped; the host still compares the result to the user's latest requirements and fresh verification.

Modes

Choose exactly one mode for the run.

Hands-Off

Use when the task is bounded, verification is clear, and the user wants one configured run to proceed without steering.

  • Prepare a precise prompt with constraints, non-goals, verification, and stop condition.
  • Launch GNHF and wait for completion.
  • Intervene early only for hard failure, runaway scope, destructive behavior, or impossible prerequisites.
  • Report the final GNHF status after exit.

Examples:

  • English: "I'm going to bed. Use GNHF with Copilot to keep working on this branch and stop when the test suite passes."
  • Arabic: "أنا ذاهب للنوم. استخدم GNHF مع Claude لإكمال العمل على هذا الفرع وتوقف عندما تجتاز مجموعة الاختبارات."

Companion

Use when the task is uncertain, exploratory, design-heavy, research-heavy, or likely to need course correction.

Default to Companion when the user asks to iterate until satisfied, requests multi-round work, provides review findings, asks for design/skill/documentation improvement, or asks for supervision.

  • Keep a note of original intent, branch, session id, and last known result.
  • Poll the active GNHF process until exit or until an intervention point appears.
  • Intervene when the worker optimizes the wrong thing, repeats failed fixes, skips requested research, drifts scope, or claims success without evidence.
  • Treat review findings as the next acceptance criteria.
  • Prefer a new bounded GNHF prompt over manually taking over implementation.

Examples:

  • English: "Run GNHF for a few rounds on this onboarding flow. Check the diff between rounds and tighten the next prompt if it starts polishing the wrong thing."
  • Arabic: "شغّل GNHF عدة جولات على تدفق onboarding هذا. افحص الـ diff بين الجولات وضيّق الـ prompt التالي إذا بدأ يتشتت."

Launch

Check the installed CLI before relying on flags:

gnhf --help

Known shape:

gnhf \
  --agent <claude|codex|rovodev|opencode|copilot|pi|acp:<target>> \
  --max-iterations <n> \
  --stop-when "<observable completion condition>" \
  --prevent-sleep on \
  "<worker prompt>"

If GNHF has no --model flag, put model requirements in the worker prompt or backend config. Do not invent unsupported flags.

Before launch:

git status --short
git branch --show-current
git log --oneline --max-count=5

Prompt skeleton:

Objective: <one concrete outcome>.

Use <agent/model requirement>. Work in this repo. Treat this as a long-running GNHF task.

Before coding, inspect the current repo, relevant docs, and recent commits. Preserve user changes. Do not make unrelated refactors.

After each meaningful slice, run relevant verification. If blocked, commit no fake success; leave notes with the blocker and evidence.

Stop only when: <observable completion condition>.

Kalmeron-Specific Launch Examples

Fix TypeScript errors overnight:

gnhf \
  --agent claude \
  --max-iterations 15 \
  --stop-when "npx tsc --noEmit exits with 0 errors" \
  --prevent-sleep on \
  "Fix all TypeScript errors in this Kalmeron Next.js 16 project. Run npx tsc --noEmit after each fix. Do not change business logic. Stop when tsc reports zero errors."

Improve Arabic AI agent responses:

gnhf \
  --agent claude \
  --max-iterations 20 \
  --stop-when "all agent prompts in lib/agents/ have Arabic system messages and pass lint" \
  --prevent-sleep on \
  "Improve the Arabic system prompts for all Kalmeron agents in lib/agents/. Ensure each agent has clear, professional Arabic instructions. Run npm run lint after changes. Stop when all agents have quality Arabic prompts and lint passes."

Add unit tests:

gnhf \
  --agent claude \
  --max-iterations 25 \
  --stop-when "npm run test exits with all tests passing and coverage above 70%" \
  --prevent-sleep on \
  "Add Vitest unit tests for the utility functions in lib/utils/ and lib/agents/ in this Kalmeron project. Run npm run test after each addition. Stop when test coverage reaches 70% and all tests pass."

Steer

In Companion mode, evaluate after each iteration or meaningful output chunk:

Signal Action
Worker found a real blocker Stop or relaunch with blocker-specific instructions
Good partial slice Let it continue or tighten the next stop condition
Skipped requested research Relaunch with research as explicit first deliverable
Worker changes unrelated files Stop and review before continuing
Worker claims success without verification Review immediately; relaunch only with evidence-based stop condition
Reviewer finds a blocking issue or user says not satisfactory Relaunch with that finding as the sole bounded correction

Steering prompt:

Continue from the current repo state. The previous run partially succeeded: <evidence>.

Do not redo completed work. Focus only on <bounded correction>.

The issue to fix now is <specific observed issue>. Verify with <commands/checks>.

Stop only when <observable condition>.

Companion Review

Use only in Companion mode, when the host is supervising quality or deciding whether to continue with another bounded run.

  1. Inspect branch, status, commits, changed files, and diff.
  2. Read GNHF notes/logs as claims, not evidence.
  3. Run independent verification: tests, lint, build, typecheck, manual QA, or domain-specific checks.
  4. Compare the result to the stop condition and the user's latest feedback.
  5. Decide: Mergeable, Needs follow-up GNHF run, or Do not merge.

If the result needs follow-up, continue in Companion mode instead of presenting the run as complete. Do not merge unless explicitly authorized.

Findings

Use when the user provides findings such as "not preserved", "scope drift", "missing requirement", or "why did you stop".

  1. Treat the run as Companion mode.
  2. Convert each finding into an observable correction. Preserve severity, file/line scope, and the user's wording.
  3. Relaunch on the same candidate branch when salvageable.
  4. Prompt the worker to fix only the bounded finding, preserve completed valid work, verify, and stop only when the finding is no longer true.
  5. Review again after the follow-up.
  6. Repeat until no blocking findings remain, verification passes, or a real blocker is found.

Morning Review

Use when the user returns with "good morning", "كيف سارت الليلة؟", "how did last night's run go?", or similar after a GNHF run.

Do not ask what to review first. Reconstruct state:

git status --short
git branch --show-current
git log --oneline --decorate --max-count=20
pgrep -fl 'gnhf|claude|codex|copilot|opencode|rovodev' || true

Inspect likely GNHF branches, notes, logs, terminal sessions, and changed files. If a GNHF process is still running, report that first.

Report mode, agent, branch, status, changes, verification, stop-condition result, quality assessment, and recommended next action. Never summarize an overnight run from memory.

Agent Selection for Kalmeron

  • claude: reasoning-heavy implementation, Arabic text quality, prompt engineering, or prose-heavy planning.
  • codex: repo-aware code work or review-heavy tasks.
  • copilot: explicit GitHub Copilot CLI request or local Copilot config.
  • pi: explicit Pi request or local Pi configuration.
  • opencode / rovodev: explicit request or repo-specific setup.
  • acp:<target>: explicit ACP target request, or when the user wants to drive a custom ACP-compatible agent through GNHF.

Default for Kalmeron: use claude unless the user specifies otherwise.

Safety

  • Preserve user changes. Never run destructive git commands to clean up a GNHF branch.
  • In Companion mode, do not trust a worker's success summary without fresh verification.
  • Keep prompts outcome-based and evidence-based.
  • Use concrete stop conditions. Bad: "looks good". Good: "the target workflow succeeds, relevant checks pass, and no unrelated files changed."
  • If the user is away, produce branches and a status report, not irreversible changes, unless explicitly authorized.
  • For Kalmeron: never modify Firestore security rules, billing logic, or authentication flows in a Hands-Off run without explicit authorization.

04 同仓库更多 Skills

dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

add-new-agent

خطوات تفصيليّة لإضافة وكيل ذكاء اصطناعي جديد إلى منصّة Kalmeron من الفكرة إلى الإنتاج

Skill与智能体开发
★ 1
dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

writing-skills

Use when creating new skills, editing existing skills, or verifying skills work before deployment

内容创作者测试与质量写作与文案
★ 1
dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

writing-plans

Use when you have a spec or requirements for a multi-step task, before touching code

内容创作者写作与文案
★ 1
dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

设计师视觉设计
★ 1
dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

vitest

Set up Vitest testing in any project — detects project type (Cloudflare Workers, React, Node), generates vitest.config.ts, test setup, utilities, and sample tests. Also covers mocking patterns, coverage config, workspace setup, and Jest migration. Trigger with 'set up vitest', 'add tests', 'configure vitest', 'migrate from jest', 'vitest config', 'add unit tests', or 'testing setup'.

测试与质量前端开发
★ 1
dahaliztupe-sketch
dahaliztupe-sketch/Kalmeron-Two

verification-loops

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs. Requires running verification commands and confirming output before making any success claims. Evidence before assertions always.

★ 1