momhq/mom

mom-rebuild

Rebuild this project's MOM vault from scratch over the full captured history.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/momhq/mom --skill mom-rebuild

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Rebuild discards the synthesized vault and re-creates it from offset 0 over the entire captured history. It is heavier than a fold — use it deliberately. For routine end-of-session saves, use /mom-fold instead.

Preflight

Check that mom is on PATH:

bash
command -v mom

If it is missing, tell the user MOM is not installed and ask permission to install it:

text
MOM is not installed. Install it now with Homebrew?
  brew install momhq/tap/mom
Source: https://github.com/momhq/mom

If the user agrees, run that command. If the user declines, stop. Do not install MOM without explicit permission.

Confirm a project is bound:

bash
test -f .mom-project.yaml

If it is missing, the directory is unbound — there is nothing to rebuild. Tell the user to bind first with /mom-project, then stop.

Run

Confirm with the user before rebuilding — it regenerates the whole vault from scratch (human-authored content in CLAUDE.md is preserved; synthesized vault files are replaced) and runs the LLM engine over all history, so it can be slow.

On confirmation:

bash
mom vault rebuild

Append --engine <auto|claude|codex|pi> only if the user named a specific engine. When it finishes, run mom vault status and report the watermark, file count, and engine used.

Rules

  • Always confirm before rebuilding — it is a full regeneration over all captured history.
  • For routine saves use /mom-fold; reserve rebuild for engine changes or recovery from a corrupted vault.
  • CLI flag surface — never invent flags. Before using any flag, run mom vault rebuild --help and confirm it appears.

Postflight (version hint)

Any mom ... command may print a banner to stderr like:

MOM 0.40.1 available. Run `brew upgrade mom` or `mom self-update`

If you see that line, finish the task first, then add one short line at the end of your reply suggesting the upgrade. Do not run the upgrade yourself.

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills