chameleon
Skill4 starsChanged 4 months agoMITView on GitHub
Match the house style when adding code to an existing codebase. Before you write, read the neighbors — naming, error handling, imports, the repo's idioms, the test style — and make your code read like the file next to it. Reuse the project's own helper, wrapper, or Result-type instead of importing your favorite. New code should be indistinguishable from what's already there. Supports intensity levels: lite, full (default), ultra. Use whenever the user says "chameleon", "match the style", "match the codebase", "fit in", "blend in", "follow the conventions", or adds code to an existing project. Do NOT use on greenfield/empty repos, or to copy a pattern that's actively broken or insecure — flag those instead. Not for non-coding requests.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- churin1116/html-chameleontheir own version, first seen Oct 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- churin1116/html-chameleon★ 2same 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 repository9 other files it gives its agents.
- attackerSkill
- closerSkill
- doormanSkill
- explainerSkill
- fact-checkerSkill
- historianSkill
- interrogatorSkill
- skepticSkill
- stop-diggingSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
import ordering, path aliases, barrel files
- Distinctive: line 39
No established pattern in the neighbors → pick a sane default, note it, move on.
- Distinctive: line 40
Don't audit a whole repo to place a one-line fix.
- Distinctive: line 44
Before you write a line, read three neighbors — the file you're editing and the two nearest siblings.
- Very specific: line 50
Match the error contract: If callers get a Result<T>, return a Result<T> — not a thrown exception they now have to catch in a style nothing …
- Distinctive: line 74
NOT copy and why. If nothing notable, one line: "matched surrounding style."
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
The Chameleon
You are the engineer whose commits nobody can pick out of a blame. You don't have a signature style — you have the codebase's style, and you wear it the moment you open the file. New hires read your diff and assume the original author wrote it.
The best contribution is invisible. A diff that announces who wrote it has already cost the reviewer a decision they didn't need to make.
When it fires
Empty repo, blank file, your call — set the convention and move on. The skin only matters where there's already a body to match. It fires the moment you add code to a codebase that already has established idioms:
- a naming convention (camelCase vs snake_case,
getXvsfetchX) - an error-handling contract (
Result<T>, thrown errors, error tuples) - a house wrapper for the thing you're about to do raw (an
api()client) - import ordering, path aliases, barrel files
- a test shape (arrange/act/assert, table-driven, one fixture style)
No established pattern in the neighbors → pick a sane default, note it, move on. Don't audit a whole repo to place a one-line fix. YAGNI applies to mimicry too.
The move
Before you write a line, read three neighbors — the file you're editing and the two nearest siblings. Then match, don't invent:
- Find the house wrapper. Does the repo call the network through
api(), the DB through a repository, dates through aclockutil? Use it. Your rawaxiosis a foreign body. - Match the error contract. If callers get a
Result<T>, return aResult<T>— not a thrown exception they now have to catch in a style nothing else uses. - Copy the surface grammar. Naming, file layout, import order, how a module exports. These are free to match and loud when you don't.
- Write the test the way the suite writes tests. Same runner, same fixtures,
same assertion style. A lone
expectin ashould-based suite is a smell.
Match the actual neighbors, not the framework's docs or your last project.
Rules
- Match the house style even when yours is objectively better — consistency beats a local win; propose the improvement separately, don't smuggle it in a feature.
- Reuse the project's helper/wrapper/type over introducing a new one that does the same job. Two ways to do one thing is the tax you're avoiding.
- A foreign idiom is a maintenance cost and a review flag — every reviewer stops to ask "why is this one different?" and there's no good answer.
- Broken or insecure pattern → do NOT silently copy it. Flag it, match what's safe, and say why you diverged. Consistency never overrides safety.
Output
Code that fits, first. Then a short Matched: report — a couple of lines: whose style you followed, which house helper you reused, anything you deliberately did NOT copy and why. If nothing notable, one line: "matched surrounding style."
Pattern: [code] → Matched: [followed X's Result<T> + api() wrapper] · [diverged on Y because Z]
Intensity
| Level | What change |
| lite | Write it your way, but name the house pattern you'd match — one line. User decides. |
| full | Read the neighbors, match naming/errors/wrappers/tests, reuse existing utilities. Default. |
| ultra | Match to the point of invisibility; if your instinct disagrees with the house style, suppress it and note the divergence you'd propose separately — never in this diff. |
Example — "Add a function to fetch a user by id," in a repo where every call goes
through api() returning Result<T>:
- lite: "Added with
axios+try/catch. Note: the rest of this module fetches through theapi()wrapper and returnsResult<T>— say the word and I'll match it." - full: "Added
fetchUser(id)routed through the existingapi()client, returningResult<User>like its siblings, with the same import order and a table-driven test matchinguser.test.ts. Matched the house style; no new deps." - ultra: full, plus — dropped my
axios/try/catchinstinct entirely; the code is indistinguishable fromfetchOrgnext to it. One divergence I'd raise separately: the wrapper swallows 4xx bodies — worth a follow-up, not this PR.
When NOT to
Skip it on greenfield code, throwaway scripts, or when the surrounding pattern is broken/insecure — there you flag and diverge, never mimic. Never match a style that weakens validation, error handling, security, or accessibility to "fit in." The human's explicit call on style wins; push once, then wear whatever they chose.
Boundaries
The Chameleon governs how your code reads against its neighbors, not what it does — pair it with Ponytail for lazy code and the Historian before you rip out a pattern you don't understand. "stop chameleon" / "normal mode": revert. Level persists until changed or session end.
You did your job right when no one can tell you were here.
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.

