module-regression
하는 일
대규모 프로젝트에서 한 부분의 변경이 다른 부분을 망가뜨리지 않도록 돕습니다. 어떤 부분이 다른 부분에 의존하는지 기록하고, 모든 것이 여전히 작동하는지 테스트하는 방법을 알려 줍니다.
사용하는 경우
- ✓대규모 프로젝트의 한 부분을 바꾸고, 다른 곳을 망가뜨리지 않았는지 확인하고 싶을 때.
- ✓프로젝트의 한 부분에서 생긴 오류가 다른 부분을 바꾼 뒤 며칠이 지나서 나타났을 때.
- ✓복잡한 프로젝트에서 서로 의존하는 테스트를 정리하고 싶을 때.
스킬 링크
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/module-regression/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“‘사용자 인증’ 모듈의 변경이 ‘프로필 관리’를 망가뜨렸는지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 도구는 REGRESSION.md라는 파일을 사용해 프로젝트 부분 간의 의존 관계를 나열합니다. 변경 후에는 영향을 받는 부분의 테스트를 실행해 실패한 것이 있는지 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Module Regression Ledger
When to Activate
- The repository has at least three interdependent modules, or a previous change to A has broken B.
- A change modifies a module's externally observable behavior and must prove both that module and downstream consumers still work.
- The project already has executable tests or reconciliation commands that should be organized by dependency.
Anti-Patterns
- Creating a regression ledger for a small repository with no cross-module dependencies.
- Guessing dependencies manually or treating one scan as permanent truth.
- Replacing executable acceptance-command exit codes with model review.
Related Skills
test-collaboration: TEST-IDs, test assets, and defect-regression evidence.ai-regression-testing: executable regression tests derived from important defects.contract-first: cross-service or cross-client contract verification.change-impact: pre- and post-implementation blast-radius analysis.
Problem
In large projects, modules depend on one another. People and agents often verify only the changed module while downstream consumers fail silently. The defect appears days later when an aggregate, export, or external behavior is wrong.
The remedy is a regression ledger (REGRESSION.md) plus a deterministic audit: after any relevant change, run the changed module and all affected downstream consumers. Delivery requires every command to pass.
Three Required Fields per Module
## Module 03 — Shop Data Cleaning
Downstream consumers: 05-aggregation, 07-final-export
Dependency evidence: `<repository dependency graph or reproducible scan command>`
Regression acceptance command: `pytest tests/test_03.py && python scripts/reconcile.py --module 03`
Propagation rule: external behavior change → run 05 and 07; internal-only change with a green module check → downstream may be exempted
- Downstream consumers — derive them from the repository's dependency graph, build tooling, or a reproducible import/call scan, and record the command or tool. Extraction differs by ecosystem; this skill does not pretend a universal scanner can parse every language. Mark edges
unverifiedwhen they cannot be established mechanically. An affected unverified edge blocks an all-green verdict until a human confirms its scope or the related module is included in the run. - Regression acceptance command — the ledger's core asset. Each module needs an executable command that proves it still works: tests, reconciliation scripts, or golden-sample diffs. Without it, the audit collapses into “the model looked and found no problem.”
- Propagation rule — state which downstream modules must run after a change and when an exemption is justified.
Connection to TESTS.md
REGRESSION.md does not maintain business rules or test gaps. It references stable TEST-IDs from the test-registry artifact:
Related test points: TEST-ORDER-001, TEST-REFUND-003
- What rules must be protected, their coverage state, and the evidence location belong to
test-collaborationand the test registry. - Which modules and commands must rerun after a change belong to this skill and the regression ledger.
- The current session plans the ledger commands. Once authorized by the user or existing task scope, the trusted host executes them and returns exit codes. This skill adds no dedicated agent or slash command.
Ledger Discipline
- Prefer reconciliation-style acceptance commands over assertion-only checks. External facts such as golden samples, upstream totals, and accounting relationships are harder to weaken accidentally than mocks or loose assertions.
- Refresh downstream lists only from reproducible evidence. When dependencies change, rerun the recorded repository tool or scan; do not hand-edit an edge without evidence.
- Keep the ledger at the repository root or under
docs/, and link it from the project's instruction/map artifact so it does not become an orphan.
Audit Flow
Invoke module-regression through the host's skill entry point, such as $module-regression in Codex. The current session plans and reports the audit. Repository commands run through the trusted host runner within existing user authorization; ask only when a command needs new authority. Successful exit codes are regression evidence, never canonical ECC completion or integration authority.
…
자주 묻는 질문
‘회귀 원장(regression ledger)’이란 무엇인가요?
프로젝트의 어떤 부분이 다른 부분에 의존하는지, 그리고 변경 후 모든 것이 여전히 작동하는지 확인하려면 어떤 명령을 실행해야 하는지 기록한 문서입니다.
변경한 부분만 테스트하면 안 되나요?
대규모 프로젝트에서는 한 부분의 변경이 직접 테스트되지 않는 다른 부분에도 영향을 줄 수 있습니다. 원장을 사용하면 영향을 받는 모든 부분을 확인할 수 있습니다.
테스트가 실패하면 어떻게 되나요?
영향을 받는 부분의 테스트가 실패하면 변경으로 문제(회귀)가 생겼다는 뜻입니다. 문제가 해결될 때까지 그 변경은 승인되어서는 안 됩니다.
상세 정보
작성자의 원본 설명
Govern cross-module regression in large repositories with a REGRESSION.md ledger that records each module's downstream consumers and executable acceptance command. After a change, run the changed module and every affected downstream command, and use observed exit codes as regression evidence under the project's delivery policy. Use for module regression, regression ledgers, impact audits, downstre
repo: affaan-m/ECC
인기도
- GitHub 스타
- 280k
- 순위
- #210
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
accessibility
280k에이전트가 모든 사람이 쓸 수 있는 인터페이스를 만들도록 돕습니다. 시각 장애나 운동 장애가 있는 사람도 쓸 수 있게 합니다.
agent-architecture-audit
280k에이전트가 모든 것이 올바르게 작동하는지 점검하도록 돕습니다. AI 시스템의 문제를 찾아 고쳐서 기대대로 작동하게 합니다.
agent-eval
280k에이전트가 서로 다른 AI 코딩 도구를 비교하도록 돕습니다. 특정 작업에서 어느 도구가 더 빠르고, 저렴하고, 믿을 만한지 측정합니다.
agent-harness-construction
280k에이전트가 작업을 더 잘 이해하도록 돕습니다. 에이전트가 쓰는 도구와 지시문을 최적화해 성공 가능성을 높입니다.