jcorpac/ai-skills-library/doc-inline-clean
Claude Code and agent skill by jcorpac/ai-skills-library
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Guidelines for writing self-documenting code and knowing when (and how) to use comments.
Install
npx vskill@latest install jcorpac/ai-skills-library/doc-inline-cleanSKILL.md
The same SKILL.md was published earlier as jcorpac/ai-skills-library/doc-inline-clean.
Inline Documentation & Clean Code
Code should be written for human readers first and computers second.
Self-Documenting Code
The best documentation is code that reveals its intent without comments:
- Descriptive Names:
calculate_interest_rate()instead ofcir(). - Small Functions: Break complex logic into smaller, well-named pieces.
- Explain with Code:
is_valid_user = user.active and not user.bannedinstead of a comment explaining theifcondition.
When to Comment
- Explain WHY, not WHAT: Don't comment what the code does; explain the non-obvious rationale behind it.
- Legal/Attribution: For licenses or inherited complex algorithms.
- Warnings: "Don't change this order, it will break [Service X]".
- TODOs: Tracking debt or future work (but keep these to a minimum).
Bad Comments
- Redundant:
i = i + 1 # Increment i. - Stale: Comments that refer to old versions of code.
- Zombie Code: Commented-out blocks of code that "we might need later". (Use Git for that instead).
Summary
If you feel the need to write a comment explaining how something works, consider refactoring the code to be clearer instead.
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 repositoryCheckingdoc/doc-inline-clean/SKILL.md
Popularity
- 7-day trend score
- 5
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/jcorpac/ai-skills-library/doc-inline-clean)