|
| 1 | +# AGENTS.md |
| 2 | + |
| 3 | +This file helps both human contributors and coding agents collaborate safely in this repo. |
| 4 | + |
| 5 | +## Mission |
| 6 | + |
| 7 | +`agent-toolkit` provides a cross-platform CLI toolkit that makes coding-agent workflows faster: |
| 8 | + |
| 9 | +- install |
| 10 | +- update |
| 11 | +- reinstall |
| 12 | +- diagnose |
| 13 | +- initialize repo-safe `.gitignore` entries |
| 14 | + |
| 15 | +## Start Here |
| 16 | + |
| 17 | +1. Read [README.md](./README.md). |
| 18 | +2. Run the CLI help: |
| 19 | + - `./agent-tools.sh --help` |
| 20 | +3. Run checks before opening a PR: |
| 21 | + - `bash -n install.sh agent-tools.sh scripts/install-agent-tools.sh scripts/release-prep.sh` |
| 22 | + - `shellcheck install.sh agent-tools.sh scripts/install-agent-tools.sh scripts/release-prep.sh` |
| 23 | + - `./agent-tools.sh install --package-manager brew --dry-run --no-update` (or your local manager) |
| 24 | + |
| 25 | +## Contributor Rules |
| 26 | + |
| 27 | +1. Keep scripts cross-platform and shell-safe. |
| 28 | +2. Prefer additive changes over breaking existing commands. |
| 29 | +3. Keep package mappings explicit per package manager. |
| 30 | +4. If behavior changes, update docs in the same PR. |
| 31 | +5. Do not commit secrets, tokens, or machine-local paths. |
| 32 | + |
| 33 | +## Agent-Specific Guidance |
| 34 | + |
| 35 | +When changing installer logic: |
| 36 | + |
| 37 | +1. Validate `install`, `update`, `reinstall`, `add`, `doctor`, and `init` paths. |
| 38 | +2. Preserve idempotency where expected (especially `init` for `.gitignore`). |
| 39 | +3. Keep dry-run support accurate and predictable. |
| 40 | +4. Prefer clear failure summaries instead of hard-failing early. |
| 41 | + |
| 42 | +## Definition Of Done |
| 43 | + |
| 44 | +A contribution is ready when: |
| 45 | + |
| 46 | +1. Scripts pass syntax and lint checks. |
| 47 | +2. Dry-run works for the modified path. |
| 48 | +3. README/docs are updated. |
| 49 | +4. PR explains what changed and why. |
| 50 | + |
0 commit comments