jsturtevant/rally/squad-sdk-local-build
Claude Code and agent skill by jsturtevant/rally
- community
Checking that the SKILL.md file is still in the repository.
Workaround for installing Squad SDK from GitHub branches that don't have dist/ committed
Install
npx vskill@latest install jsturtevant/rally/squad-sdk-local-buildSKILL.md
Squad SDK Local Build Workaround
Problem
When installing the Squad SDK (@bradygaster/squad) from a GitHub branch, npm does NOT:
- Install devDependencies of the package
- Run
preparescripts that require devDependencies (like TypeScript)
This means branches without a committed dist/ folder will fail to import because the compiled JavaScript doesn't exist.
Error symptom:
Why npm flags don't help
| Flag | What it does | Why it doesn't help | |
|---|---|---|---|
--include=dev | Installs YOUR project's devDeps | Doesn't affect installed package's devDeps | |
--install-links | Changes symlink handling | Doesn't trigger build scripts | |
| Global TypeScript | Makes tsc available | npm doesn't run prepare for GitHub tarballs |
Workaround
- Clone the SDK repo locally and build it:
``bash cd /tmp git clone https://github.com/jsturtevant/squad-pr.git cd squad-pr git checkout consult-mode-impl npm install npm run build ``
- Update package.json to use the local path:
``bash npm pkg set dependencies.@bradygaster/squad="file:/tmp/squad-pr" npm install ``
- Verify:
``bash ls node_modules/@bradygaster/squad/packages/squad-sdk/dist/ # Should show: index.js, index.d.ts, etc. ``
When to use this
- Testing SDK changes before they're published to npm
- Using feature branches that have TypeScript source but no
dist/ - Any branch where
setupConsultMode()or other new features aren't in the published npm version
Permanent fix (for SDK team)
The SDK team should do ONE of:
- Commit `dist/` to branches — simplest, works immediately
- Publish to npm — proper solution for releases
- Add `prepublishOnly` that builds — already exists, but only runs on
npm publish
Current state
package.jsonusesfile:/tmp/squad-pr- Local build at
/tmp/squad-princludesdist/folder - Tests pass (104/104)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.squad/skills/squad-sdk-local-build/SKILL.md
Popularity
- Repository stars
- 34
- Repository forks
- 2
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jsturtevant/rally/squad-sdk-local-build)