spk-doctrine-semantic-compression

spk-doctrine-semantic-compression is a skill for Claude Code, Codex from Priivacy-ai/spec-kitty. It costs 25 tokens per session (185 once invoked), scanned A, original, MIT.

A code-reduction workflow based on Randy Reducer and semantic compression, a method for simplifying code while preserving its behaviour.

In plain words
What is it for?
Use it when simplifying, deduplicating, deleting unused code, or refactoring existing behaviour, provided the behaviour can be verified.
Why use it?
It helps remove dead code, duplication, and competing implementations without accidentally changing protected behaviour.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when simplifying, deduplicating, deleting unused code, or refactoring existing behaviour, provided the behaviour can be verified.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/priivacy-ai/spec-kitty/spk-doctrine-semantic-compression
About the project

Spec Kitty is an open-source command-line tool that turns product requirements into a repository-based workflow for AI-assisted software development. It stores specifications, plans, tasks, acceptance criteria, reviews, and merge decisions in Git while giving agents isolated git worktrees for parallel implementation. The catalogue add-ons support the project's workflows for coordinating agents and governing their work.

Priivacy-ai/spec-kitty · 1,603 stars · on GitHub · spec-kitty.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Priivacy-ai/spec-kitty --skill spk-doctrine-semantic-compression
Clone the repo
git clone --depth 1 https://github.com/Priivacy-ai/spec-kitty

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spk-doctrine-semantic-compression

README.md
[![agentmods](https://agentmods.dev/badge/skills/priivacy-ai/spec-kitty/spk-doctrine-semantic-compression/github.svg)](https://agentmods.dev/skills/priivacy-ai/spec-kitty/spk-doctrine-semantic-compression)
Your own site
<a href="https://agentmods.dev/skills/priivacy-ai/spec-kitty/spk-doctrine-semantic-compression"><img src="https://agentmods.dev/badge/skills/priivacy-ai/spec-kitty/spk-doctrine-semantic-compression/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spk-doctrine-semantic-compression

Your own site · 80×15
<a href="https://agentmods.dev/skills/priivacy-ai/spec-kitty/spk-doctrine-semantic-compression"><img src="https://agentmods.dev/badge/skills/priivacy-ai/spec-kitty/spk-doctrine-semantic-compression.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 185 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00185
Opus 5 $0.00013 $0.00093
Sonnet 5 $0.00005 $0.00037
Haiku 4.5 $0.00003 $0.00018

Measured 11d ago against content hash 396e0c56e4ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

spk-doctrine-semantic-compression scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/charter/offering/skills/spk-doctrine-semantic-compression/SKILL.md · 26 lines

What it actually says

spk-doctrine-semantic-compression

Use this skill when the user asks to reduce, simplify, deduplicate, delete dead code, or refactor while preserving existing behavior.

Flow

  1. Load agent profile randy-reducer.
  2. Load paradigm semantic-compression.
  3. Map the behavioral envelope before editing.
  4. Find exact, parameterized, structural, and semantic redundancy.
  5. Extract one implementation per concept or delete proven dead weight.
  6. Consolidate competing behavioral paths behind one canonical owner.
  7. Verify equivalence and report evidence plus residual risk.

Stop Conditions

  • Protected behavior is unknown.
  • Verification evidence is unavailable for non-trivial deletion.
  • The request is actually feature expansion, not reduction.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 26 lines · 25 tokens per session scan A 396e0c56e4ad

Subscribe to this mod's changes

spk-doctrine-semantic-compression is a skill published in the GitHub repository Priivacy-ai/spec-kitty (1,603 stars, last pushed 4d ago), licensed MIT. It adds 25 tokens to every session and 185 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

clarity-over-cleverness

Apply clarity-over-cleverness rewrites — prefer code a junior engineer can read at a glance over compact-but-clever code. Use during /build's simplify step and during /code-simplify (alias "simplify the code"). Never weakens behavior; suite must remain green.

loiane/specs-driven-development-spring-angular · 68 tokens

spring-code-review-rubric

Pre-commit code review rubric for Spring Boot 4 changes. Used by spring-code-reviewer to produce 08-code-review.md before any commit. Covers traceability, architecture, Spring idioms, error handling, data access, security, test quality, clarity, and migration.

loiane/specs-driven-development-spring-angular · 66 tokens

6_gofer_validate

Validate implementation with 10-category engineering rubric (100 points).

eai-support/eai-gofer · 17 tokens

enforcement-audit

Run a compliance audit against a technology instruction file, detecting discrepancies, planning workstreams, implementing fixes, and validating quality gates.

stefaniuk/loadout · 30 tokens

spec-to-code-compliance

Check code against the documentation that specifies it - which requirements hold, which the code contradicts, which are absent, and what the code does that no document mentions. Use when comparing an implementation against a whitepaper, protocol spec, or design document.

stefaniuk/loadout · 56 tokens

code-review

Run a structured Spec Kit review focused on code compliance, documentation quality, or test coverage, positioned within the spec-driven development pipeline.

stefaniuk/loadout · 29 tokens