naming-convention-enforcer
Skill3 starsChanged 9 months agoMITView on GitHub
Renames layers, frames, components, and pages to follow a specified naming convention (e.g. PascalCase components, sentence-case screens, prefix-based icon names). Use for cleaning up messy layer names before handoff, publishing, or Dev Mode inspection.
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-auditSkill
- affinity-mappingSkill
- animation-consistency-checkSkill
- apply-color-variablesSkill
- base-ui-primitive-compositionSkill
- branch-review-summarySkill
- brand-kit-asset-generatorSkill
- build-from-prdSkill
- build-primitiveSkill
- code-connect-mapperSkill
- color-token-format-normalizerSkill
- comment-triageSkill
- competitive-teardownSkill
- component-auditSkill
- component-naming-syncSkill
- container-layout-normalizerSkill
- content-inventorySkill
- content-tone-reviewSkill
- cva-variant-generatorSkill
- deck-from-outlineSkill
- design-brief-generatorSkill
- design-change-diffSkill
- design-critSkill
- design-first-ui-promptingSkill
- design-tokens-syncSkill
- dev-handoff-prepSkill
- figma-skill-routerSkill
- figma-to-code-componentSkill
- file-cleanupSkill
- follow-ds-guidelinesSkill
- handoff-summarySkill
- heuristic-evaluationSkill
- improve-uiSkill
- journey-map-builderSkill
- layoutSkill
- legacy-styles-to-variablesSkill
- library-health-reportSkill
- localization-readinessSkill
- microcopy-generatorSkill
- motion-spec-generatorSkill
- persona-builderSkill
- plugin-widget-recommenderSkill
- polishSkill
- prototype-from-flowSkill
- prototype-qaSkill
- rename-layers-batchSkill
- responsive-breakpoint-checkSkill
- screenshot-to-componentSkill
- semantic-color-auditSkill
- shadcn-component-structureSkill
- shadcn-theme-variablesSkill
- site-launch-checklistSkill
- spacing-scale-enforcerSkill
- states-completeness-checkSkill
- sticky-synthesisSkill
- tailwind-class-order-checkSkill
- token-tailwind-theme-syncSkill
- variable-driven-prototypeSkill
- visual-consistency-checkSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 13 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
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 15
Default scope is the current selection.
- Distinctive: line 16
Use visible Figma design-file context first: frames, components, instances, variables, styles, layers, prototype settings, comments, …
- Distinctive: line 17
Use connector or code context only when the user provides it or it is available in the session.
- Distinctive: line 18
Ask at most two targeted questions, and only when the missing answer would materially change the result.
- Distinctive: line 21
Before Dev Mode handoff, when generated code would otherwise inherit names like "Frame 482" or "Rectangle 12"
- Distinctive: line 22
Before publishing a library
- Distinctive: line 28
If an input is missing but can be inferred safely from the selection, proceed and label the assumption.
- Distinctive: line 31
Start from the selected frame, component, section, or comment thread.
- Distinctive: line 32
Do the useful first pass without waiting for perfect context.
- Distinctive: line 33
Prefer in-file evidence over generic best practices.
- Distinctive: line 44
Keep the task within this skill.
- Distinctive: line 47
Do not claim access to private libraries, admin settings, analytics, plugin state, or code unless that context is actually available.
- Distinctive: line 51
Never rename a layer referenced by an existing Code Connect mapping, prototype interaction target, or component property binding without …
≈ “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
Naming Convention Enforcer
Purpose
Bring layer, frame, and component names in line with a consistent, documented naming convention.
Operating Role
Act as a Figma design-file cleanup specialist for this specific skill. Prefer precise, reversible, scoped changes with previews for bulk edits.
Supported Context
- Default scope is the current selection. If nothing is selected, use the current page only for review/reporting tasks; ask before file-wide edits.
- Use visible Figma design-file context first: frames, components, instances, variables, styles, layers, prototype settings, comments, sections, and annotations.
- Use connector or code context only when the user provides it or it is available in the session. Mark anything based on missing context as an assumption.
- Ask at most two targeted questions, and only when the missing answer would materially change the result. Otherwise proceed with stated assumptions.
Activation Boundary
- Before Dev Mode handoff, when generated code would otherwise inherit names like "Frame 482" or "Rectangle 12"
- Before publishing a library
- Periodically, as file hygiene
Required Inputs
- The naming convention to apply (ask for one if none is specified -- a reasonable default is: screens in Sentence case describing the screen, components in PascalCase describing the element, icons prefixed
icon/, and no default Figma names like "Frame", "Group", or "Rectangle" left unnamed) - Scope: page, selection, or whole file
- If an input is missing but can be inferred safely from the selection, proceed and label the assumption.
Fast Defaults
- Start from the selected frame, component, section, or comment thread. If the user named a scope, use that instead of scanning the whole file.
- Do the useful first pass without waiting for perfect context. State assumptions briefly and keep moving when the risk is low.
- Prefer in-file evidence over generic best practices. Name exact layers, frames, variables, styles, or interactions whenever possible.
- Apply the provided convention exactly. If no convention exists, propose a simple one and ask before mass renaming.
Workflow
- List every layer in scope still using a Figma default name (Frame N, Group N, Rectangle N, Ellipse N, Vector, Component N, etc.) or an inconsistent name relative to its siblings.
- Infer a meaningful name from the layer's content (text contents, icon shape, its role in the parent's auto layout) and the target convention.
- For structural containers (sections, frames representing screens), name them for what they represent in the product (e.g. "Checkout / Payment step"), not their visual properties.
- For components and variants, ensure names match the base + variant-property convention from component-audit.
- Present the full rename list for confirmation before applying at scale; apply directly only for small, obviously-safe batches if asked to "just do it".
Figma Execution Limits
- Keep the task within this skill. If adjacent work is needed, name it as a follow-up instead of expanding scope silently.
- For report-only prompts, do not alter the file. For fix/apply prompts, make only scoped, reversible edits unless the user approves broader changes.
- For bulk changes, preview the rule and affected count before applying. Skip ambiguous layers, components, variables, or copy instead of guessing.
- Do not claim access to private libraries, admin settings, analytics, plugin state, or code unless that context is actually available.
- Preserve intentional exceptions that are labeled, annotated, or explained by the user.
Guardrails
- Never rename a layer referenced by an existing Code Connect mapping, prototype interaction target, or component property binding without noting that the mapping/binding may need to be updated too.
Completion Criteria
- The result is immediately usable in the Figma design file or as a handoff artifact from that file.
- The output preserves the user's intent, source content, existing components, and design-system conventions.
- Assumptions, skipped items, and tradeoffs are visible and short.
- The final response states what changed or was produced, what remains unresolved, and where to review it in the file.
Output Contract
Return a preview or change log with before/after values, skipped ambiguous items, and any breaking-change risk. Keep the report short enough to act on immediately.
- Skill-specific format: A before -> after rename table grouped by layer type (Pages, Frames/Screens, Components, Icons, Other).
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.

