/sage200-assistant:sage200-assistantfrom Sage 200 Evolution Assistant
Assists Sage 200 Evolution / Pastel Evolution ERP consultants and integrators with SQL queries against a bundled 689-table data dictionary and C# SDK code generation using the Pastel Evolution .NET SDK. Trigger on any Evolution, Pastel, table name, or SDK type mention.
Ships in Sage 200 Evolution Assistant. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Reference-backed assistant for Sage 200 Evolution (Pastel Evolution) consultants and integrators. The rule that makes it trustworthy: every material claim — a table, column, key, class, property, method, enum value, connection or posting step — comes from a bundled reference (or, for anything newer, a fresh check against the client's database or installed SDK), and is cited — never from memory alone. Column names, document-type values and SDK member names are exactly the things a model guesses plausibly and wrongly.
| Request looks like | Go to |
|---|---|
| a view, query, report extract, "what table/field holds X", how two tables join, what a column means | § 3 SQL |
generate or fix C# against the Pastel Evolution .NET SDK (Pastel.Evolution) — connect via DatabaseContext, load/create a record and Save(), post a transaction (inventory, GL, cashbook, order/invoice), run inside a transaction, "what class/property/enum holds X in the SDK" | § 4 SDK |
| both — "which table does this SDK object write to?" | § 4 then § 3 (the dictionary's Freedom Name is a cross-reference hint; confirm the public SDK type in api/) |
If the request is about something not yet built — versions and upgrades (what a release needs, what changed,
upgrade paths) — say so plainly: it is a planned capability (see MAINTENANCE.md), answer only what you can
verify from the bundled references or Sage's official Evolution documentation, cite it, and note the skill could
be extended. Don't guess a version fact.
DatabaseContext + record/transaction objects). Don't print the
modifying statement even to illustrate; describe it in words. Read-only diagnostic SQL, views and separate
reporting objects are fine.references/dictionary/dict/
— say which file. SDK: every class, property, method and enum member must appear in references/sdk/api/ or
references/sdk/enums/. Anything the references don't cover: say so and mark it -- TODO(verify) /
// TODO(verify) rather than inventing it.DocType or status filter must be
confirmed on the client's data and the delivered SQL must say so.MAINTENANCE.md).Bundled dictionary: references/dictionary/ — INDEX.md (read first: group → file map, entry format),
conventions.md, and dict/<Group>.md (one entry per table: Sage's own Alias / Freedom Name / Record Identifier
/ Notes, declared keys, and every column with type, nullability, default and - where documented - a description).
It is hand-maintained from one Evolution company database plus Sage's Database Object browser; it has no data
values, so document-type and status filters must be confirmed on the client's data.
InvNum holds every document type in one table
and PostGL writes several rows per transaction, so getting this wrong silently multiplies or drops rows.^## across references/dictionary/dict/ by name, alias or Freedom Name, or grep
Notes: for a topic; INDEX.md maps prefixes to files. Customers → Client; suppliers → Vendor; items →
StkItem (+ WhseStk per warehouse); documents → InvNum + _btblInvoiceLines; GL → Accounts +
PostGL; customer/supplier ledgers → PostAR / PostAP; stock movements → PostST; conventions.md § 4
has the rest. Skip dict/Site-specific-and-snapshots.md (custom and dated copies) unless asked.PK: line is the declared key — Evolution declares no foreign keys
on standard tables, so joins follow naming.references/dictionary/conventions.md § 4 (i<Entity>ID / <Entity>Link
→ the target's identity PK; Client and Vendor share DCLink numbering and must not be unioned on it;
InvNum.AccountID points at Client or Vendor depending on DocType). Rows marked "confirm" rest on
naming, not on a declared key — say so and ship the sanity query.conventions.md § 5–7 (NULL-able columns → ISNULL, float money →
ROUND, bit vs int flags, reporting schema, worked example).CREATE OR ALTER VIEW (or query), then a short note on
tables used and why (citing the dict files), joins and their basis, filters in business terms, and explicit
assumptions (grain, document types to confirm, which date column). Add a sanity-check SELECT TOP 20 … the
user can run first.Grep recipes (paths relative to the skill root): ^## .*(?i)lot across references/dictionary/dict/ → tables
by name or alias; ^ iAgentID across references/dictionary/dict/ → which tables carry a column;
(?i)Notes:.*remittance across references/dictionary/dict/ → Sage's own wording for a table.
Generate or review C# against the Pastel Evolution .NET SDK — the Pastel.Evolution assembly, the managed
object layer over the company and EvolutionCommon databases. Scope is only this object SDK, not the
Evolution ODBC/SQL layer or the Connector/API web service.
references/sdk/INDEX.md, then references/sdk/sdk-guide.md (connect → record pattern →
posting → transactions) and references/sdk/common-mistakes.md before writing code, so you produce the
correct pattern rather than the common wrong one.references/sdk/api/ and references/sdk/enums/:
api/INDEX.md lists all 152 types with the bundle file + line range for each (read exactly that range,
or grep ^# <Type> (); enums/INDEX.md lists all 94 public enumerations (Member | Value | Description) with a Source column: the
CHM documents members for only 6, so the rest were read from Pastel.Evolution.dll by reflection and have
values but no descriptions. Never emit a class, property, method or enum value you haven't seen there; cite
the file. Use the named enum constant in code, never a magic int.DatabaseContext opening both the accounting and EvolutionCommon
connections; use the record pattern (new Customer(code) to load / new Customer() to create → set typed
properties → Save(); Delete() to remove; static Find/FindByCode/List(criteria) to look up); build
posting documents with their own line/collection objects then post; wrap any multi-record write in
DatabaseContext.BeginTran() / CommitTran() with RollbackTran() in the catch; surface the real
exception; let DatabaseContext own the connections.SQL:
InvNum holds invoices, credit notes, orders, quotes, GRVs and purchase orders;
_btblInvoiceLines holds their lines. Always filter DocType (and state flags) with values confirmed on
the client's data — the dictionary has none.Client ≠ Vendor, same key name. Both have identity DCLink; InvNum.AccountID means a customer
on sales documents and a supplier on purchase documents. Never join both or union them without a discriminator.iStockCodeID → StkItem.StockLink, iInvoiceID →
InvNum.AutoIndex); confirm with a sanity query and say in the deliverable that the join rests on naming.PostGL is multi-row per transaction (one row per account in the transaction code); summing it per
document without an account filter double-counts. PostAR/PostAP each tie back to PostGL.float — ISNULL and ROUND._as_*, dated snapshot copies, Thyme_*) and user-defined columns (uc/ul/uf
prefixes, catalogued in _rtblUserDict) differ per client — never assume them from the dictionary.SDK:
EvolutionCommon,
usually same server). Use DatabaseContext.Initialise(...) (opens both) or pair CreateConnection(...) with
CreateCommonDBConnection(...); check IsConnectionOpen and IsCommonConnectionOpen.DatabaseContext is static — the single entry point. Open connections before touching any record;
let it own DBConnection/DBTransaction. Don't open a parallel SqlConnection to write Evolution tables.ID == 0 means new/unsaved. Branch on it for create-vs-update; read it back after Save().api/, don't infer it
from the database field. The dictionary's Freedom Name is a hint for crossing from a table to the SDK,
not always a public type: InvNum is DocumentHeader there, but the public classes are the abstract
OrderBase and its subclasses (SalesOrder, CreditNote, PurchaseOrder, …); _btblInvoiceLines
(DocumentLines) is OrderDetail / OrderDetailCollection. Confirm the type in api/INDEX.md.DocumentType, DocumentState, InventoryOperation, Module, AgingModule
among them) were read from Pastel.Evolution.dll 11.0.0.10 by reflection, so they have names and values
but no descriptions, and 53 are not in the CHM at all. Say which when a member's meaning matters, and
never guess one that isn't listed (two CHM names, JobStatus and
SplitAllocationCollection.OrderDetailChangeAction, have no DLL counterpart).enums/ (Member | Value | Description), but pass the
named constant in C#.BeginTran/CommitTran/RollbackTran; check
IsTransactionPending; some operations begin/commit implicitly when none is pending — don't double-manage;
roll back on exception and keep transactions short (read-committed isolation blocks other readers).BeforePost / GL-posting events to hook) — look the specific type
up in api/ before wiring it.Pastel.Evolution.dll must match the installed Evolution
runtime, and the company DB version must be compatible (CompatibleDatabaseVersion /
CurrentDatabaseVersion); a mismatch fails at connect/registration. The bundled reference is SDK 11.0.0.10.references/dictionary/ INDEX.md (read first: group → file map, entry format, maintenance rules),
conventions.md (prefixes, column naming, identity PKs, join map, NULL/float rules, view
rules, worked example), dict/<Group>.md (689 tables, every column, Sage's own descriptions;
10 files by table-name prefix) — hand-maintained, no build step
references/sdk/ INDEX.md (read first), sdk-guide.md (correct Pastel.Evolution idioms: connect, record
pattern, posting, transactions), common-mistakes.md, api/ (authoritative type reference
from the shipped CHM: INDEX.md + classes-01..03.md — 152 types), enums/ (INDEX.md +
enums-01.md — 94 enumerations with Member|Value|Description; members from the
CHM where it has them, otherwise from the DLL by reflection)
scripts/ maintenance only (rebuild the SDK reference from the CHM, package the skill) — never needed to answer
evals/evals.json test prompts per capability
docs/ source material (the shipped CHM, DLLs and XML doc; the SSMS script the dictionary was
seeded from) — never packaged, never read at runtime
MAINTENANCE.md how to rebuild each reference and add a capability
Every references/ folder has an INDEX.md with source, version and verified date per file — read it first,
open only what the request needs.
MAINTENANCE.md (opens in a new tab)README.md (opens in a new tab)evals/evals.json (opens in a new tab)icon.png (opens in a new tab)references/dictionary/INDEX.md (opens in a new tab)references/dictionary/conventions.md (opens in a new tab)references/dictionary/dict/Add-on-modules.md (opens in a new tab)references/dictionary/dict/Application-metadata.md (opens in a new tab)references/dictionary/dict/Business-modules.md (opens in a new tab)references/dictionary/dict/Contact-Management.md (opens in a new tab)references/dictionary/dict/Core.md (opens in a new tab)references/dictionary/dict/Delivery-Management.md (opens in a new tab)references/dictionary/dict/Evolution-extended.md (opens in a new tab)references/dictionary/dict/Municipal-Billing.md (opens in a new tab)references/dictionary/dict/Retail-POS.md (opens in a new tab)references/dictionary/dict/Site-specific-and-snapshots.md (opens in a new tab)references/sdk/INDEX.md (opens in a new tab)references/sdk/api/INDEX.md (opens in a new tab)references/sdk/api/classes-01.md (opens in a new tab)references/sdk/api/classes-02.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fdtaljaard/claude-skills --plugin sage200-assistant2 plugins in one repository ship this exact skill · first indexed Oct 23, 2026
Other plugins' skills for the same job