project-structure

project-structure is a cursor rule for Cursor from lockelee1015/claude-code-chat-intellij. It costs 524 tokens per session, scanned A, original, MIT.

A project-structure reference for a Kotlin IntelliJ plugin. It maps important build files, source folders, test folders, and the plugin declaration file to their roles.

In plain words
What is it for?
Use it when navigating or debugging this project, especially when tracing entries in `plugin.xml` to their Kotlin implementation classes.
Why use it?
It gives a coding agent a quick way to locate the code responsible for plugin actions, the tool window, extension declarations, and tests.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/lockelee1015/claude-code-chat-intellij/project-structure
Clone the repo
git clone --depth 1 https://github.com/lockelee1015/claude-code-chat-intellij

Made for: Cursor.

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 project-structure

README.md
[![agentmods](https://agentmods.dev/badge/rules/lockelee1015/claude-code-chat-intellij/project-structure.svg)](https://agentmods.dev/rules/lockelee1015/claude-code-chat-intellij/project-structure)
Your own site
<a href="https://agentmods.dev/rules/lockelee1015/claude-code-chat-intellij/project-structure"><img src="https://agentmods.dev/badge/rules/lockelee1015/claude-code-chat-intellij/project-structure.svg" alt="Measured on agentmods" height="20"></a>
Per session 524 This file is loaded in full into every session.
When invoked 524 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00524 $0.00524
Opus 5 $0.00262 $0.00262
Sonnet 5 $0.00105 $0.00105
Haiku 4.5 $0.00052 $0.00052

Measured 5d ago against content hash dec2b52c5bcd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

project-structure 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 5d 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.

.cursor/rules/project-structure.mdc · 39 lines

What it actually says

项目结构与关键入口

目录速览

```text
src/
  main/
    kotlin/com/claudecodechat/...    # Kotlin 源码
    resources/META-INF/plugin.xml     # 插件声明与扩展点
  test/kotlin/com/claudecodechat/... # 测试
build/idea-sandbox/...                # 运行插件的沙箱
```

导航提示

  • 插件扩展点、动作与工具窗均在 plugin.xml 中声明,并与对应 *.kt 类绑定。
  • ClaudeChatSimpleToolWindowFactory.kt 是工具窗入口,动作类位于 actions/ 目录。
  • 若需要排查 UI 行为,先看 plugin.xml 的扩展点,再跳转到对应 Kotlin 类。
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. 5d ago First seen · 39 lines · 524 tokens per session scan A dec2b52c5bcd

Subscribe to this mod's changes

project-structure is a cursor rule published in the GitHub repository lockelee1015/claude-code-chat-intellij (4 stars, last pushed 12mo ago), licensed MIT. It adds 524 tokens to every session, about $0.0026 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.