Sankhya Dicionario logo

Sankhya Dicionario

Community
andressaolivi
sankhya-dicionario

Dicionário de dados do ERP Sankhya com cobertura completa de todas as tabelas do sistema. Use esta skill sempre que o usuário perguntar sobre tabelas ou campos do Sankhya, como: "o que é TGFCAB?", "quais campos tem TGFFIN?", "em que tabela fica o estoque atual?", "como funciona o STATUSNOTA?", "qual o join entre notas e financeiro?", "gera DDL de TGFPRO", "me explica RECDESP", "qual tabela tem CODPARC?", "quais tabelas do EFD existem?", "me lista tabelas de produção", "o que é TGFEFD?", ou qualquer dúvida sobre estrutura, significado ou uso de tabelas e campos do Sankhya ERP. Também use para gerar scripts SQL, DDL, queries de exemplo ou explicar relacionamentos entre tabelas.

Overview

Publisherandressaolivi
Repositorysankhya-skills
Skill namesankhya-dicionario
Stars
43
Forks
6
Bundled files
20
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 20 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by andressaolivi on GitHub. Read the source before you install it.

Installation

Install the Sankhya Dicionario AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/andressaolivi/sankhya-skills/tree/main/sankhya-dicionario
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andressaolivi/sankhya-skills.git /tmp/sankhya-skills
mkdir -p .claude/skills
cp -r /tmp/sankhya-skills/sankhya-dicionario .claude/skills/sankhya-dicionario
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sankhya Dicionario in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sankhya Dicionario on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sankhya Dicionario is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Skill: Dicionário Sankhya ERP — Completo

Você é especialista no dicionário de dados do Sankhya ERP (banco Oracle/PostgreSQL).

Fonte: Gerado diretamente das tabelas TDD do Sankhya (TDDTAB + TDDCAM + TDDOPC). Cobertura: 3.397 tabelas · 45.312 campos.


Mapa de arquivos de referência

Passo 1: Identifique o prefixo da tabela. Passo 2: Leia o arquivo correspondente.

Tabelas TGF (módulo operacional principal)

ArquivoConteúdoQuando usar
references/tgf_operacional.mdTGFCAB, TGFITE, TGFPAR, TGFVEN, TGFTOP, TGFTIP, TGFVOL, TGFMOE, TGFREG, TGFZON, TGFROT, TGFCON, TGFCID e similaresNotas, pedidos, parceiros, vendedores, tipos de operação
references/tgf_financeiro.mdTGFFIN, TGFNAT, TGFLAN, TGFCTA, TGFCCU, TGFCRE, TGFBAN, TGFBAI, TGFDUP, TGFRAT, TGFTNS e similaresFinanceiro, títulos, contas, naturezas, centros de custo
references/tgf_estoque.mdTGFPRO, TGFEST, TGFCTE, TGFLOC, TGFGRU, TGFCAT, TGFUNI, TGFCPR, TGFCUS, TGFPLA, TGFPAT e similaresProdutos, estoque, locais, grupos, custo
references/tgf_fiscal.mdTGFCFO, TGFTRI, TGFNOT, TGFNFE, TGFNFT, TGFCST, TGFDIR, TGFDIT, TGFGRF, TGFNCM, TGFCOD e similaresFiscal, NF-e, CFOP, CST, NCM, tributação
references/tgf_efd.mdTGFEFD* (324 tabelas)SPED Fiscal, EFD Contribuições, registros EFD
references/tgf_dim_drc.mdTGFDIM*, TGFDRC*, TGFADR*, TGFLCD*DIM/SC, DRC, ADR, obrigações acessórias regionais
references/tgf_outros.mdDemais tabelas TGF não classificadas acimaQualquer TGF* não coberto pelos arquivos anteriores

Outros módulos

ArquivoPrefixoConteúdoQuando usar
references/tsi.mdTSISistema, configurações, segurança, usuários, empresasTSIUSU, TSICID, TSIORG e todas TSI*
references/tfp.mdTFPMódulo fiscal complementar (395 tabelas)Qualquer TFP*
references/tcb_contabil.mdTCBContabilidade, plano de contas, lançamentos contábeisQualquer TCB*
references/tim.mdTIMIndústria / manufaturaQualquer TIM*
references/tcs.mdTCSCRM, pré-vendas, comissõesQualquer TCS*
references/tpr.mdTPRProdução, ordens de produçãoQualquer TPR*
references/tri.mdTRIRetail / PDV / frente de caixaQualquer TRI*
references/tgw.mdTGWWMS — gestão de armazémQualquer TGW*
references/tse.mdTSEServiços, helpdesk, contratos de serviçoQualquer TSE*
references/views.mdVGF, VGW, VIM, VFP, VIE…Views e consultas do sistemaQualquer V**
references/ad_custom.mdAD_Customizações e campos adicionais (271 tabelas)Qualquer AD_*
references/outros_misc.mdBH_, TAP, TCI, TGM, AUD…Tabelas diversas de módulos menoresPrefixos não listados acima
references/indice_tabelas.mdtodasÍndice geral com nome + descrição de todas TGF e TSIIdentificar tabela desconhecida ou listar por módulo

Regra: se não souber qual arquivo, consulte references/indice_tabelas.md primeiro para localizar a tabela, depois leia o arquivo do módulo correspondente.


Regras de resposta

Consulta de tabela

  • Leia o arquivo de referência correto antes de responder
  • Liste os campos com nome, tipo, tamanho, descrição e opções de valor quando existirem
  • Destaque a chave primária (campo com menor ORDEM ou sufixo identificador)
  • Mencione FKs com base nos sufixos (CODPARC → TGFPAR, CODPROD → TGFPRO, CODEMP → TSIORG etc.)
  • Inclua observações práticas de uso

Busca reversa (campo → tabelas)

  • Indique em quais tabelas o campo aparece e em qual módulo
  • Explique se há diferença semântica entre tabelas

Explicação semântica

  • Explique o propósito em linguagem clara com exemplos
  • Mencione armadilhas quando relevante

DDL

  • Oracle: NUMBER, VARCHAR2, DATE, CHAR, CLOB
  • Inclua COMMENT ON COLUMN
  • Declare PK e FKs como CONSTRAINT

SQL / queries

  • Use aliases curtos e descritivos
  • Joins corretos com todas as condições necessárias
  • Comentários explicando cada bloco

Armadilhas conhecidas ⚠️

Situação❌ Errado✅ Correto
Estoque atualSELECT FROM TGFCTESELECT FROM TGFEST (campo ESTOQUE)
Nota confirmadaSTATUSNOTA='A'STATUSNOTA='L' (Liberada)
Título em abertosem filtro PROVISAOPROVISAO='N' + DHBAIXA IS NULL
Número NF impressousar NUNOTAusar NUMNOTA (NUNOTA é chave interna)
Join nota × financeiropor NUNOTApor NUMNOTA + SERIENOTA (TGFFIN não tem NUNOTA)
RECDESP no TGFFIN'R' ou 'D'Integer: 1=Receita, -1=Despesa
TIPMOV valoressó V/C/TV=Venda, C=Compra, K=Ped.Transf., O=Ped.Compra, Q=Requisição, L=Dev.Requisição

Relacionamentos principais

TGFCAB (NUNOTA — chave interna)
  ├── TGFITE        via NUNOTA            → itens do pedido
  ├── TGFPAR        via CODPARC           → cliente/fornecedor
  ├── TGFTOP        via CODTIPOPER        → tipo de operação
  ├── TGFVEN        via CODVEND           → vendedor
  ├── TGFNAT        via CODNAT            → natureza
  └── TGFFIN        via NUMNOTA+SERIENOTA → títulos (NÃO por NUNOTA)

TGFFIN (NUFIN)
  ├── TGFNAT        via CODNAT            → natureza financeira
  ├── TGFPAR        via CODPARC           → parceiro
  └── TGFTOP        via CODTIPOPER        → tipo de operação

TGFPRO (CODPROD)
  ├── TGFEST        via CODPROD+CODEMP+CODLOCAL+CONTROLE → estoque atual
  ├── TGFGRU        via CODGRUPOPROD      → grupo
  └── TGFITE        via CODPROD           → itens da nota

TGFPAR (CODPARC)
  └── referenciado em TGFCAB, TGFFIN, TGFITE, TGFEST, TGFCTE

Campos com semântica especial

CampoTabelaTipoValores
STATUSNOTATGFCABStringL=Liberada, A=Atendimento, P=Pendente
TIPMOVTGFCABStringV=Venda, C=Compra, K=Ped.Transf., O=Ped.Compra, Q=Requisição, L=Dev.Requisição
RECDESPTGFFINInteger1=Receita, -1=Despesa
PROVISAOTGFFINStringS=Provisão, N=Normal
TIPNATTGFNATStringR=Receita, D=Despesa
TIPPESSOATGFPARStringJ=Jurídica, F=Física
CONFIRMADATGFCABStringSim / Não
TIPO (TGFEST)TGFESTStringP=Próprio, T=Terceiro
ATIVOváriosStringS=Sim, N=Não

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Sankhya Dicionario AI skill do?

Dicionário de dados do ERP Sankhya com cobertura completa de todas as tabelas do sistema. Use esta skill sempre que o usuário perguntar sobre tabelas ou campos do Sankhya, como: "o que é TGFCAB?", "quais campos tem TGFFIN?", "em que tabela fica o estoque atual?", "como funciona o STATUSNOTA?", "qual o join entre notas e financeiro?", "gera DDL de TGFPRO", "me explica RECDESP", "qual tabela tem CODPARC?", "quais tabelas do EFD existem?", "me lista tabelas de produção", "o que é TGFEFD?", ou qualquer dúvida sobre estrutura, significado ou uso de tabelas e campos do Sankhya ERP. Também use par...

Why use Sankhya Dicionario on TypingMind?

Because you install it once and use it with any model. Sankhya Dicionario is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sankhya Dicionario in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/andressaolivi/sankhya-skills/tree/main/sankhya-dicionario. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Sankhya Dicionario?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sankhya Dicionario?

As many as you like. As long as a model supports skills, you can use Sankhya Dicionario with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sankhya Dicionario AI skill free?

Yes. It is published on GitHub by andressaolivi under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇