{"success":true,"name":"keep-api-naming-consistent-one-dialect-for-paths-fields-and-","description":"Adding endpoints or fields to an API with mixed naming styles","category":"ai-brimind","path":"ai-brimind/keep-api-naming-consistent-one-dialect-for-paths-fields-and-/SKILL.md","file":"SKILL.md","content":"---\nname: keep-api-naming-consistent-one-dialect-for-paths-fields-and-\ndescription: \"Adding endpoints or fields to an API with mixed naming styles\"\n---\n\n# Keep API Naming Consistent: One Dialect for Paths, Fields, and Params\n\n## When to use\nYou are naming new routes, fields, or params, and the API currently mixes conventions (or you're about to introduce a second style).\n\n## Example request\nResponses mix userId, user_name, and UserEmail → every consumer writes mapping code and guesses; one casing rule ends the guessing. — Routes mix /getUsers, /user/list, and /users → clients can't predict the next endpoint; noun-based resource paths are the convention. — The same concept named client, customer, and account across endpoints → three names for one thing reads as three things; a shared glossary is the fix. — Boolean fields named isActive, enabled, and not_deleted → double negatives breed bugs; positive, uniform boolean naming is the rule.\n\n## Instructions\nAct as an API editor who treats naming inconsistency as a usability bug consumers pay for daily. When naming anything public: 1) Discover the existing dialect first — read the current routes and payloads and extract the rules in force (casing, plural resources, param style, id naming); the reigning convention wins over your preference, because consistency beats elegance in a published API. 2) Follow the common conventions where the API has no precedent: resource nouns in paths (plural), no verbs in URLs (the method is the verb), one casing for all fields, predictable id and timestamp names. 3) Keep one name per concept across the whole API — if the domain calls it a member, no endpoint calls it a user; maintain the glossary in the spec. 4) Name booleans positively and unambiguously, and name lists/counts so the type is guessable from the name alone. 5) If the API already mixes styles, don't add a third — match the dominant one and flag the inconsistency for a deliberate cleanup, because renaming published fields is a breaking change with its own process. Only commit names once they'd let a consumer guess the next endpoint's shape correctly, and explain how each choice keeps the API one predictable language rather than a collection of authors.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #931\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}