trellis-check
하는 일
스킬은 방금 작성한 코드를 프로젝트의 규칙과 도구로 품질 검사합니다. 커밋 전에 최종 검토를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓코드를 작성했고 커밋하기 전에 품질 검사가 필요할 때.
- ✓테스트, 린트, 타입 검사가 모두 통과하는지 확인하고 싶을 때.
- ✓긴 세션에서 코드가 프로젝트 규칙에서 벗어났을 수 있는 경우.
스킬 링크
https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-check/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“방금 작성한 코드를 우리 프로젝트 규칙과 비교하고, 커밋하기 전에 테스트를 실행해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 변경된 파일을 나열하고, 작업 요구 사항과 관련 명세 검사를 읽은 뒤, 프로젝트의 린트, 타입 검사, 테스트 명령을 실행합니다. 그다음 품질 항목 체크리스트를 하나씩 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Code Quality Check
Comprehensive quality verification for recently written code. Combines spec compliance, cross-layer safety, and pre-commit checks.
Step 1: Identify What Changed
git diff --name-only HEAD
git status
Step 2: Read Task Artifacts and Applicable Specs
Read the current task artifacts in order:
prd.mddesign.mdif presentimplement.mdif present
python3 ./.trellis/scripts/get_context.py --mode packages
For each changed package/layer, read the spec index and follow its Quality Check section:
cat .trellis/spec/<package>/<layer>/index.md
Read the specific guideline files referenced — the index is a pointer, not the goal.
Step 3: Run Project Checks
Run the project's lint, type-check, and test commands. Fix any failures before proceeding.
Step 4: Review Against Checklist
Code Quality
- Linter passes?
- Type checker passes (if applicable)?
- Tests pass?
- No debug logging left in?
- No suppressed warnings or type-safety bypasses?
Test Coverage
- New function → unit test added?
- Bug fix → regression test added?
- Changed behavior → existing tests updated?
Spec Sync
- Does
.trellis/spec/need updates? (new patterns, conventions, lessons learned)
"If I fixed a bug or discovered something non-obvious, should I document it so future me won't hit the same issue?" → If YES, update the relevant spec doc.
Scope Discipline
- Any tidying of code the task did not require?
- Any abstraction, config or extension point added for a case that does not exist yet?
- Any speculative fallback for a state that cannot occur?
- Any file changed that the acceptance criteria do not mention?
- Any workaround added at the caller instead of a fix where the behavior actually lives?
Step 5: Cross-Layer Dimensions (if applicable)
Skip this step if your change is confined to a single layer.
A. Data Flow (changes touch 3+ layers)
- Read flow traces correctly: Storage → Service → API → UI
- Write flow traces correctly: UI → API → Service → Storage
- Types/schemas correctly passed between layers?
- Errors properly propagated to caller?
B. Code Reuse (modifying constants, creating utilities)
- Searched for existing similar code before creating new?
grep -r "pattern" src/ - If the same value repeats, does it represent one stable concept whose callers must change together? Extract only then — two literals that merely happen to match today should stay separate.
- After batch modification, all occurrences updated?
C. Import/Dependency (creating new files)
- Correct import paths (relative vs absolute)?
- No circular dependencies?
D. Same-Layer Consistency
- Other places using the same concept are consistent?
Step 6: Report and Fix
Report every violation you find. Then:
- Mechanical and local (lint nit, missing type, wrong import, dead branch, failing assertion) → fix in place, then re-run project checks.
- Design or judgment (naming a shared concept, moving a module boundary, changing a public interface, reassigning where behavior lives) → record the evidence and your recommendation, and stop. Do not rewrite it silently.
If a fix would touch files outside the current task's scope, say so and stop instead of widening the change.
자주 묻는 질문
실패한 검사를 고치나요?
네. 린트, 타입, 테스트 결과가 실패하면 다음으로 넘어가기 전에 고치라고 스킬이 말합니다.
테스트 누락도 확인하나요?
네. 새 함수에 단위 테스트가 있는지, 버그 수정에 회귀 테스트가 있는지, 바뀐 동작에 테스트가 갱신되었는지 확인합니다.
명세 동기화 검사란 무엇인가요?
새 패턴이나 얻은 교훈 때문에 프로젝트 명세 파일을 업데이트해야 하는지 묻는 것입니다.
상세 정보
작성자의 원본 설명
Comprehensive quality verification: spec compliance, lint, type-check, tests, cross-layer data flow, code reuse, and consistency checks. Use when code is written and needs quality verification, before committing changes, or to catch context drift during long sessions.
repo: mindfold-ai/Trellis
인기도
- GitHub 스타
- 15k
- 순위
- #11028
- 라이선스
- AGPL-3.0
- 업데이트
- 2026. 9. 29.
댓글
- …
이 저장소의 다른 스킬
first-principles-thinking
15k계획이나 설계를 기본 사실로 나누고 거기서부터 추론해 검증하도록 에이전트를 돕습니다. 습관이나 관례에 기대지 않습니다.
python-design
15k명확한 모듈, 단순한 인터페이스, 숨은 복잡성이 적은 Python 명령줄 스크립트를 작성하고 검토하도록 에이전트를 돕습니다.
trellis-before-dev
15k글을 쓰기 전에 프로젝트의 코딩 지침과 작업 메모를 읽어, 팀의 관례를 따르도록 에이전트를 돕습니다.
trellis-brainstorm
15k한 번에 하나씩 유용한 질문을 던지고 코드를 확인하며 좁은 범위에 합의해, 새 기능이나 불명확한 작업을 분명하게 하도록 에이전트를 돕습니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.