CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

coding-principles

These principles guide coding decisions around design, structure, readability, error handling, performance, comments, and security. They emphasize minimizing lasting complexity, following responsibility and contract boundaries, and making code changes easy to understand and maintain. The guidance also covers how to evaluate related code and consumers when making changes.

Quality

72%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Fix and improve this skill with Tessl

tessl review fix ./dev-skills/skills/coding-principles/SKILL.md

The canonical home for this skill is coding-principles in shinpr/claude-code-workflows

SKILL.md
Quality
Evals
Security

Quality

Content

63%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-organized, lean principles reference with exemplary progressive disclosure — both bundle files are real, one level deep, and gated by explicit read-when conditions. The main weaknesses are generic best-practice bullets that restate what Claude already knows and abstract directives that would benefit from concrete examples.

Suggestions

Cut or merge bullets that restate universal knowledge (pure functions, high cohesion/low coupling, "write for future maintainers") and keep only the rules that encode this project's specific stance.

Illustrate the highest-value rules — the exhaustive-branching pattern, magic-number provenance, and the comment justification test — with a short before/after code snippet each so they are directly applicable.

Consolidate redundant pairs (e.g., the two early-return bullets in Function Organization, the two "when to optimize" bullets in Performance) to recover tokens without losing meaning.

DimensionReasoningScore

Conciseness

The body is dense and sectioned with no padded prose, but a substantial share of bullets restate knowledge Claude already has ("Pure functions when possible", "High cohesion within modules, low coupling between", "Write for future maintainers", "Use proper grammar and formatting"). It is mostly efficient with several trimmable restatements, matching anchor 3 rather than 4.

3 / 5

Actionability

As an instruction-only skill it needs concrete guidance rather than code, and some rules are genuinely specific (the exhaustive-branching rule, magic-number provenance, the comment justification test, parameterized queries). However, most sections give high-level direction ("Fail fast", "Keep code self-documenting") without examples or before/after illustrations, matching anchor 3.

3 / 5

Workflow Clarity

No multi-step process is required for this reference-style skill, and content is organized by concern so each topic's guidance is unambiguous; the under-50-line simple-skill exception does not apply at ~140 lines. It sits at anchor 4 — clear organization, no validation needed for risky operations — rather than 5 because there is no explicit guidance on applying the principles in any order.

4 / 5

Progressive Disclosure

Both referenced files (references/security-checks.md and references/frontend.md) exist, are exactly one level deep, and are clearly signaled with read-when triggers ("For concrete detection patterns used by security review, see references/security-checks.md"; "read when implementing, reviewing, or fixing user-facing UI code"). The body uses well-organized section headers, matching the top anchor.

5 / 5

Total

15

/

20

Passed

Description

66%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description has an explicit and well-formed 'Use when...' trigger clause, but the capability statement stays abstract — it names qualities rather than concrete actions. Its very broad triggers create real conflict risk with other coding-related skills.

Suggestions

Replace the abstract quality list with 2-3 concrete capabilities, e.g. "Apply principles for naming, function design, error handling, commenting, and secure defaults" so readers know what the skill actually provides.

Narrow the trigger scope or add distinctive phrases (e.g. "when deciding how to structure or name code", "clean code review") to reduce overlap with general code-review and language-specific style skills.

Add common synonyms users would say, such as "code quality", "best practices", or "clean code", to improve natural trigger-term coverage.

DimensionReasoningScore

Specificity

The description names the domain ("Language-agnostic coding principles for maintainability, readability, and quality") but lists no concrete actions or capabilities — maintainability and readability are qualities, not actions. It matches the anchor 'Names the domain but actions are minimal or generic' rather than level 3, which requires 1-2 concrete actions.

2 / 5

Completeness

It explicitly answers both questions: the "what" ("Language-agnostic coding principles for maintainability, readability, and quality") and a concrete "when" with three trigger phrases ("Use when implementing features, refactoring code, or reviewing code quality"). The 'when' clause is explicit and specific, matching the top anchor rather than level 4 where the 'when' could be more explicit.

5 / 5

Trigger Term Quality

"Use when implementing features, refactoring code, or reviewing code quality" supplies natural phrases users would say, with good coverage of the main coding activities. It falls short of level 5 because common variations like "clean code", "code smells", or "best practices" are absent.

4 / 5

Distinctiveness Conflict Risk

The triggers (implementing, refactoring, reviewing code) span virtually all coding work, giving high overlap risk with code-review, language-style, and refactoring skills. It is very broad rather than 'somewhat specific', matching the level-2 anchor.

2 / 5

Total

13

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

shinpr/claude-code-workflows

Path

dev-skills/skills/coding-principles/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.