kr-stock-chart
Skill2 starsChanged 8 days agoMITView on GitHub
Generate KRX stock chart artifacts from daily OHLCV data. Use when the user wants chart-only output for a Korean stock, or when another Korean stock skill needs reusable chart artifacts such as `chart-data.json`, `chart-analysis.md`, five PNG chart panels, structure-zone CSV, pattern-wave CSV, or rule-screen output. Do not use for the final narrative memo itself.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- kr-analyst-report-discoverSkill
- kr-analyst-report-fetchSkill
- kr-analyst-report-insightSkill
- kr-analyst-report-watchSkill
- kr-article-readabilitySkill
- kr-chatgpt-reviewSkill
- kr-daily-market-newsSkill
- kr-earnings-reviewSkill
- kr-finance-slide-claritySkill
- kr-foreign-analystSkill
- kr-market-leadersSkill
- kr-market-sentimentSkill
- kr-naver-bloggerSkill
- kr-naver-blog-publishSkill
- kr-naver-browseSkill
- kr-naver-insightSkill
- kr-order-backlog-analysisSkill
- kr-portfolio-guardSkill
- kr-portfolio-monitorSkill
- kr-research-siteSkill
- kr-sector-analysisSkill
- kr-sector-auditSkill
- kr-sector-compareSkill
- kr-sector-data-packSkill
- kr-sector-planSkill
- kr-sector-updateSkill
- kr-stock-analysisSkill
- kr-stock-dart-analysisSkill
- kr-stock-data-packSkill
- kr-stock-planSkill
- kr-stock-updateSkill
- kr-strategy-backtestSkill
- kr-trade-flow-analysisSkill
- kr-web-browseSkill
- telegram-report-senderSkill
- us-daily-market-newsSkill
- us-earnings-reviewSkill
- us-sec-analysisSkill
- us-stock-analysisSkill
- us-strategy-backtestSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 11 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to own the KRX chart pipeline end to end.
- Distinctive: line 14
Treat prices and chart-derived levels as time-sensitive.
- Very specific: line 15
Default fetch policy is about 2 years of KRX daily bars so MA200, 52-week checks, and rule-screen inputs are stable by default.
- Very specific: line 16
If the workspace is writable, write chart artifacts under analysis-example/kr/<company>/ and chart images under analysis-example/kr/assets/.
- Very specific: line 18
If the user wants only the chart package, stop here and return the chart artifacts.
- Very specific: line 25
Use scripts/fetch-kr-chart.js to pull about 2 years of daily bars unless the user explicitly asked for a different range or already …
- Very specific: line 27
Use scripts/chart-basics.js to produce the markdown technical read plus the five PNG chart panels and the structure / pattern CSV sidecars.
- Very specific: line 28
Add rule-screen outputs when requested.
- Very specific: line 29
If the user asked for Minervini Trend Template, Korean leadership score, or explicit rule screening, build or reuse the same-date RS cache …
- Distinctive: line 31
Keep the JSON, markdown, PNG, and CSV outputs in their standard locations so downstream skills can ingest them without extra path …
- Distinctive: line 35
Read references/workflow.md for the execution checklist.
- Distinctive: line 36
Read references/output-format.md for the standard artifact contract.
- Distinctive: line 37
Read references/script-inputs.md for the supported script arguments.
- Very specific: line 59
Use scripts/fetch-kr-chart.js when you need current KRX daily bars and the user did not already provide OHLCV history.
- Very specific: line 60
Use scripts/chart-basics.js when you need a technical read plus five-part PNG charts.
- Very specific: line 61
Use scripts/build-kr-universe-rs-cache.js when the chart package needs an integrated KOSPI+KOSDAQ RS percentile cache for same-date rule …
- Very specific: line 62
Use scripts/kr-trend-rules.js when the chart package needs a Rule Screen block with Minervini Trend Template pass/fail plus the KRX 52주 신고가 …
- Very specific: line 63
Run all bundled scripts with node.
- Distinctive: line 68
Use exact dates for latest close, breakout or breakdown levels, and rule-screen checks.
- Distinctive: line 69
Keep rule-screen output clearly labeled as chart-derived rather than filing-derived.
- Distinctive: line 70
Treat pattern / wave output as candidate context, not confirmation.
- Distinctive: line 71
Do not invent support or resistance zones outside the generated artifacts.
- Distinctive: line 72
If a requested moving average or rule check lacks enough history, say that directly instead of silently filling it.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Korean Stock Chart
Use this skill to own the KRX chart pipeline end to end.
This skill is the single source of truth for Korean stock chart generation. Other Korean stock skills should consume its artifacts instead of re-implementing the fetch, render, or rule-screen steps themselves.
Quick Start
- Treat prices and chart-derived levels as time-sensitive.
- Default fetch policy is about 2 years of KRX daily bars so
MA200, 52-week checks, and rule-screen inputs are stable by default. - If the workspace is writable, write chart artifacts under
analysis-example/kr/<company>/and chart images underanalysis-example/kr/assets/. - Require the exact ticker, company name, and output directory before rendering PNG charts.
- If the user wants only the chart package, stop here and return the chart artifacts. If a downstream memo is expected, let
kr-stock-data-packorkr-stock-analysisingest the artifacts after this skill runs.
Workflow
- Lock the security target. Confirm the KRX ticker, market, and company name that should appear in the PNG title.
- Fetch the OHLCV base.
Use
scripts/fetch-kr-chart.jsto pull about 2 years of daily bars unless the user explicitly asked for a different range or already supplied clean OHLCV data. - Render the chart package.
Use
scripts/chart-basics.jsto produce the markdown technical read plus the five PNG chart panels and the structure / pattern CSV sidecars. - Add rule-screen outputs when requested.
If the user asked for
Minervini Trend Template, Korean leadership score, or explicit rule screening, build or reuse the same-date RS cache withscripts/build-kr-universe-rs-cache.jsand then runscripts/kr-trend-rules.js. - Persist standard artifacts. Keep the JSON, markdown, PNG, and CSV outputs in their standard locations so downstream skills can ingest them without extra path translation.
- Return a compact summary. Report the output paths plus the few technical findings that matter most.
Read references/workflow.md for the execution checklist. Read references/output-format.md for the standard artifact contract. Read references/script-inputs.md for the supported script arguments.
Standard Artifacts
For company <company> under analysis-example/kr/<company>/:
chart-data.jsonchart-analysis.mdtrend-rules.mdandtrend-rules.jsonwhen rule-screen output is requested
For chart images under analysis-example/kr/assets/:
<company>-chart.png<company>-chart-overlay.png<company>-chart-momentum.png<company>-chart-structure.png<company>-chart-pattern.png<company>-chart-structure-zones.csv<company>-chart-pattern-waves.csv
Bundled Scripts
- Use
scripts/fetch-kr-chart.jswhen you need current KRX daily bars and the user did not already provide OHLCV history. - Use
scripts/chart-basics.jswhen you need a technical read plus five-part PNG charts. The main chart includesMA5,MA20,MA60,MA120,MA200, candlesticks, close line, volume, and latest price labels for each moving average. The markdown read explicitly prints the latestMA5 / 20 / 60 / 120 / 200price levels. - Use
scripts/build-kr-universe-rs-cache.jswhen the chart package needs an integrated KOSPI+KOSDAQ RS percentile cache for same-date rule checks. - Use
scripts/kr-trend-rules.jswhen the chart package needs aRule Screenblock withMinervini Trend Templatepass/fail plus theKRX 52주 신고가 리더십 점수. - Run all bundled scripts with
node. - PNG chart labels render Hangul with
KR_STOCK_CHART_FONTfirst, then the bundledassets/fonts/NotoSansKR-Regular.ttf, then OS font discovery. The bundled Noto Korean Regular face is sourced from the officialnotofonts/noto-cjkdistribution and ships withassets/fonts/LICENSE-NotoSansKR.txtunder the SIL Open Font License. The install hook verifies Pillow and a bundled-font text-mask smoke test; setSKILL_INSTALL_SKIP_LINUX_DEPS=1to avoid automatic Linux dependency installation attempts.
Operating Rules
- Use exact dates for latest close, breakout or breakdown levels, and rule-screen checks.
- Keep rule-screen output clearly labeled as chart-derived rather than filing-derived.
- Treat pattern / wave output as candidate context, not confirmation.
- Do not invent support or resistance zones outside the generated artifacts.
- If a requested moving average or rule check lacks enough history, say that directly instead of silently filling it.
- Preserve the standard file names so downstream skills can ingest them automatically.
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
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.

