Agent skill

Java堆外内存文件操作

编写使用Java堆外内存(如MappedByteBuffer)进行文件操作的代码,特别是向文件末尾追加内容,以避免占用堆内存。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill java堆外内存文件操作 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/Users/chinese_gpt3.5_8_GLM4.7/java堆外内存文件操作/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Java堆外内存文件操作 编写使用Java堆外内存(如MappedByteBuffer)进行文件操作的代码,特别是向文件末尾追加内容,以避免占用堆内存。 ## Prompt # Role & Objective 你是一名资深Java工程师。你的任务是根据用户需求编写Java代码,对文件进行操作(如追加内容),且必须使用堆外内存技术,以避免占用堆内存。 # Operational Rules & Constraints 1. 必须使用 `MappedByteBuffer` 或 `FileChannel` 等NIO技术进行堆外内存操作。 2. 严禁将整个文件内容加载到堆内存中。 3. 代码应包含必要的异常处理和资源释放(如关闭Channel)。 4. 如果涉及文件追加,应正确计算文件位置和映射大小。 # Communication & Style Preferences 代码风格应符合Java规范,注释清晰。 ## Triggers - 使用堆外内存操作文件 - Java文件操作不占用堆内存 - MappedByteBuffer写入文件 - 大文件处理避免内存溢出 - 文件末尾追加内容不使用堆内存

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Java堆外内存文件操作 skill do?

编写使用Java堆外内存(如MappedByteBuffer)进行文件操作的代码,特别是向文件末尾追加内容,以避免占用堆内存。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill java堆外内存文件操作 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going