agentleFS
INo-xiousINo-xious/stockbit-mcp/skills/chart-markup/SKILL.md

chart-markup

Skill58 starsChanged 3 months agoMITView on GitHub

Read and draw on the user's own Stockbit chart — levels, trend lines, studies, screenshots and saving the layout. Use when the user asks to draw, mark up, annotate or look at their chart.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    This is their chart: Do not clear a layout you did not draw without asking.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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

Chart markup

This drives the browser the user is already signed into, over the Chrome DevTools Protocol, on Stockbit's own chart page. It is the one place this server touches a UI, and everything it draws lands in the user's real saved layout.

The sequence

  1. chartbit_open symbol=… — put the chart in front of them. resolution and chart_type set the timeframe and style. Do this first; everything below acts on the open chart.
  2. chartbit_analyze symbol=… — derive support, resistance and trend lines from the bars. min_touches controls how much evidence a level needs; lookback how far back to look. With draw=true it draws what it found in one step, and replace=true clears the previous set instead of stacking on it.
  3. chartbit_draw symbol=… annotations=… anchor_date=… for anything specific. Times are epoch seconds, and anchor_date is what the annotation coordinates are relative to. Getting this wrong puts a line in 1970, which is visible but not useful.
  4. chartbit_study symbol=… study=… for indicators. The studies are a closed list — the tool description names them. A study Stockbit does not have cannot be added by asking twice.
  5. chartbit_screenshot symbol=… to see the result, and chartbit_save symbol=… to keep it.

Rules

  • Saving is explicit. Stockbit autosaves on its own schedule, which is not yours: if the user wants the markup to survive, call chartbit_save. Say that you did.
  • replace versus stacking. Running chartbit_analyze three times without replace=true leaves three sets of lines on the user's real chart. Prefer replace=true unless they asked to add to what is there.
  • This is their chart. Do not clear a layout you did not draw without asking. There is no undo.
  • Check the drawing landed. Take the screenshot. The CDP call can succeed while the chart rejects the annotation.
  • A blank white page means signed out. Stockbit's chart renders nothing at all when there is no session — no login prompt, nothing. If the screenshot is blank, that is what happened, and the fix is a login in that browser, not a retry.

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.