Global Commenting
Establish clear and maintainable comments throughout JavaScript modules, CSS, and HTML files in this static website project. Use this skill when adding, updating, or reviewing comments in source code to ensure they follow consistent conventions and improve code readability.
Security Assessment
About Global Commenting
The Global Commenting skill is designed to help developers maintain clear, consistent, and informative comments across a static website project, specifically targeting JavaScript, CSS, HTML, and JSON files. By standardizing how comments are added, updated, and reviewed, this skill addresses the common problem of unclear or inconsistent documentation within codebases. It ensures that developers and collaborators can quickly understand complex logic, design decisions, and non-obvious functionality, reducing the risk of errors and improving maintainability over time.
This skill provides capabilities to annotate JavaScript modules with explanations for intricate logic or function behavior, document parameters and function purposes, clarify CSS selectors and styling rules, and add descriptive header comments in HTML files to outline section purposes or page structure. Additionally, it supports commenting in JSON data files to explain custom formats or conventions, and facilitates the inclusion of TODO and FIXME markers for future improvements. By offering structured guidance on comment placement and content, it helps maintain alignment with coding standards and project conventions, ensuring that documentation evolves alongside code changes.
Target users include frontend developers, web designers, and code reviewers who work on static website projects, particularly those using vanilla JavaScript, CSS, and HTML. Typical use cases include adding new comments when implementing features, updating existing comments during refactoring, reviewing code to ensure documentation accuracy, and marking areas for future enhancement. By using this skill, teams can achieve better readability, reduce onboarding time for new contributors, and create a more maintainable and professional codebase.
FAQ
When should I use the Global Commenting skill?
Use this skill when adding, updating, or reviewing comments in JavaScript, CSS, HTML, or JSON files to maintain consistency and clarity in the codebase.
Is this skill compatible with frameworks like React or Vue?
The skill is intended for vanilla JavaScript, CSS, and HTML in a static website project. It may not provide framework-specific guidance.
Can it help with automated code commenting?
This skill provides guidance for manual commenting; it does not automatically generate comments.
Are there any file types not supported by this skill?
The skill focuses on JavaScript, CSS, HTML, and JSON files. Other file types are not explicitly covered.
Does it enforce coding standards or only provide guidance?
It provides guidance for consistent commenting but does not enforce coding standards automatically.
Install Global Commenting
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
adigunners/adigunners.github.io