jyjeanne/ai-setup-forge/code-comments-best-practices
Claude Code and agent skill by jyjeanne/ai-setup-forge
- community
Checking that the SKILL.md file is still in the repository.
Guidance and best practices for code comments best practices.
Install
npx vskill@latest install jyjeanne/ai-setup-forge/code-comments-best-practicesSKILL.md
The same SKILL.md was published earlier as jyjeanne/ai-setup-forge/code-comments-best-practices.
Code Comments Best Practices
Procedure
1. Self-Documenting Code
Prioritize clean code over comments.
2. Using JSDoc/TSDoc
Use structured comments for public APIs, functions, and classes to enable IDE intellisense.
3. Explaining the "Why"
Use comments to explain complex logic, hacks, or business requirements that aren't obvious.
4. TODOs and FIXMEs
Mark incomplete or problematic areas clearly.
Constraints
- No Redundancy: Avoid
// This is a user classaboveclass User. - Delete Dead Code: Don't comment out code; let Git handle the history.
- Stay Up to Date: A misleading comment is worse than no comment. Update comments when the code changes.
Expected Output
A codebase where comments provide valuable context and intent, rather than cluttering the logic.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/code-comments-best-practices/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jyjeanne/ai-setup-forge/code-comments-best-practices)