본문으로 건너뛰기
cccskills
무료GitHub에 공개

principle-boundary-discipline

Apply when wiring validation, error handling, or framework adapters. Concentrate guards at their owning boundaries, including public framework APIs. Trust established invariants, retain necessary runtime checks, and keep core logic in pure functions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

neohaskell/NeoHaskell스타 348(GitHub 348 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(2)

  • SKILL.md2.4 KB
  • agents/openai.yaml43 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Boundary Discipline

Place validation, type narrowing, and error handling at the boundaries that own their contracts, including public framework APIs. Trust invariants established by types or earlier checks. Preserve operation-specific checks required by the contract when types or earlier checks do not establish the condition. Core logic lives in pure functions. The shell is thin and mechanical.

Why: Repeating established validation is noisy and redundant. Keep core rules separate from effectful adapter wiring so they can be tested independently.

The pattern:

  • At boundaries (CLI args, config files, external APIs, network protocols, public framework APIs): validate and handle errors according to the contract.
  • Inside the system: typed data and error propagation. Do not repeat validation of established invariants. Preserve operation-specific checks required by the contract when the types or earlier checks do not establish the condition.
  • Across the boundary. Expose domain concepts, not the boundary's private representation. Keep general-purpose mechanism inside and special-purpose policy at the edge.

Applications:

Validation and error handling:

  • Validate config at parse time (the boundary), not inside business logic
  • Parse raw data into domain types at the boundary
  • Do not leak private transport, storage, or wire representations through the public API. Framework types and intentional interoperability types may be part of the public contract.
  • No redundant nil checks deep in call chains if the boundary already validated

Code organization:

  • Core rules in pure functions using stable framework types, without dependencies on effectful adapter wiring
  • Parse functions: pure transforms from raw bytes to typed state
  • Prompt construction: structured state in, string out
  • Scoring and assessment: pure transforms from state to results

The tests:

  • "Is this data crossing a boundary right now?" If not, distinguish repeated validation of an established invariant from an operation-specific check required by the contract.
  • "Can this be a pure function that the shell just calls?" If yes, extract it.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

architect

무료

Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

neohaskell/NeoHaskell3482026년 10월 26일 업데이트

arena

무료

Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

neohaskell/NeoHaskell3482026년 10월 26일 업데이트

babysit

무료

Inspect or supervise a PR or stack through review and CI to merge-ready, using current GitHub evidence and the requested mode.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

neohaskell/NeoHaskell3482026년 10월 26일 업데이트

Vet a perf measurement (limiter, tuning, limits, errors, repeatability, relevance, and whether the work happened) before you report or act on it. Use when you benchmark or report a measured speedup or regression, including complete framework flows and compilation of projects that consume the framework.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

neohaskell/NeoHaskell3482026년 10월 26일 업데이트

bro

무료

Restate the last message in plain human language, with no jargon.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

neohaskell/NeoHaskell3482026년 10월 26일 업데이트

Build or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. Use for CLI UX checks, startup regressions, memory leaks, hangs, prompt flows, or terminal demos.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

neohaskell/NeoHaskell3482026년 10월 26일 업데이트

neohaskell의 스킬 모두 보기

이 스킬의 문제 신고