Claude-skill-registry coding-comments
My personal best practices for writing clear and effective code comments.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/coding-comments" ~/.claude/skills/majiayu000-claude-skill-registry-coding-comments && rm -rf "$T"
manifest:
skills/data/coding-comments/SKILL.mdsource content
Coding Comments
Gotchas
- When creating source code file top-level descriptions, do not use
format. Instead, use Taylor Otwells commenting style (adapted to typescript comments, instead of php).//ABOUTME: <etc>
</EXAMPLE>/* |------------------------------------------------------------------------------ | Heading: How to write your code comments like Taylor |------------------------------------------------------------------------------ | | In Laravel, there are 598 three-line code comments. The first line of each | is ~74 characters long. Each subsequent line has three characters fewer | than the one above it. Whether trailing periods count is your choice. | | Descriptions proceeding the first very-specifically-formatted line can be | any length you want, and can have multiple paragraphs. | - Also, optional dot points | */