marketcalls/openalgo-charts/openalgo-chart-setup
Claude Code and agent skill by marketcalls/openalgo-charts
- community
Checking that the SKILL.md file is still in the repository.
Scaffold a working openalgo-charts chart in an existing project - detects the host (React, Next.js, Vue, vanilla bundler, or plain script tag), installs the right tiers, and writes a chart that renders real data. Use when the user asks to add a chart, set up openalgo-charts, or get a first chart running.
Install
npx vskill@latest install marketcalls/openalgo-charts/openalgo-chart-setupSKILL.md
Scaffold a first working chart. Do not write a demo page unless the user asked for one; wire it into the project they already have.
Arguments
$0= chart type. Default:candlestick.$1= host. Default: detect it.
Step 1 - detect the host before writing anything
Pick the shape from what you find:
| Finding | Shape | |
|---|---|---|
next | client-only component, 'use client', create in useEffect | |
react without next | component with useRef + useEffect | |
vue | a composable: chart in a shallowRef, onMounted / onBeforeUnmount | |
| a bundler, no framework | plain module | |
| no bundler, HTML only | <script type="module"> from dist/ or a CDN; with no module support, the script-tag files: dist/openalgo-charts.standalone.js (the OpenAlgoCharts global), then each tier's openalgo-charts.<tier>.standalone.js (OpenAlgoCharts.<tier>) |
Read react-integration for the React and Next.js shapes, vue-integration for Vue 3 and Nuxt, and bundling-and-tiers for the no-bundler shape.
Step 2 - install
Add tier imports only for what the user actually asked for. Each unused tier is bytes for nothing.
| They asked for | Add | |
|---|---|---|
| indicators | import 'openalgo-charts/indicators' | |
| drawing tools | import { DrawingController } from 'openalgo-charts/draw' | |
| Renko / Heikin Ashi / P&F / Kagi | import 'openalgo-charts/transform' | |
| volume or market profile, footprint | import { ... } from 'openalgo-charts/profile' | |
| placing orders | import { OrderEngine } from 'openalgo-charts/trade' | |
| packaged toolbar, rail and dialogs | import { createWidget } from 'openalgo-charts/widget' | |
| optional GPU series rendering | import 'openalgo-charts/webgl', then renderer: 'auto' |
Step 3 - write the chart
Requirements the scaffold must satisfy:
- The container has an explicit non-zero height. A chart in a zero-height box renders nothing and this is the most common setup failure.
- Time values are UTC seconds.
- The chart is created once and destroyed in cleanup with
chart.destroy(). - The chart instance lives in a ref or module scope, never in component state. In Vue that ref is a
shallowRef:ref()andreactive()hand back a proxy of the chart. - Real data if the project has a source;
generateBarsonly as an explicit placeholder, clearly marked. - No emojis or icons anywhere in the code.
Vanilla baseline:
Add a volume pane only if asked:
If the user wants a recent-bar default, pass navigation: { defaultVisibleBars: 120 } when creating the chart and omit the explicit fitContent() call above. Initial data uses the preference; later default resets use resetScale(). A hidden tab defers its initial fit until measurement. See host-integration.
Step 4 - connect data
If the project already has a bar source, use it. If the user names OpenAlgo, wire the real feed rather than a fetch by hand - see feeds-and-live:
from and to are mandatory for OpenAlgo REST history. Save unsubscribe in the host's cleanup scope and check liveness after the history await before subscribing. For repeated symbol loads, replay or reconnect recovery, follow the request guards in host-integration.
Never read an API key from client-side source you commit. Take it from the project's existing env mechanism.
Step 5 - verify it actually renders
Do not report success on a file write alone. Build or typecheck, and if the project has a dev server or a browser harness available, load the page and confirm the canvas has content.
Report the file paths you created or edited, the tiers you added, and how you verified it renders.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/openalgo-chart-setup/SKILL.md
Popularity
- Repository stars
- 146
- Repository forks
- 53
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/marketcalls/openalgo-charts/openalgo-chart-setup)