Token导航 LogoToken导航

Agent Skill · 研究检索

claude-config-optimizer(Claude 配置优化器)

claude-config-optimizer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

claude-config-optimizer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 36,361。

总安装 1,934周安装 79GitHub Stars 9下载 619核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:claude-config-optimizer(Claude 配置优化器)
来源仓库:https://github.com/i9wa4/dotfiles
仓库路径:skills/claude-config-optimizer
安装命令:
npx skills add https://github.com/i9wa4/dotfiles --skill claude-config-optimizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/i9wa4/dotfiles --skill claude-config-optimizer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

claude-config-optimizer 基于 Nix 声明式管理 Claude Code 配置,确保一致性。源文件位于 dotfiles/nix/home-manager/agents/claude-code.nix,自动生成 settings.json 等。

支持规则模块化拆分,通过 instruction-artifacts.nix 合并生成最终项目记忆。适用于已使用 Nix 或 home-manager 的用户,非 Nix 环境无法直接应用此方案。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/claude-config-optimizer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/i9wa4/dotfiles --skill claude-config-optimizer;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

claude-config-optimizer 怎么安装?

在终端执行 npx skills add https://github.com/i9wa4/dotfiles --skill claude-config-optimizer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

claude-config-optimizer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

claude-config-optimizer 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

claude-config-optimizer 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

claude-config-optimizer 用的人多吗?

公开数据是累计安装 1,934 次,近一周安装 79 次,下载 619 次,GitHub 9 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

claude-config-optimizer 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
claude-config-optimizer

Claude 配置优化器 · 本页

1,9349调用外部服务MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Claude Config Optimizer Skill

Rules and tracking for Claude Code configuration optimization.

1. Config File Location

Config is managed declaratively via Nix (programs.claude-code home-manager module).

Source of truth:

  • @~/ghq/github.com/i9wa4/dotfiles/nix/home-manager/agents/claude-code.nix
  • @~/ghq/github.com/i9wa4/dotfiles/nix/home-manager/agents/
DestinationSourceManaged by
~/.claude/settings.jsonGenerated from Nix attributesclaude-code.nix
~/.claude/CLAUDE.mdGenerated from AGENTS.md + CLAUDE.md fragmentinstruction-artifacts.nix
~/.claude/rules/nix/home-manager/agents/rules/claude-code.nix
~/.claude/agents/nix/home-manager/agents/subagents/claude-code.nix
~/.claude/scripts/nix/home-manager/agents/scripts/claude-code.nix
~/.claude/skills/Multiple flake inputs + localagent-skills.nix
MCP serversnix/home-manager/agents/mcp-servers.nixclaude-code.nix

2. Fetch CHANGELOG

2.1. Detect Local Version

Always detect the installed version first:

claude --version

This returns the locally installed version (e.g. 2.1.72 (Claude Code)). All CHANGELOG analysis MUST be scoped to this version and below. Do NOT report features or changes from versions newer than the local install.

2.2. Fetch from GitHub

FILE=$(mkmd --dir tmp --label claude-code-changelog)
gh api repos/anthropics/claude-code/contents/CHANGELOG.md \
  --jq '.content' | base64 -d > "$FILE"

Then read the file, but only analyze sections up to and including the local version.

3. CHANGELOG Operations

IMPORTANT: All operations below are scoped to the locally installed version. Ignore any CHANGELOG sections for versions newer than claude --version.

3.1. Latest Release Summary

  1. Detect local version with claude --version
  2. Fetch CHANGELOG using the command above
  3. Extract the ## <local-version> section (not the first section)
  4. Categorize changes into:

- New features (Added) - Bug fixes (Fixed) - Improvements (Improved/Changed) - Deprecations (Deprecated)

  1. Present in Japanese with brief explanations

3.2. Version Diff

  1. Detect local version with claude --version
  2. Ask user for start version (end version defaults to local version)
  3. Extract all sections between start and local version (inclusive)
  4. Summarize cumulative changes
  5. Highlight breaking changes and deprecations

3.3. Breaking Changes Detection

  1. Detect local version with claude --version
  2. Search sections up to local version for: Deprecated, Removed, Breaking, Changed
  3. List affected settings and migration paths
  4. Check user's config for affected settings

4. Specification Reference

For detailed questions about Claude Code specifications, features, and usage:

  • YOU MUST: Use the claude-code-guide subagent via Task tool
  • Example queries: hooks, MCP servers, settings, IDE integrations
Task tool with subagent_type: claude-code-guide

5. Settings Categories

CategoryExamples
DisplayshowTurnDuration, language
BehaviorrespectGitignore, autoUpdate
ToolsdisallowedTools, allowedTools
MCPMCP server configurations
HooksPreToolUse, PostToolUse, Stop hooks
PlansplansDirectory

6. CLAUDE.md Design Guidelines

  • YOU MUST: Focus only on persona and core guidelines
  • YOU MUST: Split detailed rules into rules/
  • NEVER: Include unnecessary information at startup (reference links, usage details)

6.1. Include vs Exclude

IncludeExclude
Bash commands Claude can't guessAnything Claude can figure out by reading code
Code style rules that differ from defaultsStandard language conventions Claude already knows
Testing instructions and preferred test runnersDetailed API documentation (link to docs instead)
Repository etiquette (branch naming, PR conventions)Information that changes frequently
Architectural decisions specific to your projectLong explanations or tutorials
Developer environment quirks (required env vars)File-by-file descriptions of the codebase
Common gotchas or non-obvious behaviorsSelf-evident practices like "write clean code"

Test each line: "Would removing this cause Claude to make mistakes?" If not, cut it.

6.2. @import Syntax

CLAUDE.md can import additional files:

See @README.md for project overview and @package.json for available npm
commands.

# Additional Instructions

- Git workflow: @docs/git-instructions.md
- Personal overrides: @~/.claude/my-project-instructions.md

6.3. CLAUDE.md Locations

LocationScope
~/.claude/CLAUDE.mdAll Claude sessions (global)
./CLAUDE.mdProject root — check into git to share with team
./CLAUDE.local.mdProject root — add to.gitignore for personal overrides
Parent directoriesUseful for monorepos (auto-loaded)
Child directoriesLoaded on demand when working with files there

7. Configuration Usage

TypeLoad TimingPurpose
CLAUDE.md / rules/Full load at startupGlobal rules always applied
commands/Explicit user invocationPredefined prompts, workflows
skills/Auto-triggered by conversationSpecialized knowledge
agents/Delegated via Task toolIndependent context

8. Optimization Checklist

8.1. CLAUDE.md Review

Check the following when editing CLAUDE.md:

  • Is the persona definition concise?
  • Are basic rules truly needed at all times?
  • Can detailed explanations be moved to rules/ or skills/?
  • Have reference links been moved to skills?
  • Does each line pass the "remove this → Claude makes mistakes?" test?
  • Are @imports used for large doc sections instead of inline content?
  • Is the file short enough that Claude won't ignore rules buried in the middle?

8.2. Permission System Review

Check settings.json permissions block:

  • Are deny rules using modern syntax Bash(cmd *) not deprecated :*?
  • Are critical commands blocked (git push, git rebase, git reset, rm, sudo)?
  • Is git -C * blocked to prevent cross-repo operations?
  • Is defaultMode appropriate ("plan" or "dontAsk")?
  • Are sensitive paths blocked (secrets,.env,.ssh, keys, tokens)?
  • Are allow rules necessary or can defaultMode handle it?

9. Skill and Agent Frontmatter Reference

9.1. Skill Frontmatter (SKILL.md)

---
name: skill-name
description: |
  When to trigger this skill.
  Use when:
  - condition 1
  - condition 2
disable-model-invocation: true # For workflows with side effects (manual invoke only)
---
  • disable-model-invocation: true — Prevents auto-triggering; user must invoke explicitly with /skill-name. Use for workflows that have side effects.
  • Invoke with $ARGUMENTS for parameterized workflows: /fix-issue 1234

9.2. Agent Frontmatter (.claude/agents/*.md)

---
name: agent-name
description: What this agent does and when to use it
tools: Read, Grep, Glob, Bash # Restrict available tools
model: opus # Optional: specify model
isolation: worktree # Run in isolated git worktree (v2.1.49+)
background: true # Always run as background task (v2.1.49+)
---

10. File Structure Maintenance

When adding/removing files in rules/, skills/, agents/, or commands/:

  • YOU MUST: Update corresponding table in CLAUDE.md section 4
  • YOU MUST: Keep tables alphabetically sorted or logically grouped
  • IMPORTANT: Verify actual files match documentation after changes

11. Optimization Tracking

Last reviewed Claude Code version: v2.1.94 (2026-04-09)

11.1. Applied Optimizations

  • Persona definition minimized
  • Rules split into rules/ directory
  • Skills split into skills/ directory
  • Agents split into agents/ directory
  • Commands split into commands/ directory
  • Reference links moved to skills
  • language setting - set to "English"
  • ENABLE_TOOL_SEARCH env - set to "auto:3"
  • Permission system reviewed - sandbox bypass fix confirmed (v2.1.34)
  • Permission deny rules migrated - deprecated :* to modern * syntax
  • Fast mode - available for Opus 4.6 (v2.1.36)
  • Agent teams - enabled via CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS
  • Automatic memory - enabled by default (v2.1.32)
  • CLAUDE_CODE_ENABLE_TASKS env - removed (tasks enabled by default)
  • CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC removed - enables Remote Control and feature flag refresh (v2.1.51+)
  • CLAUDE_AUTOCOMPACT_PCT_OVERRIDE = "70" - autocompact at 70% context usage
  • includeGitInstructions = false - disables built-in git instructions; custom rules/github.md is sole authority (v2.1.69)
  • CLAUDE_CODE_SUBPROCESS_ENV_SCRUB = "1" - strips credentials from subprocesses (v2.1.83)
  • showThinkingSummaries = true - explicit opt-in required after v2.1.89 default change (thinking summaries no longer generated by default in interactive sessions)
  • CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING - intentionally left unset (adaptive thinking stays ON). Combined with startup /effort high, mirrors the Team/Enterprise default formalized in v2.1.94. See decision log in references/changelog-tracking.md for full rationale and HN discussion link.

11.2. Pending Considerations

  • SQL schema validation - moved to databricks skill (Section 8)
  • TeammateIdle/TaskCompleted hooks - for future agent workflow automation
  • Agent memory frontmatter - memory: user|project|local for stateful agents
  • Task(agent_type) restrictions - enhanced security for subagent spawning
  • WorktreeCreate/WorktreeRemove hooks - custom VCS setup/teardown for worktree isolation (v2.1.50)
  • ConfigChange hook - security auditing of settings changes (v2.1.49)
  • isolation: worktree in agent defs - isolated git worktree per agent (v2.1.49, v2.1.50)
  • PostCompact hook - archive/analyze compaction summaries; has compact_summary field (v2.1.76)
  • Elicitation/ElicitationResult hooks - intercept MCP server structured input requests (v2.1.76)
  • Conditional if field for hooks - reduce process spawning overhead with permission rule syntax filtering (v2.1.85)
  • StopFailure hook - log API errors (rate limit, auth failure) (v2.1.78)
  • hookSpecificOutput.sessionTitle in UserPromptSubmit hooks (v2.1.94) - dynamic session/tmux pane title per prompt
  • CLAUDE_CODE_NO_FLICKER=1 env (v2.1.89) - flicker-free alt-screen rendering; revisit if rendering glitches observed

For decision log ("Not Adopting") and per-version changelog, see Changelog Tracking.

12. Response Format (CHANGELOG)

# Claude Code vX.X.X

## New Features
- [Feature]: [Description]

## Bug Fixes
- [Fix description]

## Improvements
- [Improvement description]

## Deprecated/Removed
- [Affected settings and migration path]

---
Source: https://github.com/anthropics/claude-code

13. site2skill Usage

Convert documentation websites into Claude Agent Skills.

Requirements: Python 3.10+, wget (brew install wget)

uvx --from git+https://github.com/laiso/site2skill site2skill <URL> <SKILL_NAME>

# Example
uvx --from git+https://github.com/laiso/site2skill site2skill https://docs.pay.jp/v1/ payjp

Options:

  • --output, -o - Output directory (default: .claude/skills)
  • --skill-output - Where to save.skill file (default: current directory)
  • --skip-fetch - Skip download (reuse existing files)
  • --clean - Remove temporary files after completion

To update existing skill docs, re-run without --skip-fetch.

14. Reference Links

Official Documentation:

Community Resources:

15. Permission System Reference

15.1. Permission Modes

ModeDescription
defaultPrompts for permission on first use of each tool
acceptEditsAuto-accepts file edit permissions for the session
planPlan Mode: analyze only, no modifications
dontAskAuto-denies unless pre-approved via allow rules
bypassPermissionsSkips all prompts (use only in isolated environments)

15.2. Rule Evaluation Order

Rules are evaluated: deny -> ask -> allow. First matching rule wins.

15.3. Bash Wildcard Patterns

{
  "permissions": {
    "allow": [
      "Bash(npm run *)",
      "Bash(git commit *)",
      "Bash(* --version)",
      "Bash(* --help *)"
    ],
    "deny": ["Bash(git push *)"]
  }
}

NOTE: Space before * matters: Bash(ls *) matches ls -la but not lsof.

15.4. Read/Edit Path Patterns

PatternMeaningExample
//pathAbsolute path from rootRead(//Users/alice/**)
~/pathPath from home directoryRead(~/.zshrc)
/pathRelative to settings fileEdit(/src/**/*.ts)
pathRelative to current directoryRead(*.env)

NOTE: * matches single directory, ** matches recursively.

15.5. MCP and Task Permissions

{
  "permissions": {
    "allow": ["mcp__puppeteer__*"],
    "deny": ["Task(Explore)"]
  }
}

15.6. Managed Settings Locations

PlatformPath
macOS/Library/Application Support/ClaudeCode/managed-settings.json
Linux/WSL/etc/claude-code/managed-settings.json
WindowsC:\Program Files\ClaudeCode\managed-settings.json

15.7. Managed-Only Settings

SettingDescription
disableBypassPermissionsModeSet to "disable" to prevent bypass mode
allowManagedPermissionRulesOnlyOnly managed rules apply
allowManagedHooksOnlyOnly managed/SDK hooks allowed

16. Insights-Based Recommendations

Based on usage analysis (55K messages, 4.7K sessions):

16.1. Applied

  • Schema validation for DB operations: See databricks skill Section 8

16.2. Not Applied

  • Completion status reporting: No consumer for this output
  • PreToolUse hook for SQL: Handled by skill guidance instead

17. References

  • Hooks Reference: https://code.claude.com/docs/en/hooks
  • Permissions Reference: https://code.claude.com/docs/en/permissions
  • Skills Dynamic Context: https://code.claude.com/docs/en/skills#inject-dynamic-context
  • Vercel AGENTS.md Guide: https://vercel.com/blog/agents-md

平台分布

Claude Code

28.7%
按下载量换算178

windsurf

21.16%
按下载量换算131

trae

15.63%
按下载量换算97

OpenCode

12.52%
按下载量换算77

Codex

7.28%
按下载量换算45

Antigravity

3.55%
按下载量换算22

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills