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-clean

SKILL.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 of cir().
  • Small Functions: Break complex logic into smaller, well-named pieces.
  • Explain with Code: is_valid_user = user.active and not user.banned instead of a comment explaining the if condition.

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jcorpac/ai-skills-library/doc-inline-clean/badge)](https://verified-skill.com/skills/jcorpac/ai-skills-library/doc-inline-clean)

Something wrong with this skill or its page? Tell us.