Skip to content
Back to skills

Screen Grids

ASecurity

Grids — loading and unloading them, screening runs, whole-grid overviews, reviewing grids after a screen, and picking sites (cells, squares) for lamellae. Read fibsem-agent and fibsem-microscope first, then this when the operator wants grids screened or sites picked, before or during AutoLamella work.

  • 27 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
researchgoaws

Works with

  • cli

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add fibsem-os/fibsem-os --skill screen-grids --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Screen Grids?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Screen Grids
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fibsem-os-screen-grids/badge)](https://www.skillsdirectory.com/skills/fibsem-os-screen-grids)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: screen-grids
description: Grids — loading and unloading them, screening runs, whole-grid overviews, reviewing grids after a screen, and picking sites (cells, squares) for lamellae. Read fibsem-agent and fibsem-microscope first, then this when the operator wants grids screened or sites picked, before or during AutoLamella work.
---

# Grids and sites

Read the fibsem-agent and fibsem-microscope skills first: they cover
connecting, the levels, the watcher, and overviews (fibsem-microscope,
*Overview or tile set*). This skill adds the grids
themselves and how to pick sites on them. Making lamellae at those sites is
the autolamella skill's.

## Grids by hand

`grid_list` is the experiment's records; `grid_get_inventory` is the hardware
now (which grid is loaded), and `grid_get_current` the grid under the beam.
With an autoloader `grid_load` is an exchange, so say which grid comes out
before you load. A grid run loads its own grids, so never load ahead of one.
Ask the operator before renaming a grid (`grid_rename`), and say the old and
new names. At Assist an exchange is a request like a move; put `grid_load`
and `grid_move_to` in one request when you want to look at the grid.

`grid_assign_items` records lamellae as on a grid (sites marked before the
grid had a record, or on the wrong one); nothing moves.

## After the app restarts

A loader can lose the grid on the stage across a restart of the app:
`grid_get_inventory` then shows no grid loaded, or one called
`Grid-on-stage`, and its home slot empty. Before you plan a run, compare
`grid_get_current` and `grid_get_inventory` with the grid you know is on the
stage (from the run so far, or the operator). If they disagree, ask the
operator which grid is on the stage; don't run loader commands to find out.
On their word, `grid_set_current` names it there with nothing moved (with
`slot_name` if they know the magazine slot it came from), and the run then
accepts its lamellae. Never unload and reload to fix a name: that costs a
grid exchange and every site's position confirmed again.

## A screening run

Starting one is a control action (Drive). Plan it first with
`workflow_plan_grids` and show the operator the plan: every step, one load
per grid. An exchange is the most physical thing the server commands. Then
start it with `workflow_start_grids` and the same body; `screen_all: true` inventories and runs every
present grid. One run at a time: it is refused while a lamella run is live,
and a lamella start is refused while a grid run is.

## Reviewing grids

After a screening run, `grid_list` lists each grid with its latest overview
per role. `grid_get_output_image` is the preview, and `grid_get_markers`
places the experiment's items on it in source pixels with their status. Use
it for "which items sit near the edge or off the grid", and never work out
the stage geometry yourself. `experiment_render_markers` draws the items on
any beam image in the experiment.

`quality` is the operator's verdict, not yours: say what you see, propose,
and leave the verdict to them. Set it with `grid_set_quality` only once they
agree. What
you saw goes on the grid's card with `grid_set_note`, so the next session
finds it with the grid.

Screening reviewed, and later the sites approved, are natural points for a
fresh context (fibsem-agent, *A fresh context*): the grid cards, the plan and
the sites hold what the next step needs.

## Finding sites

When you pick sites (cells, squares):

- Ask for the operator's placement rule first (fibsem-agent, *When an ask
  leaves out the rule*). Without one, use these rules and say so.
- Survey before GIS deposition and sputter coating when you can: cells and
  grid bars stand out far better. Positions are stage coordinates, so a site
  picked before coating holds after it while the grid stays loaded. Grids
  often arrive coated, so you will also have to pick on coated grids.
- Read a large overview in parts: `experiment_read_file` with `cells` cuts it
  into named cells (A1, B3) with their stage positions, and
  `analysis_crop_image` with `cells` gives up to 8 of them at full
  detail. A point read off a crop goes to
  `analysis_map_pixel_to_stage` with that `crop`.
- Prefer the FIB image for picking cells when you have it (at the milling
  angle): good cells are often easier to tell there than on the SEM
  overview. A FIB image doses the sample, so keep the current low and the
  frames few.
- One lamella per grid square. A square usually has room for one good one
  without overlapping another lamella's trenches, fiducial or stress-relief
  cuts, or a grid bar. If two must share a square, the film between their
  cuts can tear (two lamellae about 15 µm apart tore during rough milling):
  ask the operator first. Once sites have patterns, `grid_draw_milling`
  draws them on the SEM overview and measures the gap between neighbours'
  cuts: check that, not only that patterns don't overlap.
- The cuts are much bigger than the cell. At the milling angle the rough
  mill's footprint covers about 45 µm of surface along the tilt direction:
  a site needs about 57 µm of intact film along the SEM's vertical through
  the cell, and about 30 µm across. On one run, 5 of 17 sites were dropped
  only at Setup because a cut fell on a bar; check it at selection
  (*The cut footprint*, below).
- A thin line, a damaged edge or a flap near the cell before the GIS opens
  into a crack after it, even after 60 s (4 of 4 such sites on one run):
  drop those sites at selection, before the GIS.
- Where in the square, best first: (1) the clear middle, more than about
  10 µm from any bar, with room for the trenches and stress relief;
  (2) within 10 µm of a bar, only if the square has no cell in the middle, and
  ranked below every square that has; (3) on a bar: never mill it.
- `analysis_find_grid_squares` helps with the bars and square centres:
  pass your candidates as `points` for each one's distance to the nearest
  bar edge, and `box` or `pitch_um` when you know them. It is a fit: check
  its overlay against the image. When it accepts no lattice or warns, weigh
  its candidate and your own reading, and say which you relied on.
- The film under the site has to be intact. A broken, sheeted or covered
  square is not a site. Check each site in the FIB and SEM (bars, torn or
  curled film) before spending FM time on it.
- What rules a site out up close, and what doesn't. A crack or tear in the
  film within about 20 µm of the cell does: it runs through the lamella or
  its trenches, and the film can tear while milling. Contamination specks or
  clusters on the film or the cell don't, and neither do the regular holes
  of a holey film. Say what you saw, but keep the site.
- Methods that worked on an uncoated grid: GrabCut on the holey film, tracing
  the grid bars by hand where shading defeats a threshold, and a piece of
  debris as an anchor to find the same place again. GrabCut needs code you
  may not be able to run; then judge by eye and say so. Say how sure you are
  of each detection, not only where it is.
- Look at the tile seams. A feature on a seam can be cut in two, doubled or
  hidden under the next tile; check it in the tiles on both sides before you
  count it.
- A square you haven't looked at is unassessed, never "empty" or "bad".
- Confirm shorthand before acting on it. "3:3" or "C2" can name a square, a
  cell or a rank; ask which the operator means.

**Grade every square, then visit in order.** When a run needs more than a
few sites, grade the whole grid from its saved overview first, before the
microscope visits any of them: it costs no microscope time, and it gives
the run a ranked list to fill from instead of a new search each time a site
drops out. Give every readable square one grade, by the operator's
placement rule where they gave one and these rules where they didn't:

- **high**: intact film, a cell (or the target) in the clear middle, and
  room for the cut footprint (*The cut footprint*);
- **medium**: usable but questionable: the cell near a bar, uneven film, a
  crack away from the footprint, a doubt the overview can't settle;
- **low**: only to fill the count;
- **none**: on a bar, broken, sheeted or no target; group these by reason.

A square you couldn't read is unassessed, not none. List the squares with
`analysis_find_grid_squares` where its fit holds (check its overlay);
where it doesn't, grade the regions you can read and say the list is not
the whole grid. Keep the list with `grid_set_sites`, the grid's site
list in the experiment (every site considered, by name: S1, S2, ...): for
each, its stage position (`analysis_map_pixel_to_stage`), its status (state
waiting, visited, kept or dropped; a score that ranks it, 0.9 for high, 0.6
for medium, 0.3 for low; a short reason), and in `metadata` its grade as
written here, square, `overview` and `pixel`. The plan keeps only a count
line per grid ("grid-02: 14 graded, 5 kept, 2 dropped"). Draw the grades on
the overview (`analysis_draw_image`, one labelled mark per site) and put
that picture on the review list as the grid's grade map. A site-finding task
may have written the list already (its sites carry its own scores and
`finder: auto-targeting` in metadata): read it with `grid_get_sites` and
grade on from there rather than starting again.

Then visit in grade order, high first, doing both checks below at each,
until the run's count is reached; take medium and low only as the intake's
fill rule allows. A visit can change a grade, since thin film or ice may
only show up close: change its grade and score in the list and take the
next. When a site is dropped, at the visit, the cut footprint or Setup, set
its state dropped with the reason (a code where one fits: on_grid_bar,
pattern_on_bar, crack, broken_film), and take the next one
(`grid_get_sites` with state waiting: the best left comes first) rather
than searching again. A kept site gets its `item_name` once it is an item.
`grid_get_markers` places the list's sites on an overview with their state
and score.

**The site finder.** When picking means looking through many squares or tiles,
or several grids, the `autolamella-site-finder` agent (when it is in your Agent
tool) can do the looking in its own context and answer a short list: your
context keeps the list, not the crops. For a handful of crops, or one site
the operator pointed at, look yourself. Call it as the other agents are
called: one call, and wait for it. It judges from what you give it, so give
it what the decision should rest on:

- the grid, and the overview or tiles to judge from, by the paths a tool
  answered;
- the operator's rules word for word from the plan's Rules, or that they
  gave none and it should use these;
- at least one example of a good site on this sample: the operator's marked
  image, a site approved earlier, or the knowledge entry with its images;
- the view to judge from, and whether the grid is coated;
- the sites already chosen, and how many candidates you want at most;
- the job: `review` (what a grid shows, to compare grids) or `sites`.

Its answer is a shortlist, not a decision. On a new sample, or with no
example, each candidate still goes to the operator one site at a time.
Each one you take forward you visit and check on fresh images, both checks
below; a doubtful one needs the image its `would_settle` names first. You
write the grid notes and the plan, citing its evidence paths. In a lead run
the Verifier still checks the site list, from the images and the list, not
the site finder's reasoning. When the operator rejects a candidate, put their
reason in the plan's Rules in their words, and in the next brief.

**Two separate checks: is the site good, and is the microscope set up there.**

- *Is the site good* is about the sample: the cell or target, the film, the
  bars, the room for the trenches (the list above). It decides whether a
  candidate is kept or rejected.
- *Is the microscope set up there* is about the beams: focus, brightness and
  contrast, and SEM/FIB coincidence. It never decides whether a site is good.
  It is something you fix.

Picking on the overview gives candidates by the first check. Then go to
each candidate (`stage_stable_move`) and do the second there at the rough
level: the same feature within about 10 µm in both beams at a 150-200 µm
field of view, from one `beam_acquire_pair_preview` (fibsem-microscope,
*Coincidence: do it yourself*). No 50 µm check here: the precise level is
Setup's, at the placement. If it isn't, fix it:
focus, then the coincidence loop. Never reject a candidate for focus or
coincidence. If you can't fix one, say what you tried and ask the operator;
in a lead run, hold it in the plan's `Held` section and carry on with the
others. With
the beams on it, look at the site again: a closer look can still show it
isn't good, and that is the first check, not the second. Record each site
with its coincident height: on a bent grid it changes from site to site.
The rough pair itself, saved with a path and the site centred with its
square, bars and neighbours in view, is the site's wide pair: the operator
judges a site from it, so don't take another. Name a site's image folder once its square is final
(after any lattice fit), so its folder, name and review item agree.

**The cut footprint.** For AutoLamella, check each kept site's cuts on
the overview before the GIS, as soon as it is an item (*Recording sites*):
`grid_draw_milling` with `item_names` the new sites draws each one's
trench, stress-relief, fiducial and polishing outlines from the protocol
onto the grid's SEM overview, and answers each one's footprint box and its
nearest neighbour's gap. Look at the drawing (its path is the evidence):

- the lamella, or a large part of a trench, on a bar, a crack or broken
  film: move the site along the square until they sit on film
  (`item_set_position`, then draw again), or, if no place in the square
  fits, drop it (`item_remove`) and take the next candidate. A cut needn't
  be 100% clear: a little overlap at a cut's outer edge (the end of a
  trench, a stress-relief cut or the fiducial clipping a bar) is fine;
- a neighbour's cuts closer than about 15 µm: move or drop one of them;
- the footprint's box, not the cell, decides the room: a cell in the clear
  middle can still put a trench on the bar along the tilt direction;
- the fiducial is best on a bar where the alignment area allows it: it sits
  on solid material and leaves the film near the lamella alone. On film is
  fine too.

Its projection has caveats (it says so): it is a check of the layout from
above, not a placement, and Setup still judges the placement on the FIB
image.

**Recording sites.** For AutoLamella, each site is a lamella: `item_add`
without `name`, so it gets the app's usual name, and how to find it again
(grid, square, rank, why it was chosen) in its description, as
autolamella's *A lamella's record* says. Without AutoLamella, save each
as a position (`stage_save_position`). Show the operator what you picked:
`experiment_render_markers` draws the items on any beam image in the
experiment, your own overview included, and its `path` is the evidence of
the note that reports them (`experiment_add_note` with `evidence: {image:
path}`), shown in the card.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.