Using SKL
Patterns
Six patterns for building with SKL, on ontology, semantic layers, invocation, declarative front ends, interoperability, and AI agents. Each stands on its own, and they work together.
Ontology
Change a spec, and the software follows
An ontology or a data model usually describes software that’s written separately. In SKL the specs are what the SKL Kernel runs: a change can wait in a draft for review, and once it’s committed, the next call follows it, with no rebuild and no deploy.
In code
Decide on a change
Change the code
Review it
Rebuild it
Deploy it
It runs the change
In SKL
Decide on a change
Change it in a draft
Review and commit it
no rebuild, no deployThe next call follows it
Each change is a version
A spec’s versions share one identity, so whatever points at it keeps working as it changes, and the earlier version is kept.
A draft until it’s committed
Calls follow the committed version while a draft is reviewed. Commit the draft, or throw it away. Who may commit is an access question, like any other.
Compare and undo
Two versions can be compared, and a change undone.
Branches and releases
A change can wait on a branch, and specs are published together as releases.
Semantic layers
Shared meaning for people, software, and AI
A semantic layer gives the people and AI that query data one set of business terms. In SKL each term has an address of its own, a code that records carry, labels in each language, and its meaning in words, so people, software, and AI models read the same term.
A term
- Address
https://example.org/def/4KD8RW- Code
7Q2M9K- Meaning
- The order waits for a person to review it.
- Labels
- Held for review · En attente de validation · Zur Prüfung angehalten
A person reads
Its label, in their languageEn attente de validationSoftware reads
Its address and its code7Q2M9KAn AI model reads
Its meaning, in wordsThe order waits for a person to review it.Terms with addresses
A value is a term with an address of its own and a code a record carries, so software reads what it means instead of matching a word.
Labels kept apart
Labels are kept apart from their terms, in each language needed, so the wording can change while records stay as they are.
Questions in the same terms
Records are found, counted, and grouped in the terms the specs use, and the SKL Kernel sends each question to the store that holds those records.
Next to what software does
The same specs describe the capabilities that change records and the constraints each save must meet, each pointing at the terms it uses by address.
Invocation
Call a capability, not an implementation
A capability says what it takes and what it returns. What answers it, a web API, another provider, or a piece of code, is a spec of its own, a binding, so callers don’t change when that does.
A caller
An app, an AI agent, or another systemThe capability
Book shipmentTakes an order. Returns its shipment.Answers it now
A carrier’s web APIan operation from its OpenAPI descriptionOr
Another carrier’s web APIits inputs and outputs mappedOr
Codelocked down, unless a policy vouches for itImported or published
A capability can be answered by an operation imported from another system’s API description, and your own API is published straight from its specs, with no server code.
Locked-down code
Code that no policy trusts runs with no network, files, or secrets, and code loaded from a file runs only if its fingerprint matches the one on record.
Chosen for each call
A switch can choose what answers each call by what the call carries, so a shipment abroad can go to another carrier.
Checked both ways
A call without an input the capability requires is refused, and what comes back is checked against the shape declared for it.
Declarative front ends
User interfaces as specs
Pages, the components they’re built from, and their styles are specs too: what a page shows, for which record, and which capability each control calls. A renderer draws them, and a user interface follows its specs as they change.
A page, as specs
- Pagefor one order
- A formits fields from the Order class
- A buttoncalls Confirm order
- Stylesthe product’s set of styles
Confirm order
Forms from the class
A form for a record comes from its class: which fields to show, their labels, and what the SKL Kernel would refuse, so a property added to a class appears in every form for it without a code change.
Reads are queries, clicks are calls
What a page shows comes from the SKL Kernel’s queries, and each control calls a capability, with the same checks as any other call.
Terms show their labels
A field whose values come from a set of terms offers the terms by their labels.
Styles are specs
A product’s look is a set of styles its user interfaces read, so it changes like any other spec.
Interoperability
Each system in its own terms
Systems described in SKL interoperate without forcing a central data copy or one shared schema, and each system chooses whom it connects with.
Your system
{
"@type": "Order",
"customerName": "Ines Duarte",
"total": 4200
}Mappings
- Kind of record
Order→SalesOrder - Field, split in two
customerName→given_name, family_name - Field
total→amount - Term, on the way back
IN_TRANSIT→5NB2HD
A partner’s system
{
"@type": "SalesOrder",
"given_name": "Ines",
"family_name": "Duarte",
"amount": 4200
}Translation is written down
A mapping someone wrote does the translating, where anyone can read it, and it has versions like any other spec.
One direction at a time
Each mapping runs one way, so the way back is a mapping of its own, and a name split one way can be joined the other.
One system at a time
Systems join one at a time, each connected to the systems it works with. One not yet described in SKL is reached through its web API, as it is.
Shared where it helps
Systems reuse what SKL Ontology 4.x already defines, and each other’s specs where they share them, and keep their own terms wherever they differ.
AI agents
AI agents that act within your limits
An AI agent works from the same specs as your apps: what it can call, what each call takes, and what it may do. Its calls are checked like an app’s, and when it acts for a person, it is allowed only what both may do.
1
Shown what it can call
Each capability’s description and inputs, read from its spec.
2
Calls a capability
With its inputs, acting for a person.
3
Checked
Its inputs, against the spec. What it may do, by an access service, for the agent and the person it acts for.
4
Runs
It calls a web API, runs code, or saves records, as the specs say.
5
Leaves a record
An activity record, when its policy asks for one: who acted, for whom, which capability ran, and what came back.
Directly, or through MCP
An agent you build can call capabilities on the SKL Kernel directly, and read the specs behind them: the classes, the terms, and the mappings, not only a list of tools. An AI assistant that speaks MCP can call the same capabilities through it, each offered as a tool made from its spec, so changing the spec changes the tool.
A callerAn AI agent you build
DirectlyCalls capabilities, and can read the specs behind them
A callerAn outside AI assistant
Through MCPEach capability offered as a tool, made from its spec
The SKL KernelThe same capabilities, each call checked the same way, whichever way a call arrives
Shown, not rewritten
What an agent is told about a capability, what it does and what it takes, is read from the capability’s spec, so nothing is written separately for the agent.
Acting for a person
A call says who is acting and for whom. When an agent acts for a person, the access question names them both, so the answer can allow only what both may do.
An AI model is a capability too
Asking an AI model for a reply is a capability of its own, and bindings connect it to a provider’s API, so changing providers changes a binding, not the agent.
Start with one
No pattern waits on another, and none needs everything changed at once.
Start with the one you need, on one domain, and add the next when it’s needed. Existing systems stay live as they are, with no forced migration or central copy.
Hear when it’s published
The fourth generation of SKL and the SKL Kernel will be open sourced here in 2027, with SKL Ontology 4.x, the shared specs SKL starts from.
Tell us what you would build with it.