Skip to content
Back to skills

Coding Style 3

ASecurity

Guidelines for writing clean, professional code. Use when writing or modifying code, creating commits, or generating code comments. Ensures code is written for team consumption without conversation artifacts.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentationapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill coding-style-3 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coding Style 3?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coding Style 3
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-coding-style-3/badge)](https://www.skillsdirectory.com/skills/david-li0406-coding-style-3)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: coding-style
description: Guidelines for writing clean, professional code. Use when writing or modifying code, creating commits, or generating code comments. Ensures code is written for team consumption without conversation artifacts.
---

# Coding Style Guidelines

## Context-Free Communication

Never reference our conversation in code, commits, or comments. Avoid phrases like:
- "Option A/B"
- "as discussed"
- "per your request"
- "as mentioned earlier"

Write for developers who will read the code without access to this chat.

## Comments

Avoid tutorial-style or learning-oriented comments such as:
- `// someFunctionName is no longer needed here`
- `// We removed this because...`
- Explanatory comments directed at the developer making the change

Only add comments that explain non-obvious "why" decisions that future maintainers need to understand.

## Write for the Team

Commits, comments, and code will be read by other developers. Explain the "why" in a way that stands alone. The code and its history should be self-documenting without requiring conversation context.

## Newspaper Article Code Organization

Structure code with important elements at the top, details below—like a newspaper article where the headline comes first.

**Ordering principles:**
1. Public members before private members
2. Public functions before private functions
3. High-level logic before implementation details
4. When extracting a helper function from a larger function, place the helper **after** the original function

This allows readers to understand the public API and main flow before diving into implementation details.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…