본문으로 건너뛰기
Skillpedia
테스트48k · #5100

logic-locate

하는 일

이 도구는 컴퓨터 프로그램 오류의 정확한 원인을 찾는 데 도움을 줍니다. 문제를 거꾸로, 그리고 앞으로 단계별로 조사해 오류가 어디서 생겼는지 밝힙니다.

사용하는 경우

  • ✓프로그램이 충돌하고 오류 로그(스택 트레이스)가 있을 때.
  • ✓특정 테스트가 실패했는데 이유를 모를 때.
  • ✓잘못된 결과를 발견하고 그 출처를 추적하고 싶을 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/logic-locate/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/logic-locate/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분.

작동 방식

AI는 오류를 분석하고, 오류로 이어진 데이터와 동작을 추적합니다. 그런 다음 그 경로가 실제로 관찰된 문제를 일으키는지 확인합니다. 목표는 상황이 잘못되기 시작한 정확한 지점을 찾는 것입니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Logic-Lens — Fault Locate

When to Use

Use this skill when you need locate the root cause of a CONFIRMED failure via backward-then-forward semi-formal tracing. Trigger when the user provides a stack trace, failing assertion, error message, or specific wrong-value observation — "find the bug", "this test is failing", "track down this crash", "why is...

Setup

Use lazy loading per ../_shared/common.md §13:

  1. Read ../_shared/common.md only for language, Iron Law, Fault Confidence, scope routing, Remedy discipline, config fields, and loading budget.
  2. Read only the relevant step in logic-locate-guide.md as you reach it.
  3. Load ../_shared/logic-risks.md, ../_shared/semiformal-guide.md, ../_shared/semiformal-checklist.md, and ../_shared/report-template.md on demand when the current step needs them.

Process

Step 0. Language + scope routing. Detect language per common.md §1. Confirm a concrete failure exists (stack trace, failing assertion, specific wrong value). If only a suspicion, switch to logic-review.

Step 1. Understand the failure (guide Step 1) — observed behavior, expected behavior, reproduction path.

Step 2. Identify the entry point (guide Step 2) — failing test, outermost application frame, or request handler — whichever is closest to the failure. Stay inside the failure cone first: stack frames, failing test fixture, directly called local functions, and config/env values read on that path. Do not scan unrelated modules unless the trace crosses into them.

Step 3. Trace backward from the failure point (guide Step 3) — walk each value and state back to its origin, building premises at every hop.

Step 4. Trace forward to confirm (guide Step 4) — from the suspected root, verify the trace reaches the observed symptom.

Step 5. Interprocedural tracing if a callee is implicated (guide Step 5) — trace into the callee; check return values under observed conditions, unhandled exceptions, shared-state mutation. Apply the depth limit and Call-Chain Context Label format defined in semiformal-guide.md §Call-Chain Context Labels; at the limit, state the remaining callee path as a premise assumption and downgrade to Medium confidence (per common.md §7).

Step 6. Identify the root divergence and classify (guide Step 6) — state the exact line/expression, the violated premise, the actual behavior, the propagation chain to the symptom; pick the L-code.

Step 7. Output the focused report (guide Step 7) — Fault Confidence (High/Medium/Low, per common.md §7); Primary Fault (single five-field finding); optionally Contributing Factors; a minimal Remedy per common.md §10. Format is mandatory even for simple one-function bugs: always emit the labeled Premises / Trace / Divergence / Trigger / Remedy fields and the Fault Confidence line. Never answer with a plain fix suggestion.

Mode line in report: Fault Locate (Chinese: 故障定位).

Output format: the Findings section has ONE Primary Fault, not a full Critical/Warning/Suggestion split. The Logic Score line is replaced by Fault Confidence: High / Medium / Low.

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
자주 묻는 질문

‘스택 트레이스’란 무엇인가요?

오류가 발생했을 때 진행 중이던 함수 호출을 자세히 기록한 로그로, 사건의 순서를 보여 줍니다.

‘근본 원인’은 무슨 뜻인가요?

문제의 근본적이고 원래의 이유, 즉 모든 증상의 출발점을 뜻합니다.

AI가 오류를 고치나요?

직접 고치지는 않습니다. 원인을 찾고 설명하는 데 집중하며, 사람이 고칠 수 있도록 자세한 보고서를 제공합니다.

상세 정보

작성자의 원본 설명

Locate the root cause of a CONFIRMED failure via backward-then-forward semi-formal tracing.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5100
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬