skill-token-refactor

Refactor Markdown Skill instructions into token-efficient, machine-readable packages.

Updated Jun 1, 2026
One-click install
npx skills add https://github.com/aurora-atoms/lattice --skill skill-token-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-token-refactor
Source: https://github.com/aurora-atoms/lattice/tree/main/skills/skill-token-refactor
Command: npx skills add https://github.com/aurora-atoms/lattice --skill skill-token-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and schemas (resource) and evals (resource) components.

What problem does it solve?

This Skill addresses the challenge of bloated or inefficient Skill documentation by restructuring and compressing instructions into dense, machine-readable formats that maximize token efficiency while preserving behavioral integrity.

Core Features & Use Cases

  • Structural Optimization: Automatically classifies content into scripts, references, schemas, or evals to reduce SKILL.md noise.
  • Behavior Preservation: Ensures that safety rules, stop conditions, and failure modes remain intact during the refactoring process.
  • Use Case: Use this Skill to refactor a legacy, verbose Skill package into a modern, high-ROI format that is easier for agents to parse and execute reliably.

Quick Start

Use the skill-token-refactor skill to optimize the instructions located in the current directory while maintaining all existing safety constraints.

Frequently Asked Questions about skill-token-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor markdown instructions for token optimization?

To refactor markdown instructions for token optimization, you compress existing Skill documentation into dense, machine-readable packages. This restructuring maximizes token efficiency while preserving behavioral integrity and safety rules.

What is the best way to compress agent capability libraries without losing safety constraints?

Compressing agent capability libraries requires refactoring instructions into classified components like scripts and schemas. This structural optimization reduces noise while ensuring safety rules, stop conditions, and failure modes remain intact.

How does token-efficient refactoring preserve agent behavior?

Token-efficient refactoring preserves agent behavior by maintaining compliance with authoring contracts during the compression process. It ensures semantic versioning and rigorous validation of changed constraints so original execution logic is not altered.

Can I automate markdown refactoring for legacy skill packages?

Yes, you can automate markdown refactoring for legacy skill packages. The process automatically classifies content into scripts, references, schemas, or evals to transform verbose formats into modern, high-ROI packages.

Does refactoring instructions into machine-readable formats require specific dependencies?

Refactoring instructions into machine-readable formats requires no external dependencies. It operates directly on existing Markdown-based Skill instructions to validate changed constraints and enforce structured output.

When should I not use automated token optimization for agent instructions?

You should not use automated token optimization when your priority is human readability over machine parsing. The refactoring process deliberately packs instructions into dense formats, which increases structural density and reduces verbose explanations.