name: ‘step-04-docs-and-scripts’ description: ‘Document setup and add package.json scripts’ nextStepFile: ‘{skill-root}/steps-c/step-05-validate-and-summary.md’ outputFile: ‘{test_dir}/README.md’
Create test documentation and add build/test scripts appropriate for {detected_stack}.
{communication_language}CRITICAL: Follow this sequence exactly. Do not skip, reorder, or improvise.
Create {outputFile} and include:
If {detected_stack} is frontend or fullstack:
Add to package.json at minimum:
test:e2e: framework execution command (e.g., npx playwright test)If {detected_stack} is backend or fullstack:
Add the idiomatic test commands for the detected framework:
pyproject.toml scripts or Makefile: pytest, pytest --cov, pytest -m integrationbuild.gradle/pom.xml: ./gradlew test, mvn test, mvn verify (integration)Makefile: go test ./..., go test -race ./..., go test -cover ./...Makefile: dotnet test, dotnet test --collect:"XPlat Code Coverage"Gemfile binstubs or Makefile: bundle exec rspec, bundle exec rspec spec/integrationSave this step’s accumulated work to {progressFile}.
{progressFile} does not exist (first save), create it with YAML frontmatter: ---
stepsCompleted: ['step-04-docs-and-scripts']
lastStep: 'step-04-docs-and-scripts'
lastSaved: '{date}'
---
Then write this step’s output below the frontmatter.
{progressFile} already exists, update:
'step-04-docs-and-scripts' to stepsCompleted array (only if not already present)lastStep: 'step-04-docs-and-scripts'lastSaved: '{date}'Load next step: {nextStepFile}