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

universal-invariant-baseline

Use when invoked to apply an invariant-first, fail-fast, special-case-eliminating baseline. Not for domain models in types: use type-driven. Not for design-by-contract: use contract-driven.

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

설치 방법 보기

포함된 파일(2)

  • SKILL.md3.9 KB
  • agents/openai.yaml173 B

SKILL.md(원문)

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

Universal invariant baseline

Contract

FieldBound contract
TriggerUser explicitly requests an invariant-first, fail-fast, special-case-eliminating baseline for a named implementation.
AuthorityReversible local: writes only the named local artifact; rollback is version control (restore) or undo (file deletion). No remote mutation.
Side effectReplace the target local file with its invariant-first, fail-fast, special-case-eliminating refinement.
DoneAll named invariant checks pass and no unresolved special-case artifacts remain.

Inputs

Required:

  • TARGET: path to the local source file or module to baseline.
  • LANGUAGE: the target's language (e.g., python, rust, typescript). Required to select correct invariant patterns.

Procedure

  1. Validate the request. Confirm TARGET is a concrete, scoped implementation task with a named local path. If TARGET is absent, empty, or points to a non-local artifact, raise BLOCKED-INPUT and stop. Done when: TARGET is confirmed as a concrete local path.
  2. Enumerate invariants. For LANGUAGE, enumerate the language-native invariant patterns that govern correctness: type contracts, ownership/borrow rules, null/void guards, resource lifecycle ordering, and domain-specific preconditions. Write each as a named, executable check with a unique identifier. Done when: every invariant pattern is a named, executable check with a unique identifier.
  3. Insert fail-fast guards. Before every mutable state operation, every external call, and every branching decision, insert the matching invariant check. If any check fails, halt immediately with INVARIANT-FAIL: <identifier> and the observed violation. The target artifact is unchanged until all checks pass. Done when: every mutable state operation, external call, and branching decision has a matching invariant guard.
  4. Eliminate special cases. Scan the target for:
    • Boolean flag arguments or module-level toggles that gate behavior.
    • Hardcoded branch paths that duplicate a general case.
    • Numeric or string domain constants used as inline guards. For each found artifact, either refactor the boolean branch into a data-driven lookup, merge the special case into the general path, or convert the magic constant into a named constant with a documented invariant. Done when: no boolean flags, hardcoded duplicate branches, or inline magic constants remain.
  5. Re-validate. Run checks by compiling the target in its language-native build and running the existing test suite scoped to the target. If the project has no compile step, run the test suite alone. If any check fails, halt with INVARIANT-FAIL: <identifier> listing the specific failure. Record the complete set of removed special-case artifacts as the resolution log. Done when: all invariant checks pass and the resolution log is complete.

Failure and recovery

Failure classConditionResult
BLOCKED-INPUTTARGET absent, empty, or non-localStop. No file changed.
INVARIANT-FAILA named invariant check failsStop. Artifact unchanged. Report <identifier>.
SPECIAL-CASE-INCOMPLETENot all special-case artifacts resolvedStop. Report the unresolved set.

Partial-result rule: in-place edits to the target are rolled back via VCS on failure. Run git restore TARGET to revert the working copy to its pre-edit state. If the target was a new file, delete it instead. No partial result is emitted.

Output

The target local artifact replaced with its invariant-first refinement, plus a resolution log listing every removed special case and the invariant identifier that now governs its behavior.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Use when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Not for the Rust FFI binding layer: use rust-ffi.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

Use when configuring ADC sampling time, DMA-driven ADC, calibration, or DAC channel setup on bare-metal MCUs. Not for the DMA stream itself: use dma-baremetal.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

af-xdp

무료

Use when creating AF_XDP sockets, configuring UMEM and XSK rings, writing an XDP redirect program, or choosing copy versus zero-copy mode. Not for full kernel bypass: use dpdk.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

Use when a completed session needs an agent-environment retrospective. Not for an engineering retrospective from telemetry: use engineering-retrospective.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

Use when a redacted, trimmed agent transcript must be appended to a GitHub PR or issue body, with human approval and preview. Not for automated or model-initiated insertion.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

agents-md

무료

Use when a repo needs agent setup, AGENTS.md added or made lean, CLAUDE.md audited, or agent instructions scored or pruned. Not for remote, credential, publish, deploy, or irreversible changes.

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

OutlineDriven/odin-claude-plugin372026년 9월 29일 업데이트

OutlineDriven의 스킬 모두 보기

이 스킬의 문제 신고