Skip to content

πŸ’« Toolkit to help you get started with SDD or any other process!

docs: fix script name in directory tree examples (#2555)

darion-yaphet6322a4d429f7
diff --git a/README.md b/README.md
index 6128ff8f2..e954a195f 100644
--- a/README.md
+++ b/README.md
@@ -404,11 +404,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
@@ -465,11 +466,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 06f5de471..b3c25ce46 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -94,7 +94,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 373930bc6..f97dbde09 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/<variant>/`` and ``.specify/templates/`` from
+ the bundled core_pack or source checkout, where ``<variant>`` 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_<NAME>__``
placeholders using *invoke_separator* (``"."`` for markdown agents,