Files
quantlab-agent/.agent/get-shit-done/references/decimal-phase-calculation.md
Variet 5895627f21 chore: quantlab-agent 프로젝트 초기 설정
agent_guide 템플릿 기반으로 프로젝트 구조 설정.
Gitea(quantlab-agent), Vikunja(project #15) 연동 완료.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 09:54:19 +09:00

1.3 KiB

Decimal Phase Calculation

Calculate the next decimal phase number for urgent insertions.

Using gsd-tools

# Get next decimal phase after phase 6
node ".agent/get-shit-done/bin/gsd-tools.cjs" phase next-decimal 6

Output:

{
  "found": true,
  "base_phase": "06",
  "next": "06.1",
  "existing": []
}

With existing decimals:

{
  "found": true,
  "base_phase": "06",
  "next": "06.3",
  "existing": ["06.1", "06.2"]
}

Extract Values

DECIMAL_PHASE=$(node ".agent/get-shit-done/bin/gsd-tools.cjs" phase next-decimal "${AFTER_PHASE}" --pick next)
BASE_PHASE=$(node ".agent/get-shit-done/bin/gsd-tools.cjs" phase next-decimal "${AFTER_PHASE}" --pick base_phase)

Or with --raw flag:

DECIMAL_PHASE=$(node ".agent/get-shit-done/bin/gsd-tools.cjs" phase next-decimal "${AFTER_PHASE}" --raw)
# Returns just: 06.1

Examples

Existing Phases Next Phase
06 only 06.1
06, 06.1 06.2
06, 06.1, 06.2 06.3
06, 06.1, 06.3 (gap) 06.4

Directory Naming

Decimal phase directories use the full decimal number:

SLUG=$(node ".agent/get-shit-done/bin/gsd-tools.cjs" generate-slug "$DESCRIPTION" --raw)
PHASE_DIR=".planning/phases/${DECIMAL_PHASE}-${SLUG}"
mkdir -p "$PHASE_DIR"

Example: .planning/phases/06.1-fix-critical-auth-bug/