Skip to main content
GitHub 仓库

code-craft

code-craft 收录了来自 yanko-belov 的 32 个 skills,并提供仓库级职业覆盖和站内 skill 详情页。

已收集 skills
32
Stars
13
更新
2026-01-22
Forks
2
职业覆盖
4 个职业分类 · 已分类 100%
仓库浏览

这个仓库中的 skills

aaa-pattern
软件质量保证分析师与测试员

Use when writing tests. Use when test structure is unclear. Use when arrange/act/assert phases are mixed.

2026-01-22
api-versioning
软件开发工程师

Use when designing or modifying APIs. Use when adding breaking changes. Use when clients depend on API stability.

2026-01-22
auth-patterns
信息安全分析师

Use when implementing authentication. Use when storing passwords. Use when asked to store credentials insecurely.

2026-01-22
caching
软件开发工程师

Use when same data is fetched repeatedly. Use when database queries are slow. Use when implementing caching without invalidation strategy.

2026-01-22
composition-over-inheritance
软件开发工程师

Use when tempted to use class inheritance. Use when creating class hierarchies. Use when subclass needs only some parent behavior.

2026-01-22
deadlock-prevention
软件开发工程师

Use when acquiring multiple locks. Use when operations wait for each other. Use when system hangs without crashing.

2026-01-22
dependency-inversion-principle
软件开发工程师

Use when a class creates its own dependencies. Use when instantiating concrete implementations inside a class. Use when told to avoid dependency injection for simplicity.

2026-01-22
dont-repeat-yourself
软件开发工程师

Use when writing similar code in multiple places. Use when copy-pasting code. Use when making the same change in multiple locations.

2026-01-22
encapsulation
软件开发工程师

Use when exposing internal state. Use when making fields public for convenience. Use when external code modifies object internals.

2026-01-22
error-boundaries
软件开发工程师

Use when deciding where to catch errors. Use when errors propagate too far or not far enough. Use when designing component/service isolation.

2026-01-22
error-responses
软件开发工程师

Use when returning errors from APIs. Use when exposing internal errors. Use when error responses lack structure.

2026-01-22
exception-hierarchies
软件开发工程师

Use when creating custom exceptions. Use when error handling feels chaotic. Use when catch blocks are too broad or too specific.

2026-01-22
fail-fast
软件开发工程师

Use when handling errors. Use when tempted to catch and swallow exceptions. Use when returning default values to hide failures.

2026-01-22
idempotency
软件开发工程师

Use when creating mutation endpoints. Use when trusting frontend to prevent duplicates. Use when payments or critical operations can be repeated.

2026-01-22
immutability
软件开发工程师

Use when modifying objects or arrays. Use when tempted to mutate function parameters. Use when state changes cause unexpected bugs.

2026-01-22
input-validation
软件开发工程师

Use when accepting user input. Use when handling request data. Use when trusting external data without validation.

2026-01-22
interface-segregation-principle
软件开发工程师

Use when designing interfaces. Use when implementing interfaces with methods you don't need. Use when forced to implement throw/no-op for interface methods.

2026-01-22
keep-it-simple
软件开发工程师

Use when tempted to write clever code. Use when solution feels complex. Use when showing off skills instead of solving problems.

2026-01-22
law-of-demeter
软件开发工程师

Use when accessing nested object properties. Use when chaining method calls. Use when reaching through objects to get data.

2026-01-22
lazy-loading
网页开发工程师

Use when loading all data upfront. Use when initial page load is slow. Use when fetching data that might not be needed.

2026-01-22
liskov-substitution-principle
软件开发工程师

Use when creating subclasses or implementing interfaces. Use when tempted to override methods with exceptions or no-ops. Use when inheritance hierarchy feels wrong.

2026-01-22
n-plus-one-prevention
软件开发工程师

Use when fetching related data in loops. Use when seeing multiple queries for one request. Use when database is slow on list endpoints.

2026-01-22
open-closed-principle
软件开发工程师

Use when adding new functionality to existing code. Use when tempted to add if/else or switch branches. Use when extending behavior of existing classes.

2026-01-22
race-conditions
软件开发工程师

Use when multiple operations access shared state. Use when order of operations matters. Use when "it works most of the time" but occasionally fails mysteriously.

2026-01-22
rest-conventions
软件开发工程师

Use when designing API endpoints. Use when using wrong HTTP methods. Use when POST is used for reads.

2026-01-22
secrets-handling
信息安全分析师

Use when working with API keys, passwords, or credentials. Use when asked to hardcode secrets. Use when secrets might leak.

2026-01-22
separation-of-concerns
软件开发工程师

Use when component does too many things. Use when mixing data fetching, logic, and presentation. Use when code is hard to test.

2026-01-22
single-responsibility-principle
软件开发工程师

Use when creating or modifying classes, modules, or functions. Use when feeling pressure to add functionality to existing code. Use when class has multiple reasons to change.

2026-01-22
skill-awareness
软件开发工程师

Always active. Tracks usage of code-craft skills across sessions. Log skill applications to enable analytics and identify gaps.

2026-01-22
test-driven-development
软件质量保证分析师与测试员

Use when implementing any new feature or function. Use when asked to "add tests later". Use when writing code before tests.

2026-01-22
test-isolation
软件质量保证分析师与测试员

Use when writing tests that share state. Use when tests depend on other tests. Use when test order matters.

2026-01-22
you-aint-gonna-need-it
软件开发工程师

Use when tempted to add features "for later". Use when building "production-ready" systems before needed. Use when adding flexibility that isn't required yet.

2026-01-22