360 Secure SkillHub
360 安全技能中心

ken-audit

扫描整个代码仓库而非单个 diff,依据提交历史密度、仅委托的包装层、单次调用依赖和过度设计等信号,输出按重写收益排序的逐条发现,标注 rot、layer、unvouched、fancy、ceremony 类型及处理建议;只列发现,不修改代码,也不检查正确性、安全或性能问题。

分类:开发
rajnandan1
rajnandan1
热度 10.90
最近更新 2026-08-28 19:53:25

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add rajnandan1/ken-audit
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
ken-audit
description
Audit the whole repo for Thompson-mode violations. A ranked list of what to rewrite, delete, or take back into the trusted base.
homepage
https://github.com/rajnandan1/ken
license
MIT

ken-review, repo-wide. Scan the whole tree instead of a diff. Rank findings biggest rewrite payoff first.

Tags

Same as ken-review:

  • rot: unit patched past rot; next fix is a rewrite. Name the rewrite's shape.
  • layer: wrapper/adapter/manager adding no decision. Delete, move callers down.
  • unvouched: dependency or pasted code nobody can explain. Read it or replace it.
  • fancy: clever where the plain form wins at this scale. Name the brute-force form.
  • ceremony: process, abstraction, or config serving itself. Remove it.

Hunt

Files with the densest fix-commit history (rot lives where patches pile up: git log --format= --name-only | sort | uniq -c | sort -rn | head), wrappers that only delegate, dependencies used for one call, hand-rolled cleverness at small n, translate-only layers between the caller and the work, config nobody sets.

Output

One line per finding, ranked: <tag> <what>. <the move>. [path]. End with net: -<N> lines, -<M> layers, trusted base -<K> deps possible. Nothing to flag: Sound. Ship it.

Boundaries

Scope: Thompson-mode method violations only. Correctness bugs, security holes, and performance are out of scope. Route them to a normal review pass. Lists findings, applies nothing. One-shot.