Systematic Code Refactoring
luongnv89/claude-howto
Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.
Help users build a sustainable engineering culture by measuring health through frameworks like Core 4, managing technical debt as leverage, and optimizing workflows with AI tools.
$ npx skills add RefoundAI/lenny-skills --skill engineering-health -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install RefoundAI/lenny-skills engineering-health --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/RefoundAI/lenny-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/engineering-health .claude/skills/engineering-health && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "engineering-health" agent skill from https://github.com/RefoundAI/lenny-skills/tree/main/skills/engineering-health into .claude/skills/engineering-health/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "engineering-health", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/RefoundAI/lenny-skills/tree/main/skills/engineering-healthType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add RefoundAI/lenny-skills --skill engineering-health -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install RefoundAI/lenny-skills engineering-health --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/RefoundAI/lenny-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/engineering-health .agents/skills/engineering-health && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "engineering-health" agent skill from https://github.com/RefoundAI/lenny-skills/tree/main/skills/engineering-health into .agents/skills/engineering-health/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "engineering-health", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add RefoundAI/lenny-skills --skill engineering-health -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install RefoundAI/lenny-skills engineering-health --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/RefoundAI/lenny-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/engineering-health .cursor/skills/engineering-health && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "engineering-health" agent skill from https://github.com/RefoundAI/lenny-skills/tree/main/skills/engineering-health into .cursor/skills/engineering-health/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "engineering-health", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/RefoundAI/lenny-skills.git --path skills/engineering-health--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add RefoundAI/lenny-skills --skill engineering-health -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install RefoundAI/lenny-skills engineering-health --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/RefoundAI/lenny-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/engineering-health .gemini/skills/engineering-health && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "engineering-health" agent skill from https://github.com/RefoundAI/lenny-skills/tree/main/skills/engineering-health into .gemini/skills/engineering-health/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "engineering-health", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install RefoundAI/lenny-skills engineering-healthInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add RefoundAI/lenny-skills --skill engineering-health -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/RefoundAI/lenny-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/engineering-health .github/skills/engineering-health && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "engineering-health" agent skill from https://github.com/RefoundAI/lenny-skills/tree/main/skills/engineering-health into .github/skills/engineering-health/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "engineering-health", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add RefoundAI/lenny-skills --skill engineering-health -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install RefoundAI/lenny-skills engineering-health --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/RefoundAI/lenny-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/engineering-health .opencode/skills/engineering-health && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "engineering-health" agent skill from https://github.com/RefoundAI/lenny-skills/tree/main/skills/engineering-health into .opencode/skills/engineering-health/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "engineering-health", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
engineering-healthHelp users build a sustainable engineering culture by measuring health through frameworks like Core 4, managing technical debt as leverage, and optimizing workflows with AI tools.
Engineering Health is an agent skill from RefoundAI/lenny-skills. Help users build a sustainable engineering culture by measuring health through frameworks like Core 4, managing technical debt as leverage, and optimizing workflows with AI tools.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/artifacts.md` and `references/guest-insights.md`).
It sits in Development, covering Technical debt. The repository describes itself as: 86 product management skills from Lenny's Podcast for Claude Code and AI agents. Hiring, user research, strategy, shipping, and more. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 13598cc. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Engineering Health loads about 2.1k tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 50 tokens; SKILL.md has 1,228 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from RefoundAI/lenny-skills at commit 13598cc, republished under its MIT licence (© RefoundAI). 1,228 words, ~2,086 tokens.
.claude/skills/engineering-health/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Maintain high shipping velocity by balancing technical excellence with strategic developer investments.
Help the user with engineering health and productivity using insights from 18 guests and posts across Lenny's Podcast and Newsletter.
Chip Huyen: "It's really hard to measure productivity. So, I do ask people to ask their managers, "Would you rather give everyone on the team very expensive coding agent subscriptions or you get an extra head count?" Almost every one, the managers will say head count."
Compare the cost and output of AI tools against the value of additional headcount rather than just looking at raw productivity gains.
Inbal S: "The user of the AI tools to develop software needs to form a different thinking. You need to start figuring out how are you using these AI tools to help you be successful. And it's no longer just the actual code writing, it's really evolving your thinking to the big picture, to the connected experience, to connected systems."
Use AI to handle manual syntax so engineers can spend more time on high level system design and product understanding.
Mike Krieger: "We really rapidly became bottlenecked on other things like our merge queue. We had to completely re-architect it because so much more code was being written and so many more pull requests were being submitted. Over half of our pull requests are Claude Code generated."
Internal tools like merge queues must be re-architected to handle the massive increase in pull request volume generated by AI coding.
Nicole Forsgren: "So productivity, I think, is basically how much we can get done and how much we can do over time. And I think that's why it's so important to have this holistic measure because we can't just brute force it, right. And so that's why when my team and a bunch of my peers study productivity, we include this community effect because software is a team sport."
Avoid raw output metrics: instead, use a balanced view that includes team dynamics, sustainability, and workflow friction.
Sherwin Wu V2: "100% of our PRs are reviewed by Codex daily as well. So basically any code that goes into production that's merged in, Codex kind of has its eyes on and suggests improvements, suggests changes in the PRs."
As code volume increases, implement AI powered automated reviews to maintain quality without creating a manual bottleneck.
Dhanji R. Prasanna: "We find engineering teams that are very, very AI forward are reporting about eight to 10 hours save per week. Whenever I hear a stat like this, I think an important element is this is the worst it will ever be. This is now the baseline."
Track weekly hours saved by AI forward teams to establish a performance baseline that will evolve as the technology matures.
Farhan Thawar: "We have a Delete Code Club. We can always almost find a million-plus lines of code to delete, which is insane."
Aggressively remove obsolete code to prevent system complexity from slowing down development velocity.
Gaurav Misra: "I actually think as a startup your job is to take on technical debt because that is how you operate faster than a bigger company. Bigger companies don't take contact technical debt, they pay it usually right away, or they're paying back technical debt from the days when they were a startup."
Deliberately choose to incur technical debt when it provides a significant advantage in shipping speed for new marketable value.
From "Increasing team velocity": "Talk to your engineers about opportunities to speed up their review, approval, and deployment process."
Focus on the technical workflow between code complete and deployed to unlock the most significant gains in shipping speed.
See references/artifacts.md for the full list with details.
For all 21 sourced insights from 18 guests, see references/guest-insights.md
© RefoundAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in skills/engineering-health of RefoundAI/lenny-skills.
Open the folder on GitHubat commit 13598cc
Engineering Health next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Engineering Health this skillRefoundAI/lenny-skills | 1.4k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Systematic Code Refactoringluongnv89/claude-howto | 42k | — | ~3k | Automated safety check: Pass | MIT | |
| Code Simplification for ego-litecitrolabs/ego-lite | 17k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Code Refactoring Workflowluongnv89/claude-howto | 42k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Cto AdvisorIbrahim-3d/orchestrator-supaconductor | 381 | 4 repos | ~2.4k | Automated safety check: Pass | MIT | |
| Ponytail Debt LedgerDietrichGebert/ponytail | 160k | — | ~453 | Automated safety check: Pass | MIT |
luongnv89/claude-howto
Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.
citrolabs/ego-lite
Finds and implements evidence-backed simplifications in the ego-lite repository, such as dead code, duplicated state and speculative abstractions, without hiding behavior changes.
luongnv89/claude-howto
Guides systematic, test-backed refactoring in the style of Martin Fowler, moving through research, planning and small incremental changes with your approval at each phase.
Ibrahim-3d/orchestrator-supaconductor
Technical leadership guidance for engineering teams, architecture decisions, and technology strategy.
DietrichGebert/ponytail
Collects every ponytail: comment in a codebase into one debt ledger, flags shortcuts with no upgrade trigger and reports without changing any files.
tailcallhq/forgecode
Finds every FIXME comment in a codebase, groups related ones across files into one task, implements the work they describe and removes the comments once it is done.
RefoundAI/lenny-skills
Help users conduct high-impact customer interviews that move beyond surface-level feature requests to identify root emotional frustrations and specific causal triggers.
RefoundAI/lenny-skills
Help users master their personal output by shifting from reactive scheduling to intentional energy management, internal trigger mastery, and proactive boundary setting.
RefoundAI/lenny-skills
Help users reach their first moment of core value by optimizing the first-run experience, removing friction, and aligning product design with psychological triggers.
RefoundAI/lenny-skills
Help users identify unique distribution advantages and master the lifecycle of acquisition channels to build a sustainable engine for growth and retention.
RefoundAI/lenny-skills
Help users build functional product prototypes from natural language or visual mocks using AI coding tools.
RefoundAI/lenny-skills
Help users build robust infrastructure for measuring, monitoring, and iterating on AI product performance using human, code-based, and LLM-as-a-judge methodologies.
Categories
Help users build a sustainable engineering culture by measuring health through frameworks like Core 4, managing technical debt as leverage, and optimizing workflows with AI tools. Engineering Health is an agent skill from RefoundAI/lenny-skills. Help users build a sustainable engineering culture by measuring health through frameworks like Core 4, managing technical debt as leverage, and optimizing workflows with AI tools.
Engineering Health fits situations like: tasks that involve Technical debt.
Run `npx skills add RefoundAI/lenny-skills --skill engineering-health -a claude-code`. Or copy the skill folder (skills/engineering-health in RefoundAI/lenny-skills) into .claude/skills/engineering-health in your project. Claude Code loads it when a task matches its description.
Run `npx skills add RefoundAI/lenny-skills --skill engineering-health -a codex`. Or copy the skill folder (skills/engineering-health in RefoundAI/lenny-skills) into .agents/skills/engineering-health in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add RefoundAI/lenny-skills --skill engineering-health -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/engineering-health, .gemini/skills/engineering-health, .github/skills/engineering-health and .opencode/skills/engineering-health in your project.
SKILL.md names no scripts, command-line tools or credentials: Engineering Health is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Engineering Health is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Engineering Health: Systematic Code Refactoring (luongnv89/claude-howto, 42k stars), Code Simplification for ego-lite (citrolabs/ego-lite, 17k stars), Code Refactoring Workflow (luongnv89/claude-howto, 42k stars) and Cto Advisor (Ibrahim-3d/orchestrator-supaconductor, 381 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
RefoundAI (a GitHub organization) maintains it in RefoundAI/lenny-skills, which has 1,382 GitHub stars. The repository holds 76 skills in this directory. The repository was last updated on July 16, 2026.
Source: RefoundAI/lenny-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.