소스 정보
- 저장소
- xenoterracide/agent-skills
- 최근 소스 활동
- 2026년 7월 16일 18:17
- 감지된 SKILL.md 언어
- 영어
- 스타
- 0
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/xenoterracide/agent-skills --skill coding-standards명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Use when initializing, creating, updating, reviewing, or generating `AGENTS.md` files that provide project-level guidance to AI coding agents. Use when analyzing a codebase to decide whether guidance belongs in `AGENTS.md`, a reusable skill, or another document.
Use when writing a commit message, PR title, or PR description.
Use when finishing any task, wrapping up work, reporting results, giving a status update, or about to claim a task, implementation, fix, or test result is complete, done, fixed, passing, ready, or working. Invoke before saying "done", "complete", "fixed", "passing", "ready", "works", or reporting that something is finished.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | coding-standards |
| description | Use when writing or modifying code in any language. |
| license | CC-BY-NC-SA-4.0 |
| metadata | {"copyright":"Caleb Cushing"} |
These standards apply to all programming tasks regardless of language or framework.
Design code that follows SOLID principles with a focus on polymorphic behavior:
Encapsulate behavior so it's polymorphic - let the unit decide how to act rather than orchestrating externally.
Polymorphism takes many forms:
// BAD - external orchestration with conditionals
public void processPayment(PaymentType type, Amount amount) {
if (type == PaymentType.CREDIT_CARD) {
processCreditCard(amount);
} else if (type == PaymentType.PAYPAL) {
processPayPal(amount);
} else if (type == PaymentType.BANK_TRANSFER) {
processBankTransfer(amount);
}
}
// GOOD - polymorphic behavior, each type decides how to act
public interface PaymentMethod {
void pay(Amount amount);
}
public class CreditCardPayment implements PaymentMethod {
@Override
public void pay(Amount amount) {
// Credit card specific implementation
}
}
// Usage - no conditionals, behavior is encapsulated
public void processPayment(PaymentMethod method, Amount amount) {
method.pay(amount); // Polymorphic dispatch
}
If you follow these principles, your code will naturally be composable, clear, and aligned with the domain.
Prefer immutable objects and data structures where immutability doesn't reduce comprehension.
Benefits:
Examples:
// GOOD - immutable record
public record Person(String name, int age) {}
// GOOD - immutable collections
var items = List.of("a", "b", "c"); // Cannot be modified
// GOOD - builder pattern for complex immutables
var config = Config.builder().timeout(Duration.ofSeconds(30)).retries(3).build();
Avoid setters - Instead of anemic data objects with getters/setters, prefer domain-driven design with rich behavior:
// BAD - anemic object with setter
person.setStatus("APPROVED");
// GOOD - tell, don't ask
person.approve();
When mutability is acceptable:
Errors must never be silently ignored. Always handle errors explicitly by either:
Empty catch blocks:
// BAD - exception is silently lost
try {
riskyOperation();
} catch (Exception e) {
// ignored
}
Rethrow when you cannot handle it:
// GOOD - rethrow to let caller handle
try {
riskyOperation();
} catch (IOException e) {
throw new ApplicationException("Failed to process file", e);
}
Log when you need to continue:
// GOOD - log with context before continuing
try {
optionalCleanup();
} catch (Exception e) {
log.warn("Cleanup failed for resource {}, continuing anyway", resourceId, e);
}
Can you recover from this error?
Should the caller know about this error?
Is this an optional/non-critical operation?
Before implementing new functionality, check if it's already provided by standard libraries or existing dependencies. Prefer existing code over writing your own, even for seemingly "trivial" functions.
Before considering any task complete, run the relevant tests. See the testing
skill for test philosophy, patterns, and anti-patterns.
Tools like Checkstyle, SpotBugs, Error Prone, and others exist to catch issues early.
The Rule:
| Issue Found | Action |
|---|---|
| Violation reported | Fix it - don't suppress blindly |
| Fix would make code worse | Suppress at the source with justification |
Suppress static analysis warnings only when:
Suppress at the closest point to the issue:
// GOOD - suppression is right at the source, with explanation
@SuppressWarnings("NullAway") // Factory method ensures non-null via validation
public static User create(String email) {
// ... validation logic ...
return new User(email); // NullAway can't see validation
}
// BAD - global suppression or far from source
// In some distant config file:
// checkstyle.ignore = ["MethodLength"]
See pull-request skill for the full self-review checklist before creating or
updating a PR.
Don't waste reviewer time on issues you could have caught yourself.