Dataset
Plugin Claude Code para Protheus e ADVPL/TLPP — base 155k+ registros, Agent Teams, compilação TDS-CLI, testes TIR e MCP PO-UI
npx -y skills add tbc-servicos/dataagile-agent-kit --skill datasetAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Cria dataset JavaScript para TOTVS Fluig com defineStructure(), createDataset(), try/catch e logging completo. Use quando precisar consultar dados no Fluig, integrar com Protheus via REST, consulta SQL, atualizar dados externos ou dataset com constraints. Suporta: SQL simples, REST Protheus (GET/POST), SQL dinâmico com validação anti-injection.
SKILL.md
1.6 KB, as published. Nobody here has run it
Consulta MCP
Antes de gerar código, consulte o MCP tbc-knowledge:
searchFluigApi({ category: "dataset" })
// → métodos DatasetFactory, DatasetBuilder, constraints, colunas
searchFluigPatterns({ category: "template", skill: "fluig-dataset" })
// → templates: base, SQL, REST Protheus, constraints
searchFluigPatterns({ category: "naming" })
// → convenção de nomenclatura ds_[acao]_[entidade].js
Fluxo de Desenvolvimento
- Nomear dataset:
ds_[acao]_[entidade].js - Implementar
defineStructure()— define colunas - Implementar
createDataset()— executa lógica, retorna dados - Sempre usar
try/catche logging - Testar com fluig-test
Instruções para Claude
- Perguntar antes de gerar: Qual o nome do dataset? Qual a fonte de dados (SQL, REST Protheus, dataset interno)? Quais colunas retornar? Precisa de constraints?
- Consultar MCP para obter o template correto conforme o tipo de dataset solicitado.
- Sempre incluir
try/catchcomlog.infona entrada elog.errorno catch. - Validar inputs em datasets SQL dinâmico — nunca concatenar parâmetros sem sanitização.
- Nomear corretamente:
ds_[acao]_[entidade].jsem snake_case.