lambdalisue/cclens/optimize
Claude Code and agent skill by lambdalisue/cclens
- community
Checking that the SKILL.md file is still in the repository.
Investigate cclens findings about the user's Claude Code usage to root cause and propose concrete config fixes — recurring tool failures, unused or heavy config, always-on context cost. Use when the user wants to optimize their Claude Code configuration, cut token waste or friction, or act on cclens doctor findings.
Install
npx vskill@latest install lambdalisue/cclens/optimizeSKILL.md
cclens optimize — act on the findings in this session
cclens optimize normally launches a new claude session seeded with an advisor prompt. This skill runs the same analysis but adopts that prompt in the current session instead, so the user stays where they are.
1. Resolve the binary
- Binary: use
cclensifcommand -v cclensfinds it. Otherwise run every
command below through Nix instead: nix run github:lambdalisue/cclens -- <subcommand …>. If neither cclens nor nix is available, stop and tell the user how to install it (nix profile install github:lambdalisue/cclens, or cargo install --git https://github.com/lambdalisue/cclens).
Omit --db everywhere: the store defaults to a per-user path (${XDG_STATE_HOME:-~/.local/state}/cclens/cclens.db), so nothing is dropped into the current project.
2. Analyze and fetch the advisor prompt
If the user asked to optimize their global setup or one specific project, add --scope global or --scope project:<slug> to the optimize command — the prompt then pins the work to that config layer.
--print writes the full advisor prompt — the prescribed instructions plus the complete findings briefing — to stdout. It goes through a temp file (mktemp creates it private, 0600), not your tool-output stream, because the briefing carries real paths and error excerpts from the user's transcripts.
3. Follow it
Read the temp file and adopt its contents as your instructions for the rest of the task: investigate each finding to a root cause yourself (using cclens sql against the store, and the user's actual config files), conclude with a prioritized fix-plan naming specific file edits, and pause only for the user's approval of that plan before editing anything.
Delete the temp file (rm -f "$PROMPT") as soon as you have read it. Do not paste the briefing wholesale back to the user — deliver the conclusions.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/cclens/skills/optimize/SKILL.md
Popularity
- Repository stars
- 90
- Repository forks
- 7
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lambdalisue/cclens/optimize)