agentleFS
mizterteamiztertea/sergeant-rs/skills/sergeant-help/SKILL.md

sergeant-help

Skill2 starsChanged 3 months agoMITView on GitHub

Answer a Sergeant usage/setup/troubleshooting question from repository-owned documentation with a fixed precedence order, read-only, never inventing behavior.

  • Deletes or force-pushes
  • Commits and pushes

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not use this in place of actually doing the thing: once the user has asked for the estate to be set up, a repo registered, or work …

    line 27
  2. Very specific:

    Every row below names a primary source that resolves inside any estate sgt init produces — no row points at this repository's own dev …

    line 35
  3. Distinctive:

    Read the primary document before searching broadly.

    line 60
  4. Distinctive:

    If sources disagree, use this precedence:

    line 86

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Sergeant Help

Ported from .sergeant/workflows/sergeant-help (N1 reference-corpus candidate W4), which retires: the execution-surface test's OPERATOR-SKILL verdict (dev-corpus retriage record, kept in this project's private development record) is that a doc lookup needs no worktree and no durable Work state — it belongs at this skills/AGENTS.md layer the harness loads directly, never as a dispatched sgt run. Content re-verified against the real, built CLI (sgt --help, 2026-08-12) rather than assumed. The root-gate and Git-preflight rows below were added 2026-08-20 against the refusal text the binary actually prints (EstateRootError, src/domain/estate.rs; the preflight remedies in src/runtime/preflight.rs), not against a paraphrase of it.

When to use

The user asks what Sergeant is, how to install/configure/use it, where workflows or skills come from, how a specific sgt command or flag works, or how to diagnose a Sergeant error — read-only, doc/help-shaped questions.

Do not use this in place of actually doing the thing: once the user has asked for the estate to be set up, a repo registered, or work submitted, load estate-navigation or route through sgt run (see AGENTS.md's Trigger → skill/workflow routing table) instead of continuing to answer questions about it.

Documentation map

Every row below names a primary source that resolves inside any estate sgt init produces — no row points at this repository's own dev corpus (that material is private and not shipped).

QuestionPrimary document
What Sergeant is, the product/ownership modelAGENTS.md
Install and first estatesgt --help, sgt init --help
How a harness should route, guardrailsAGENTS.md
Which directory an estate-scoped sgt command must run from, and why one refused with "no estate found in ..." or "this command must be run from the estate root"AGENTS.md ("Session start")
Why a submission was refused for a dirty or detached repos/<name> mount, and what --override-git-preflight does and does not waiveAGENTS.md (ESTATE, and the enforced list under "CAN — enforceable authority"), sgt run --help
Waiting for a Work's next attention/result without polling, avoiding a sgt work show loop, subscribing to Work transitionssgt watch --help (the sgt watch command; a real, self-documenting CLI verb)
Workflow authoring rules, the .sergeant/ filesystem convention.sergeant/common/contexts/icm-policy.md
What workflows exist.sergeant/index.md (the catalog)
A specific workflow's stages/inputs/outputs.sergeant/workflows/<name>/index.md and CONTEXT.md
Per-host environment facts (uid, Docker, toolchain, proxy posture)no shipped per-host record exists in a consumer estate — ask the operator directly
Building/testing/gating this repository's own code, when this estate is sergeant-rs's own source checkoutCONTRIBUTING.md if present in this checkout; otherwise ask the operator
Estate manifest (sergeant.toml) shape and fieldssgt doctor, sgt repo list, sgt group list, and this estate's own sergeant.toml
Why a design decision was made, deviations from a prior planAGENTS.md, or ask the operator — no shipped deviation register exists in a consumer estate
A binding lesson about how this project has been burned beforeask the operator — no shipped lessons record exists in a consumer estate
What a milestone actually promised/deliveredask the operator — milestone records are dev-corpus provenance, not shipped

Query procedure

  1. Classify the question against the documentation map above.
  2. Read the primary document before searching broadly.
  3. For terms not resolved there, search repository documentation:

    rg -n -i --glob '*.md' -- '<term>' AGENTS.md skills .sergeant
  4. For flag or argument questions, run sgt <command> --help (every sgt command supports it — verified 2026-08-13 against the built binary) rather than assuming syntax. Top-level: sgt --help lists daemon, status, run, work, respond, retry, extend, cancel, watch, analytics, tui, doctor, init, repo, group. Bare sgt (no subcommand) is a homepage, not a listed subcommand (ADR 0010); the embedded dashboard and its web verb are gone (ADR 0011). init and doctor need no estate at all; status, tui, work show/list/ transcript, watch, and every daemon verb are host-scoped (H1 §5) — they reach the one host daemon from any directory, no estate root required (watch still defaults to the addressed estate's events when cwd/-C is one, --all widens it). Every other subcommand (run, respond, retry, extend, cancel, work reap/sweep/retained, analytics, repo, group, workflow) is estate-scoped: run it from the exact estate root, or name that root with the global -C <estate-root> instead of cd-ing there — reading --help itself never needs any of this.
  5. Answer with the exact command, required preconditions, expected evidence, and links to repository-relative documentation paths.
  6. If sources disagree, use this precedence:
    • sgt <cmd> --help output and observed command behavior for released syntax — "a harness's behavior is measured, never assumed from docs" is a standing lesson of this project's;
    • AGENTS.md for always-on execution/safety policy;
    • the trigger-loaded skill or workflow's own index.md/CONTEXT.md for its procedure;
    • sgt doctor/sgt repo list/sgt group list and this estate's own sergeant.toml for estate-manifest fields;
    • AGENTS.md, or (if this checkout is sergeant-rs's own source tree) CONTRIBUTING.md, for walkthroughs and dev commands.
  7. State when a behavior is undocumented, unmeasured, or contradictory. Do not invent a command, flag, state transition, or safety guarantee.

Answer format

Answer: <direct answer>
Command: <exact command, when applicable>
Requires: <preconditions>
Verify: <observable success evidence>
Docs: <repository-relative links>

Omit fields that don't apply. Keep destructive operations (git push --force, sgt daemon stop mid-work, anything under "Guardrails" in AGENTS.md) out of examples unless the documentation itself requires confirmation for them and the user explicitly requested them.

Failure behavior

ConditionRequired action
Primary document missingReport its expected path and stop before guessing.
Command behavior differs from documentationReport the mismatch, trust the measured --help/observed behavior, and name the stale doc as a fix candidate — don't silently paper over it.
A command the user ran refused with the root gate ("no estate found in ...", or "this command must be run from the estate root")Say plainly what the refusal means — sergeant does not search parent directories for an estate and does not fall back to a plain Git checkout — and repeat the remedy the refusal itself names: cd <estate-root>, sgt -C <estate-root> <command>, or sgt init if this directory should become an estate. Never suggest running the command from a parent, a repos/<name> mount, or a Work surface; the root gate applies only to estate-scoped commands — sgt --help, --version, sgt init, sgt doctor, and the host-scoped bucket (sgt status, sgt tui, sgt work show/list/transcript, sgt watch, every sgt daemon verb) all work outside an estate too.
A submission was refused by the Git preflight (a dirty or detached repos/<name> mount)Report the mount's own named remedy verbatim — commit or stash it (git -C <mount> status), or check it out onto the intended branch (git -C <mount> switch <branch>). Name --override-git-preflight only as what it is: a per-submission waiver of a dirty or detached mount and nothing else, basing the Work on the committed HEAD; it is unavailable when the mount has no commit to pin, and it never waives any other preflight finding.
Question actually requires estate/repo stateLoad estate-navigation (sgt repo list, sgt doctor) rather than answering from memory.
Question actually requires submitting or mutating workHand off per AGENTS.md's routing table / sgt run; this skill stays strictly read-only.

Bounded judgment

This skill may decide

  • Which primary document answers a classified question.
  • How to phrase the Answer/Command/Requires/Verify/Docs response.
  • How to respond to a missing primary document or an observed doc/behavior mismatch: report and stop, or report and flag, rather than guess.

This skill must ask the user

  • Nothing — this skill is read-only and does not itself reach J0; every unresolved condition it can encounter (missing doc, stale doc, a question needing estate state or mutation) routes to a stated report or a named hand-off, not a live question of its own.

This skill must not do

  • Answer from memory when a primary document is missing.
  • Assume sgt command/flag syntax instead of running --help.
  • Invent a command, flag, state transition, or safety guarantee.
  • Include a destructive-operation example unless the documentation requires confirmation for it and the user explicitly requested it.
  • Offer a way around a root-gate or Git-preflight refusal instead of its named remedy — no running an estate-scoped command from a parent directory or a Work surface, no hand-editing a repos/<name> mount to make preflight pass, and no --override-git-preflight for anything but the dirty-or-detached mount it actually waives.
  • Continue answering once the question actually requires estate/repo state or work submission — AGENTS.md's routing table settles ownership of that hand-off (J3: a settled authoritative record, not a J5 prohibition — corrected 2026-08-16, ICM-R2 pilot review) — hand off instead.

Durable handoff

None. This skill produces no promotable artifact; the only "handoff" is routing to a different skill (estate-navigation) or sgt run when the user's need turns out not to be read-only, at which point this skill's own procedure ends.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.