smell
Skill0 starsChanged 5 months agoMITView on GitHub
Code Smell Review. Use when the user asks to review code for smells, find dead code, detect debugging artifacts, identify over-engineering, or spot copy-paste duplication. Also use when the user says "smell", "code smell", "smell check", or "review for smells".
2 other projects use a version of this.
Adopted by
Most recently taken up by
- smallnest/goal-workflowtheir own version, first seen Jul 3, 2026
- jidechao/claude-codex-goal-workflowtheir own version, first seen Jun 4, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- smallnest/goal-workflow★ 283same name
- jidechao/claude-codex-goal-workflow★ 4same name
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 repository18 other files it gives its agents.
- app-icon-gridSkill
- archive-manualSkill
- commitSkill
- component-consistencySkill
- component-locatorSkill
- debug-triageSkill
- gemini-iconSkill
- parity-auditorSkill
- prd-writingSkill
- refactor-and-safety-passSkill
- release-helperSkill
- streamdeck-aerospace-rewireSkill
- streamdeck-workspace-buttonSkill
- svg-icon-renderSkill
- test-conventionsSkill
- verification-gateSkill
- work-breakdownSkill
- yt-audioSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
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 17
If there is no diff context (e.g., analyzing files directly), omit the NEW/PRE-EXISTING classification.
- Distinctive: line 65
Precision over recall: If you're unsure whether something is a smell, note your uncertainty rather than asserting it as a finding.
- Distinctive: line 66
No style suggestions: Do not flag formatting, naming conventions, or anything ESLint/Prettier handles.
- Distinctive: line 67
Accurate line numbers: Always reference the current file line number, not the diff line number.
- Distinctive: line 72
Use this exact format:
- Distinctive: line 115
If there are zero findings in a section, write "No findings." under that heading.
- Distinctive: line 117
After the report, add:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Smell Analysis
You are performing a code smell review. Produce a structured report with concrete fix suggestions and accurate file:line references.
Smell Categories
Analyze code across these four categories. For each finding, classify it as:
- NEW: The finding is within lines that were added or modified (i.e., in
+hunks of the diff) - PRE-EXISTING: The finding is in unchanged code outside the diff hunks
If there is no diff context (e.g., analyzing files directly), omit the NEW/PRE-EXISTING classification.
Category A: Dead/Unreachable Code
- Unused imports (imported but never referenced in the file)
- Unused variables, constants, or functions (declared but never used)
- Commented-out code blocks (3+ lines of commented code, not doc comments)
- TODO/FIXME/HACK markers
- Unreachable code after
return,throw,break,continue - Unused type definitions or interfaces
Category B: Debugging Artifacts
console.log,console.debug,console.warn,console.errorin non-test application codedebuggerstatements- Hardcoded test values (e.g., hardcoded IDs, URLs to localhost, dummy data outside test files)
- Temporary workaround comments (e.g., "// temporary", "// workaround", "// hack")
Category C: Over-Engineering
- Pass-through wrapper functions that add no logic
- Types/interfaces used by only one consumer that could be inlined
- Generic type parameters that are only ever instantiated with one concrete type
- Single-implementation abstractions (interface with one implementing class)
- Unnecessary indirection layers
Category D: Copy-Paste / Duplication
- Near-identical code blocks (3+ lines) within the same file
- Similar patterns across different changed files (e.g., same fetch-then-transform logic)
- Repeated conditional structures that could be consolidated
Project Convention Exceptions — Do NOT Flag These
These patterns are NOT smells:
- Arrow functions as component definitions or handlers — project style
- Barrel exports (
index.tsre-exporting from siblings) — intentional - NestJS decorators (
@Injectable(),@Module(), etc.) — framework convention - React hooks patterns (useEffect, useMemo, useCallback) — standard React
_-prefixed parameters (e.g.,_event,_unused) — intentional unused marker- Styled-components / Stitches / theme tokens — design system patterns
- GraphQL fragment/query definitions that appear "unused" in the file but are used via codegen
- Type re-exports from generated code
Relaxed Rules for Test Files
For files matching *.test.*, *.spec.*, *.stories.*, *.mock.*, or paths containing __tests__/, __mocks__/:
console.logand hardcoded values are acceptable — do NOT flag them- Still flag dead code (unused imports/variables) and duplication
Reporting Guidelines
- Precision over recall: If you're unsure whether something is a smell, note your uncertainty rather than asserting it as a finding. Prefer fewer, high-confidence findings over many marginal ones.
- No style suggestions: Do not flag formatting, naming conventions, or anything ESLint/Prettier handles. This is about structural code smells only.
- Accurate line numbers: Always reference the current file line number, not the diff line number.
- Actionable suggestions: Each finding must have a concrete "Suggestion" that says what to do.
Report Format
Use this exact format:
## Code Smell Report
**Branch**: `<current-branch>` vs `<base-branch>`
**Files analyzed**: N (K skipped: generated/non-code)
**Deleted files skipped**: M (only if M > 0)
**Findings**: X NEW, Y PRE-EXISTING
---
### NEW Findings
**[A1]** Dead Code | `<file-path>:<line>`
> <Description of the smell>
> **Suggestion**: <What to do>
**[B1]** Debugging Artifact | `<file-path>:<line>`
> <Description of the smell>
> **Suggestion**: <What to do>
(Continue with sequential IDs per category: A1, A2, B1, C1, D1, etc.)
---
### PRE-EXISTING Findings
(Same format as above. Omit this entire section if --new-only flag is set.)
---
### Summary Table
| Category | NEW | PRE-EXISTING | Total |
|---|---|---|---|
| A: Dead/Unreachable Code | 0 | 0 | 0 |
| B: Debugging Artifacts | 0 | 0 | 0 |
| C: Over-Engineering | 0 | 0 | 0 |
| D: Duplication | 0 | 0 | 0 |
| **Total** | **0** | **0** | **0** |If there are zero findings in a section, write "No findings." under that heading.
After the report, add:
---
To fix a specific finding, say: "fix finding A1" (or any ID from above)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.

