SkillsReviewed · kenryu42

CCSN Find Simplifications

CCSN Find Simplifications is an AI assistant skill for finding code that can be removed or merged in CC Safety Net, a security hook that analyses shell commands and blocks recognisably destructive ones. It depends heavily on that repository's documentation and safety contracts. It guides reviews of unused code, structural duplication and unnecessary complexity, requiring evidence and explicit trade-offs before recommending changes.

Researched 15 Nov 2026

In short.

CCSN Find Simplifications guides reviews for code that can be removed or merged in CC Safety Net, a security hook that analyses shell commands and blocks recognisably destructive ones. Its review rules are tightly tied to that repository. It directs the assistant to trace consumers, distinguish unnecessary complexity from required protections, and report proposed simplifications with evidence, counterarguments and affected contracts. The supplied files establish a detailed review method; execution, host compatibility and the quality of resulting findings have not been assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises the complete supplied skill folder at commit 1cc15d00a34e8a81fecb50bd4a5900b62ee1ad2b: .agents/skills/ccsn-find-simplifications/SKILL.md and agents/openai.yaml, plus the repository-root LICENSE notice. Referenced repository instructions, security contracts, source code, fixtures, workflows and validation tools are outside the supplied content. Installation, invocation behavior, generated findings, implementation changes and validation outcomes remain unassessed.

The overview

identity

The resource is the ccsn-find-simplifications skill in kenryu42/cc-safety-net. Its folder contains SKILL.md and agents/openai.yaml; the latter supplies the display name CCSN Find Simplifications and an invocation policy. The folder provides assistant instructions and metadata rather than a standalone analysis program.

CC Safety Net is a security hook that analyses shell commands and blocks recognisably destructive ones. This description is inferred from the skill text; the evidence does not describe the parent product beyond what that text implies.

The original source folder is [https://github.com/kenryu42/cc-safety-net/tree/main/.agents/skills/ccsn-find-simplifications]. The supplied snapshot is pinned to commit 1cc15d00a34e8a81fecb50bd4a5900b62ee1ad2b.

assessment

The skill is a strong conceptual fit for a maintainer who wants fewer, better-supported simplification proposals. It requires each candidate to identify a concrete maintenance cost, demonstrate consumers or their absence, acknowledge the strongest counterargument, and describe affected tests and contracts.

Its usefulness depends on access to the surrounding repository and an assistant capable of careful source investigation. The supplied material contains no completed survey, measured accuracy or demonstrated time savings, so practical effectiveness remains unknown.

users

The intended users are CC Safety Net's maintainer or anyone working in that repository to investigate unnecessary code across its parser, analyzer, guards, policy, rules manager, audit log, integrations, CLI and GUI. Experienced developers can use its detailed distinctions between internal implementation, public interfaces and security guarantees.

The guidance covers why apparently unused code may still matter, including dynamic dispatch, public exports and security fixtures. It assumes familiarity with the repository's behavior modes and contracts and is not beginner teaching material or a general introduction to refactoring.

capabilities

The instructions cover unused internal symbols, duplicated representations of facts, repeated integration logic, speculative abstractions, unnecessary validation between trusted modules, and behavior that exceeds the documented product contract. They also cover tests, scripts, build wiring and evaluation files.

The expected output identifies exact files and symbols, supporting searches and consumers, behavior given up, and the tests, documentation, fixtures or snapshots affected. A survey produces recommendations; implementation is reserved for a separate request. For broad surveys, the skill recommends dividing domains among parallel subagents.

Using it

requirements

The skill expects access to the CC Safety Net repository, including AGENTS.md, REVIEW.md and SECURITY.md. Reviews of parser, analyzer, guard and rule code also depend on docs/residual-risk.md; secret-protection reviews depend on docs/secret-protection-known-limitations.md. Those referenced documents are not supplied here.

Its investigation method uses ripgrep, Git's tracked-file inventory and call-site reading. Implemented changes require the repository's Bun-based validation command. No specific assistant model, host version, operating system or hardware requirement is established by the supplied files.

mechanism

The method starts with repository contracts, surveys production surfaces, then proves or rejects individual candidates. Searches include hidden directories, identifiers and wire-format strings because plugin manifests, workflows and string-based dispatch can contain real consumers. Published exports and documented configuration require stronger evidence than the absence of local callers.

The skill describes standard mode as protection against recognizable accidental destruction, while strict and paranoid modes fail closed by refusing uncertain inputs. It treats required fail-closed machinery, catastrophic protections and contractual refusal behavior as intentional. This distinction is central to avoiding proposals that simplify code by weakening promised protection.

setup

The supplied files do not document an installer command or supported import procedure. SKILL.md contains the review instructions, and agents/openai.yaml is optional metadata with a display name and a no-implicit-invocation policy. The offered copy is SKILL.md plus the licence notice; applying the instructions depends on access to the relevant repository context.

SKILL.md sets disable-model-invocation to true, and agents/openai.yaml sets allow_implicit_invocation to false. These settings indicate intended explicit invocation. Whether a particular assistant host recognizes and enforces them is unknown.

example

An illustrative request would ask for simplification candidates in src/core/shell without editing files. If a field in src/core/shell/model.ts appears unused, the prescribed review would search tracked production code, hidden integration wiring and serialized names, then read any consumers and relevant contract fixtures.

A resulting proposal would need to explain the field's maintenance cost, evidence for removal, the strongest reason to retain it, and affected behavior. A field supporting a required refusal or residual-risk fixture could be rejected as a candidate. This is a hypothetical application of the instructions, not an observed finding or test result.

Assessment & evidence

limitations

The skill depends on repository-specific judgments about intentional integrations, contract fixtures, dependency policy and acceptable residual risk. Without the referenced code and documents, those judgments cannot be independently confirmed or safely transferred to another project.

The supplied scope contains no executable scanner, demonstrated findings or validation results. Installation, execution, host integration and security effects have not been assessed. Even within its method, repository-local absence cannot establish that an external user does not depend on a public interface.

reasoning

The method's main strength is its treatment of absence as something to investigate carefully. It accounts for published entry points, workflows, hidden manifests and dynamic strings, and distinguishes incidental test usage from tests that express a product guarantee. These requirements are designed to reduce weak claims that code is unused.

The trade-off is investigative effort. Each proposal needs repository context and a defensible explanation of what changes. Requiring counterarguments and rejecting broad churn keeps attention on actual reductions in maintenance burden, although the supplied evidence does not establish how consistently an assistant follows these rules.

alternatives

The skill positions Knip as supporting evidence rather than sufficient proof: it notes production-mode analysis, intentional test-only symbols and dynamic consumers. It also states that the repository already uses jscpd for textual duplication, leaving structural duplication and contract interpretation as areas for deeper investigation.

A maintainer can perform the same searches and contract review manually. The resource adds a repeatable investigation and reporting structure. No comparative evaluation against manual review, other assistant skills or standalone analysis tools is supplied.

evidence

SKILL.md supplies the substantive procedure, boundaries, reporting format and validation instructions. Its pinned original is [https://raw.githubusercontent.com/kenryu42/cc-safety-net/1cc15d00a34e8a81fecb50bd4a5900b62ee1ad2b/.agents/skills/ccsn-find-simplifications/SKILL.md].

The companion metadata supplies the display name and explicit-invocation policy at [https://raw.githubusercontent.com/kenryu42/cc-safety-net/1cc15d00a34e8a81fecb50bd4a5900b62ee1ad2b/.agents/skills/ccsn-find-simplifications/agents/openai.yaml]. The root LICENSE supplies redistribution terms. These three files support conclusions about the written resource, not its execution or the correctness of the parent application's implementation.

Access & freshness

costs

Operating cost is unknown. The files name no assistant provider, model price, token budget, subscription requirement or measured review duration. Broad surveys may involve parallel subagents, but their usage and cost are not quantified.

A findings-only survey calls for no validation checks. Implemented candidates require bun run check once at the end, alongside applicable behavior evidence. The instructions provide no runtime or infrastructure-cost figures for that work.

rights

The supplied repository-root LICENSE is the MIT License, with copyright attributed to J Liew in 2026. It permits use, copying, modification, distribution, sublicensing and sale, subject to including the copyright and permission notice in copies or substantial portions. It provides the material without warranty.

The root LICENSE sits outside the selected skill-folder scope and is the only captured licence notice. No licence file or header was captured beside the skill folder. The root MIT licence is taken to cover the skill folder; any other terms, including package metadata or a per-folder licence, are unknown.

The original notice is available at [https://raw.githubusercontent.com/kenryu42/cc-safety-net/1cc15d00a34e8a81fecb50bd4a5900b62ee1ad2b/LICENSE]. Retain that notice with redistributed copies of the captured skill.

freshness

The supplied snapshot was captured on 15 November 2026 at 18:33:00.706 UTC and identifies source commit 1cc15d00a34e8a81fecb50bd4a5900b62ee1ad2b. That identifies the analyzed content; it does not establish the date the skill was last changed.

Whether the current main branch differs from this snapshot is unknown. Continued alignment between the skill's repository paths, mode descriptions and the surrounding code is also unassessed.

actions

For a first use, confirm that the assistant host supports the metadata, read the referenced repository contracts, and explicitly request a findings-only review of one subsystem. Require each proposal to include exact locations, consumer evidence, a concrete cost, the strongest counterargument and affected contracts.

If implementation follows, the skill prescribes the smallest change per candidate. Verdict or output changes require a failing contract row or assertion first; pure removals rely on unchanged behavior suites and a before-and-after explain diff. Its final validation instruction is bun run check once, with root-cause fixes for any resulting unused-code findings.

Evidence for this report

LICENSEnotice · checked 2026-11-15