Skip to content

PRD — scripts

The product requirements for bamr87/scripts: the problem, users, goals, features, requirements, success measures and open questions.

Derived from the README, agent docs, config and code in this repo. Anything not stated in those sources is marked TBD; success metrics are proposals.

1. Overview / problem

A standalone collection of Bash command-line utilities (plus one Python tool) for project bootstrapping, GitHub repository management and multi-repo maintenance. No build and no dependency install; every script is self-contained. It is also vendored as a submodule of the bamr87 dash, which installs the scripts onto PATH.

1.1 Missions

scripts' direction is to become the ultimate open home for all things project and repository automation — data, tools, resources and transparency, gathered in one place that anyone can inspect and reuse.

  1. Provide data, tools, resources and transparency for all stakeholders, maintainers, automation practitioners and the general public. Maintainers, contributors, automation builders, and the general public are first-class audiences. The aim is a shared, open commons: the same scripts, the same tools, and the same trail of evidence for everyone.
  2. Make project bootstrapping, GitHub repository management and multi-repo maintenance possible with standalone, self-contained tools. No build and no dependency install; every script can be read, copied and run on its own. The collection is Bash command-line utilities plus one Python tool.
  3. Put those tools on every maintainer's PATH, and make operating a fleet of repos effortless and inspectable. The collection is also vendored as a submodule of the bamr87 dash, which installs the scripts onto PATH — an open toolkit for working with all things project and repository automation.

These missions set the course; they do not claim the work is finished. They serve the existing constitution and PRD purpose: self-contained utilities with no build step, vendored into the dash. The earlier mission paragraph is absorbed into these three. Every feature must trace to them.

2. Target users

  • Developers scaffolding new projects or GitHub repos from the terminal
  • Maintainers of many repositories (multi-repo stash/backups, forking strategies)
  • The bamr87 dash, which installs these tools

3. Goals and non-goals

Goals

  • Self-contained scripts that run directly with --help and no install
  • Safe defaults (dry-runs, pre-flight checks, backups)
  • Non-interactive modes for automation

Non-goals

  • A packaged application or shared library
  • Language-specific build tooling

4. Core features (current)

  • project-init.sh (project-wizard): scaffolding for Django, React, Node, Python, custom; optional Docker, CI, license, GitHub repo
  • FORKME/forkme.sh (forkme): 10 fork/clone strategies
  • STASHME/stashme.sh (stashme): multi-repo cloud stash to stashme/… branches with restore/cleanup
  • git_init.sh (git-init): git + GitHub repo creator
  • rename-directory.sh (rename-dir): safe rename with git/Docker pre-flight and backup
  • create_package.sh: Python package bootstrap
  • tools/unwrap-prose.py: markdown unwrapper backing the markdown-oneline CI gate
  • install.sh standalone installer (project-wizard only)
  • completions/: bash and zsh tab completion for forkme, stashme and git-init

Feature catalog

Every user-facing capability has a stable id in the feature catalog features/features.yml. Each entry names the PRD requirements it serves (prd:); the trace below is the reverse view.

ID Feature Status Where Requirements
SCRIPTS-001 Project initialization wizard shipped project-init.sh · README.md#project-initialization-wizard FR1, FR2, FR3, NFR1
SCRIPTS-002 ForkMe repository forking/cloning shipped FORKME/forkme.sh · FORKME/FORKME.md FR1, FR3
SCRIPTS-003 StashMe multi-repo cloud stash shipped STASHME/stashme.sh · STASHME/STASHME.md FR1, FR3, NFR1
SCRIPTS-004 Git + GitHub repository creator shipped git_init.sh · README.md#git-init FR1, FR3, NFR1
SCRIPTS-005 Safe directory rename shipped rename-directory.sh · docs/rename-directory-quick-reference.md FR1, FR3, NFR1
SCRIPTS-006 Python package bootstrap shipped create_package.sh · README.md#create-package FR1, FR3, NFR1
SCRIPTS-007 Markdown prose unwrapper shipped tools/unwrap-prose.py · tools/README.md FR1
SCRIPTS-008 install.sh standalone installer shipped install.sh · README.md FR1, NFR1, NFR2
SCRIPTS-009 install.sh --uninstall shipped install.sh · README.md FR4
SCRIPTS-010 Shell completions for the toolbelt shipped completions/ · README.md FR5
SCRIPTS-011 Missions in constitution §1 planned docs/constitution.md §1.1

Requirement → feature trace

Requirement Features
FR1 SCRIPTS-001, SCRIPTS-002, SCRIPTS-003, SCRIPTS-004, SCRIPTS-005, SCRIPTS-006, SCRIPTS-007, SCRIPTS-008
FR2 SCRIPTS-001
NFR1 SCRIPTS-001, SCRIPTS-003, SCRIPTS-004, SCRIPTS-005, SCRIPTS-006, SCRIPTS-008
FR3 SCRIPTS-001, SCRIPTS-002, SCRIPTS-003, SCRIPTS-004, SCRIPTS-005, SCRIPTS-006
NFR2 SCRIPTS-008
FR4 SCRIPTS-009
FR5 SCRIPTS-010
§1.1 SCRIPTS-011

5. Requirements

Functional

  • FR1: Each script supports --help
  • FR2: Wizard supports env-var/flag/--config non-interactive mode
  • FR3: Destructive tools offer dry-run and/or backup
  • FR4: install.sh --uninstall reverses every install side effect
  • FR5: Bash/zsh completions for forkme, stashme, and git-init

Non-functional

  • NFR1: Portable Bash; no external install required beyond standard CLI tools and optionally gh
  • NFR2: Idempotent installation

6. Success metrics (proposed — not defined in sources)

  • Scripts with passing smoke tests
  • Issues reporting data loss: target zero
  • Adoption: TBD

7. Roadmap / open questions

  • Supported OS matrix: TBD