본문으로 건너뛰기
Skillpedia
테스트15k · #11028

trellis-check

하는 일

스킬은 방금 작성한 코드를 프로젝트의 규칙과 도구로 품질 검사합니다. 커밋 전에 최종 검토를 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓코드를 작성했고 커밋하기 전에 품질 검사가 필요할 때.
  • ✓테스트, 린트, 타입 검사가 모두 통과하는지 확인하고 싶을 때.
  • ✓긴 세션에서 코드가 프로젝트 규칙에서 벗어났을 수 있는 경우.

스킬 링크

https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-check/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-check/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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.md
  • design.md if present
  • implement.md if 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬