Borrowing it
Nothing to install: this file belongs to 363045841/KLineChartQuant. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/363045841/KLineChartQuant/main/AGENTS.mdgit clone --depth 1 https://github.com/363045841/KLineChartQuantWrote 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/instructions/363045841/klinechartquant/agents-md)<a href="https://agentmods.dev/instructions/363045841/klinechartquant/agents-md"><img src="https://agentmods.dev/badge/instructions/363045841/klinechartquant/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/363045841/klinechartquant/agents-md"><img src="https://agentmods.dev/badge/instructions/363045841/klinechartquant/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.03333 | $0.03333 |
| Opus 5.5 | $0.01333 | $0.01333 |
| Sonnet 5.5 | $0.00667 | $0.00667 |
| Haiku 4.5 | $0.00333 | $0.00333 |
Grade A, and why
KLineChartQuant AGENTS.md 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
KLineChartQuant — Agent Guide
工作流要求
- 只允许使用 CodeGraph 看文件,不要在那边自己搜来搜去,在命令往返上拖慢时间.
- 一次把改的文件全改完:在一次消息中编辑所有要修改的文件,不要思考一段编辑一段,这是很耗时的Agent工作流.
硬禁止
- 拒绝治标不治本的"最小修复";模块重构不做小修小补,该重写就彻底重写,不留架构债,代码要可读,可维护,不炫技.
- 不复杂化问题,尤其是架构层面.
- 禁止硬编码字符串;错误码与颜色的 SSOT 见 Code Conventions.
- 禁止无意义的
??与 fallback,数据消费层尤其如此;回退逻辑是风险放大点. - 禁止先留一段兼容逻辑,事后再来改的两段式改法.
- 禁止写产生副作用的函数,那是耦合的来源.
- 单个提交或 PR 不得超过 5000 行;超过必须与仓库拥有者深入讨论对接,否则架构无法维护.
- 做 PR 时:
- 禁用
/goal命令. - PR 说明写进临时文件.
- 不一次写一大堆代码而不给用户手动测试的机会.
- 不长时间自行收敛相当宽泛的问题而不交贡献者亲自测试.
- 不在小问题上引入严苛校验,那会让链路难以维护.
- 未经确认不围绕自己 MOCK 的数据开发或重构.
- 禁用
Quick Search
- 理解或修改代码前必须先查 CodeGraph:用
codegraph_explore分析调用链,影响范围和现有实现,只有它未索引的内容才退回 grep/read. - CodeGraph 工具可能不在初始工具列表里;这时先通过运行时
search({ query: 'CodeGraph' })取得准确工具路径再调用,禁止臆测或自行拼装工具名,禁止以"工具不存在"为由放弃. - 启动子代理探索代码时,必须在提示词中要求其优先使用 CodeGraph MCP.
Committing
- 提交必须先用
skill("commit-message-generator")加载.opencode/skills/commit-message-generator/SKILL.md,以生成 Conventional Commits 信息. - PR 说明覆盖整个分支的全部提交,而不是只描述最后一个 commit.
- 只有用户明确要求时才能提交.
Monorepo
pnpm workspace at packages/*;Node ^20.19.0 || >=22.12.0,pnpm 11.x.可以发布的包:
| 目录 | 发布包 |
|---|---|
packages/plot-contracts |
@363045841yyt/klinechart-plot-contracts |
packages/script |
@363045841yyt/klinechart-script |
packages/script-server |
@363045841yyt/klinechart-script-server |
packages/script-chart |
@363045841yyt/klinechart-script-chart |
packages/script-editor |
@363045841yyt/klinechart-script-editor |
packages/core |
@363045841yyt/klinechart-core |
packages/agent-runtime |
@363045841yyt/klinechart-agent-runtime |
packages/vue |
@363045841yyt/klinechart |
packages/web-component |
@363045841yyt/klinechart-web-component |
packages/react |
@363045841yyt/klinechart-react |
packages/angular |
@363045841yyt/klinechart-angular |
pnpm build:packages 按 plot-contracts → script → script-server → core → script-chart → agent-runtime → vue → script-editor → web-component 的顺序构建,顺序不可颠倒:框架包通过 workspace: 协议依赖 core 与 agent-runtime,vue 还把 agent-runtime 声明为 peerDependencies.script-editor 与 web-component 都复用 vue 包的源码,分别产出独立编辑器页与单文件自定义元素,因此必须排在 vue 之后.react,angular 不在该命令内,各自单独构建.
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.
- today Changed · +2 lines · +55 tokens per session 0889946befa0
- 8d ago Changed · +30 tokens per session ae10f8b001e0
- 9d ago Changed · +10 tokens per session 58eca77c8151
- 10d ago Changed · +5 lines · +58 tokens per session c9df7a30731e
- 11d ago Changed · -44 lines · -342 tokens per session f93b7e5aeb4c
- 12d ago Changed · +14 tokens per session 058386bb060f
- 17d ago Changed · +46 tokens per session e7aa49a6b134
- 20d ago Changed · +1 lines · +69 tokens per session 5aa3758335b1
- 24d ago Changed · +15 tokens per session 8f77f7e892d9
- 25d ago First seen · 166 lines · 3,378 tokens per session scan A fd0a2f220f30
KLineChartQuant AGENTS.md is an instructions file published in the GitHub repository 363045841/KLineChartQuant (37 stars, last pushed today), licensed Apache-2.0. It adds 3,333 tokens to every session, about $0.0133 per session on Opus 5.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-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.