Global Conventions
Maintain consistent code structure and naming patterns across JavaScript modules, CSS, and HTML files in this static website. Use this skill when establishing or following project-wide conventions for file organization, naming, and code structure.
Security Assessment
About Global Conventions
The Global Conventions skill is designed to help maintain consistency and standardization across all code and assets in a static website project, specifically within the adigunners.github.io repository. By providing structured guidelines for file organization, naming conventions, and code structure, this skill addresses the common challenge of inconsistent coding practices that can lead to maintenance difficulties, reduced readability, and errors when multiple developers contribute to the same project. It ensures that JavaScript, CSS, HTML, and JSON files follow a unified approach, making the project easier to understand, extend, and maintain over time.
This skill offers a range of capabilities aimed at enforcing consistent coding practices. It guides developers on naming patterns for JavaScript functions and variables, file naming conventions for components and utilities, and structured organization of JSON data files. Additionally, it promotes uniform HTML structure and CSS formatting, including consistent indentation, selector organization, and class naming methodologies such as BEM. The skill also provides guidance on module export patterns in vanilla JavaScript to facilitate code reusability. By adhering to these conventions, teams can achieve predictable project structure and improved collaboration.
Global Conventions is particularly useful for web developers, front-end engineers, and project maintainers who work on static websites or small to medium-scale web projects. It is ideal for teams looking to establish or enforce project-wide coding standards and for new contributors who need to quickly understand and follow existing conventions. Typical use cases include creating new JavaScript modules or components, updating HTML pages consistently, organizing CSS rules for maintainability, and ensuring JSON data files adhere to a standardized format. Overall, this skill streamlines project consistency and reduces the potential for errors arising from inconsistent code practices.
FAQ
When should I use the Global Conventions skill?
Use this skill when establishing or following consistent coding standards across JavaScript, CSS, HTML, and JSON files within your static website project. It is particularly helpful for new components, modules, or updates that need to adhere to project-wide conventions.
Which file types and directories does this skill apply to?
The skill applies to JavaScript modules in the `js/` directory, CSS files, HTML files such as `index.html` and `winners.html`, and JSON data files in the `data/` directory.
Does this skill enforce specific naming methodologies for CSS classes?
Yes, it provides guidance on CSS class naming conventions, recommending approaches such as BEM or other consistent methodologies, but it does not enforce a specific one automatically.
Are there any requirements to use this skill effectively?
To use this skill effectively, developers should have basic familiarity with JavaScript, CSS, HTML, and JSON. The skill assumes you are working within a static website project and following standard module and file structures.
Can this skill help with module exports in JavaScript?
Yes, it provides guidance on maintaining consistent module export patterns in vanilla JavaScript to enhance code reusability and maintainability across the project.
Install Global Conventions
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
adigunners/adigunners.github.io