ctx-ignore
节省费用与上下文噪音,适合大代码库。
为 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.
帮我安装这个 skill:https://raw.githubusercontent.com/arniesaha/ctxops/main/skills/ctx-ignore/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/arniesaha/ctxops/main/skills/ctx-ignore/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