dikamilo/dx-workflow

dx-archive

Archive a completed change or effort — move its folder to context/archive/ and stamp it archived.

소스 보기

사용 방법

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

시작 전 확인

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

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

dx-archive

Retire a finished container. One id in, one folder moved, one stamp written. No registry — the archive is just where done work lives.

Guard. If the id resolves to nothing, or the folder can't move cleanly, do nothing and say why. Never half-move.

Resolve

The argument is one id. Find its home:

  • context/changes/<id>/ → it's a change.
  • context/efforts/<id>/ → it's an effort.
  • Neither, or both → fail loud: print what you looked for and stop. (Already under context/archive/? Say it's already archived.)

Effort gate — children first

An effort is done only when every child change is already archived. Before moving an effort, read its roadmap.md, and for each linked child change check for archived_at (derive it — scan the child's change.md, don't trust a checkbox). If any child is still open, list them and ask before continuing. The user may override.

Review gate — unresolved findings

Scan every reviews/*.md in the container except the legacy impl-review.md and plan-review.md, which triage no longer reads. For each report with any finding marked Resolution: PENDING, warn — "N unresolved finding(s) in reviews/<policy-id>.md — /dx-review-triage <id> <policy-id> to address them first" — and ask whether to archive anyway. The user may override.

Move and stamp

  1. Destination: context/archive/<today>-<id>/ where <today> is date +%F. If it already exists, fail loud and stop.
  2. Stamp the moved container's change.md (or effort.md): set status: archived and archived_at: to today's date (date +%F, same format as created/updated — no other field in the schema carries a finer timestamp); bump updated:. Leave every other field alone. For the exact schema, invoke dx-references with topic change-md (a change) or effort-md (an effort).
  3. Move the whole folder: prefer git mv so history follows; fall back to mv (warn) if git is unavailable. Confirm the source is gone and the destination exists — if not, print a diagnostic and stop.

Done when

The folder lives at context/archive/<today>-<id>/, its identity file reads status: archived with archived_at set, and nothing remains under the old path. Print:

✓ Archived <id> → context/archive/<today>-<id>/

If it was an effort, add one line noting how many child changes it closed. Then suggest a next step (/dx-new <idea> to start fresh) and stop. Do not chain.

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills