360 Secure SkillHub
360 安全技能中心

Workspace Context Linter

核心功能:加载工作区AGENTS.md、SOUL.md等核心上下文文件,总结文件角色,检测重复规则、过重章节、错位内容,生成含优先级及优化建议的文本报告。典型场景:减少上下文冗余、审计文件匹配度、重构文件前使用。支持通过脚本指定范围/路径输出报告,仅诊断不自动编辑。

lethehades
lethehades
热度 51.56
最近更新 2026-05-11 17:30:20
分类:效率依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:摘要总结 / 校对润色 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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.