360 Secure SkillHub
360 安全技能中心

Workspace Context Linter

该 Skill 用于审计始终加载的核心工作区上下文文件(AGENTS.md、SOUL.md、USER.md、MEMORY.md、TOOLS.md),识别重复规则、过重章节与放错位置的内容,并输出带优先级和建议移动项的文本报告。它偏向诊断而非自动改写,并附带规则、报告格式、文件角色与移动指南等参考文档及 Python 检查脚本。

分类:知识
lethehades
lethehades
热度 36.00
最近更新 2026-05-11 17:30:20

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add lethehades/workspace-context-linter
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
workspace-context-linter
description
Diagnose always-loaded workspace context files such as AGENTS.md, SOUL.md, USER.md, MEMORY.md, and TOOLS.md. Use when you want to reduce context bloat, detect duplicated rules, spot misplaced content, identify overweight sections, or audit whether core context files still match their intended roles before reorganizing them.

Workspace Context Linter

Audit core workspace context files without rewriting them.

Core workflow

  1. Load the core context files that exist.
  2. Summarize each file's likely role.
  3. Detect duplicate rule themes, overweight sections, and misplaced content.
  4. Produce a text report with priorities and suggested moves.

Read references as needed

  • Read references/rules.md for the lint categories and severity model.
  • Read references/report-format.md for the output structure.
  • Read references/file-roles.md for what each core context file should usually contain.
  • Read references/move-guidelines.md when deciding where content should move.
  • Read references/release-minimal.md before packaging or publishing so the first public surface stays minimal.

Use scripts as needed

  • Use scripts/context_linter.py [--scope core|core+memory|custom] [--paths ...] [--output report.txt] to run the linter.

Operating rules

  • Prefer diagnosis over auto-editing.
  • Treat duplicates as a maintenance problem unless they create real execution ambiguity.
  • Treat overweight sections as candidates for extraction, not automatic deletion.
  • Keep the first version focused on core context files and text reports.