All skills
harlan-zw avatar

/im-a-fly

@4d33e4d

Compress text for agents without losing substantial meaning. Use for Markdown files, agent instructions, documentation, and context that need fewer tokens while preserving facts, constraints, and usable structure.

  • 5 files
  • 22.4 KB
  • Updated 14 hours ago
  • GitHub
Use this Skill: https://skilld.dev/gh/harlan-zw/brundlefly/im-a-fly

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesresearch.md

≈1.4k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Research and design

Research reviewed on 2026-10-04. These sources motivate the design; they do not validate this skill.

Decision

Use conservative semantic rewriting with a bidirectional meaning audit for editable Markdown. Keep exact spans and structural relationships intact. Measure tokens with the intended reader's tokenizer. Accept smaller savings when further cuts change a fact, rule, or decision.

This recommendation is an engineering inference from the research and the skill's requirements. No cited study establishes a universally best compressor for arbitrary Markdown instructions.

Evidence

Token deletion

LLMLingua, EMNLP 2023 combines budget allocation, iterative token removal, and model alignment. It demonstrates useful compression on selected benchmarks. Its reported ratios are not promises for instruction files.

LLMLingua-2, ACL Findings 2024 learns token retention using bidirectional context. The authors identify limitations of information entropy as a proxy for information importance. The method improves benchmark performance and efficiency relative to earlier approaches. Token retention still requires task-specific evaluation when exact constraints matter.

Implication: word rarity or perplexity alone is insufficient justification for deleting a rule or qualifier. Do not require a trained compressor for this portable Markdown skill.

Semantic rewriting

Telegraph English, May 2026 preprint rewrites text into atomic facts and symbolic relationships. The authors report strong fact retention on question-answering benchmarks across several models. This supports investigating semantic rewriting rather than relying only on token deletion. Its reported results do not establish exact preservation of Markdown behavior or agent permissions.

Implication: adopt compact fact and rule lines, while retaining plain connective words. A symbol grammar adds decoding overhead and another dependency on the reader's interpretation. The conservative default omits that grammar. This choice is an inference, not a proven superiority claim.

Preservation and behavior

Understanding and Improving Information Preservation, EMNLP Findings 2025 evaluates compression beyond its ratio. Its framework separates downstream performance, grounding, and information preservation. Implication: a smaller document or a correct answer to one question cannot prove complete preservation.

Separating Constraint Compliance from Semantic Accuracy, December 2025 preprint evaluates those dimensions separately. It reports different effects of compression on constraint compliance and semantic accuracy in its experimental setup. Treat its conclusions as provisional. Do not generalize its numerical results to this skill. Implication: verify allowed actions, exceptions, and obligations separately from factual answers.

Context organization

Lost in the Middle, TACL 2024 reports positional sensitivity in long-context retrieval tasks. Its results concern the evaluated models and tasks, not every current agent. Implication: keep related conditions and actions together. Preserve usable headings and procedure order. It does not justify moving linked headings or deleting facts in the middle of a document.

Token measurement and packaging

tiktoken uses model-specific byte-pair encodings. Character count is not a substitute for token count. A rewrite's savings depend on the encoding. Use the target tokenizer when available; label another encoding as a proxy.

The Agent Skills specification supports progressive disclosure through bundled references. Keep the core instructions short and load detailed checks or research only when needed.

Alternatives

Method Fit for editable Markdown Main limitation
Conservative semantic rewriting Default for portable files and instructions Requires careful meaning review; modest savings on dense input
Learned token deletion Optional for a measured inference pipeline Model dependencies; deletion can damage relationships and exact spans
Symbolic rewriting Experimental when the reader supports the grammar Grammar overhead; Markdown and instruction behavior need separate evaluation
Query-based extraction Suitable when the user permits a focused summary Drops content outside the query; cannot satisfy full preservation
Soft prompts or cache compression Suitable within compatible model infrastructure Does not produce a portable Markdown replacement

Evaluation limits

The worked examples are review fixtures, not independent model trials. Do not reuse a paper's compression ratio as this skill's performance claim. Before making comparative claims, test unseen documents with the intended reader models. Include dense files, long procedures, exceptions, multilingual text, and protected Markdown constructs. Score factual answers, instruction decisions, unsupported additions, structural integrity, and measured token reduction separately. Any material omission or changed obligation fails acceptance, regardless of savings.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 4d33e4d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 9 hours ago.

Activeupdated 14 hours ago

README badge

README badge for harlan-zw/brundlefly/im-a-fly