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,736 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.5 $0.00010 $0.00074
Sonnet 5.5 $0.00005 $0.00037
Haiku 4.5 $0.00003 $0.00018

Measured 3mo ago against content hash 396e0c56e4ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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,736 stars, last pushed 8d ago), licensed MIT. It adds 25 tokens to every session and 185 once invoked, about $0.0001 per session on Opus 5.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

spk-doctrine-semantic-compression compared with skills from other repositories

spk-doctrine-semantic-compression next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spk-doctrine-semantic-compressionPriivacy-ai/spec-kittySkill1.7k8d agoMITA25Claude Code, Codex
clarity-over-clevernessloiane/specs-driven-development-spring-angularSkill6623d agoMITA68Claude Code
spring-code-review-rubricloiane/specs-driven-development-spring-angularSkill6623d agoMITA66Claude Code
6_gofer_validateeai-support/eai-goferSkill18d agoApache-2.0A17Claude Code
enforcement-auditstefaniuk/loadoutSkill14d agoMITA30Claude Code
code-review-and-qualityGuillemRoca/agent-skills-androidSkill71mo agoMITA42Claude Code
code-simplificationGuillemRoca/agent-skills-androidSkill71mo agoMITA35Claude Code