pnl-report

pnl-report is a skill for Claude Code from gejyn14/kiwoom-plugin. It costs 87 tokens per session (927 once invoked), scanned A, original, Apache-2.0.

A workflow for reporting realized trading profit or loss and account returns over selected periods. Realized profit or loss is the result of trades that have been closed; unrealized profit or loss is the change in value of holdings that are still open.

In plain words
What is it for?
Showing daily or period-based profit and loss, breaking results down by security or market, calculating account returns, and preparing a trading journal using Kiwoom account data.
Why use it?
It helps distinguish confirmed trading results from the changing paper value of current holdings and makes the reporting period explicit.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the kiwoom-trader plugin — 7 skills, 1 MCP server shipped together

Good fit Showing daily or period-based profit and loss, breaking results down by security or market, calculating account returns, and preparing a trading journal using Kiwoom account data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gejyn14/kiwoom-plugin/pnl-report
Install

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.

Any agent
npx skills add gejyn14/kiwoom-plugin --skill pnl-report
Clone the repo
git clone --depth 1 https://github.com/gejyn14/kiwoom-plugin

Made for: Claude Code.

Or install kiwoom-trader, the plugin that ships this one along with the rest of its 7 skills, 1 MCP server.

Wrote 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.

agentmods badge for pnl-report

README.md
[![agentmods](https://agentmods.dev/badge/skills/gejyn14/kiwoom-plugin/pnl-report.svg)](https://agentmods.dev/skills/gejyn14/kiwoom-plugin/pnl-report)
Your own site
<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>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 927 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 7d ago against content hash 3ffee9bb8aa6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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.

plugins/kiwoom-trader/skills/pnl-report/SKILL.md · 84 lines

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"이 아니라 "그 기간에 매도가 없었다"고 말한다.

하지 않을 것

성과를 평가하거나 다음에 무엇을 사라고 하지 않는다. 숫자와 그 구성까지가 범위다.

Changes

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.

  1. 7d ago First seen · 84 lines · 87 tokens per session scan A 3ffee9bb8aa6

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories