Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add gejyn14/kiwoom-plugin --skill pnl-reportgit clone --depth 1 https://github.com/gejyn14/kiwoom-pluginWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/gejyn14/kiwoom-plugin/pnl-report)<a href="https://agentmods.dev/skills/gejyn14/kiwoom-plugin/pnl-report"><img src="https://agentmods.dev/badge/skills/gejyn14/kiwoom-plugin/pnl-report.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00087 | $0.00927 |
| Opus 5 | $0.00044 | $0.00464 |
| Sonnet 5 | $0.00017 | $0.00185 |
| Haiku 4.5 | $0.00009 | $0.00093 |
Grade A, and why
pnl-report scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
손익·수익률
먼저 구분한다
- 실현손익 — 실제로 팔아서 확정된 것.
account pnl * - 평가손익 — 아직 들고 있는 것의 장부상 증감.
account balance(portfolio-review) - 수익률 — 투입 대비 비율.
account returns *
사용자의 "얼마 벌었어"는 대개 실현손익이지만 둘을 합쳐 생각하는 경우가 많다. 어느 쪽을 말하는지 애매하면 둘 다 보여 주고 각각 무엇인지 밝힌다.
기간
account pnl과 대부분의 account returns는 --from/--to가 필수다.
사용자가 기간을 말하지 않았으면 정하고 답에 그 기간을 밝힌다 — "이번 달"을
멋대로 "올해"로 넓히지 않는다. 날짜는 YYYYMMDD.
무엇을 부를까
기간 실현손익
kiwoom_run(["account","pnl","daily","--from","<YYYYMMDD>","--to","<YYYYMMDD>"])
일자별 실현손익. "이번 달 얼마 벌었어"의 기본 답이다.
종목별로 쪼개기
kiwoom_run(["account","pnl","by-period","--from","<YYYYMMDD>","--to","<YYYYMMDD>"])
"어떤 종목에서 벌고 잃었는지"에 쓴다. --code로 한 종목만, --market us로 미국,
--krw로 미국 손익을 원화 환산. 일자 기준은 account pnl by-date --from ….
당일 한 종목
kiwoom_run(["account","pnl","today","<코드>"])
국내는 종목코드가 필수다. 미국은 --market us로 코드 없이 전체를 받는다.
계좌 수익률
kiwoom_run(["account","returns","summary"])
인자가 필요 없다. 기간별로는
account returns daily-detail --from … --to …(일별 계좌수익률 상세),
account returns daily-balance --date …(일별 잔고수익률),
account returns daily-asset --from … --to …(일별 추정예탁자산).
매매일지
kiwoom_run(["account","history","journal"])
당일 무엇을 사고팔았는지. 기간 거래내역은 account history transactions.
답할 때
- 합계를 먼저, 내역은 그다음. 표를 통째로 붙이지 말고 기간 합계를 말한 뒤 기여가 큰 종목 몇 개를 짚는다.
- 이긴 것과 진 것을 같이 보여 준다. 수익 종목만 나열하면 그림이 왜곡된다.
- 상승 빨강 / 하락 파랑 (한국 관습).
- 수수료·세금이 반영된 값인지 단정하지 않는다. 키움이 돌려준 필드를 그대로 전하고, 사용자가 증권사 앱과 다르다고 하면 계산 기준 차이일 수 있다고 말한다.
meta.env가"mock"이면 모의투자 계좌다. 실제 수익으로 오해하지 않도록 명시한다.- 기간에 거래가 없으면 빈 결과가 정상이다. "손익 0"이 아니라 "그 기간에 매도가 없었다"고 말한다.
하지 않을 것
성과를 평가하거나 다음에 무엇을 사라고 하지 않는다. 숫자와 그 구성까지가 범위다.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 84 lines · 87 tokens per session scan A 3ffee9bb8aa6
pnl-report is a skill published in the GitHub repository gejyn14/kiwoom-plugin (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 87 tokens to every session and 927 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
sector-rotation
An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.
strategy-pivot-designer
Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.
twitter-reader
Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…
chenhao-limit-up
A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.
trading-risk-gate
Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.
vectorbt
High-performance vectorized backtesting with parameter optimization, portfolio simulation, and rich performance metrics.