Prereqs:
lenson PATH,lens.ymlexists (if not, tell user and stop).Run
lens apply --dry-runvia Bash. Capture stdout — this is the context bundle.Invoke the
EnterPlanModetool with a plan prompt consisting of:
You are about to make code changes that bring the codebase in line with the lens artifacts below. Focus on the deltas since the last apply; ignore unchanged lenses unless their current implementation is broken.
<paste the captured bundle here, verbatim>
After the user exits plan mode (plan accepted + changes applied):
- Run
git status --porcelainvia Bash. - If empty AND HEAD has advanced past refs/lens/applied, run
lens mark applied. - Else, tell the user: "Commit your changes, then run
/lens:mark appliedto advance the ref."
- Run
Apply
Make the codebase match the lenses via Claude Code plan mode.
Apply by cyrusnuevodia · 3f7353a
npx skillmds@latest add cyrusnuevodia/apply File contents
---name: applydescription: Make the codebase match the lenses via Claude Code plan mode.---1. Prereqs: `lens` on PATH, `lens.yml` exists (if not, tell user and stop).2. Run `lens apply --dry-run` via Bash. Capture stdout — this is the context bundle.3. Invoke the `EnterPlanMode` tool with a plan prompt consisting of: --- You are about to make code changes that bring the codebase in line with the lens artifacts below. Focus on the deltas since the last apply; ignore unchanged lenses unless their current implementation is broken. <paste the captured bundle here, verbatim> ---4. After the user exits plan mode (plan accepted + changes applied): - Run `git status --porcelain` via Bash. - If empty AND HEAD has advanced past refs/lens/applied, run `lens mark applied`. - Else, tell the user: "Commit your changes, then run `/lens:mark applied` to advance the ref."
cyrusnuevodia/dia/tree/main/plugin/skills/apply commit 3f7353a26c
Frequently asked questions
Run npx skillmds@latest add cyrusnuevodia/apply in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Make the codebase match the lenses via Claude Code plan mode. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
cyrusnuevodia (@cyrusnuevodia) published this skill. Their other Agent Skills are listed on their SkillMD profile.