implement
Skill4 starsChanged 8 months agoMITView on GitHub
Agentic implementation skill that reads a project's structure, detects its tech stack, scores codebase health, and then selects the best strategies and sibling skills to implement the user's request — optimizing for smaller codebases and higher power-to-weight ratio. Use this skill whenever the user asks to: add a feature, refactor code, reduce bundle size, clean up a codebase, implement something new, improve code quality, reduce complexity, or says anything like "make this smaller", "make this better", "implement X", "build X", "clean this up", "reduce bloat", or "refactor". Also trigger when the user pastes code and asks for improvements, or when starting work on an unfamiliar project.
- Reads credentials
191 other projects use a version of this.
Adopted by
Most recently taken up by
- revisit-studies/studytheir own version, first seen Nov 9, 2026
- dz114879/skillstheir own version, first seen Nov 8, 2026
- Dimon94/dveritytheir own version, first seen Nov 8, 2026
- Dimon94/skillstheir own version, first seen Nov 8, 2026
- The-Vibe-Company/quivrtheir own version, first seen Nov 8, 2026
- miklschmidt/archboardtheir own version, first seen Nov 8, 2026
Used with
Projects with it also use setup-ts-deep-modules, ask-matt and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
liufeng1976Skillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 43 projects that use this
GoogleSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 91 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 50 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 88 projects that use this
ryotaroh180105Skillclaude-handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately.
Also in 42 projects that use this
GoogleSkillto-spec
Turn the current conversation into a spec and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
Also in 168 projects that use this
- +3 more from google
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- mattpocock/skills★ 309ksame name
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- foambubble/foam★ 17ksame name
- formbricks/formbricks★ 13ksame name
- ArcReel/ArcReel★ 6.3ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- fallow-rs/fallow★ 5.3ksame name
- withcoral/coral★ 4.9ksame name
- bestofjs/bestofjs★ 3.1ksame name
181 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- debug-loopSkill
- lean-typescriptSkill
- roadmapSkill
- spec-drivenSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 14 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 171 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Read first, think second, code last.
- Distinctive: line 29
Before writing a single line, build a mental model of what exists.
- Distinctive: line 33
Read these files in order of priority (skip what doesn't exist):
- Distinctive: line 96
Read the relevant sibling skill when the task matches:
- Distinctive: line 111
Before writing code, answer these questions:
- Distinctive: line 113
Can I solve this by deleting code?: If yes, do that instead.
- Distinctive: line 114
Can I extend an existing module?: Prefer modification over creation.
- Distinctive: line 115
Does this need a new dependency?: Only add if it saves >50 LOC and is <5KB gzipped.
- Distinctive: line 116
Is the file I'm creating <150 lines?: If not, split by domain concern.
- Distinctive: line 117
Am I adding types that TypeScript already infers?: Remove redundant annotations.
- Distinctive: line 131
Stop and reconsider if you catch yourself:
- Distinctive: line 144
After implementation, check your work:
- Distinctive: line 154
When done, report to the user:
- Distinctive: line 177
Choosing a heavier tool: when a lighter one exists in the project
“Common” is measured: kept by at least 6 in 10 of the 171 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Implement
Read first, think second, code last. Every implementation starts with understanding what already exists — because the fastest code is the code you delete.
Why This Skill Exists
LLMs default to additive solutions: more files, more abstractions, more dependencies. This skill inverts that instinct. The goal is always: fewer lines, fewer deps, more capability. Every change must justify its weight.
Phase 1 — Read the Project (mandatory, never skip)
Before writing a single line, build a mental model of what exists.
Step 1: Discover structure
Read these files in order of priority (skip what doesn't exist):
- Package manifest —
package.json,pyproject.toml,Cargo.toml,go.mod - Entry point —
src/index.ts,src/main.ts,app/,cmd/ - Config files —
tsconfig.json,vite.config.*,.env.example - Context files —
.context/,CLAUDE.md,AGENTS.md,README.md - Existing skills — check for sibling skill folders in the skills directory
Step 2: Detect tech stack
From the manifest and configs, identify:
- Language & version (TypeScript 5.x, Python 3.12, etc.)
- Framework (React, Next.js, Fastify, FastAPI, etc.)
- State management (Zustand, Redux, Pinia, etc.)
- Validation (Zod, Pydantic, Valibot, etc.)
- Build tool (Vite, esbuild, Turbopack, Ruff, etc.)
- Test framework (Vitest, pytest, Jest, etc.)
Step 3: Score codebase health
Quick heuristics — no tooling needed:
| Signal | Healthy | Unhealthy |
| Largest file | <200 LOC | >500 LOC |
| Dependencies | <20 prod deps | >50 prod deps |
any types | 0 | >5 |
utils/ or helpers/ folders | absent | present |
| Default exports | 0 | >3 |
| Dead code signals | clean imports | unused imports visible |
Record findings mentally. These inform which strategies to apply.
Phase 2 — Choose Strategy
Based on the project analysis, select the approach:
Decision tree
Is this a new feature?
├── Yes → Check if existing module can absorb it (prefer extension over creation)
│ If new module needed → follow spec-driven skill (Spec → Schema → Module)
│ Apply lean-typescript patterns for implementation
│
Is this a refactor/cleanup?
├── Yes → Score health first
│ High bloat → apply lean-typescript debloating references
│ Architectural issues → apply spec-driven 4-pillar restructure
│ Dead code → run Knip or manual dead-export scan
│
Is this a bug fix?
├── Yes → apply debug-loop skill (reproduce → isolate → fix → verify)
│
Is this unclear?
├── Yes → ask the user one clarifying question, then proceedSibling skill selection
Read the relevant sibling skill when the task matches:
lean-typescript/— any TypeScript work, anti-bloat, patterns, toolchainspec-driven/— new modules, API contracts, schema designdebug-loop/— bugs, startup failures, runtime errorsroadmap/— planning, milestones, sprint organization
Load only what's needed. Don't read all skills for every task.
Phase 3 — Implement
The Lean Implementation Checklist
Before writing code, answer these questions:
- Can I solve this by deleting code? If yes, do that instead.
- Can I extend an existing module? Prefer modification over creation.
- Does this need a new dependency? Only add if it saves >50 LOC and is <5KB gzipped.
- Is the file I'm creating <150 lines? If not, split by domain concern.
- Am I adding types that TypeScript already infers? Remove redundant annotations.
- Am I validating data that's already typed? Validate at boundaries only.
Implementation patterns (apply contextually)
- Functions over classes — unless the domain genuinely needs state + methods together
- Named exports only — better tree-shaking, better refactoring
- Feature folders — group by domain, not by technical layer
- Result types over exceptions — explicit error flow, no hidden control jumps
- Zod/Pydantic at boundaries — trust internal types, validate external data
- Pure core, I/O shell — business logic as pure functions, I/O at the edges
What to reject
Stop and reconsider if you catch yourself:
- Creating a
utils.tsorhelpers.ts - Wrapping every async call in try-catch
- Adding JSDoc that restates the type signature
- Building a class hierarchy (Manager → Service → Handler)
- Adding a config option for something that never changes
- Writing >20 lines of defensive null-checking inside typed code
Phase 4 — Verify
After implementation, check your work:
- Line count delta — did the codebase grow? By how much? Justify every new line.
- Dependency delta — did you add deps? Each must pass the <5KB / >50LOC-saved test.
- Type safety — run
tsc --noEmitor equivalent. Zero errors. - Tests — run existing tests. If you changed behavior, update or add tests.
- Build — verify the project builds cleanly.
Completion summary
When done, report to the user:
## Changes
- [what changed, 1-2 sentences]
## Impact
- Files changed: N
- Lines added/removed: +X / -Y (net: ±Z)
- Dependencies added/removed: [list or "none"]
## Verified
- [ ] Types check
- [ ] Tests pass
- [ ] Build succeedsAnti-patterns
- Implementing before reading — you will duplicate existing functionality
- Adding abstractions "for the future" — YAGNI; implement what's needed now
- Choosing a heavier tool when a lighter one exists in the project
- Ignoring existing patterns — match the project's style, don't impose your own
- Skipping verification — unverified changes are unfinished changes
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

