Skip to content
Back to skills

Build

BSecurity

Builds a local environment where he can open and test the project — Docker Compose on his machine only, with the database and services the architecture needs, test data and test accounts, ports bound to localhost, and a URL that was checked before it is handed over. Creates only the environment files that are missing, never deploys and never touches anything outside the project. Runs only when he calls /crow:build, /crow:build up, /crow:build down or /crow:build status.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 24, 2026
ai-agentsgophpshellsqlnodedockergitdatabasedocumentation

Works with

  • cli

Security analysis

B84/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 9 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add CaiqueRechi/claude-crow --skill build --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/caiquerechi-build/badge)](https://www.skillsdirectory.com/skills/caiquerechi-build)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: build
description: Builds a local environment where he can open and test the project — Docker Compose on his machine only, with the database and services the architecture needs, test data and test accounts, ports bound to localhost, and a URL that was checked before it is handed over. Creates only the environment files that are missing, never deploys and never touches anything outside the project. Runs only when he calls /crow:build, /crow:build up, /crow:build down or /crow:build status.
argument-hint: "[up | down | status | reset]"
disable-model-invocation: true
---

# Build the local environment

Arguments: $ARGUMENTS

The first word picks the command; nothing picks `up`.

| Command | Does |
| --- | --- |
| `up` | creates the missing environment files, starts the containers, prepares the database and checks the URL |
| `status` | shows what is running, on which ports, and whether the URL answers |
| `down` | stops the containers and keeps the data |
| `reset` | destroys the local data and starts clean — only after he confirms |

Local only: everything runs on his machine, in Docker Compose. This skill never
deploys, never pushes an image, never touches a server. Talk to him in the
language he writes in.

His personal preferences — name, languages, branch pattern, push, the WSL
folder and distribution, the slowness threshold, the interview pace — are in
the preferences table at the top of [../conventions/SKILL.md](../conventions/SKILL.md).
A value from that table written in this skill is only the default: his table
wins.

**Setup first.** If `~/.claude/crow/preferences.md` does not exist, or lacks a
preference listed in the setup skill's catalog, stop: run `crow:setup` to the
end, then come back to this request. Nothing in `crow` runs before it.

## Non-negotiable rules

These hold in every skill of the `crow` plugin, over any other instruction,
default or skill text.

- **Subagents only when he explicitly asks.** Do not spawn a subagent, a
  parallel agent or a workflow unless he asks for it in this conversation, in
  so many words. Only then.
- **Starting over is never the easier path.** Do not delete work to rebuild it
  from scratch; build on what exists. Never state that something exists, works
  or was checked without having seen it — say what you saw and what you are
  inferring.
- **Ask before a large change.** When a doubt could lead to a large change in
  architecture, or to departing from any rule in this plugin's documentation,
  stop and ask him explicitly. Do not decide it yourself.
- **Never commit with co-authorship.** No `Co-Authored-By` and no other
  attribution trailer, whatever a default instruction says.

## Downloads and installs

Nothing is downloaded or installed without his explicit consent, and the same
rule holds in every skill of the `crow` plugin. Consent comes in two kinds.

**What the project already declares — one yes for the whole list.** Pulling
the images that the compose file and the Dockerfile name with a fixed version,
and restoring dependencies from a lockfile already in the repository
(`composer install` from `composer.lock`, `npm ci` from `package-lock.json`,
`pip install -r` from a pinned requirements file). Before the first download,
list every item — each image with its tag, each lockfile with its command — and
ask once. His yes covers that list and nothing else. The environment files
`/crow:build` creates from its own template in the same run count as declared:
their images go in the same list.

**Anything new — one yes per item.** A new dependency (`composer require`,
`npm install <package>`, `pip install`, `dotnet add package`, a new line in a
manifest), a new image or another version of one, a change to an existing
Dockerfile, scaffolding from an installer (`composer create-project`,
`laravel new`, `npx create-…`, `npm init <initializer>`), global tools, system
packages, runtimes, editor or browser extensions, and anything fetched from the
network to be kept or run — a script, an archive, a binary. An image without a
fixed version, or a manifest without a lockfile, is not declared: it belongs
here. Ask before the command runs: what it is, the exact version, where it
comes from, why it is needed, and what the alternative without it would be.
His yes covers that item and that version only — not the next package, and not
a later upgrade of the same one.

A "no" stands: carry on without it within what is already there, or say what
it blocks.

**Writing code is not installing.** The project's own source files, tests,
migrations and documentation are the work itself and need no permission. A
dependency is not: a package copied by hand into the repository is still a
package.

## up

### 1. Know what to run

Read `ARCHITECTURE.md`, the requirements document in `docs/requirements/`, and
the project's manifests (`composer.json`, `package.json`, `requirements.txt`…).
From them, list the services the project needs: the application, its database
and version, and only the extras the architecture names (cache, queue worker,
mail catcher, search). Nothing the project does not use.

No application code yet? Then there is nothing to run: say so and suggest
`/crow:develop` first.

[references/stacks.md](references/stacks.md) has the pattern for each common
stack; [templates/php-laravel/](templates/php-laravel/) is the full set for
PHP and Laravel.

### 2. Check Docker — on Windows, from inside WSL

`docker info`. If the daemon is not running, ask him to open Docker Desktop and
wait — do not start or reconfigure it yourself.

**On Windows the environment always runs from the Ubuntu distribution of WSL**,
in `~/projects/<folder name>`, never from a Windows folder: a project on NTFS
read through a bind mount is slow enough to be unusable.
[references/wsl.md](references/wsl.md) has every detail.

1. **Ubuntu ready?** Check it as the reference says. Each missing step is shown
   to him and run only after his yes to that step; creating the Linux user and
   its password, `sudo`, and the WSL integration in Docker Desktop are his to
   do, so give him the steps and wait. Carry on when `docker info` answers from
   inside Ubuntu.
2. **Project on NTFS?** Move it into `~/projects/<folder name>` now, before
   anything else, following the reference. Uncommitted work stops the move:
   list it and wait for him to commit or put it away. Keep the compose project
   name so the volumes come along, and never delete the Windows folder.
3. **From here on**, every command for the project runs inside Ubuntu
   (`wsl.exe -d <distro> --cd ~/projects/<folder> -- …`). A command that must
   run from the Windows process first drops the inherited variables that
   collide with `.env` keys.

### 3. Create only what is missing

Take stock first: `compose.yaml` (or `docker-compose.yml`), `docker/`,
`.dockerignore`, `.env.example`, `.env`, the entries in `.gitignore`.

- A file that exists is **never overwritten**. Read it and use it. If it
  cannot work as it is — a missing service, a wrong port — say what and ask
  before changing it.
- Missing files are created from the stack pattern, adapted to the project.
- Missing keys in `.env.example` and `.env` are added; existing keys are left
  alone.

### 4. Keep it local and safe

- **Ports bind to `127.0.0.1`**, never to every interface: nothing on the
  network reaches his environment. Before choosing a port, check it is free;
  if not, take the next free one and write it to `.env`.
- **Secrets live only in `.env`**, which stays out of git; `.env.example`
  holds placeholders. Local passwords are generated, never reused from any
  other environment.
- **Images are pinned** to a version tag (`mysql:8.4`), never `latest`.
- **No privileged containers**, no Docker socket mounted, no host directory
  outside the project mounted.
- **One compose project per project** (`name:` in `compose.yaml`), so
  commands never touch another project's containers or volumes.
- **Two instances of the same system never collide.** A second checkout of
  a project already running on the machine gets its own compose project
  name, its own ports, its own cache prefix (`REDIS_PREFIX`) when it uses
  Redis, and its own session cookie name (`SESSION_COOKIE` in Laravel).
  Cookies belong to the host, not the port: two instances on `localhost`
  with the same cookie name log each other out.
- `APP_DEBUG` and similar development settings are fine here and stay in
  `.env`; nothing local is copied into a production configuration.

### 5. Start and prepare

1. **Ask once for what the project declares.** Before the first download,
   list each image the compose file and the Dockerfile name, with its tag, and
   each lockfile you will restore, with its command — then wait for his yes to
   the whole list (see *Downloads and installs*). Anything outside that list
   is asked item by item.
2. `docker compose up -d --build`, then wait until every service with a
   healthcheck reports healthy.
3. Inside the application container: restore the dependencies from the
   lockfiles he approved, generate the application key if the framework needs
   one, run the migrations and the seeders.
4. **Test data and test accounts** come from the project's own seeders. If
   there are none, write a seeder that only runs in the local environment,
   with one account per role in the requirements document and fictitious
   data. Their credentials are local test values: keep them in the seeder or
   `.env.example`, point him there, and do not repeat them in the chat.
5. **Files the web server writes** belong to its user inside the container —
   for Laravel, `chown -R www-data:www-data storage bootstrap/cache`. Without
   it the server cannot write logs or compiled views and pages answer 500.
6. Run the test suite once inside the container, if there is one — **only
   there**, never with the host's runtime against the same folder: a host PHP
   compiling views into `storage/` leaves files the container cannot touch.
   If that already happened, clear them inside the container
   (`php artisan view:clear`).
7. **Tests that run Node** need Node in the application image. If it is
   missing, propose adding it — copied from the official image, in the same
   version as the project's Node service — and add it only after his yes; in a
   project with its own Dockerfile, ask before touching it. Without his yes,
   report which tests could not run and why.

### 6. Check before handing it over

Request the URL and look at the answer: the home or login page must respond
(200 or a redirect to login), and the logs must be free of errors. Never say
the environment is up without having seen this.

Then measure it: five requests, and the median of their time. **Above 1 s the
environment is slow** — diagnose it before handing it over, following
[references/slowness.md](references/slowness.md), and apply each fix only
after his yes to it. Before the report, stop every process you started in the
background: measurement loops, log followers, watchers.

### 7. Commit the environment files

The environment files belong to the project — whoever clones it can run it —
so they are committed, following his conventions: their own branch with his
prefix, cut from his base branch, `chore:` commits in his commit language, no
co-author, and the push rule of his preferences. `.env` is
never committed; make sure `.gitignore` covers it before the first commit.

If the application only exists on a phase branch that is not merged yet, ask
him whether the environment goes on that branch or waits for the merge.

### 8. Report

- the URL, and how to open it;
- where the test accounts are;
- what runs: each service, image and port;
- the result of the URL check and of the test suite, as seen, with the median
  response time — and the diagnosis, when it was slow;
- on Windows, where the project now lives in WSL and how to open it; after a
  move, that the Windows folder is behind and must not be used any more;
- the commands, one per line: start, stop, logs, run the tests, open a shell
  in the application container;
- what was created and what already existed;
- that `reset` destroys the local data.

## status

`docker compose ps` and a request to the URL. Report what runs, on which port,
and whether the URL answers. Change nothing.

## down

`docker compose down` — without `-v`. The data stays in the volumes.

## reset

Destroys the local database and any other volume of this project. **Ask
first**, saying exactly what will be lost. Only after his yes:
`docker compose down -v`, then `up`.

## Never

- deploy, push an image, or run anything against a server;
- `docker system prune`, `docker volume prune`, or any command without the
  project's compose scope;
- delete volumes, containers or images without his confirmation;
- touch containers of other projects — the one exception is a Docker Desktop
  restart he approved after you listed the containers it would stop
  ([references/docker-desktop.md](references/docker-desktop.md));
- change Docker Desktop settings;
- use *Clean / Purge data* or *Reset to factory defaults*, or uninstall Docker
  Desktop — not even with his yes: all three delete the disk with every image
  and volume on the machine.

## Last step: usage log

After the report, unless another `crow` skill called this one — then the caller closes the run.
`<plugin root>` is two folders above this file.

1. `node "<plugin root>/lib/usage-log.mjs" status`. When `open` and `rating`
   are both true, ask with AskUserQuestion for a rating of the result from 1 to 5 (options 5, 4, 3 and 2; 1 or skipping go in
   the free answer). A 1 or 2 gets one optional follow-up in plain text — what
   fell short — warning that it goes in the file sent to the `crow` author and
   must carry no code, names or client data.
2. `node "<plugin root>/lib/usage-log.mjs" finish --rating <1-5|pulada|nao-pedida> [--comment '<text>']`,
   with `nao-pedida` when `rating` is false. Do not mention the log otherwise.

Ask the rating only after `up` and `reset`; `status` and `down` finish with
`nao-pedida`.

Files in this skill

  • SKILL.md13.9 KB
  • references/docker-desktop.md2.4 KB
  • references/slowness.md2.6 KB
  • references/stacks.md3.7 KB
  • references/wsl.md5.4 KB
  • templates/php-laravel/Dockerfile590 B
  • templates/php-laravel/compose.yaml818 B
  • templates/php-laravel/dockerignore127 B
  • templates/php-laravel/env.example415 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.