diff --git a/README.md b/README.md index b588b04dfc..23e1f6e4d2 100644 --- a/README.md +++ b/README.md @@ -581,11 +581,12 @@ At this stage, your project folder contents should resemble the following: ├── memory │ └── constitution.md ├── scripts - │ ├── check-prerequisites.sh - │ ├── common.sh - │ ├── create-new-feature.sh - │ ├── setup-plan.sh - │ └── update-claude-md.sh + │ └── bash + │ ├── check-prerequisites.sh + │ ├── common.sh + │ ├── create-new-feature.sh + │ ├── setup-plan.sh + │ └── setup-tasks.sh ├── specs │ └── 001-create-taskify │ └── spec.md @@ -642,11 +643,12 @@ The output of this step will include a number of implementation detail documents ├── memory │ └── constitution.md ├── scripts -│ ├── check-prerequisites.sh -│ ├── common.sh -│ ├── create-new-feature.sh -│ ├── setup-plan.sh -│ └── update-claude-md.sh +│ └── bash +│ ├── check-prerequisites.sh +│ ├── common.sh +│ ├── create-new-feature.sh +│ ├── setup-plan.sh +│ └── setup-tasks.sh ├── specs │ └── 001-create-taskify │ ├── contracts diff --git a/docs/installation.md b/docs/installation.md index 86ad35559f..ea2762b91b 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -97,7 +97,10 @@ After initialization, you should see the following commands available in your co - `/speckit.plan` - Generate implementation plans - `/speckit.tasks` - Break down into actionable tasks -The `.specify/scripts` directory will contain both `.sh` and `.ps1` scripts. +Scripts are installed into a variant subdirectory matching the chosen script type: + +- `.specify/scripts/bash/` — contains `.sh` scripts (default on Linux/macOS) +- `.specify/scripts/powershell/` — contains `.ps1` scripts (default on Windows) ## Troubleshooting diff --git a/src/specify_cli/__init__.py b/src/specify_cli/__init__.py index d4e8632215..67452cabf7 100644 --- a/src/specify_cli/__init__.py +++ b/src/specify_cli/__init__.py @@ -229,9 +229,10 @@ def _install_shared_infra( ) -> bool: """Install shared infrastructure files into *project_path*. - Copies ``.specify/scripts/`` and ``.specify/templates/`` from the - bundled core_pack or source checkout. Tracks all installed files - in ``speckit.manifest.json``. + Copies ``.specify/scripts//`` and ``.specify/templates/`` from + the bundled core_pack or source checkout, where ```` is + ``bash`` when *script_type* is ``"sh"`` and ``powershell`` when it is + ``"ps"``. Tracks all installed files in ``speckit.manifest.json``. Page templates are processed to resolve ``__SPECKIT_COMMAND___`` placeholders using *invoke_separator* (``"."`` for markdown agents,