/sumsec-skills:semantic-linter-shotfrom sumsec-skills
Quickly scans LLM instruction files for semantic trap words (wide-boundary vocabulary). Provides a reference card with narrow replacements. Use when asked to 'quick scan', 'trap check', or 'check wording'.
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.
None: SKILL.md is the whole skill.
A concentrated, single-file reference for detecting semantic trap words in LLM instruction files. No plugin installation required — just read and apply.
本文件中的表格是便携速查。权威词表、严重等级与失控场景说明以仓库内 references/semantic-trap-lexicon.md 为准;安装完整插件时,运行时数据由 npm run build-lexicon 从该 MD 生成 lib/lexicon-data.js。若速查表与 MD 不一致,以 MD / 生成结果为准。
Semantic trap words are vocabulary with wide semantic boundaries that cause LLMs to produce outputs far beyond intended scope. Empirical note (see linked article in repo README): swapping a narrow defect-focused noun for a broad finance-adjacent noun in an otherwise identical Skill can materially reduce task accuracy.
Core principle: Replace wide-boundary words with narrow-boundary alternatives to constrain LLM output.
以下宽词表为速查对照;为免在本仓库触发 linter,表体放在围栏块内(阅读时照常查看即可)。
| ID | Trap Word (Wide) | Replacement (Narrow) | Severity | Why It's Dangerous |
|----|-------------------|----------------------|----------|-------------------|
| T01 | 风险 | 漏洞 | critical | Activates finance/health/legal associations |
| T02 | 审查 | 检查 | high | Triggers subjective evaluation |
| T03 | 描述 | 列出 | high | Triggers explanatory prose |
| T04 | 问题 | 缺陷 | high | Extremely wide scope |
| T05 | 分析 | 总结 | medium-high | Triggers inference and hypothesis |
| T06 | 建议 | 要求 | medium-high | Triggers divergent thinking |
| T07 | 异常 | 错误 | medium | Fuzzy boundary |
| T08 | 改善 | 修复 | high | Triggers optimization suggestions |
| T09 | 参考 | 遵循 | medium-high | Implies flexibility |
| T10 | 评估 | 统计 | high | Triggers subjective judgment |
| T11 | 理解 | 提取 | high | Triggers inference |
| T12 | 关联 | 匹配 | medium | Triggers indirect reasoning |
| T13 | 转化 | 复制 | medium-high | Implies modification allowed |
| T14 | 洞察 | 报告 | high | Triggers creative inference |
| T15 | 评价 | 验证 | medium-high | Triggers subjective scoring |
| T16 | 原则 | 规则 | medium | Implies flexibility |
| T17 | 方法 | 步骤 | medium | Implies choice of paths |
| ID | Trap Word (Wide) | Replacement (Narrow) | Severity | Why It's Dangerous |
|----|-------------------|----------------------|----------|-------------------|
| E01 | Risk | Vulnerability | critical | Same as T01 |
| E02 | Review / Audit | Check | high | Triggers comprehensive evaluation |
| E03 | Describe / Explain | List | high | Triggers narrative expansion |
| E04 | Issue / Problem | Bug / Defect | high | Overly broad coverage |
| E05 | Analyze / Assess | Summarize | medium-high | Triggers deep reasoning |
| E06 | Suggestion / Recommendation | Requirement | medium-high | Triggers divergent thinking |
| E07 | Anomaly / Concern | Error | medium | Nearly boundless scope |
| E08 | Interpret | Extract | high | Triggers subjective interpretation |
| E09 | Evaluate / Judge | Verify | medium-high | Triggers multi-dimensional evaluation |
| E10 | Should / Could | Must / Shall | medium-high | Implies optional, not mandatory |
Beyond individual words, watch for these 4 patterns:
1. Open-Ended Verbs: verb + object without scope → add explicit dimensions or defect types.
2. Abstract Targets: vague safety/quality goals → replace with checkable criteria per endpoint.
3. Modal Downgrades: weak modals in constraints → use mandatory wording where rules must hold.
4. Missing Negation Lists: high-severity wide words without exclusions → add an explicit NOT-in-scope list.
When writing or editing instruction files (.md files in /skills/, /agents/, /rules/, /prompts/):
For automated detection with Pre/Post hooks, CLI scanning, escalation tracking, and deep semantic analysis, install the full semantic-linter plugin.
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins in one repository ship this exact skill · first indexed Aug 12, 2026
Other plugins' skills for the same job
20 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.Generated from the plugin's indexed repository (summersec/sumsec-skills) — no native marketplace selected
npx claudepluginhub p/summersec-sumsec