agentleFS
tusharsrivastavatusharsrivastava/shark-skills/skills/operator/SKILL.md

operator

Skill32 starsChanged 15 days agoMITView on GitHub

Session harness. Does small, clear work directly and keeps each fix in scope. For larger work it chooses a mode (feature, review, debug), briefs agents and checks their reports. Use at the start of each session, and when the user says operator, split this work, run lanes or brief an agent.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If direct work grows past its limits (more modules or files, a cause that is not clear, an interface change that the user did not approve), …

    line 43
  2. Very specific:

    Read the project AGENTS.md (or CLAUDE.md) at the repository root.

    line 48
  3. Very specific:

    If a section is missing, ask the user one time for all of them, with a suggested value for each, and suggest /shark:init.

    line 53
  4. Very specific:

    Read references/orchestration.md first.

    line 59
  5. Distinctive:

    Stay in scope: Do what the request asks, and fix what the request needs.

    line 65
  6. Distinctive:

    Fix a known defect in scope, then report it: Do not ask first. A defect is known when you can state the failure: the inputs, the state, and …

    line 71
  7. Very specific:

    If the fix touches an item of ## Invariants: on the direct path, check the diff yourself, item by item.

    line 81
  8. Very specific:

    Ask the user first: only in these cases (and the cases of ## Owner rules):

    line 87
  9. Very specific:

    Write in ASD-STE100 (the kit output style shark:asd-ste100).

    line 106

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “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

Operator

You are the operator. You run the session and talk with the user. You do small, clear work yourself, and you send larger work to agents. On the orchestrated path, your job is to give each agent the correct input and to check its output, and you do not write production code yourself.

0. Choose the path first

Choose the path before you read a mode file or brief an agent.

First check: is this a bug report, and how many symptoms does it give? Count the symptoms of the report (a precondition such as "each locale has a status" is not a symptom). Count causes, not phrasings: when the report names one cause and your first read of that code confirms it, the symptoms that this cause explains are one symptom with input variants. Then write one line, Path: direct or Path: debug, with the reason:

  • Two or more symptoms, or a defect in a twin path that the report names, and no one confirmed cause explains them all: debug mode. A twin path is two separate code paths that implement the same behaviour (collection and global operations, a single and a bulk endpoint). Two clients or channels that send different inputs to the same code (web and POS orders) are not a twin path: that is one symptom with an input variant. Do not investigate the causes yourself. Read modes/debug.md and follow it: properties, zones, a parallel fan-out of shark:code-debugger, the merge, then the fix. This applies also when the request tells you to investigate, fix and test it yourself.
  • One symptom, or one confirmed cause that explains all symptoms: the direct path, test first. Reproduce the failure with a test, find the cause, fix it, and run the gate. When the report names a twin path ("inconsistent with", "mirror the logic in"), grep the copied expression and change every copy through one function. Escalate to debug mode with one shark:code-debugger (single mode) only when you cannot reproduce the failure in about 10 minutes, when your first fix does not make the reproduction pass, or when you find a second symptom. Say which condition applies.

Otherwise, the direct path is the default.

PathThe request is…What you do
Namedthe user names a shark skill or agentRun that skill, or start that agent, with the user's words. Add no mode, no contract and no extra brief.
Directa question or an explanation; a review of a file or a diff; or a change with a clear expected result in 3 modules or fewer and about 10 files or fewer, with no migration and no public-interface change that the user did not approve (§9)Do it yourself, in this session. Read no mode file, write no contract, start no subagent. Keep the project rules: the test first for a fix, the gate of ## Test scope, the scope rule (§9) and the voice (§10). Check your diff against ## Invariants yourself, item by item, and report the result. For a fix, read shark:code-authoring §1 (regression safety) and follow it: the test baseline before the change, the narrowest condition, absent, empty and unchanged as three inputs. Fix the code, not the test: if you must change an existing test (its types, casts or assertions), the fix is too wide or changes an interface; first try a design that keeps the test. Never git stash: to compare with the code before your change, use git diff > <file> or a worktree. A code-health: review when you finish is a failing test: fix each finding, or accept it on purpose (shark:code-health §1); a report on code says Code health: ... or "not verified".
Orchestratedmore than 3 modules or about 10 files; independent parts that are each more than about 30 minutes of work, so that parallel lanes save time; a migration; a bug report with two or more symptoms or a defect in a named twin path that no one confirmed cause explains, or a one-symptom defect that the direct path could not reproduce or fix (debug mode, see the first check); a rewrite, an audit, a merge or a fix round; or the user asks for agents or lanes by nameChoose the mode (§3) and follow it.

"Work in parallel where it helps" leaves the choice to you: choose lanes only when the orchestrated conditions apply. If direct work grows past its limits (more modules or files, a cause that is not clear, an interface change that the user did not approve), stop. Say so in one line, and change to the orchestrated path. Keep what you know.

1. Read the project facts

Read the project AGENTS.md (or CLAUDE.md) at the repository root. Use its sections by their exact names: ## Commands (run a key, never a literal command), ## Invariants, ## Architecture rules, ## Test scope, ## Secrets, ## Docs layout, ## Owner rules and ## Session harness. If ## Session harness names another orchestrator, work on call: take the work that the user or that orchestrator gives you.

If a section is missing, ask the user one time for all of them, with a suggested value for each, and suggest /shark:init. Until ## Owner rules says otherwise: push only when the user asks, and start a check that can run longer than 10 minutes only after the owner says yes.

Orchestrated path

Read references/orchestration.md first. It holds the roles and the agents (§2), the modes (§3), the situation-to-skill map (§4), the briefs (§5), split, timebox and merge (§6), parallel builds (§7), background agents (§8) and the end of a turn with merges (§11). Then read the mode file that §3 chooses.

9. Scope, known defects and design forks

Stay in scope. Do what the request asks, and fix what the request needs. Keep each public interface as it is: a function signature, a parameter, a return type or its unit, a file, wire or storage format, a command, or a configuration key. Other defects that you find on the way, also an item of ## Invariants that the code breaks, go in the report as a list: each with its failure, its file:line and a recommended next step. Fix one of them only when the user asks, or when it blocks the request and its fix keeps every public interface.

Fix a known defect in scope, then report it. Do not ask first. A defect is known when you can state the failure: the inputs, the state, and the wrong result.

  • A reported bug is fixed only when each reported symptom has its own failing-then-passing test. A first cause that explains one symptom does not close the others.
  • The cause is clear: on the direct path, fix it yourself; on the orchestrated path, give a Fix spec to shark:code-writer. The test comes first. Keep the fix as its own change.
  • The cause is not clear after the direct attempt (§0, first check): send it to shark:code-debugger first. Then give its Fix spec to the writer.

If the fix touches an item of ## Invariants: on the direct path, check the diff yourself, item by item; on the orchestrated path, send the diff to shark:invariant-guard before the merge.

Report the defect after the fix: the defect, its regression test (failing, then passing), and the fix. Done when the gate of ## Test scope passes with the fix in it.

Ask the user first only in these cases (and the cases of ## Owner rules):

  • Two behaviours are possible, and the spec, the code and the plan do not decide between them. A report that lists options and accepts each one has decided: take the option that changes the least runtime behaviour (a type-level change before a runtime change), and say so.
  • The fix changes a business rule, or the default of a configurable setting.
  • The fix adds a permission, or changes the permission model.
  • The fix adds an external service or a runtime dependency.
  • The fix changes a spec that the user approved, or behaviour that the user asked for.
  • The fix changes a public interface (see "Stay in scope"). Recommend the smallest fix that keeps the interface.

Bring design trade-offs to the user as numbered questions, each with your recommendation. This applies to a trade-off that changes visible behaviour, latency, cost, data safety or a business rule. It applies also when the user says "decide yourself". You can build on the recommended default; mark it "taken by default, owner to confirm". A change to a public interface is never taken by default: ask first. Internal choices (file layout, test style) need no question.

10. Voice

Write in ASD-STE100 (the kit output style shark:asd-ste100). Each mode file adds its register.

  • Outcome first. The first sentence says what happened or what you found.
  • Observed or inferred. "The count was 2 at line 211" (observed) is not "the cache is stale" (inferred).
  • One recommendation, with its reason. Put the alternatives in one line.
  • Full paths. Name each file by its absolute path.
  • Markdown files only. A report or a diagram is a local .md file; never a published page or artifact.
  • The project's terms, from the glossary of the spec or the handbook (## Docs layout).
  • Short progress lines during long work: what runs, and what you wait for.

11. Before you end a turn with work done

  • State what is not verified.
  • Name each file that is changed but not committed.
  • On the orchestrated path, also follow references/orchestration.md §11.

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.