ag-preparar-ambiente

ag-preparar-ambiente is a skill for Claude Code from andregusman-raiz/a-gusman-claude. It costs 38 tokens per session (1,080 once invoked), scanned A, original, MIT.

A development-environment setup tool that checks available tools and creates or maintains files for local development, containers, environment variables, and continuous integration.

In plain words
What is it for?
Use it to diagnose setup problems, create Docker files, configure CI, audit environment variables, or investigate a broken pipeline.
Why use it?
It helps a new developer run a project and gives teams a repeatable way to check code before changes are committed or deployed.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter.

Good fit Use it to diagnose setup problems, create Docker files, configure CI, audit environment variables, or investigate a broken pipeline.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andregusman-raiz/a-gusman-claude/ag-preparar-ambiente
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add andregusman-raiz/a-gusman-claude --skill ag-preparar-ambiente
Clone the repo
git clone --depth 1 https://github.com/andregusman-raiz/a-gusman-claude

Made for: Claude Code.

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 ag-preparar-ambiente

README.md
[![agentmods](https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-preparar-ambiente/github.svg)](https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-preparar-ambiente)
Your own site
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-preparar-ambiente"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-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 ag-preparar-ambiente

Your own site · 80×15
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-preparar-ambiente"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-preparar-ambiente.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,080 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 83
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
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.00038 $0.01080
Opus 5 $0.00019 $0.00540
Sonnet 5 $0.00008 $0.00216
Haiku 4.5 $0.00004 $0.00108

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

Security

Grade A, and why

ag-preparar-ambiente scanned grade A with 0 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ag-preparar-ambiente/SKILL.md · 96 lines

How it starts

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

Ambiente Detectado

  • Docker: !which docker 2>/dev/null && docker --version 2>/dev/null || echo "not installed"
  • Node: !node --version 2>/dev/null || echo "not installed"
  • Python: !python3 --version 2>/dev/null || echo "not installed"

ag-preparar-ambiente — Setup Ambiente

Quem você é

O Infraestrutor. Gera tudo que um dev precisa para rodar o projeto.

Modos

/ag-preparar-ambiente setup → Diagnóstico: o que falta?
/ag-preparar-ambiente docker → Dockerfile + docker-compose
/ag-preparar-ambiente ci → CI nativo (Vercel CI + husky), NÃO gera GHA por default
/ag-preparar-ambiente ci --gha-w[1-4] → SOMENTE se enquadrar whitelist gha-minimal.md
/ag-preparar-ambiente env → Auditar env vars
/ag-preparar-ambiente diagnosticar → Debug de pipeline quebrada

Regra GHA-mínimo (obrigatória no modo ci)

ANTES de gerar QUALQUER workflow, ler ~/Claude/.claude/rules/gha-minimal.md.

Default no modo ci:

  • Gerar .husky/pre-commit com lint-staged rodando typecheck + lint
  • Gerar package.json script check: bun run typecheck && bun run lint && bun run test
  • Gerar vercel.json com buildCommand: "bun run check && bun run build"
  • NÃO gerar .github/workflows/ci.yml

Workflow GHA SOMENTE se enquadrar W1-W4 (TOTVS/MSSQL legacy, CLI release multi-OS, VPS self-hosted, DB-first PR gate). Header obrigatório:

# JUSTIFICATIVA-GHA: <W1|W2|W3|W4> — <descrição>
# ALTERNATIVA-DESCARTADA: <opção nativa e razão>

O que gera

  • Dockerfile multi-stage otimizado
  • docker-compose com dev environment completo
  • CI local-first: .husky/pre-commit + vercel.json (Vercel CI cobre PR/deploy)
  • GHA workflow APENAS se whitelisted (W1-W4)
  • .env.example documentado
  • Scripts de setup automatizados

Troubleshooting Comum

Problema Causa Solucao
Docker build falha Cache corrompido docker system prune -a
Port already in use Processo orfao lsof -i :3000 / netstat -ano | findstr :3000
npm install falha Node version errada Verificar .nvmrc ou engines no package.json
CI pipeline timeout Build sem cache Adicionar cache de node_modules e .next/cache
Env vars nao carregam Arquivo errado .env.local sobrescreve .env em Next.js

Read the full file on GitHub · 96 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. 9d ago First seen · 96 lines · 38 tokens per session scan A 77c3f74f3f50

Subscribe to this mod's changes

ag-preparar-ambiente is a skill published in the GitHub repository andregusman-raiz/a-gusman-claude (19 stars, last pushed 3d ago), licensed MIT. It adds 38 tokens to every session and 1,080 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

deployment-patterns

Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.

affaan-m/ECC · 41 tokens

scanning-containers-with-trivy-in-cicd

This skill covers integrating Aqua Security's Trivy scanner into CI/CD pipelines for comprehensive container image vulnerability detection. It addresses scanning Docker images for OS package and application dependency CVEs, detecting misconfigurations in Dockerfiles, scanning filesystem and git repositories, and…

xalgorix/xalgorix · 74 tokens

scanning-docker-images-with-trivy

Trivy is a comprehensive open-source vulnerability scanner by Aqua Security that detects vulnerabilities in OS packages, language-specific dependencies, misconfigurations, secrets, and license violati.

xalgorix/xalgorix · 42 tokens

implementing-aqua-security-for-container-scanning

Deploy Aqua Security's Trivy scanner to detect vulnerabilities, misconfigurations, secrets, and license issues in container images across CI/CD pipelines and registries.

xalgorix/xalgorix · 41 tokens

deploy

Elixir/Phoenix deployment patterns — Dockerfile, fly.toml, runtime.exs, mix release, rel/ overlays. Use when configuring Fly.io, Docker, CI/CD, health checks, or production migrations.

oliver-kriska/claude-elixir-phoenix · 46 tokens

performing-container-security-scanning-with-trivy

Scan container images, filesystems, and Kubernetes manifests for vulnerabilities, misconfigurations, exposed secrets, and license compliance issues using Aqua Security Trivy with SBOM generation and CI/CD integration.

xalgorix/xalgorix · 48 tokens