business-opportunity-validation/INSTALL.md
SHA-256 0e364cd2193f9653ac2fa15e68123e63eaf22b8147f7de91090505ba253467b7 · 4,093 bytes
# Manual installation
Run these from the root of the project where you want the stack. Set `PKG` to the folder you unzipped (the one
containing this file):
```bash
PKG=path/to/business-opportunity-validation
```
## 1. Copy the files, skipping anything that already exists
This copies each file only if nothing exists at that path, tells you what it skipped, and records what it created so
you can undo it exactly. It stops without changing anything if any of the folders or the record is a symbolic link.
The parentheses run it in a sub-shell, so a stop never closes your terminal.
```bash
(
LIST=.claude/setup-installs/business-opportunity-validation.txt
for p in .claude .claude/rules .claude/skills .claude/skills/opportunity-decision-record .claude/skills/opportunity-validation .claude/setup-installs "$LIST"; do
if [ -L "$p" ]; then echo "STOPPED: $p is a symbolic link. Nothing was installed."; exit 1; fi
done
mkdir -p .claude/setup-installs
for f in \
.claude/rules/opportunity-evidence-labels.md \
.claude/skills/opportunity-decision-record/SKILL.md \
.claude/skills/opportunity-validation/PLAYBOOK.md \
.claude/skills/opportunity-validation/SKILL.md \
.claude/skills/opportunity-validation/TEMPLATES.md; do
if [ -e "$f" ] || [ -L "$f" ]; then echo "SKIPPED (already exists): $f"
else mkdir -p "$(dirname "$f")" && cp "$PKG/$f" "$f" && echo "$f" >> "$LIST" && echo "installed: $f"; fi
done
)
```
If anything was skipped, compare it with the package version (`diff "$PKG/<path>" "<path>"`) and decide yourself
whether to replace it. Nothing is overwritten automatically.
**Always-on rule:** `.claude/rules/opportunity-evidence-labels.md` loads into every session in this project. If you only want the skills,
delete it after installing (the uninstall below simply skips files that are already gone).
## 2. Check it worked
```bash
cat .claude/setup-installs/business-opportunity-validation.txt
```
Then start Claude Code in the project and ask: *"Use opportunity-validation on: an AI tool that drafts tender responses for small cleaning companies."* It should return a verdict in the format from TEMPLATES.md.
## Uninstall
With `PKG` set as above, this removes a file only if **all** of these are true:
- it's one of this package's files (the list below);
- the install record lists it, so this install created it;
- it's a regular file (not a link);
- it's still identical to the package copy.
Anything you changed since installing is kept, reported, and stays on the record. Files that were there before you
installed are never on the record, so they're never removed. Empty skill folders this package created are removed
afterwards.
```bash
(
LIST=.claude/setup-installs/business-opportunity-validation.txt
for p in .claude .claude/rules .claude/skills .claude/skills/opportunity-decision-record .claude/skills/opportunity-validation .claude/setup-installs "$LIST"; do
if [ -L "$p" ]; then echo "STOPPED: $p is a symbolic link. Nothing was removed."; exit 1; fi
done
if [ ! -f "$LIST" ]; then echo "No install record at $LIST. Nothing was removed."; exit 1; fi
KEEP=""
for f in \
.claude/rules/opportunity-evidence-labels.md \
.claude/skills/opportunity-decision-record/SKILL.md \
.claude/skills/opportunity-validation/PLAYBOOK.md \
.claude/skills/opportunity-validation/SKILL.md \
.claude/skills/opportunity-validation/TEMPLATES.md; do
grep -qxF "$f" "$LIST" || continue
if [ ! -e "$f" ]; then echo "already gone: $f"
elif [ -L "$f" ] || [ ! -f "$f" ]; then echo "KEPT (not a regular file): $f"; KEEP="$KEEP$f
"
elif cmp -s "$PKG/$f" "$f"; then rm -- "$f" && echo "removed: $f"
else echo "KEPT (changed since install): $f"; KEEP="$KEEP$f
"; fi
done
for d in .claude/skills/opportunity-validation .claude/skills/opportunity-decision-record; do rmdir "$d" 2>/dev/null; done
if [ -n "$KEEP" ]; then printf '%s' "$KEEP" > "$LIST" && echo "The install record now lists only the files kept above."
else rm -- "$LIST" && echo "removed the install record"; fi
)
```
Shown as plain text. Invisible or direction-changing characters are displayed as <U+XXXX>.