Skip to content

Tidy ai/ script shortcuts: add ai/seed, rename ai/db-migrate to ai/migrate#1589

Merged
maebeale merged 1 commit into
mainfrom
maebeale/ai-script-shortcuts
Jun 7, 2026
Merged

Tidy ai/ script shortcuts: add ai/seed, rename ai/db-migrate to ai/migrate#1589
maebeale merged 1 commit into
mainfrom
maebeale/ai-script-shortcuts

Conversation

@maebeale

@maebeale maebeale commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

What & why

  • Rename ai/db-migrateai/migrate. The db- prefix was the odd one out in ai/ — every other script uses a bare verb/noun (console, routes, server, test, seed). The prefix added no clarity for a dev shortcut, so this brings the name in line with the convention and reads naturally as ai migrate.
  • Add ai/seed. A first-class wrapper for rails db:seed:dev, so loading the full dev sample dataset into the per-workspace DB is a shortcut alongside the others. Sources .ruby-env, so it lands data in awbw_development_$WORKSPACE_PORT (the DB the app actually serves) rather than the unsuffixed default.
  • Sync docs. Updated the script tables in CLAUDE.md, .github/copilot-instructions.md, CONTRIBUTING.md, and ai/README.md to match.

Notes

🤖 Generated with Claude Code

Bring the ai/ script names in line with the directory's bare-verb
convention: db-migrate's prefix was redundant next to console, server,
seed, and friends. Add an ai/seed wrapper for db:seed:dev so loading the
full per-workspace dev dataset is a first-class shortcut alongside the
others.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@maebeale maebeale marked this pull request as ready for review June 7, 2026 03:38
Comment thread ai/seed
# Load the full dev sample dataset into the workspace database.
# Sourcing .ruby-env sets WORKSPACE_PORT so seeds land in the per-workspace DB
# (awbw_development_$PORT) the app actually serves — not the unsuffixed default.
set -euo pipefail

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 From Claude: ai/seed sources .ruby-env, which aliases Conductor's CONDUCTOR_PORT to WORKSPACE_PORT — so seeds land in awbw_development_$WORKSPACE_PORT (the DB the app serves) instead of the unsuffixed default.

@maebeale maebeale merged commit 8149022 into main Jun 7, 2026
3 checks passed
@maebeale maebeale deleted the maebeale/ai-script-shortcuts branch June 7, 2026 04:11
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.

1 participant