preparar-ambiente

preparar-ambiente is a skill for Claude Code from emidio-trancoso/advocacia-aberta. It costs 48 tokens per session (1,259 once invoked), scanned C, original, MIT.

An on-demand setup tool for installing external programs needed by certain transcription, legal-research, and PDF-layout workflows. It installs only the tools required for the selected job.

In plain words
What is it for?
Use it to prepare Whisper and FFmpeg for audio transcription, Bun for local legal searches, uv and its browser for TJPR searches, or Typst for generating final PDFs.
Why use it?
It avoids interrupting a task because a required program or voice model is missing, while keeping unrelated software out of the environment.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT variable. Also seen: installed under .agents/ (shared by several agents).

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the advocacia-aberta plugin — 10 skills shipped together

Good fit Use it to prepare Whisper and FFmpeg for audio transcription, Bun for local legal searches, uv and its browser for TJPR searches, or Typst for generating final PDFs.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add emidio-trancoso/advocacia-aberta
Claude Code
/plugin install advocacia-aberta

Made for: Claude Code.

Or install advocacia-aberta, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for preparar-ambiente

README.md
[![agentmods](https://agentmods.dev/badge/skills/emidio-trancoso/advocacia-aberta/0.2-preparar-ambiente/github.svg)](https://agentmods.dev/skills/emidio-trancoso/advocacia-aberta/0.2-preparar-ambiente)
Your own site
<a href="https://agentmods.dev/skills/emidio-trancoso/advocacia-aberta/0.2-preparar-ambiente"><img src="https://agentmods.dev/badge/skills/emidio-trancoso/advocacia-aberta/0.2-preparar-ambiente/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for preparar-ambiente

Your own site · 80×15
<a href="https://agentmods.dev/skills/emidio-trancoso/advocacia-aberta/0.2-preparar-ambiente"><img src="https://agentmods.dev/badge/skills/emidio-trancoso/advocacia-aberta/0.2-preparar-ambiente.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,259 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01259
Opus 5 $0.00024 $0.00629
Sonnet 5 $0.00010 $0.00252
Haiku 4.5 $0.00005 $0.00126

Measured 12d ago against content hash 0cd17460ed23, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade C, and why

preparar-ambiente scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://bun.sh/install | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://bun.sh/install | bash
.agents/skills/0.2-preparar-ambiente/SKILL.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Preparar ambiente

A maioria das skills deste kit é texto puro e funciona sem instalar nada. Apenas quatro skills dependem de programas externos. Esta skill instala esses programas sob demanda, ou seja, só o que for realmente necessário para o que você quer fazer:

  • transcrever (transcrever áudio/vídeo de audiência) precisa do whisper-cli, do ffmpeg e de um modelo de inteligência artificial de voz (um arquivo de cerca de 539 MB).
  • buscar-fontes (busca na base jurídica local) precisa do programa bun.
  • buscar-tjpr (busca de acórdãos no portal do TJPR) precisa do programa uv com Python 3.12. Na primeira busca, ele baixa cerca de 400 MB de um navegador automatizado.
  • diagramar-peca (geração do PDF final) precisa do programa typst.

Use esta skill quando uma das skills acima avisar que está faltando uma ferramenta, ou quando você já souber que vai usar esses recursos e quiser deixar tudo pronto.

Procedimento

Passo 1 — Descobrir o que instalar

Pergunte ao usuário (ou deduza do que ele já pediu) qual recurso ele quer habilitar:

  • transcrição de áudio/vídeo de audiência,
  • busca na base jurídica local,
  • busca no TJPR,
  • diagramação em PDF, ou
  • tudo de uma vez.

Instale apenas o necessário. Não instale ferramentas que não serão usadas (setup preguiçoso).

Passo 2 — Detectar o sistema e ver o que já existe

Descubra qual é o sistema operacional do usuário: macOS, Linux ou Windows.

Antes de instalar qualquer coisa, verifique o que já está instalado para não repetir trabalho:

which bun uv whisper-cli ffmpeg typst

No macOS, verifique também se o Homebrew existe:

which brew

Só instale o que estiver faltando.

Passo 3 — Instalar o que faltar

Antes de rodar cada comando, explique ao usuário em uma frase o que ele faz e avise sobre downloads grandes ou demora. Use exatamente os comandos abaixo.

bun (para buscar-fontes)

Instalar o programa:

Read the full file on GitHub · 144 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 144 lines · 48 tokens per session scan C 0cd17460ed23

Subscribe to this mod's changes

preparar-ambiente is a skill published in the GitHub repository emidio-trancoso/advocacia-aberta (49 stars, last pushed 5d ago), licensed MIT. It adds 48 tokens to every session and 1,259 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

advogado-criminal

Advogado criminalista especializado em Maria da Penha, violencia domestica, feminicidio, direito penal brasileiro, medidas protetivas, inquerito policial e acao penal.

sickn33/agentic-awesome-skills · 42 tokens

advogado-especialista

Advogado especialista em todas as areas do Direito brasileiro: familia, criminal, trabalhista, tributario, consumidor, imobiliario, empresarial, civil e constitucional.

sickn33/agentic-awesome-skills · 38 tokens

advogado-criminal-v2

ADVOGADO CRIMINALISTA SENIOR — ESPECIALISTA EM DIREITO PENAL E MARIA DA PENHA workflow skill. Use this skill when the user needs Advogado criminalista especializado em Maria da Penha, violencia domestica, feminicidio, direito penal brasileiro, medidas protetivas, inquerito policial e acao penal and the operator should…

diegosouzapw/awesome-omni-skills · 98 tokens

redator-adversarial

Redação e revisão adversarial de peças processuais. Use quando precisar redigir peça (inicial, contestação, réplica, recurso) com estrutura padrão, ou testar peça pronta simulando o juiz (admissibilidade, clareza, requisitos formais) e a parte contrária (contra-argumentos, flancos), gerando relatório de fragilidades…

neimaciel/redator-adversarial · 87 tokens

prazo-sentinel

Cálculo e alerta de prazos processuais. Use quando precisar contar prazo de intimação (dias úteis CPC, corridos CLT/CPP), verificar dobra de prazo (Fazenda, Defensoria, litisconsortes), aplicar suspensão de fim de ano, montar a agenda semanal de prazos da carteira, ou reagir a prazo perdido (justa causa). Adapta tom…

neimaciel/prazo-sentinel · 99 tokens

societario-pro

Direito societário consultivo e contencioso. Use para constituição de sociedade (LTDA x S.A. x SLU, contrato social com cláusulas de impasse e saída), acordo de sócios (vesting com cliff, tag along, drag along, não-concorrência, deadlock buy-or-sell, opção de compra), alterações societárias (cessão de quotas…

neimaciel/societario-pro · 126 tokens