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

76%

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-workflows/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

65%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 dense, largely actionable principles document with excellent progressive disclosure to two real, well-signaled reference files. Its weaknesses are token efficiency — duplicated bullets and generic clean-code content Claude already knows — and the absence of any explicitly sequenced workflow with validation checkpoints, which matters less for a reference-style skill but still leaves guidance implicit.

Suggestions

Remove the duplicated guidance: the naming bullets (lines 25-27) repeat each other, early returns appear twice (lines 43-44), and the three 'When to Optimize' bullets (lines 78-80) restate the 'Measure first' principle — consolidate each pair into a single bullet.

Cut or externalize generic clean-code wisdom Claude already knows ('Separate concerns: Domain logic, data access, presentation', 'Module cohesion: High cohesion within modules, low coupling', 'Keep code self-documenting where possible') so the body carries only the non-obvious, project-specific principles like Reference Representativeness and Structure for Local Edits.

For the highest-leverage procedures (reference expansion and the comment test), add one concrete worked example each — e.g. a two-line before/after showing when a search 'found nothing' versus when a consumer was actually judged — to make the stopping conditions unambiguous.

DimensionReasoningScore

Conciseness

The body includes genuinely non-obvious guidance (Reference Representativeness, Structure for Local Edits, the comment test) but also duplicated bullets — naming guidance appears twice (lines 25-27), early-return guidance twice (lines 43-44), and optimize-after-profiling twice (lines 78-80) — plus generic clean-code wisdom Claude already knows ('Separate concerns', 'High cohesion within modules, low coupling'). This sits between 'noticeably verbose' and 'lean', so it lands on the midpoint.

3 / 5

Actionability

Many directives are concrete and conditional, e.g. 'Take each value from an existing requirement, contract, measurement, or repository value... mark the constant as an assumed value in a comment' and 'make every branch handle each value explicitly... by an exhaustiveness check where the language has one'. As an instruction-only skill no code is expected, but a few bullets remain generic ('Keep the codebase lean and focused', 'Write for future maintainers'), keeping it below fully executable coverage.

4 / 5

Workflow Clarity

This is a principles compendium rather than a procedural skill, so there is no multi-step sequence; some decision procedures with stopping conditions exist ('Expand to all known consumers... Stop when the candidates that could change implementation or proof have been read and judged'), and validation checkpoints (compiler/lint checks, caller checks, profiling) are implicit rather than explicitly sequenced. It cannot reach 4 without a clear step sequence, and is above 2 because the per-topic organization and embedded checks are coherent.

3 / 5

Progressive Disclosure

Both referenced files exist (references/frontend.md, references/security-checks.md) and are one level deep with clear signals and trigger conditions: 'For concrete detection patterns used by security review, see references/security-checks.md' and the References entry 'read when implementing, reviewing, or fixing user-facing UI code'. The split is appropriate — core principles inline, specialized frontend rules and security detection patterns external — yielding easy navigation.

5 / 5

Total

15

/

20

Passed

Description

75%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.

A well-formed description with an explicit and concrete 'Use when...' clause covering implementation, refactoring, and review triggers. Its main weaknesses are the absence of concrete capability statements and a broad trigger set that risks overlap with most other coding skills.

DimensionReasoningScore

Specificity

The description names the domain and its focus areas ("Language-agnostic coding principles for maintainability, readability, and quality") but offers no concrete actions or capabilities — it describes what the skill contains rather than what it does, matching 'names domain and 1-2 concrete elements, not comprehensive'. It is above a score of 2 because it is more specific than a bare domain claim, but below 4 because no specific actions are listed.

3 / 5

Completeness

Both parts are explicit: the 'what' ('Language-agnostic coding principles for maintainability, readability, and quality') and the 'when' ('Use when implementing features, refactoring code, or reviewing code quality') with concrete trigger phrases. This clearly matches the anchor for explicitly answering both what and when, and cannot be 4 since the when-clause is fully explicit rather than improvable.

5 / 5

Trigger Term Quality

The trigger phrases 'implementing features, refactoring code, or reviewing code quality' are natural terms users would say when needing this skill. It falls short of 5 because common variations such as 'clean code', 'best practices', or 'code smells' are missing, but exceeds 3 because the included terms are genuinely natural rather than generic.

4 / 5

Distinctiveness Conflict Risk

'Language-agnostic' carves out a distinct niche versus stack-specific skills, but triggers like 'implementing features' and 'reviewing code quality' overlap with virtually any coding or code-review skill. It is more specific than the anchor-2 example ('Helps with document files') but does not reach 'mostly distinct' given the breadth of the use-when clause.

3 / 5

Total

15

/

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-workflows/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.