{"id":"7d0dca20-9bbf-43fe-a90a-5fef271bb2af","shortId":"BEJKab","kind":"skill","title":"code-style","tagline":"Enforce mirror, reuse, and symmetry principles to keep new code consistent with surrounding code. Use when writing new code in an existing codebase, adding new features, refactoring, or making any code changes.","description":"# Code Style: Mirror, Reuse, Symmetry\n\nWhen writing new code in an existing codebase, follow these principles:\n\n1. **Mirror the surrounding code exactly**: Match brace style, comment style, naming conventions, blank line spacing, code density, and level of detail by reading nearby code first.\n2. **Reuse existing patterns**: Find the closest analogous feature and replicate its structure (method decomposition, control flow, annotations, guard clauses). Don't introduce new patterns when an existing one fits.\n3. **Reuse existing code**: Before writing a new helper, check if an existing method can be reused or generalized. If a new helper is needed, model it after its closest sibling.\n4. **Maintain symmetry**: If adding `fooB()` parallel to `fooA()`, ensure naming, parameter order, and structure are symmetric. Rename `fooA()` if needed.\n5. **Logical ordering**: Place new methods, switch cases, and fields in the order that mirrors the existing grouping or business lifecycle, not just appended at the end.","tags":["code","style","turbo","tobihagemann","agent-skills","claude-code","claude-skills","developer-tools","skills"],"capabilities":["skill","source-tobihagemann","skill-code-style","topic-agent-skills","topic-claude-code","topic-claude-skills","topic-developer-tools","topic-skills"],"categories":["turbo"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/tobihagemann/turbo/code-style","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add tobihagemann/turbo","source_repo":"https://github.com/tobihagemann/turbo","install_from":"skills.sh"}},"qualityScore":"0.590","qualityRationale":"deterministic score 0.59 from registry signals: · indexed on github topic:agent-skills · 280 github stars · SKILL.md body (1,013 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T00:54:07.806Z","embedding":null,"createdAt":"2026-04-18T22:03:28.457Z","updatedAt":"2026-04-22T00:54:07.806Z","lastSeenAt":"2026-04-22T00:54:07.806Z","tsv":"'1':52 '2':79 '3':109 '4':140 '5':161 'ad':27,144 'analog':86 'annot':96 'append':184 'blank':65 'brace':59 'busi':180 'case':168 'chang':35 'check':118 'claus':98 'closest':85,138 'code':2,13,17,22,34,36,44,56,68,77,112 'code-styl':1 'codebas':26,48 'comment':61 'consist':14 'control':94 'convent':64 'decomposit':93 'densiti':69 'detail':73 'end':187 'enforc':4 'ensur':149 'exact':57 'exist':25,47,81,106,111,121,177 'featur':29,87 'field':170 'find':83 'first':78 'fit':108 'flow':95 'follow':49 'fooa':148,158 'foob':145 'general':127 'group':178 'guard':97 'helper':117,131 'introduc':101 'keep':11 'level':71 'lifecycl':181 'line':66 'logic':162 'maintain':141 'make':32 'match':58 'method':92,122,166 'mirror':5,38,53,175 'model':134 'name':63,150 'nearbi':76 'need':133,160 'new':12,21,28,43,102,116,130,165 'one':107 'order':152,163,173 'parallel':146 'paramet':151 'pattern':82,103 'place':164 'principl':9,51 'read':75 'refactor':30 'renam':157 'replic':89 'reus':6,39,80,110,125 'sibl':139 'skill' 'skill-code-style' 'source-tobihagemann' 'space':67 'structur':91,154 'style':3,37,60,62 'surround':16,55 'switch':167 'symmetr':156 'symmetri':8,40,142 'topic-agent-skills' 'topic-claude-code' 'topic-claude-skills' 'topic-developer-tools' 'topic-skills' 'use':18 'write':20,42,114","prices":[{"id":"85282e02-5ce7-46c8-aa17-36db85c8146a","listingId":"7d0dca20-9bbf-43fe-a90a-5fef271bb2af","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"tobihagemann","category":"turbo","install_from":"skills.sh"},"createdAt":"2026-04-18T22:03:28.457Z"}],"sources":[{"listingId":"7d0dca20-9bbf-43fe-a90a-5fef271bb2af","source":"github","sourceId":"tobihagemann/turbo/code-style","sourceUrl":"https://github.com/tobihagemann/turbo/tree/main/skills/code-style","isPrimary":false,"firstSeenAt":"2026-04-18T22:03:28.457Z","lastSeenAt":"2026-04-22T00:54:07.806Z"}],"details":{"listingId":"7d0dca20-9bbf-43fe-a90a-5fef271bb2af","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"tobihagemann","slug":"code-style","github":{"repo":"tobihagemann/turbo","stars":280,"topics":["agent-skills","claude-code","claude-skills","developer-tools","skills"],"license":"mit","html_url":"https://github.com/tobihagemann/turbo","pushed_at":"2026-04-21T12:22:12Z","description":"A composable dev process for Claude Code, packaged as modular skills.","skill_md_sha":"1762bb27f0e16de6da32b5cd1044e13d19dcf919","skill_md_path":"skills/code-style/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/tobihagemann/turbo/tree/main/skills/code-style"},"layout":"multi","source":"github","category":"turbo","frontmatter":{"name":"code-style","description":"Enforce mirror, reuse, and symmetry principles to keep new code consistent with surrounding code. Use when writing new code in an existing codebase, adding new features, refactoring, or making any code changes."},"skills_sh_url":"https://skills.sh/tobihagemann/turbo/code-style"},"updatedAt":"2026-04-22T00:54:07.806Z"}}