Catch a removed field in Storyblok components
Two fields left the page component. The saved stories still have them.
Import your Storyblok content model once, then get pass or fail for each change, with the name of every field that breaks. Recorded with the Storyblok example of GraphCommerce, an open source shop front end.
What you get
You import your components once. After the next change, your assistant compares the new file with them and names each removed field and each changed type. The answer is a pass or a fail.
| What we did | What CoreModels answered | Time |
|---|---|---|
| Imported the files of 13 April 2026 | 3 types in the model | 6 s |
| Audited the files of 24 April 2026 | fail: 4 errors (a field was removed, a field changed type) | 2 s |
| Audited the first files again | pass: 0 errors | 1 s |
Recorded on 4 December 2026 with the Storyblok example of GraphCommerce, an open source shop front end (repository). In April 2026 its authors removed two fields from the page component and one from the product row, and changed a link from text to a link field. Licence: Elastic License 2.0; this page links to the files and does not copy them.
What you need
- A CoreModels account with one project. Every plan starts with a 14-day free trial; a card is required to start.
- An assistant that can use MCP servers, for example Claude Code or Cursor.
- No Storyblok login. CoreModels reads files from public links.
Run it
1. Connect your assistant
In Claude Code, run this command. Then sign in when it asks. This address can write to your projects, because an import creates a model.
claude mcp add --transport http coremodels https://go.coremodels.io/mcp-admin
Cursor, Claude Desktop and other clients: connect guide.
2. Import the version the site was built on
This is the content model of 13 April 2026, read from GitHub.
Create a CoreModels project named "Storyblok example". Then call import_vendor_project on it with vendor "storyblok" and these links in artifactUrls (name: link):
page.json: https://raw.githubusercontent.com/graphcommerce-org/graphcommerce/d7182572936ac09255801be67833aa27c4d1a5d0/examples/magento-storyblok/.storyblok/components/page.json
page_link.json: https://raw.githubusercontent.com/graphcommerce-org/graphcommerce/d7182572936ac09255801be67833aa27c4d1a5d0/examples/magento-storyblok/.storyblok/components/page_link.json
row_product.json: https://raw.githubusercontent.com/graphcommerce-org/graphcommerce/d7182572936ac09255801be67833aa27c4d1a5d0/examples/magento-storyblok/.storyblok/components/row_product.json
Your assistant calls create_project, then import_vendor_project. The answer we got:
import_vendor_project (part of the answer)
{
"success": true,
"vendor": "storyblok",
"datasetsAdded": 3,
"nodesEnriched": 23,
"errors": []
}
Your model has 3 types now. Each has its fields, with the type from Storyblok.
3. Audit the newer version
In April 2026 its authors removed two fields from the page component and one from the product row, and changed a link from text to a link field.
Now call audit_vendor_project on the same project with vendor "storyblok" and the newer files in artifactUrls. Tell me the gate and list every Error:
page.json: https://raw.githubusercontent.com/graphcommerce-org/graphcommerce/df11823fcdecf97ecb9579eca020e2c038945570/examples/magento-storyblok/.storyblok/components/page.json
page_link.json: https://raw.githubusercontent.com/graphcommerce-org/graphcommerce/df11823fcdecf97ecb9579eca020e2c038945570/examples/magento-storyblok/.storyblok/components/page_link.json
row_product.json: https://raw.githubusercontent.com/graphcommerce-org/graphcommerce/df11823fcdecf97ecb9579eca020e2c038945570/examples/magento-storyblok/.storyblok/components/row_product.json
Your assistant calls audit_vendor_project. The answer we got:
audit_vendor_project (part of the answer)
{
"gate": "fail",
"errorCount": 4,
"warningCount": 11,
"findings": [
{
"severity": "Error",
"code": "field-removed",
"subject": "page.title",
"message": "Field is governed in CoreModels but no longer exists on the estate dataset."
},
{
"severity": "Error",
"code": "field-removed",
"subject": "page.url",
"message": "Field is governed in CoreModels but no longer exists on the estate dataset."
},
{
"severity": "Error",
"code": "field-type-drift",
"subject": "page_link.url",
"message": "Field type changed since the last import."
},
{
"severity": "Error",
"code": "field-removed",
"subject": "row_product.identity",
"message": "Field is governed in CoreModels but no longer exists on the estate dataset."
}
]
}
An audit only reads. The model still holds the first version.
4. Check that the gate also passes
A check that always fails is of no use. Audit the first version again.
Call audit_vendor_project again, this time with the first links. The gate must be pass.
Your assistant calls audit_vendor_project. The answer we got:
audit_vendor_project (part of the answer)
{
"gate": "pass",
"errorCount": 0,
"warningCount": 10
}
Now with your own project
The components files from storyblok components pull. Run this, then give your assistant the prompt.
storyblok components pull --space YOUR_SPACE_ID --separate-files
Create a CoreModels project for our Storyblok content model. Import our Storyblok component files (.storyblok/components/YOUR_SPACE_ID/*.json) with import_vendor_project, vendor "storyblok". Then audit the same files and show me the gate. Keep the project id: we will audit each later change against it.
In a pull request
This command gives the same answer without an assistant. It needs jq, a project id and an API key from Settings, API Keys. It ends with an error when the gate is fail, so a pull request check stops.
for f in .storyblok/components/*/*.json; do [ -f "$f" ] || continue; jq -n --arg n "$f" --rawfile t "$f" '{($n): $t}'; done |
jq -s '{artifacts: add, failOn: "error"}' |
curl -sS -X POST "https://go.coremodels.io/v1/$PROJECT_ID/integrations/storyblok/audit" -H "Authorization: Bearer $COREMODELS_KEY" -H "Content-Type: application/json" -d @- |
jq -e '.data | .gate, (.findings[] | select(.severity == "Error") | .code + " " + .subject), (.gate == "pass")'
The service answers 200 also when the gate is fail. Read gate, as the command does. If the command prints null, no file was found at that path.
What it does not do
- A field that becomes required is not reported.
- A component that is deleted is not reported. Its fields are no longer compared.
- A list whose choices are typed into the field itself is not read yet, so a removed choice there is not reported.
- Two names that differ only in a dash or a dot, for example a component
card-textnext to a fieldtextofcard, are refused at import. The answer names both. - CoreModels reads the files you give it. It has no login to Storyblok and it writes nothing back.
14-day free trial. Builder $49/mo after the trial. Cancel any time.