coding-style
Write clean, maintainable code with clear separation of concerns, small pure functions, early-return control flow, and no nested ternaries.
Skill by bioleyl
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/bioleyl-coding-style
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/coding-style
What's inside
- Skill name
coding-style- Description
- Write clean, maintainable code with clear separation of concerns, small pure functions, early-return control flow, and no nested ternaries. Use when implementing, reviewing, or refactoring code.
- License
- MIT
- Instructions
- 43 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- skill.json
SKILL.md (first lines)
# Coding style
Understand the existing architecture and conventions before changing code. Make the smallest change that solves the problem and preserve unrelated behavior.
## No magic numbers
Always use named `const` values for literal numbers that carry domain meaning. A bare `100` or `60` tells the reader nothing; `SCORE.nameExactMatch` or `MAX_RETRY_COUNT` communicates intent and makes future adjustments localized.
## No magic strings
Always use named `const` values for literal strings that carry domain meaning. A bare `"project"` or `"user"` tells the reader nothing; `SCOPE.project` or `LOCKFILE_PATH` communicates intent. This applies to status codes, environment variable names, file paths, and any string used in more than one place.
## Structure
- Keep responsibilities separated: domain rules should not perform I/O, and orchestration should not contain low-level implementation details.
- Prefer small functions with one clear responsibility and descriptive names.
- Keep pure logic deterministic and move filesystem, network, time, environment, and process effects to explicit boundaries.
- Prefer simple composition over premature abstractions. Introduce an abstraction when it removes a real dependency or clarifies a stable boundary.
## Control flow
- Use guard clauses and early returns for invalid input, errors, and exceptional cases.
- Avoid nested `if` statements. If a condition is not an early return, extract a named predicate or function.
- Prefer exhaustive mappers over `switch` statements for type- or case-based logic. Use a typed map such as `const labels: Record<MyType, string> = { ... }`; adding a member to `MyType` then produces a compile-time error until the mapper is updated.
- Never use nested ternaries. If the logic needs more branching than a simple ternary or an early return, the function is doing too much: split it into smaller functions with clear responsibilities.
- Avoid deeply nested loops and callbacks; extract the inner operation when it needs its own explanation.
## Function shape
- Prefer `const` over `let`. If a value would need to be assigned across a `try` block or multiple branches, extract that work into a named function that returns a `Result` or an explicit value.
- Keep orchestration functions short and phase-oriented. Extract setup, validation, execution, rollback, cleanup, and rendering into separate helpers when they have distinct responsibilities.
- Keep effectful boundaries explicit. A filesystem or network helper should perform one operation and return a structured result; callers should coordinate those results rather than mixing low-level effects with business rules.
- Avoid mutable state used only to carry context between branches, such as a `currentPath` variable for error reporting. Pass the context into a helper or return it with the operation result.
- Prefer named predicates and helpers over inline conditionals when they make a failure path or invariant easier to understand.
## Verification
- Preserve the existing public contract unless a breaking change is intentional.
- Add or update tests around behavior and failure paths.
- Run formatting, linting, type checking, and the relevant tests before finishing.
- Keep comments focused on why a non-obvious decision exists, not on repeating what the code says.From bioleyl/skills-repo, MIT.
More from bioleyl/skills-repo
- 0.547score
skills-repo
bioleyl
Use the skills-repo CLI to search, inspect, install, update, and remove agent skills.
SkillBFreshness: B★ 1Claude Code +9 - 0.542score
pr-reviewer
bioleyl
Perform structured code reviews covering correctness, security, performance, and tests with severity-tagged findings.
SkillBFreshness: B★ 1Claude Code +9 - 0.542score
refactor-plan
bioleyl
Plan safe, incremental refactorings by characterizing behavior first, taking small reversible steps, and keeping tests green.
SkillBFreshness: B★ 1Claude Code +9 - 0.542score
skill-creator
bioleyl
Author skills for this registry with correct SKILL.md structure, strong capability-and-trigger descriptions, skill.json manifests, and lean instruction bodies.
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
changelog-keeper
bioleyl
Maintain CHANGELOG.md in Keep a Changelog format and derive the SemVer bump from commits.
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
commit-lint
bioleyl
Write Conventional Commits messages and enforce them via git hook.
SkillBFreshness: B★ 1Claude Code +9 - 0.512score
test-design
bioleyl
Design tests using equivalence classes, boundary values, error paths, one behavior per test, and appropriate unit versus integration scope.
SkillBFreshness: B★ 1Claude Code +9 - 0.291score
debug-protocol
bioleyl
No description from the publisher yet.
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 5, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/bioleyl/skills-repo
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from bioleyl
- 0.547score
skills-repo
bioleyl
Use the skills-repo CLI to search, inspect, install, update, and remove agent skills.
SkillBFreshness: B★ 1Claude Code +9 - 0.542score
pr-reviewer
bioleyl
Perform structured code reviews covering correctness, security, performance, and tests with severity-tagged findings.
SkillBFreshness: B★ 1Claude Code +9 - 0.542score
refactor-plan
bioleyl
Plan safe, incremental refactorings by characterizing behavior first, taking small reversible steps, and keeping tests green.
SkillBFreshness: B★ 1Claude Code +9 - 0.542score
skill-creator
bioleyl
Author skills for this registry with correct SKILL.md structure, strong capability-and-trigger descriptions, skill.json manifests, and lean instruction bodies.
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
changelog-keeper
bioleyl
Maintain CHANGELOG.md in Keep a Changelog format and derive the SemVer bump from commits.
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
commit-lint
bioleyl
Write Conventional Commits messages and enforce them via git hook.
SkillBFreshness: B★ 1Claude Code +9
Cite this page
coding-style skill. Agent Mart. https://agentmart.dev/skills/bioleyl-coding-style (last updated 2026-10-24)