360 Secure SkillHub
360 安全技能中心

LLMCOM Prompt Compression

自包含的提示词压缩 Skill,给出删除填充词、缩写术语以及管道分隔输出格式等规则,用于在向 Claude Code CLI、Cursor agent 或 LLM API 提交提示词前手动精简文本,示例宣称可减少约 45% token;不包含可执行代码或自动集成。

shalinda-j
shalinda-j
热度 54.71
最近更新 2026-05-11 17:43:10
分类:效率依赖:纯提示词应用场景:模板 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add llmcom
Metadata
name
llmcom
description
Compress prompts for Claude Code and Cursor CLI. Reduces tokens by removing filler words and abbreviating terms. Self-contained, no external dependencies required.

LLMCOM Prompt Compression

Self-contained prompt compression tool. No installation required - just read this skill and apply the compression rules.

Compression Rules

  1. Remove filler words: the, a, an, is, are, with, of, to, in, on, at, and, for, that, this

  2. Abbreviate terms:

    • refactor -> refac
    • review -> rev
    • function -> func
    • security -> sec
    • performance -> perf
    • module -> mod
    • component -> comp
    • authentication -> auth
    • implementation -> impl
  3. Output format for Claude Code: agent[task]|scope|focus|action|context|constraints

Example

Input: "Refactor the authentication module to improve type security"

Output: agent[refac]|mod|sec|review|@src|strict

Stats: 11 -> 6 tokens (45% reduction)

How to Use

Apply these rules manually when writing prompts for Claude Code CLI or Cursor agent.

  1. Identify task type: refactor, review, fix, test, audit
  2. Remove filler words
  3. Abbreviate key terms
  4. Format as pipe-separated values

Quick Reference

Task Format
Refactor agent[refac]
Security audit agent[audit]
Bug fix agent[fix]
Test coverage agent[test]

Integration

Use before sending prompts to:

  • Claude Code CLI (gent command)
  • Cursor agent
  • Any LLM API to reduce token costs