/fp:first-plan-engine-bootstrapfrom first-plan
Detects and installs the native first-plan-engine Rust binary on first invocation. Offers download via GitHub Releases with graceful fallback when absent.
Ships in first-plan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Skill que gerencia o lifecycle do binário nativo first-plan-engine.
Qualquer command que se beneficia do engine (/fp:cochange, /fp:refresh quando recalcula co-change, /fp:hot em monorepo grande, etc) deve consultar esta skill antes de cair no fallback markdown.
Locais onde procurar o binário, na ordem:
1. ${CLAUDE_PLUGIN_ROOT}/engine/bin/first-plan-engine
2. ${HOME}/.local/bin/first-plan-engine
3. $(which first-plan-engine) # se está no PATH
Verificar via:
ENGINE=""
for candidate in \
"${CLAUDE_PLUGIN_ROOT}/engine/bin/first-plan-engine" \
"${HOME}/.local/bin/first-plan-engine" \
"$(command -v first-plan-engine 2>/dev/null)"; do
if [ -x "$candidate" ]; then
ENGINE="$candidate"
break
fi
done
Se ausente e o command que precisou foi invocado, oferecer:
O command /fp:<X> ficaria 10-100x mais rapido com o engine nativo (Rust binary).
Quer baixar agora? (~5MB, single-file static binary, opt-in)
Opcoes:
A) Sim - download automatico para ${CLAUDE_PLUGIN_ROOT}/engine/bin/
B) Nao - usar fallback markdown (continua funcionando)
C) Manual - instrucoes para download via cargo install ou wget
Detectar arch + OS, baixar release matching:
ARCH=$(uname -m) # x86_64 ou aarch64
OS=$(uname -s) # Linux ou Darwin
case "$OS-$ARCH" in
Linux-x86_64) TARGET="x86_64-unknown-linux-musl" ;;
Linux-aarch64) TARGET="aarch64-unknown-linux-musl" ;;
Darwin-x86_64) TARGET="x86_64-apple-darwin" ;;
Darwin-arm64) TARGET="aarch64-apple-darwin" ;;
*) echo "unsupported: $OS-$ARCH"; exit 1 ;;
esac
DEST="${CLAUDE_PLUGIN_ROOT}/engine/bin"
mkdir -p "$DEST"
URL="https://github.com/vynazevedo/first-plan/releases/latest/download/first-plan-engine-${TARGET}.tar.gz"
curl -fsSL "$URL" | tar xz -C "$DEST"
chmod +x "$DEST/first-plan-engine"
"$DEST/first-plan-engine" --version
git clone https://github.com/vynazevedo/first-plan
cd first-plan/engine
cargo install --path crates/cli
Binário fica em ~/.cargo/bin/first-plan-engine.
Releases em https://github.com/vynazevedo/first-plan/releases. Download binário matching arch, extract, chmod +x, place em PATH.
Após detectar binário, comparar versão com a esperada pelo plugin:
INSTALLED=$("$ENGINE" --version | awk '{print $2}')
EXPECTED="0.3.0"
# se diferentes, sugerir update
Se usuário recusa download OU download falha (rede restrita, corp proxy):
Esta skill retorna ao caller:
engine_path: <path> se disponívelengine_path: null se ausenteCaller decide se usa engine ou fallback baseado nesse retorno.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vynazevedo/first-plan --plugin fp19 skills in this plugin
/first-plan-co-change-analysisSkill que constrói o Co-change Graph - "quando arquivo X muda, qual outro arquivo geralmente muda junto?". Use durante Discovery e em /fp:cochange. Baseado em git history. Detecta arquivos co-dependentes que devem ser editados juntos para evitar PRs incompletos. v0.3.0+ usa engine nativo Rust quando disponível (10-100x mais rápido)./first-plan-git-intelligenceSkill que extrai inteligência do git history - heatmap de atividade, ownership, branches/PRs in-flight. Use durante Discovery e em /fp:hot, /fp:owner, /fp:in-flight. Tudo via comandos git read-only./first-plan-lens-engineSkill que define o motor de detecção e roteamento de stack lenses do first-plan. Mapeia manifestos (go.mod, package.json, etc) -> stack -> papel -> lens skill correspondente. Use quando precisar decidir qual lens aplicar a uma pasta durante Discovery, ou quando estender suporte a uma nova stack./first-plan-lens-genericStack lens fallback para projetos onde nenhuma lens específica detectou. Use quando o projeto tem estrutura inusual, stack rara (Elixir, OCaml, Haskell, Erlang, Zig, etc) ou poliglota além das lenses cobertas. Aplica heurística genérica baseada em extensões e comportamento observável./first-plan-lens-goStack lens para projetos Go. Use durante Discovery quando go.mod for detectado. Extrai padrões de layout (cmd/internal/pkg), error handling, context.Context, concurrency, code generation, build tags./first-plan-lens-mobileStack lens para mobile - React Native, Swift (iOS), Kotlin (Android), Flutter. Use durante Discovery quando pubspec.yaml, Package.swift, build.gradle.kts (Android) ou react-native em deps for detectado. Cobre navegação, estado, módulos nativos, build/distribuição.Other plugins' skills for the same job