ctx-ignore

仓库创建 2026年7月6日最近提交 23 天前SkillHot 收录 22 天前
▸ 精选理由

节省费用与上下文噪音,适合大代码库。

这个 Skill 做什么

为 AI 代理生成仓库忽略规则,避免读取噪声文件

为 AI 代理生成仓库忽略规则,告诉 agent 别去读 node_modules、锁文件、构建产物等噪声文件,避免浪费上下文和费用。会产出噪声优先级报告、注释版的 .contextignore,以及 .claudeignore/.cursorignore 等工具专用文件。适合新仓库上手或 agent 总是被生成代码干扰时使用。

▸ 展开 SKILL.md 英文原文

WHEN an agent keeps reading noise (node_modules, lockfiles, build output, generated code, fixtures) or a repo needs ignore files for AI tools. Triggers: 'generate a claudeignore', 'keep the agent out of X', 'my agent wastes context on generated files', 'set up ignore files', new repo onboarding. OUTPUT: a ranked noise report, an annotated .contextignore as source of truth, and tool-specific ignore files (.claudeignore, .cursorignore, .copilotignore, .windsurfignore). PAIR BEFORE: ctx-pack (exclude noise before assembling context). NOT FOR: choosing what to load for one task (use ctx-pack), .gitignore hygiene alone.

开发编程忽略文件上下文管理令牌优化通用
0
Stars
0
Forks
9
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/arniesaha/ctxops/main/skills/ctx-ignore/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/arniesaha/ctxops/main/skills/ctx-ignore/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# ctx-ignore

Decide what an agent should never read, once, instead of paying for the noise on every request. The other half of context assembly is context exclusion.

## Workflow

1. Walk the repo tree, respecting `.gitignore`. Note file sizes.
2. Categorize noise candidates against `patterns.md` in this skill's directory (dependencies, lockfiles, build output, generated code, binaries, test artifacts, IDE/OS noise). Red entries always exclude; yellow entries (test files, migrations) need user confirmation.
3. Score each remaining candidate by context cost versus usefulness: large and mechanically produced ranks highest.
4. Show a ranked report with a one-line reason per entry. Get confirma
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有