agentleFS
ggombeeggombee/code-forge/skills/forge-status/SKILL.md

forge-status

Skill18 starsChanged 7 months agoMITView on GitHub

code-forge 상태 대시보드. REFLECT flag, quality 이벤트, notepad/decisions, usage 집계를 한 번에. forge-glow 같은 외부 도구는 --json으로 파싱.

11 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use forge-config, forge-install and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • coreweaveSkill

    forge-config

    This skill should be used when the user wants to "configure Forge", "set Forge project", "change Forge project", "set wandb api key", "update Forge settings", "show Forge config", "change Forge configuration", "restart the Forge daemon", "apply Forge config changes", "restart Forge to pick up changes", or needs to read or update any Forge Agent Lens for Claude Code plugin settings.

    Also in 4 projects that use this

  • coreweaveSkill

    forge-install

    This skill should be used when the user wants to "install the Forge plugin", "set up Forge", "install forge-agent-lens-for-claude-code", "configure Forge for the first time", "get started with Forge tracing", or needs to complete the initial setup of the Forge Agent Lens for Claude Code plugin including dependency installation and project configuration.

    Also in 4 projects that use this

  • lionshilovSkill

    forge-qa

    Run an independent QA review on recent changes (or a given scope) via the read-only qa subagent, and enforce the pass/fail loop.

    Also in 3 projects that use this

  • redteamlifeSkill

    forge-ship

    Use when the user asks to merge, release, promote, reconcile, or close out work in a repo containing `docs/forge/` or governed by FORGE. Not for per-task commits; those complete inside forge-execute-task.

    Also in 3 projects that use this

  • tonmoy007Skill

    forge-review

    Run a multi-dimensional parallel code review over the current change.

    Also in 3 projects that use this

The file

Files
SKILL.md

/forge-status

code-forge의 현재 런타임 상태를 회고/진단용 단일 뷰로 보여줍니다. 외부 도구 연동용 JSON surface도 제공 — forge status --json.

[즉시 실행] 아래 절차대로 상태를 출력하세요.


사용법

/forge-status              → 사람 읽는 리포트 (상세)
/forge-status --json       → JSON 출력 (forge-glow, CI 연동용)
/forge-status --week       → 최근 7일 quality 추이
/forge-status --reflect    → REFLECT flag 상세

Step 1: CLI 호출

플러그인이 제공하는 단일 surface를 호출:

${CLAUDE_PLUGIN_ROOT}/bin/forge status

--json 인자 있으면:

${CLAUDE_PLUGIN_ROOT}/bin/forge status --json

→ JSON 그대로 출력하고 종료. 사람이 호출했어도 --json이면 파이프라인 용도로 가정.


Step 2: 상세 섹션 추가

--json이 아닌 경우, bin/forge status 출력 다음에 아래 섹션 보강:

2-1. 최근 quality 이벤트 (있으면)

tail -10 .claude/state/quality.jsonl 2>/dev/null

각 이벤트를 사람 읽는 포맷으로 변환:

[2026-04-14 10:00] eslint   PASS
[2026-04-14 10:00] tsc      FAIL  2 errors
[2026-04-14 10:00] test-trigger  WARN  TC 없음: src/hooks/useFoo.ts

2-2. REFLECT flag 상세 (활성 시)

[ -f .claude/state/reflect.flag ] && cat .claude/state/reflect.flag

→ timestamp, failed_blocks, failed_files 파싱하여 테이블화.

2-3. Notepad 미리보기 (있으면)

if [ -f .claude/state/notepad.md ]; then
  echo "=== Notepad 미리보기 ==="
  head -20 .claude/state/notepad.md
fi

2-4. 최근 decisions (있으면)

if [ -f .claude/state/decisions.md ]; then
  echo "=== 최근 결정 3건 ==="
  grep -A 3 "^## " .claude/state/decisions.md | tail -15
fi

2-5. 사용량 (usage.jsonl)

if [ -f "$HOME/.code-forge/usage.jsonl" ]; then
  echo "=== 이번 주 사용 Top 3 ==="
  # 7일 이내 에이전트/스킬 집계 — POSIX awk (gawk 3-인자 match 금지: macOS에서 무동작이었음)
  # ISO ts는 문자열 비교가 곧 시간 비교
  CUTOFF=$(date -u -v-7d +"%Y-%m-%dT%H:%M:%SZ" 2>/dev/null || date -u -d '7 days ago' +"%Y-%m-%dT%H:%M:%SZ")
  awk -v c="$CUTOFF" -F'"' '{
    ts=""; name=""
    for (i = 1; i < NF; i++) {
      if ($i == "ts") ts = $(i+2)
      if ($i == "name") name = $(i+2)
    }
    if (ts >= c && name != "") print name
  }' "$HOME/.code-forge/usage.jsonl" | sort | uniq -c | sort -rn | head -3
fi

2-6. Whetstone 초안 (있으면 — state-schema §7)

if ls .claude/state/whetstone/*.md >/dev/null 2>&1; then
  echo "=== Whetstone 초안 (채택은 사람이 — status를 accepted/rejected로) ==="
  for w in .claude/state/whetstone/*.md; do
    S=$(grep '^status:' "$w" | head -1 | sed 's/^status: *//')
    C=$(grep '^count:' "$w" | head -1 | sed 's/^count: *//')
    P=$(sed -n '/^## 반복 패턴/{n;p;}' "$w" | cut -c1-70)
    printf "%-9s %3s회  %s\n" "[$S]" "$C" "$P"
  done
fi

2-7. 자가진단 (doctor)

${CLAUDE_PLUGIN_ROOT}/bin/forge doctor

4종 보고만 (자동 수리 없음): 주입 회로(route.json 최근성) / 품질 게이트 만년 빨간불(pass==0&&fail>0) / 버전 정합(프로젝트 local.md vs 설치본) / flow CLI 휴면.


Step 3: 옵션 처리

--week

quality.jsonl에서 최근 7일 이벤트 일별 집계:

2026-04-14  █████████ 9 (pass:7 fail:2)
2026-04-13  ████ 4 (pass:4)
2026-04-12  ██████ 6 (pass:5 warn:1)

--reflect

REFLECT flag 없으면 "깨끗함" + 최근 해제 시각. 있으면 전체 본문 + 권장 조치:

ADAPT 권장 절차:
  1. 실패 파일 Read → 증상 파악
  2. 근인 분석
  3. 수정 → Stop 훅 재실행
  4. 통과 시 flag 자동 삭제

우회: rm .claude/state/reflect.flag
Ack: 본문에 'ack: <이유>' 추가

Step 4: 외부 도구 연동 힌트

사람 리포트 맨 아래에 안내:

─────────────────────────────────────
외부 도구 (forge-glow, CI, 슬랙봇):
  $CLAUDE_PLUGIN_ROOT/bin/forge status --json
계약: docs/contracts/state-schema.md v1

관련

  • docs/contracts/state-schema.md — .claude/state/ 파일 포맷 계약
  • /stats — Bellows usage.jsonl 전용 집계 (다른 관점)
  • /cleanup — state 파일 정리
  • forge-glow — 실시간 statusLine HUD (회고는 /forge-status, 실시간은 glow)

금지 사항

  • .claude/state/ 파일을 직접 cat으로 통째로 쏟아내기 금지 — 항상 파싱/요약
  • 외부 도구가 이 스킬을 호출하는 것 금지 — 반드시 bin/forge status --json 직접 사용
  • 파일 경로 참조를 공식 계약인 것처럼 안내 금지 — 항상 bin/forge surface를 권장

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.