/sumsec-skills:semantic-analyzerfrom sumsec-skills
Performs deep semantic analysis of instructions to detect wide-boundary wording, stacking risks, and terms missed by fixed lexicons. Scores terms across four dimensions and suggests narrower alternatives.
Ships in sumsec-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
利用 Claude 对语义的模型侧推理,对 Skill / Prompt / Agent 指令做第三层审阅:找出词典未收录、仍可能拉宽输出边界的用词与句式。
| 层级 | 机制 | 速度 | 覆盖面 |
|---|---|---|---|
| 第 1 层:词典匹配 | Hook,已知词对 | 毫秒级 | 固定 |
| 第 2 层:结构规则 | Hook,固定模式 | 毫秒级 | 固定 |
| 第 3 层:语义深检 | 本 Skill,按需 | 秒级 | 动态 |
Hook 覆盖已入库的 wide 词;本 Skill 补未入库项与语境叠加。
plugin/skills/ 下 Markdown 跑 linter。references/semantic-trap-lexicon.md → npm run build-lexicon → npm test;禁止把 lexicon-data.js 当手写主路径。require('./lib/lexicon-data.js') 的 wideWordsZh / wideWordsEn(或 zhPairs / enPairs)为准做去重。原理:满足特征越多,边界越宽,越易突破 Prompt 约束。
const lex = require('./lib/lexicon-data.js')lex.wideWordsZh、lex.wideWordsEn 判断某 surface 是否已登记为 wide;已登记则本层不再重复展开(Hook 已覆盖)。对每句有实质内容的正文(跳过标题、代码块、空行):
2a. 提取关键词:动作指令词、目标对象词、约束修饰词、输出形态词。
2b. 四维评分(0–3 / 维):
词汇: "优化"
┌──────────────┬───────┬──────────────────────────────────┐
│ 特征维度 │ 评分 │ 判定理由 │
├──────────────┼───────┼──────────────────────────────────┤
│ 程度性 │ 3/3 │ 优化是连续性的,没有明确终点 │
│ 展望性 │ 2/3 │ 隐含"变得更好"的未来预期 │
│ 主观评价性 │ 3/3 │ "更好"的标准因人/场景而异 │
│ 关联松散度 │ 3/3 │ 性能/可读性/架构/安全均可被优化 │
├──────────────┼───────┼──────────────────────────────────┤
│ 总分 │ 11/12 │ → 高危陷阱词 │
└──────────────┴───────┴──────────────────────────────────┘
2c. 排除已知 wide:见 STEP 1。
2d. 收窄方案:对总分 ≥ 5 的词给出更窄、可执行、同句可替换的表述。
不要忽略任何潜在风险 → 模型为「不忽略」反而扩联想(示例仅在行内代码中展示,避免 linter 误报)。按 references/report-template.md 的 Markdown 骨架输出,把占位符与示例换成真实结论。
对照下列类型(输出不必照抄英文词表):
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (summersec/sumsec-skills) — no native marketplace selected
npx claudepluginhub p/summersec-sumsec20 skills in this plugin
/agent-chat-history按 YYYY-MM-DD 在 Windows/macOS/Linux 检索本机聊天与 Agent 会话历史(Claude Code 项目 jsonl、Codex CLI history.jsonl、Cursor workspaceStorage 与 state.vscdb);可只导出用户提示词。用户要查看或导出某日记录、按天筛 jsonl/SQLite、只抽提示词、排查历史丢失或做只读审计时使用。/claude-agents-symlink将项目根目录的 Claude 记忆文件统一为指向根目录 AGENTS 文件的软链接。用于用户要求把 `CLAUDE.md` 或 `claude.md` 指向 `AGENTS.md` 或 `agents.md`、希望批量统一多个项目的根目录记忆文件,或需要兼容 Windows、macOS、Linux 的跨平台软链接处理流程时。/context7-cliUse the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7", needs current docs for any library, wants to install/search/generate skills, or needs to set up Context7 for their AI coding agent./context7-mcpThis skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc./eli5-zh按指定听众的背景、词汇和兴趣,把任意主题、代码、概念或报错讲清楚。 用户说 ELI5、eli5、讲人话、说人话、通俗解释、用小学生能听懂的方式、给五岁小孩讲、 讲给我妈听、跟老板解释、解释给经理、讲给非技术人员听、dumb it down、explain like I am、 explain this to my、break this down for、simplify this for 时使用本 skill。 给特定角色或关系解释时也要触发:领导、老板、产品经理、设计师、工程师、父母、对象、 同事、客户、面试官、大学生、初中生、高中生。即便只是「跟我老婆解释一下」或「告诉老板」也应触发。
/find-docsRetrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the user asks about a specific library, framework, SDK, CLI tool, or cloud service — even for well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. Your training data may not reflect recent API changes or version updates.
Always use for: API syntax questions, configuration options, version migration issues, "how do I" questions mentioning a library name, debugging that involves library-specific behavior, setup instructions, and CLI tool usage.
Use even when you think you know the answer — do not rely on training data for API details, signatures, or configuration options as they are frequently outdated. Always verify against current docs. Prefer this over web search for library documentation and API details.2 plugins in one repository ship this exact skill · first indexed Aug 12, 2026