signal-compress
/signal-compress
Kompresuje pliki pamięci, prompty, reguły, notatki przekazania i dokumenty projektu do tekstu w kształcie SIGNAL oszczędzającego tokeny, z zachowaniem kodu, ścieżek, identyfikatorów, błędów i wersji.
- Autor
- mattbaconz ↗
- Repozytorium
- signal ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 17.06.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 17.06.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Kompresuje pliki pamięci, prompty, reguły, notatki przekazania i dokumenty projektu do tekstu w kształcie SIGNAL oszczędzającego tokeny, z zachowaniem kodu, ścieżek, identyfikatorów, błędów i wersji.
Wyzwalacze z opisu
Oryginalny opis (EN)
Compress memory files, prompts, rules, handoff notes, and project docs into SIGNAL-shaped prompt-token-friendly text while preserving code, paths, identifiers, errors, versions, and technical terms. Use when user types /signal-compress, "compress this memory", "shrink this prompt", "compress project rules", or asks to reduce input/prompt tokens.
Jak działa
- Invocation Triggers
- Behavior
- Output Rules
- Fidelity Gate
- Related
Podgląd SKILL.md
---
name: signal-compress
description: >
Compress memory files, prompts, rules, handoff notes, and project docs into
SIGNAL-shaped prompt-token-friendly text while preserving code, paths,
identifiers, errors, versions, and technical terms. Use when user types
/signal-compress, "compress this memory", "shrink this prompt", "compress
project rules", or asks to reduce input/prompt tokens.
signal_bundle_version: "0.4.0"
---
# ⚡ signal-compress — Input Compression
Reduce prompt tokens before the agent reads the same prose every turn. Preserve technical substance; compress prose only.
---
## Invocation Triggers
Activate when user says any of:
- `/signal-compress`
- `"compress this memory"`, `"shrink this prompt"`, `"compress project rules"`
- `"compress CLAUDE.md"`, `"compress GEMINI.md"`, `"compress AGENTS.md"`
- `"reduce input tokens"`, `"make this rules file shorter"`
Targets can be memory files, project rules, prompts, handoff notes, README-like prose, or pasted text.
---
## Behavior
1. **Back up first** when a file path is provided:
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\signal-compress.ps1 -Path .\GEMINI.md
```
The helper only creates `<name>.original.<ext>` and prints the prompt/review steps.
2. **Compress prose only** using [`templates/signal-compress-prompt.md`](../templates/signal-compress-prompt.md).
3. **Protect exact tokens**:
- Fenced code blocks and shell commands
- Inline code, file paths, line numbers, URLs
- Quoted errors, stack traces, logs
- Version numbers, dates, identifiers, flags, env vars
- Technical terms and proper nouns
4. **Diff review** against the original. Reject the rewrite if protected tokens changed, facts disappeared, or instructions became ambiguous.
5. **Report measured savings** with this shape:
```text
signal-compress|target=GEMINI.md|chars 2400→980|est_tok 600→245|save 59%|fidelity pass
```
---
## Output Rules
When returning compressed text, output only the compressed file contents. No preamble, no summary, no wrapper fence.
When reporting a completed file workflow, use one line:
```text
signal-compress|target={path}|chars {old}→{new}|est_tok {old}→{new}|save {pct}%|fidelity {pass|fail}
```
If compression is unsafe:
```text
SIGNAL_DRIFT: <one-line reason>
```
---
## Fidelity Gate
A compression win counts only when:
- Every protected token is unchanged.
- All actionable instructions remain present.
- Headings stay navigable.
- Any code, paths, flags, errors, and version numbers remain verbatim.
- The compressed file can replace the original without changing agent behavior.
---
## Related
- [`docs/signal-compress.md`](../docs/signal-compress.md)
- [`docs/benchmark-methodology.md`](../docs/benchmark-methodology.md)
- [`scripts/signal-compress.ps1`](../scripts/signal-compress.ps1)
Pliki w paczce (2)
- SKILL.md 3 KB
- SKILL.min.md 1 KB
Wersje
W bazie nie ma innych skilli o nazwie signal-compress.
Identyczna treść występuje jeszcze w 2 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 28.10.2026 · wersja paczki 5c8d2f440d45 (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100text-optimize
Skraca pliki CLAUDE.md, reguły i pliki agentów pod kątem tokenów, zachowując wszystkie fakty i tworząc kopię zapasową. - 100prompt-enhance
Ulepsza, kompresuje lub rozszerza prompty, dokumenty i skille z opcją --op=compress, expand lub enhance. - 100prompt-enhance
Ulepsza, kompresuje lub rozszerza prompty, dokumenty i skille z opcją --op=compress, expand lub enhance. - 100text-optimize
Skraca pliki AGENTS.md, reguły i pliki agentów pod kątem tokenów, zachowując fakty i tworząc kopię zapasową przed zmianą. - 100compress-prompt
Kompresuje artefakty promptów Rosetta KB (skill, workflow, faza, reguła, agent, szablon), usuwając tautologię strukturalną i zachowując wszystkie istotne tokeny. - 100markdown-compression
Kompresuje pliki Markdown przeznaczone dla modeli, takie jak CLAUDE.md i ARCHITECTURE.md, zmniejszając zużycie tokenów przez bezstratną optymalizację struktury i stratną kompresję semantyczną sekcja po sekcji.