estoque-inventory
Allows natural language management of the Estoque mini-ERP system via a local REST API.
Install
mkdir -p .claude/skills/estoque-inventory && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11122" && unzip -o skill.zip -d .claude/skills/estoque-inventory && rm skill.zipInstalls to .claude/skills/estoque-inventory
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Gerencia o inventário do mini-ERP Estoque — listar/buscar itens, criar/editar, ajustar quantidade, sinalizar estoque baixo e somar totais via a API REST local.Key capabilities
- →List/search inventory items
- →Create/edit products
- →Adjust stock quantities
- →Generate summary reports
How it works
It interacts with the Estoque REST API via a wrapper script to manage inventory data.
Inputs & outputs
When to use estoque-inventory
- →List all products with low stock
- →Update the quantity of an inventory item
- →Add a new product to the inventory database
About this skill
Estoque — gestão de inventário
Permite operar o mini-ERP Estoque (API Go + SQLite puro-Go via
modernc.org/sqlite) por linguagem natural. Toda chamada à API passa pelo wrapper
scripts/estoque.sh — nunca monte curl à mão. O script lê a env var
ESTOQUE_API_URL (default http://localhost:3001) e sempre devolve JSON no stdout;
erros vão para o stderr no formato {"error":"..."} com código de saída ≠ 0.
Quando usar
Use esta skill quando o usuário quiser consultar ou mexer no estoque: listar/buscar itens, ver detalhes, cadastrar produto, editar dados, ajustar quantidade (entrada/ saída), ver o que está com estoque baixo, ou pedir totais (itens, unidades, valor).
Pré-requisito
A API precisa estar no ar (porta 3001). Verifique com estoque.sh health →
{"ok":true,...}. Se falhar, oriente o usuário a subir o servidor:
cd server && go run . (requer Go 1.25+).
Modelo do item
id, sku, name, description, category, unit (default un), cost_price,
price, quantity, min_stock, created_at, updated_at.
Regras importantes:
nameé obrigatório;cost_price/price/quantity/min_stocknão podem ser negativos.- O
skué gerado e imutável no servidor (ex.:FER-000001, prefixo de 3 letras da categoria) — nunca envieskuem create/update. - Estoque baixo =
quantity <= min_stock.
Comandos (scripts/estoque.sh)
| Comando | Ação |
|---|---|
health | Healthcheck da API |
list [busca] | Lista itens; busca filtra por nome/sku/categoria |
get <id> | Detalhe de um item |
create | Cria item — corpo JSON via stdin |
update <id> | Edita item — corpo JSON via stdin (sem sku) |
adjust <id> <delta> | Soma delta à quantidade (negativo = saída) |
setqty <id> <quantity> | Define quantidade absoluta |
delete <id> | Remove item |
low-stock | Itens com quantity <= min_stock |
summary | Totais: itens, unidades, valor do estoque, nº em baixo estoque |
Exemplos
# Buscar
scripts/estoque.sh list parafuso
# Cadastrar (SKU é gerado pelo servidor)
echo '{"name":"Parafuso 4mm","category":"Ferragens","unit":"cx","cost_price":1.2,"price":2.5,"quantity":100,"min_stock":10}' \
| scripts/estoque.sh create
# Entrada de 50 unidades / saída de 3 unidades
scripts/estoque.sh adjust 7 50
scripts/estoque.sh adjust 7 -3
# Editar dados (mantém o SKU)
echo '{"name":"Parafuso 4mm zincado","category":"Ferragens","unit":"cx","cost_price":1.3,"price":2.9,"quantity":147,"min_stock":20}' \
| scripts/estoque.sh update 7
# Visões agregadas
scripts/estoque.sh low-stock
scripts/estoque.sh summary
Boas práticas
- Antes de
update, façaget <id>para preservar os campos que o usuário não quer mudar (o PUT substitui todos os dados editáveis do item). - Para entrada/saída de mercadoria prefira
adjust(relativo) asetqty(absoluto). - Ao criar/editar, confirme valores numéricos não-negativos; o servidor rejeita com
{"error":"..."}em português — repasse a mensagem ao usuário. - Detalhes completos de endpoints e validação em
references/api.md.
When not to use it
- →When the API server is down
- →When performing manual database edits
Prerequisites
Limitations
- →Requires API server running on port 3001
How it compares
It allows natural language interaction with an inventory system instead of manual API calls.
Compared to similar skills
estoque-inventory side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| estoque-inventory (this skill) | 0 | 1mo | Review | Beginner |
| motherduck-partner-delivery | 0 | 1mo | Review | Advanced |
| azure-data-explorer | 0 | 1mo | No flags | Advanced |
| add-etf | 0 | 4mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
motherduck-partner-delivery
motherduckdb
Deliver repeatable MotherDuck architectures across multiple clients. Use when a consultancy, agency, or multi-client product team needs to standardize isolation, provisioning, regional deployment, sharing boundaries, and client-specific exceptions across client engagements.
azure-data-explorer
vinodrex
Expert knowledge for Azure Data Explorer development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when configuring ADX clusters, KQL/T-SQL queries, ingestion p
add-etf
michaellaret7
Add an ETF to the database with proper classification. Handles web research, DB format matching, confirmation, and execution.
backend-development
skillcreatorai
Backend API design, database architecture, microservices patterns, and test-driven development. Use for designing APIs, database schemas, or backend system architecture.
laravel-specialist
Jeffallan
Use when building Laravel 10+ applications requiring Eloquent ORM, API resources, or queue systems. Invoke for Laravel models, Livewire components, Sanctum authentication, Horizon queues.
writing-hashql-jexpr
hashintel
HashQL J-Expr syntax for writing queries. Use when writing J-Expr code, using #literal/#struct/#list constructs, understanding function call syntax, or working with HashQL query files (.jsonc).