agentleFS
andrian-syhandrian-syh/roblox-optimum/skills/diagnose/SKILL.md

diagnose

Skill2 starsChanged 2 months agoMITView on GitHub

Diagnoses a reported Roblox symptom down to its cause before anything is changed. Use whenever the user says something in their game is broken, wrong, missing, duplicated, intermittent, or works in Studio but not live - leaderstats resetting, players falling through the map, a shop granting free items, a server dying after a while, an event firing twice - and no file has been named yet, even when Roblox is never mentioned. Classifies the symptom, asks which side owns the state and whether a client could have caused it, narrows the surface, reproduces, and confirms the cause before handing the fix over. Hand-offs: judging code that was handed over goes to the code-review skill, writing the fix to the best-practices skill, sync toolchains and driving Studio tools to the studio-ops skill, falling impressions or player counts with nothing broken to the publishing skill.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use zoom-out, to-prd and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • victorgarciaesgiSkill

    zoom-out

    Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.

    Also in 61 projects that use this

  • GoogleSkill

    to-prd

    Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.

    Also in 56 projects that use this

  • GoogleSkill

    to-issues

    Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.

    Also in 53 projects that use this

  • simo97Skill

    edit-article

    The user will invoke this skill to help them edit an article.

    Also in 17 projects that use this

  • simo97Skill

    write-a-skill

    Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.

    Also in 44 projects that use this

  • AnasX7Skill

    setup-pre-commit

    Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

    Also in 27 projects that use this

  • +4 more from simo97

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read what the report already contains: console output, error text, a screenshot, a time.

    line 100
  2. Distinctive:

    Read the owning code path, both sides of any pair: the fire and the receive, the create and the destroy.

    line 101
  3. Distinctive:

    Before reporting a defect at all, the shapes that only look wrong are catalogued in false-positives.md.

    line 125
  4. Distinctive:

    Do not include the fix. Naming the failing path is the deliverable.

    line 137
  5. Distinctive:

    Before the fixed work is called done, the finishing gate is review-checklist.md.

    line 148

“Common” is measured: kept by at least 6 in 10 of the 174 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

Roblox Diagnosis

Finding the cause of a reported symptom. Nothing here writes the fix and nothing here scores a codebase: this skill decides what is actually wrong and hands that answer on.

It exists because a bug report names a symptom, never a file. Reaching for the first plausible file and editing it produces a change that looks like a fix, passes review, and leaves the defect in place.

Goal, in priority order: cause → evidence → cheapest probe → clean handoff. A confirmed cause with narrow evidence beats a broad theory. Guessing costs more than asking.

This skill ships as part of a set and does not stand alone. Every reference it cites lives in ../best-practices/references/, the pool shared by all five roblox-optimum skills. Installing this directory on its own leaves those links pointing at nothing. If a reference will not open, the install is incomplete: say so rather than diagnosing from memory.

Session Invariants (must survive compaction)

ROBLOX DIAGNOSIS - INVARIANT CARD
1  A symptom is not a cause. Nothing is fixed until the failing path is
   named and shown to fail.
2  Ask first: which side owns this state, and does it replicate? Most
   Roblox defects are a client and a server disagreeing about a value.
3  An impossible state means an untrusted input. Ask whether a client
   could have produced it before concluding the code is wrong.
4  Studio is not the game. Play Solo, the Edit VM, absent latency, one
   client, and a higher frame rate each hide or invent failures.
5  Reproduce before editing. When it cannot be reproduced, say so and
   name the evidence that would settle it.
6  Change one thing per probe. Two changes at once forfeit the result.
7  Intermittent means a race, a yield, or a retry. Reach for those three
   before rereading logic that is correct in isolation.
8  Leave no residue. Prints, tags, instances, and test scripts added to
   observe are removed when the answer is found.
9  Never describe what a file contains without opening it. A hypothesis
   about unread code reads exactly like a finding and is not one.
10 Report the cause with the evidence that establishes it. Handing off a
   guess wastes the fix and the review after it.
11 User authority outranks this skill.

Everything below expands these; nothing below overrides them.

Which symptom is this

Resolved from the report before anything is read. The row decides where the cause is likely to live, not what the fix will be.

The report sounds likeStart at
Slow, stuttering, frame drops, memory climbing over a sessionperformance.md, then device-performance.md
Saved data reset, rolled back, lost, or duplicated across serverspatterns/data.md
Free items, impossible values, a player doing what the rules forbidsecurity.md, then server-authority.md
An event fires twice, never, or after the player leftpatterns/lifecycle.md
Parts, models, or children missing on the client onlypatterns/network.md
Works in Studio, fails in a live game, or the reverseverification.md, then edge-cases.md
A limit reached: request throttled, payload rejected, cap hitlimits-budgets.md
Edits disappearing, or the file and the place disagreeingthe studio-ops skill: this is tooling, not a defect

The full loop, the environment traps that fake a defect, and the stop conditions are in diagnosis.md. Read it when the row above does not settle the shape of the problem, or when the first hypothesis fails.

The loop

  1. Restate the symptom as an observation. What was seen, by whom, where, and how often. "Data resets" is a conclusion; "the coin count showed zero after rejoining" is an observation. Ask for the missing half rather than filling it in.
  2. Establish the environment. Authority mode, StreamingEnabled, community libraries, Studio-native or synced, and whether the report comes from Studio or a live server. Each changes what counts as impossible. Unresolved means unresolved.
  3. Ask what changed. A defect that appeared has a cause that arrived: a recent edit, a new library, an engine release, a spike in players. When nothing changed, the defect is old and the trigger is new.
  4. Form one hypothesis and name what would disprove it. A hypothesis nothing could refute is not a hypothesis. Prefer the one whose test is cheapest.
  5. Narrow, then reproduce. Cheapest probe first, one change at a time. Reproduction is the line between a theory and a cause.
  6. Confirm and hand off. State the failing path, the evidence, and the conditions under which it fails. Stop there.

Cheapest probe first

Each step costs more than the one above it. Do not skip upward without a reason.

  1. Read what the report already contains: console output, error text, a screenshot, a time.
  2. Read the owning code path, both sides of any pair: the fire and the receive, the create and the destroy.
  3. A single-client playtest, watching the one value in question.
  4. Two clients, whenever a remote, replication, or StreamingEnabled is anywhere near it.
  5. A server-side probe emitting structured output on the suspect path.
  6. Live telemetry, when the symptom only appears at a scale a playtest cannot reach.

Steps 3 through 6 run through the studio-ops skill, which owns how a session is driven and what a tool call will do before it runs.

When it is not a defect

Three answers end a diagnosis without a fix, and each is a real result:

  • An exploit. The client sent something the server accepted. The code is not wrong in isolation; it is missing a validation that server-authority.md requires. This is the most common cause of a state the game "cannot" reach.
  • Correct behaviour under a condition nobody stated. The rule fired as written, for a case the report did not mention. Say which condition, and let the user decide whether the rule is what they wanted.
  • An environment artefact. Play Solo, the Edit VM, a discarded play-mode change, or a Studio-only frame rate. The place is fine and the observation was not of the game.

Before reporting a defect at all, the shapes that only look wrong are catalogued in false-positives.md.

Reporting

State the cause, then the evidence, then the conditions. One paragraph is usually enough.

Say plainly when the cause is unconfirmed, and name the one probe that would settle it. An unconfirmed cause reported as confirmed is worse than no answer, because the fix that follows is aimed at the wrong line and the defect survives it with a test around it.

Do not include the fix. Naming the failing path is the deliverable.

Handing off

  • Writing the fix → the best-practices skill, which owns the layout, the comment rules, and the standards the fix has to land inside.
  • Judging code that already exists, or scoring a project → the code-review skill.
  • Driving a playtest, a sync toolchain, or an MCP connection → the studio-ops skill.
  • Reading live evidence (data store entries through execute_luau, analytics through open_cloud_invoke) → open-cloud.md; report user ids and aggregates, never raw player values.

Before the fixed work is called done, the finishing gate is review-checklist.md.

User Authority

Guidance, not a mandate. Never edit code, remove a probe the user placed, or change a place's configuration on this skill's initiative. Investigate, report, and let the user decide what is fixed.

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.