apexstock-skill
v1.0.0
Published
AI coding skill for ApexStock: structured reference docs that help AI assistants (Claude, Cursor, Copilot, etc.) generate correct ApexStock financial-chart code.
Downloads
248
Maintainers
Readme
ApexStock AI Skill
AI coding skill for building ApexStock financial / stock charts. Works with Claude Code, Cursor, GitHub Copilot, and any AI coding assistant that can read project context.
Separate skill, one of the ApexCharts ecosystem skills. This is the dedicated skill for ApexStock (
apexstock), shipped as its ownapexstock-skillpackage and repo, distinct from the coreapexcharts-skilland the other product skills. Each product has its own library and skill; use the one that matches yours:| Product | npm library | Skill package & repo | |---|---|---| | ApexCharts, charts |
apexcharts|apexcharts-skill| | ApexGantt, Gantt / timeline |apexgantt|apexgantt-skill| | ApexTree, hierarchy / org charts |apextree|apextree-skill| | ApexSankey, flow / Sankey |apexsankey|apexsankey-skill| | Apex Grid, data grid |apex-grid|apexgrid-skill| | ApexStock, financial / stock · this skill |apexstock|apexstock-skill|
What This Does
AI models routinely get stock-chart code wrong: forgetting that ApexCharts must be a global, using flat o/h/l/c keys instead of the y: [o,h,l,c] array, calling update() on every tick instead of appendData(), or expecting several oscillators at once. This skill ships structured reference files so the assistant generates correct ApexStock code on the first try.
Coverage
- OHLC data format,
{ x, y: [open, high, low, close], v? }, chart types, timestamps, normalization - The ApexCharts-global requirement, why
window.ApexChartsmust be set first - Technical indicators, overlays vs oscillators, the full key list,
period/stdDevconfig,calculate*helpers - Real-time streaming,
appendData,view/maxPoints/updateLast, forming-candle recipes,aggregateOHLC - Trading overlays, order / stop-loss / take-profit / alert price lines with drag / close / cross callbacks
- Theming, light/dark modes and the scoped
--apexstock-*token system - Lifecycle & the 0.3.0
destroy()teardown gap, with the wrapper-element remediation - Framework wrappers:
react-apexstock,vue-apexstock,ngx-apexstock
Installation
Claude Code
mkdir -p .claude/skills
cd .claude/skills
git clone https://github.com/apexcharts/apexstock-skill.gitCursor / Windsurf
curl -o .cursorrules https://raw.githubusercontent.com/apexcharts/apexstock-skill/main/.cursorrulesGitHub Copilot
Reference SKILL.md in Copilot Chat: @workspace #file:SKILL.md, or paste the contents of .cursorrules into Copilot's custom instructions.
Generic AI Assistant
Paste the contents of SKILL.md into the system prompt or attach it as context.
As an npm dependency
For tools that build on top of this skill (MCP servers, custom AI agents):
npm install apexstock-skillimport { skillFile, referencesDir, referencePath } from 'apexstock-skill';
import { readFile } from 'node:fs/promises';
const skill = await readFile(skillFile, 'utf8');
const streaming = await readFile(referencePath('streaming-and-aggregation.md'), 'utf8');Repository Structure
├── SKILL.md # Main entry point, read this first
├── .cursorrules # Self-contained version for Cursor / Windsurf
├── references/
│ ├── data-format.md # OHLC points, chart types, timestamps
│ ├── indicators.md # overlays vs oscillators, keys, calculate* helpers
│ ├── streaming-and-aggregation.md # appendData, forming candle, aggregateOHLC
│ ├── trading-overlays.md # price lines, drag/close/cross, drawing tools
│ ├── framework-wrappers.md # React, Vue, Angular
│ └── theming.md # light/dark, --apexstock-* tokens
└── install/
├── claude-code.md
├── cursor.md
└── copilot.mdLinks
License
MIT
