ponytail-audit
하는 일
프로젝트 코드 전체를 분석해 버그, 보안 결함, 느림, 불필요한 코드 같은 문제를 찾습니다. 발견한 내용을 중요도 순으로 보여 주고, 모든 것을 쉽게 설명합니다.
사용하는 경우
- ✓중요한 새 기능을 출시하기 전.
- ✓오래된 프로젝트를 철저히 검토해야 할 때.
- ✓코드에서 무엇을 제거하거나 단순화할 수 있는지 알고 싶을 때.
스킬 링크
https://github.com/DietrichGebert/ponytail/blob/main/skills/ponytail-audit/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
📦 이 스킬이 포함된 팩
AI에게 요청하는 예시
“이 모든 코드를 검토하고 가장 중요한 문제를 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 프로젝트의 문서, 설정, 주요 코드를 읽습니다. 많은 사용자가 있을 때 코드가 어떻게 동작할지 시뮬레이션하고, 흔한 오류, 보안 취약점, 비효율을 찾습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Audit the whole repo like the senior developer who just inherited it and will be paged when it breaks. Order of importance: correct, safe, holds under load, tested, fast, lean. Lean still matters: every extra line must be read, tested and fixed later. This is a report the user asked for, so give it in full.
1. Map first
- Audit what the user names: a folder, a package, or the whole repo. Nothing named: the whole repo.
- Read the README, the deploy and build config, the dependency list, the entry points (main, routes, handlers, jobs, CLI commands) and the tests.
- Find the expected load: one person running a script, or many users and processes at once. Judge scale against that, and say which load you assumed.
- Trace the main flows end to end: where data comes in, what is stored, what goes out. Read those paths fully: input from users, money, auth, data writes, background jobs, anything shared between processes.
- Big repo: go deep where a mistake costs the most, not file by file. Say which parts you did not read.
2. Look for
- Bug: wrong result, crash, missed edge case (empty, zero, last item, rounding, time zones), callers that disagree with what a function returns, the same rule applied differently in two places.
- Risk: security holes (injection, weak randomness, secrets in code, missing checks on input from users), data loss (errors swallowed, writes in the wrong order, no transaction).
- Scale: fine for one user, wrong for many: check-then-write races, the same work done by every process, memory or lists that only grow, a query per item, O(n^2) on big input, per-process state that must be shared.
- Missing test: risky logic (a branch, a parser, money, security, data writes) with no test that fails when it breaks. One good test, not coverage.
- Speed: big slowdowns are problems. Small wins (work repeated in a hot loop) are suggestions; some software counts every millisecond.
- Lean: code that should not exist or should be smaller.
- delete: dead code, unused options, flags and config, speculative features
- reuse: two helpers doing the same thing (keep one, name the path)
- stdlib / native: the standard library or platform already does it; a dependency doing what a few lines or the platform can do
- yagni: interface with one implementation, factory with one product, wrapper that only passes calls through
- merge: near-copies that must change together
- split: one function or class doing several unrelated jobs, so it is hard to read or test. Split by job, never by line count, and never into helpers that exist only to make a function shorter.
3. Check before you report
- Every finding needs a concrete case: "this input or situation leads to this wrong result". No case, no finding.
- Before calling code unused, grep the whole tree for it, including tests, fixtures, config, and string or dynamic references.
- A shortcut marked with a
shortcut:(or olderponytail:) comment that names its limit is a decision, not a finding, unless the expected load already crosses it. - Propose the smallest fix that works. Prefer fixes that delete code. Never add layers, frameworks or config the problem does not need.
- No style taste, no "consider", no vague worries.
4. Output
Very simple English: short sentences, everyday words. Explain a technical term the first time you use it. The reader may never have seen this code.
Start with What this repo does: in two or three sentences, and the load
you assumed.
Then the findings in three groups, most important first, skip empty groups:
- Must fix: bug, security, data loss, breaks at the expected load.
- Should fix: risky code without a test, real slowness, duplication, a function that mixes jobs, code that should not exist.
- Nice to have: small speed-ups, shorter forms.
Number findings across all groups, so the user can say "fix 2 and 5". At most 20 findings; if you left smaller ones out, say how many. Every finding has all four parts, each one or two short sentences:
- Orders land on the wrong day (
billing/close_day.py:L40-52)- What this is: At midnight this job closes the day and bills all orders of that day.
- Problem: It takes "today" from the server clock, which runs in UTC. An order placed at 00:30 in Berlin is billed on the day before.
- Fix: Compute the day once in the shop's time zone:
…
자주 묻는 질문
도구가 제 코드를 바꾸나요?
아니요. 분석하고 보고서만 만듭니다. 프로젝트에는 아무 변경도 하지 않습니다.
'lean'은 무슨 뜻인가요?
'lean'은 군더더기 없이 간결하다는 뜻입니다. 도구는 삭제하거나 단순화할 수 있거나, 이미 표준 라이브러리에 있는 코드를 찾습니다.
문제는 어떻게 표시되나요?
문제는 '반드시 수정', '수정 권장', '있으면 좋음'으로 묶입니다. 각 항목에는 명확한 설명, 코드 위치, 그리고 제안하는 수정 방법이 함께 나옵니다.
상세 정보
작성자의 원본 설명
Quality audit of a whole repo: bugs, security holes, what breaks under real load, risky code without tests, slow paths, and what to delete, merge or split. Ranked, each finding explained in plain English. One-shot report, changes nothing. Use for "audit this codebase", "review the whole repo", "find bloat", "what can I delete", /ponytail-audit.
repo: DietrichGebert/ponytail
인기도
- GitHub 스타
- 164k
- 순위
- #660
- 라이선스
- MIT
- 업데이트
- 2026. 10. 14.
댓글
- …
이 저장소의 다른 스킬
ponytail-debt
164k나중을 위해 남겨 둔 모든 코드 단축 메모('shortcut:')를 나열합니다. 프로젝트에서 아직 고쳐야 할 것이 무엇인지 보여 줍니다.
ponytail-gain
164k최적화로 얻은 코드, 비용, 속도 절감 효과를 보여 줍니다. 적용한 개선의 영향을 이해하는 데 유용합니다.
ponytail-help
164k도구와 명령을 사용하는 방법을 빠르게 안내합니다. 사용 가능한 기능을 이해하는 데 도움이 됩니다.
ponytail-review
164k코드 변경의 품질을 검토합니다. 로직이 올바르고 안전하며 빠른지, 그리고 모든 줄이 필요한지 확인합니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.