Gnhf logo

Gnhf

CommunityPopular
kunchenguid
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.

Overview

Publisherkunchenguid
Repositorygnhf
Skill namegnhf
Stars
4K
Forks
308
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by kunchenguid on GitHub. Read the source before you install it.

Installation

Install the Gnhf AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kunchenguid/gnhf.git /tmp/gnhf
mkdir -p .claude/skills
cp -r /tmp/gnhf/skills/gnhf .claude/skills/gnhf
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gnhf in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gnhf on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gnhf is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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."
  • Chinese: "我要睡了。用 GNHF 接着跑这个分支,测试都过了就停。"

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."
  • Chinese: "用 GNHF 多跑几轮这个 onboarding 流程。每轮看一下 diff,如果它开始改偏了,就收窄下一轮 prompt。"

Launch

Check the installed CLI before relying on flags:

bash
gnhf --help

Known shape:

bash
gnhf \
  --agent <agent> \
  --max-iterations <n> \
  --stop-when "<observable completion condition>" \
  --prevent-sleep on \
  "<worker prompt>"

Use --model <model> to select a model for a run. For config defaults and agent-specific restrictions, follow the README Configuration.

Before launch:

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

Prompt skeleton:

text
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>.

Steer

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

SignalAction
Worker found a real blockerStop or relaunch with blocker-specific instructions
Good partial sliceLet it continue or tighten the next stop condition
Skipped requested researchRelaunch with research as explicit first deliverable
Worker changes unrelated filesStop and review before continuing
Worker claims success without verificationReview immediately; relaunch only with evidence-based stop condition
Reviewer finds a blocking issue or user says not satisfactoryRelaunch with that finding as the sole bounded correction

Steering prompt:

text
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:

bash
git status --short
git branch --show-current
git log --oneline --decorate --max-count=20
pgrep -fl 'gnhf|claude|codex|copilot|cursor-agent|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

The supported --agent roster comes from gnhf --help; the Agents table in the GNHF README owns per-agent requirements. Do not hard-code the roster.

  • Default to the agent the user explicitly requested, or the one already configured and authenticated locally.
  • codex: repo-aware code work or review-heavy tasks.
  • claude: reasoning-heavy implementation or prose-heavy planning when configured.
  • acp:<target>: when the user wants to drive a custom ACP-compatible agent through GNHF.

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.

Frequently asked questions

What does the Gnhf AI skill do?

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.

Why use Gnhf on TypingMind?

Because you install it once and use it with any model. Gnhf is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gnhf in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kunchenguid/gnhf/tree/main/skills/gnhf. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Gnhf?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gnhf?

As many as you like. As long as a model supports skills, you can use Gnhf with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gnhf AI skill free?

Yes. It is published on GitHub by kunchenguid under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇