Skip to content

Rename default PRD name from main to default - #59

Merged
MiniCodeMonkey merged 1 commit into
MiniCodeMonkey:mainfrom
tmchow:fix/9-rename-default-prd
Sep 28, 2026
Merged

MiniCodeMonkey merged 1 commit into
MiniCodeMonkey:mainfrom
tmchow:fix/9-rename-default-prd

Conversation

@tmchow

@tmchow tmchow commented Apr 2, 2026

Copy link
Copy Markdown

Summary

Renamed the default PRD directory from main to default to avoid confusion with git branch names.

Changes

Updated all references in cmd/chief/main.go:

  • Default PRD path: .chief/prds/main/prd.md -> .chief/prds/default/prd.md
  • Help text and usage examples updated to show .chief/prds/default/
  • Status command default: (default: main) -> (default: default)

Testing

String-only changes. The fallback behavior (try default path, then scan for any PRD) is unchanged.

Fixes #9

This contribution was developed with AI assistance (Claude Code).

@MiniCodeMonkey
MiniCodeMonkey force-pushed the fix/9-rename-default-prd branch from ebcaf8c to d214ce7 Compare September 28, 2026 05:05
@MiniCodeMonkey

Copy link
Copy Markdown
Owner

Thanks for this, and sorry for the long wait. Since you opened it, main moved CLI routing from cmd/chief/main.go into Cobra commands, so I redid the rename there and pushed it to your branch (you're still the author). I also added a fallback: projects that already have .chief/prds/main/ keep resolving to it for chief, chief status, chief edit and chief new, while new projects get default. Tests pass. Planning to merge this soon.

Avoids confusion between the default PRD directory and a git branch
named main. Existing projects with .chief/prds/main/ keep working:
new, edit, status, and the bare `chief` command all fall back to the
legacy "main" name when no "default" PRD exists yet, ported from the
original PR's now-obsolete cmd/chief/main.go into the Cobra commands
and internal/cmd handlers introduced by the Cobra migration.

Fixes MiniCodeMonkey#9

Claude-Session: https://claude.ai/code/session_01Fxi8Py1Weyua51Y1RBt2NP

Co-authored-by: Mathias Hansen <me@codemonkey.io>
@MiniCodeMonkey
MiniCodeMonkey force-pushed the fix/9-rename-default-prd branch from d214ce7 to 42315f6 Compare September 28, 2026 10:10
@MiniCodeMonkey
MiniCodeMonkey merged commit 48fae0b into MiniCodeMonkey:main Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename default PRD name from main to default

2 participants