agentleFS
espressifespressif/esp-claw-skills-lab/skills/stock_quotes_display/SKILL.md

stock_quotes_display

Skill37 starsChanged 33 days agoMITView on GitHub

Use this skill when the user asks to show stock quotes, stock prices, market indexes, real-time stock information, or Eastmoney quote data on the device screen. The bundled Lua script fetches Eastmoney's push2.eastmoney.com quote endpoint, parses the returned JSON, and renders a compact quote dashboard on the LCD. The screen uses ASCII labels because the current display text module only supports ASCII text. - A display device declared as display_lcd in board hardware info. - The HTTP request capability enabled.…

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks to show stock quotes, stock prices, market indexes, real-time stock information, or Eastmoney quote data …

    line 17
  2. Very specific:

    Run through lua_run_script_async because the dashboard owns the display.

    line 37
  3. Very specific:

    If startup or HTTP fails, report the [stock_quotes_display] ERROR: ...

    line 91

≈ “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

Stock Quotes Display

Use this skill when the user asks to show stock quotes, stock prices, market indexes, real-time stock information, or Eastmoney quote data on the device screen.

The bundled Lua script fetches Eastmoney's push2.eastmoney.com quote endpoint, parses the returned JSON, and renders a compact quote dashboard on the LCD. The screen uses ASCII labels because the current display text module only supports ASCII text.

Requirements

  • A display device declared as display_lcd in board hardware info.
  • The HTTP request capability enabled.
  • The HTTP allowlist must include eastmoney.com, push2.eastmoney.com, or *. If the script reports an allowlist error, add the domain in the Web Console HTTP allowlist setting.
  • Network access from the device.

Tool Call Inputs

Run through lua_run_script_async because the dashboard owns the display.

{
  "path": "{CUR_SKILL_DIR}/scripts/stock_quotes_display.lua",
  "args": {},
  "timeout_ms": 0,
  "name": "stock_quotes_display",
  "exclusive": "display",
  "replace": false
}

Pass an empty args object to show default China market indexes:

  • 1.000001: Shanghai Composite Index
  • 0.399001: Shenzhen Component Index
  • 0.399006: ChiNext Index

Common optional args:

ArgDefaultMeaning
secids"1.000001,0.399001,0.399006"Eastmoney secid list. Use comma-separated values such as 1.600519,0.000001.
refresh_ms15000Quote refresh interval in milliseconds.
run_time_ms0Runtime in milliseconds. 0 means keep running until stopped.
rotatetrueRotate the detailed quote card through all returned securities.
detail_index11-based detail card index when rotate is false.

Eastmoney Fields

The script requests detailed fields from Eastmoney:

FieldScreen LabelMeaning
f12CodeSecurity code
f14NameSecurity name, used only when ASCII-safe
f2PriceLatest price
f3ChangeChange percent
f4ChangePrice change
f6AmountTurnover amount
f15HighHigh
f16LowLow
f17OpenOpen

Behavior

The script initializes the display, shows a loading screen, fetches quotes at the configured interval, and keeps the latest successful data on screen if a later refresh fails. The top card shows readable Code, Price, Change, Open, High, Low, and Amount rows for one security. The bottom list shows up to two compact name price percent rows with extra bottom padding for small screens.

If startup or HTTP fails, report the [stock_quotes_display] ERROR: ... line directly to the user. If the error mentions allowlist, ask the user to add eastmoney.com or push2.eastmoney.com to the HTTP allowlist.

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.