feat(project-bootstrap): add we're on Windows to default CLAUDE.md template
Pin every newly-bootstrapped project to Windows / PowerShell out of the box by adding a fifth trigger line to the CLAUDE.md template. The line activates the active-platform skill, which then governs all command/example output. - skills/project-bootstrap/assets/CLAUDE.md.template: append `we're on Windows` - skills/project-bootstrap/SKILL.md: sync the embedded preview in Step 5 and document the Linux/macOS substitution - CLAUDE.md (this repo): backfill the line — was created from old template - dist/project-bootstrap.skill: rebuilt - .wiki/source/active-platform-decision.md: append "Wired into project-bootstrap" Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,12 @@ _Updated: 2026-04-28_
|
||||
|
||||
## Done
|
||||
|
||||
### project-bootstrap: include `active-platform` trigger in CLAUDE.md template
|
||||
- [x] Add `we're on Windows` line to `assets/CLAUDE.md.template`
|
||||
- [x] Update embedded preview in `SKILL.md` Step 5 (with note about Linux/macOS substitution)
|
||||
- [x] Backfill the line in this repo's own `CLAUDE.md`
|
||||
- [x] Rebuild + reinstall `project-bootstrap.skill`
|
||||
|
||||
### active-platform skill
|
||||
- [x] Draft `skills/active-platform/SKILL.md` (RU+EN triggers, default=Windows/PowerShell, palette=Win/Linux/mac)
|
||||
- [x] Fixed `build.sh` PS arg-passing bug (single-quotes were leaking into `-Names` value)
|
||||
|
||||
@@ -26,6 +26,12 @@ Full spec: [`skills/active-platform/SKILL.md`](../../skills/active-platform/SKIL
|
||||
- **Cross-repo:** installed into `~/.claude/skills/`, applies in every session regardless of project.
|
||||
- **Iterable:** lives in this repo's `skills/` so we can edit + reinstall as we learn what triggers and exceptions actually happen in practice.
|
||||
|
||||
## Wired into `project-bootstrap`
|
||||
|
||||
The default platform should travel with every new project we create. Updated `project-bootstrap` so its `CLAUDE.md.template` adds a fifth trigger line: `we're on Windows`. That line is one of `active-platform`'s recognized switches, so any project bootstrapped from now on starts pinned to Windows / PowerShell. If the user is bootstrapping on a Linux/macOS host, the `SKILL.md` Step 5 note tells them to swap the line for `we're on Linux` / `we're on macOS`.
|
||||
|
||||
Backfilled the same line into this repo's own `CLAUDE.md` (which was created from the old template).
|
||||
|
||||
## Open questions to revisit
|
||||
|
||||
- Are the trigger phrases comprehensive enough? Add real-world examples as they come up.
|
||||
|
||||
@@ -5,3 +5,4 @@ talk like a caveman
|
||||
use superpowers
|
||||
use project wiki
|
||||
use task management system
|
||||
we're on Windows
|
||||
|
||||
BIN
dist/project-bootstrap.skill
vendored
BIN
dist/project-bootstrap.skill
vendored
Binary file not shown.
@@ -161,8 +161,14 @@ talk like a caveman
|
||||
use superpowers
|
||||
use project wiki
|
||||
use task management system
|
||||
we're on Windows
|
||||
```
|
||||
|
||||
The `we're on Windows` line activates the `active-platform` skill and pins the
|
||||
project's default platform to Windows / PowerShell — so generated commands and
|
||||
README quick-starts use PS-native syntax. Bootstrapping on a Linux or macOS
|
||||
host? Substitute `we're on Linux` or `we're on macOS` instead.
|
||||
|
||||
---
|
||||
|
||||
## Step 6 — Commit
|
||||
|
||||
@@ -5,3 +5,4 @@ talk like a caveman
|
||||
use superpowers
|
||||
use project wiki
|
||||
use task management system
|
||||
we're on Windows
|
||||
|
||||
Reference in New Issue
Block a user