@jahia/agentic 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +28 -0
- package/dist/claude/.claude/skills/jahia/SKILL.md +18 -10
- package/dist/claude/.claude/skills/jahia-content/SKILL.md +102 -84
- package/dist/claude/.claude/skills/jahia-content-create-content/SKILL.md +255 -280
- package/dist/claude/.claude/skills/jahia-content-explore-structure/SKILL.md +187 -96
- package/dist/claude/.claude/skills/jahia-content-media-upload/SKILL.md +197 -0
- package/dist/claude/.claude/skills/jahia-content-move-content/SKILL.md +160 -165
- package/dist/claude/.claude/skills/jahia-content-organize/SKILL.md +209 -0
- package/dist/claude/.claude/skills/jahia-content-publish/SKILL.md +181 -0
- package/dist/claude/.claude/skills/jahia-content-query-content/SKILL.md +122 -92
- package/dist/claude/.claude/skills/jahia-content-translate-content/SKILL.md +154 -225
- package/dist/claude/.claude/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/claude/.claude/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/claude/.claude/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/claude/CLAUDE.md +1 -7
- package/dist/codex/.agents/skills/jahia/SKILL.md +18 -10
- package/dist/codex/.agents/skills/jahia-content/SKILL.md +102 -84
- package/dist/codex/.agents/skills/jahia-content-create-content/SKILL.md +255 -280
- package/dist/codex/.agents/skills/jahia-content-explore-structure/SKILL.md +187 -96
- package/dist/codex/.agents/skills/jahia-content-media-upload/SKILL.md +197 -0
- package/dist/codex/.agents/skills/jahia-content-move-content/SKILL.md +160 -165
- package/dist/codex/.agents/skills/jahia-content-organize/SKILL.md +209 -0
- package/dist/codex/.agents/skills/jahia-content-publish/SKILL.md +181 -0
- package/dist/codex/.agents/skills/jahia-content-query-content/SKILL.md +122 -92
- package/dist/codex/.agents/skills/jahia-content-translate-content/SKILL.md +154 -225
- package/dist/codex/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/codex/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/codex/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/codex/AGENTS.md +2 -4
- package/dist/copilot/.agents/skills/jahia/SKILL.md +18 -10
- package/dist/copilot/.agents/skills/jahia-content/SKILL.md +102 -84
- package/dist/copilot/.agents/skills/jahia-content-create-content/SKILL.md +255 -280
- package/dist/copilot/.agents/skills/jahia-content-explore-structure/SKILL.md +187 -96
- package/dist/copilot/.agents/skills/jahia-content-media-upload/SKILL.md +197 -0
- package/dist/copilot/.agents/skills/jahia-content-move-content/SKILL.md +160 -165
- package/dist/copilot/.agents/skills/jahia-content-organize/SKILL.md +209 -0
- package/dist/copilot/.agents/skills/jahia-content-publish/SKILL.md +181 -0
- package/dist/copilot/.agents/skills/jahia-content-query-content/SKILL.md +122 -92
- package/dist/copilot/.agents/skills/jahia-content-translate-content/SKILL.md +154 -225
- package/dist/copilot/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/copilot/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/copilot/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/copilot/AGENTS.md +2 -4
- package/dist/cursor/.agents/skills/jahia/SKILL.md +18 -10
- package/dist/cursor/.agents/skills/jahia-content/SKILL.md +102 -84
- package/dist/cursor/.agents/skills/jahia-content-create-content/SKILL.md +255 -280
- package/dist/cursor/.agents/skills/jahia-content-explore-structure/SKILL.md +187 -96
- package/dist/cursor/.agents/skills/jahia-content-media-upload/SKILL.md +197 -0
- package/dist/cursor/.agents/skills/jahia-content-move-content/SKILL.md +160 -165
- package/dist/cursor/.agents/skills/jahia-content-organize/SKILL.md +209 -0
- package/dist/cursor/.agents/skills/jahia-content-publish/SKILL.md +181 -0
- package/dist/cursor/.agents/skills/jahia-content-query-content/SKILL.md +122 -92
- package/dist/cursor/.agents/skills/jahia-content-translate-content/SKILL.md +154 -225
- package/dist/cursor/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/cursor/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/cursor/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/gemini/.agents/skills/jahia/SKILL.md +18 -10
- package/dist/gemini/.agents/skills/jahia-content/SKILL.md +102 -84
- package/dist/gemini/.agents/skills/jahia-content-create-content/SKILL.md +255 -280
- package/dist/gemini/.agents/skills/jahia-content-explore-structure/SKILL.md +187 -96
- package/dist/gemini/.agents/skills/jahia-content-media-upload/SKILL.md +197 -0
- package/dist/gemini/.agents/skills/jahia-content-move-content/SKILL.md +160 -165
- package/dist/gemini/.agents/skills/jahia-content-organize/SKILL.md +209 -0
- package/dist/gemini/.agents/skills/jahia-content-publish/SKILL.md +181 -0
- package/dist/gemini/.agents/skills/jahia-content-query-content/SKILL.md +122 -92
- package/dist/gemini/.agents/skills/jahia-content-translate-content/SKILL.md +154 -225
- package/dist/gemini/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/gemini/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/gemini/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/gemini/AGENTS.md +2 -4
- package/dist/gemini/GEMINI.md +2 -2
- package/dist/opencode/.agents/skills/jahia/SKILL.md +18 -10
- package/dist/opencode/.agents/skills/jahia-content/SKILL.md +102 -84
- package/dist/opencode/.agents/skills/jahia-content-create-content/SKILL.md +255 -280
- package/dist/opencode/.agents/skills/jahia-content-explore-structure/SKILL.md +187 -96
- package/dist/opencode/.agents/skills/jahia-content-media-upload/SKILL.md +197 -0
- package/dist/opencode/.agents/skills/jahia-content-move-content/SKILL.md +160 -165
- package/dist/opencode/.agents/skills/jahia-content-organize/SKILL.md +209 -0
- package/dist/opencode/.agents/skills/jahia-content-publish/SKILL.md +181 -0
- package/dist/opencode/.agents/skills/jahia-content-query-content/SKILL.md +122 -92
- package/dist/opencode/.agents/skills/jahia-content-translate-content/SKILL.md +154 -225
- package/dist/opencode/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/opencode/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/opencode/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/opencode/AGENTS.md +2 -4
- package/dist/windsurf/.windsurf/skills/jahia/SKILL.md +18 -10
- package/dist/windsurf/.windsurf/skills/jahia-content/SKILL.md +102 -84
- package/dist/windsurf/.windsurf/skills/jahia-content-create-content/SKILL.md +255 -280
- package/dist/windsurf/.windsurf/skills/jahia-content-explore-structure/SKILL.md +187 -96
- package/dist/windsurf/.windsurf/skills/jahia-content-media-upload/SKILL.md +197 -0
- package/dist/windsurf/.windsurf/skills/jahia-content-move-content/SKILL.md +160 -165
- package/dist/windsurf/.windsurf/skills/jahia-content-organize/SKILL.md +209 -0
- package/dist/windsurf/.windsurf/skills/jahia-content-publish/SKILL.md +181 -0
- package/dist/windsurf/.windsurf/skills/jahia-content-query-content/SKILL.md +122 -92
- package/dist/windsurf/.windsurf/skills/jahia-content-translate-content/SKILL.md +154 -225
- package/dist/windsurf/.windsurf/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/windsurf/.windsurf/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/windsurf/.windsurf/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/windsurf/AGENTS.md +2 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -46,3 +46,31 @@ On harness changes, we task an agent to complete a long Jahia task end-to-end, a
|
|
|
46
46
|
- SEO score
|
|
47
47
|
|
|
48
48
|
There's room for improvement on these axes, but once perfected we will introduce a more complex prompt and assess the quality of the code and the edition experience produced.
|
|
49
|
+
|
|
50
|
+
### Running a benchmark from a branch
|
|
51
|
+
|
|
52
|
+
Trigger the benchmark workflow on any branch:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
gh workflow run benchmark.yml --ref feat/my-branch
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Monitor the run:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
gh run list --workflow=benchmark.yml
|
|
62
|
+
gh run watch # live tail of the latest run
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Checking results
|
|
66
|
+
|
|
67
|
+
Results are pushed to the `results` branch after each run. Fetch and inspect:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
git fetch origin results
|
|
71
|
+
git show origin/results:benchmark.json | jq '.[-1]'
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
This shows the latest result with pages, scores, duration, and token usage. Screenshots are stored alongside the JSON on the same branch.
|
|
75
|
+
|
|
76
|
+
The aggregated dashboard for the `main` branch is published at [jahia.github.io/agentic](https://jahia.github.io/agentic/).
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jahia
|
|
3
|
-
description: Top-level entry point for ALL Jahia tasks. Detects whether the request is about building a module (dev) or managing content (CMS), and delegates to the right skill or combination. Start here if unsure which Jahia skill to use.
|
|
4
|
-
allowed-tools: Bash, Read
|
|
3
|
+
description: Top-level entry point for ALL Jahia tasks. Detects whether the request is about building a module (dev) or managing content (CMS via MCP tools), and delegates to the right skill or combination. Start here if unsure which Jahia skill to use.
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# Jahia — Universal Entry Point
|
|
8
7
|
|
|
9
8
|
You are the top-level GPS for all Jahia work. Your job is to understand what the user wants to accomplish, then delegate to the right skill(s) — `/jahia-dev`, `/jahia-content`, or both in sequence.
|
|
10
9
|
|
|
10
|
+
> **Content operations use MCP tools** via the `jahia` MCP server. Never call Jahia's GraphQL API directly for content creation, querying, or structure discovery — use the MCP tools instead.
|
|
11
|
+
|
|
11
12
|
---
|
|
12
13
|
|
|
13
14
|
## Step 1 — Classify the request
|
|
@@ -62,8 +63,8 @@ Use these recipes as starting points when the task maps to a known pattern.
|
|
|
62
63
|
```
|
|
63
64
|
1. /jahia-dev-build-component → define the content type + create the view
|
|
64
65
|
2. /jahia-dev-create-page-template → (if a new page layout is needed)
|
|
65
|
-
3. /jahia-content-create-content → populate the section with
|
|
66
|
-
4. /jahia-content-
|
|
66
|
+
3. /jahia-content-create-content → create the site if needed, then populate the section with content
|
|
67
|
+
4. /jahia-content-organize → (if existing content needs to be reorganized)
|
|
67
68
|
```
|
|
68
69
|
|
|
69
70
|
### "Add an article to the site"
|
|
@@ -71,7 +72,8 @@ Use these recipes as starting points when the task maps to a known pattern.
|
|
|
71
72
|
1. Check the CND — does the article content type exist?
|
|
72
73
|
→ Yes: jump to step 2
|
|
73
74
|
→ No: /jahia-dev-define-content-type + /jahia-dev-create-view first
|
|
74
|
-
2. /jahia-content-create-content → create the article node + set properties
|
|
75
|
+
2. /jahia-content-create-content → create the article node + set properties
|
|
76
|
+
3. /jahia-content-publish → publish it to LIVE
|
|
75
77
|
```
|
|
76
78
|
|
|
77
79
|
### "Redesign the layout of a page"
|
|
@@ -88,8 +90,9 @@ Use these recipes as starting points when the task maps to a known pattern.
|
|
|
88
90
|
2. /jahia-dev-start-local → start Jahia locally
|
|
89
91
|
3. /jahia-dev-build-component → build content types + views (repeat per component)
|
|
90
92
|
4. /jahia-dev-create-page-template → create page templates
|
|
91
|
-
5. /jahia-content-create-content →
|
|
92
|
-
6. /jahia-
|
|
93
|
+
5. /jahia-content-create-content → use `site.templateSets` + `site.create`, then add pages and content
|
|
94
|
+
6. /jahia-content-publish → publish the site content
|
|
95
|
+
7. /jahia-dev-review → catch issues before shipping
|
|
93
96
|
```
|
|
94
97
|
|
|
95
98
|
---
|
|
@@ -124,11 +127,16 @@ Always print this at the end so the user can jump anywhere:
|
|
|
124
127
|
### 📝 Content Management (/jahia-content and sub-skills)
|
|
125
128
|
/jahia-content Detect site state, route to content operations ← start here
|
|
126
129
|
/jahia-content-explore-structure Map content types, properties, enums & mixins on an unknown site
|
|
127
|
-
/jahia-content-query-content Query and audit content via
|
|
128
|
-
/jahia-content-create-content Create nodes, folders, articles
|
|
129
|
-
/jahia-content-
|
|
130
|
+
/jahia-content-query-content Query and audit content via MCP tools
|
|
131
|
+
/jahia-content-create-content Create sites, pages, nodes, folders, and articles
|
|
132
|
+
/jahia-content-media-upload Upload files and images into Jahia media storage
|
|
133
|
+
/jahia-content-organize Restructure the tree: move, copy, rename, reorder, delete
|
|
134
|
+
/jahia-content-move-content Focused move/reorder/delete workflow for an existing branch
|
|
135
|
+
/jahia-content-translate-content Translate i18n content and page titles
|
|
136
|
+
/jahia-content-publish Publish, unpublish, and inspect publication status
|
|
130
137
|
### 📚 Knowledge Reference
|
|
131
138
|
/jahia-dev-java OSGi DS, CND definitions, JSP rendering, Drools rules, Content Editor/jContent UI
|
|
139
|
+
/jahia-jcr-sql2 JCR-SQL2 syntax, filtering, full-text, joins, and pagination guardrails
|
|
132
140
|
/jahia-dev-apis GraphQL, JCR Java/REST API, OAuth/SAML, personal tokens, HTML filtering, CSP
|
|
133
141
|
/jahia-dev-ops Docker Compose, Kubernetes, health monitoring, Karaf, provisioning YAML API
|
|
134
142
|
/jahia-dev-properties jahia.properties and OSGi .cfg configuration keys reference
|
|
@@ -1,139 +1,157 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jahia-content
|
|
3
|
-
description: Entry point for
|
|
3
|
+
description: Entry point for creating sites, authoring pages, querying content, reorganizing nodes, uploading media, translating, and publishing a Jahia website via MCP tools.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Jahia Content — Content Management GPS
|
|
7
7
|
|
|
8
|
-
You are the entry point for
|
|
8
|
+
You are the entry point for content work on a live Jahia instance. Understand the request, assess the site state, and route to the right content skill.
|
|
9
|
+
|
|
10
|
+
> **Never call Jahia's GraphQL API directly for content operations.** Use only MCP tools via the `jahia` MCP server. If a capability is missing, report it — do not work around with curl/GraphQL.
|
|
9
11
|
|
|
10
12
|
---
|
|
11
13
|
|
|
12
|
-
## Step 1 — Verify
|
|
14
|
+
## Step 1 — Verify the MCP connection
|
|
15
|
+
|
|
16
|
+
Confirm the `jahia` MCP server is available:
|
|
13
17
|
|
|
14
|
-
```
|
|
15
|
-
|
|
18
|
+
```
|
|
19
|
+
tool: site.list
|
|
16
20
|
```
|
|
17
21
|
|
|
18
|
-
|
|
19
|
-
- Anything else → Jahia is not running. Tell the user: **"Please start Jahia first (use `/jahia-dev-start-local` if needed)."**
|
|
22
|
+
If this fails, Jahia or the MCP connection is not ready.
|
|
20
23
|
|
|
21
24
|
---
|
|
22
25
|
|
|
23
|
-
## Step 2 — Detect site state
|
|
26
|
+
## Step 2 — Detect the site state
|
|
24
27
|
|
|
25
|
-
Run
|
|
28
|
+
Run these checks to understand what exists already:
|
|
26
29
|
|
|
27
30
|
### A. List available sites
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-H "Origin: http://localhost:8080" \
|
|
32
|
-
-X POST http://localhost:8080/modules/graphql \
|
|
33
|
-
-d '{"query":"{ jcr { nodeByPath(path: \"/sites\") { children { nodes { name } } } } }"}'
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
tool: site.list
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
### B.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-X POST http://localhost:8080/modules/graphql \
|
|
42
|
-
-d '{"query":"{ jcr { nodeByPath(path: \"/sites/mySite/contents\") { children { nodes { name primaryNodeType { name } } } } } }"}'
|
|
36
|
+
### B. Discover installed template sets for new site creation
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
tool: site.templateSets
|
|
40
|
+
args: {}
|
|
43
41
|
```
|
|
44
42
|
|
|
45
|
-
|
|
43
|
+
### C. If a site exists, list its pages
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
tool: page.list
|
|
47
|
+
args: { "siteKey": "SITE_KEY" }
|
|
48
|
+
```
|
|
46
49
|
|
|
47
50
|
---
|
|
48
51
|
|
|
49
|
-
## Step 3 — Report
|
|
52
|
+
## Step 3 — Report the CMS state
|
|
53
|
+
|
|
54
|
+
Summarize what you found:
|
|
50
55
|
|
|
51
56
|
```
|
|
52
|
-
🌐 Jahia:
|
|
53
|
-
📁 Sites:
|
|
54
|
-
|
|
57
|
+
🌐 Jahia MCP: ✅ connected
|
|
58
|
+
📁 Sites: <site keys>
|
|
59
|
+
🧱 Template sets: <installed template sets>
|
|
60
|
+
📄 Pages: <page titles and templates for the chosen site>
|
|
55
61
|
```
|
|
56
62
|
|
|
57
63
|
---
|
|
58
64
|
|
|
59
65
|
## Step 4 — Route to the right sub-skill
|
|
60
66
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
|
64
|
-
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
| Move, rename,
|
|
69
|
-
| Translate
|
|
70
|
-
| Publish
|
|
71
|
-
|
|
|
72
|
-
| Do several of the above in sequence | Run the skills in order — start with **explore-structure** if site is unfamiliar, then create or move |
|
|
67
|
+
| User intent | Skill |
|
|
68
|
+
|-------------|-------|
|
|
69
|
+
| Explore an unknown site, map areas, inspect types and properties | `/jahia-content-explore-structure` |
|
|
70
|
+
| Create a brand-new site before authoring content | `/jahia-content-create-content` using `site.templateSets` and `site.create` |
|
|
71
|
+
| Create pages, content, or structured trees on an existing site | `/jahia-content-create-content` |
|
|
72
|
+
| Upload files and images to `/sites/<siteKey>/files` | `/jahia-content-media-upload` |
|
|
73
|
+
| Find, inspect, or audit existing content | `/jahia-content-query-content` |
|
|
74
|
+
| Move, copy, rename, reorder, or delete content | `/jahia-content-organize` |
|
|
75
|
+
| Translate content to another locale | `/jahia-content-translate-content` |
|
|
76
|
+
| Publish, unpublish, or check readiness | `/jahia-content-publish` |
|
|
77
|
+
| Do several of the above in sequence | Start with `/jahia-content-explore-structure` if the site is unfamiliar |
|
|
73
78
|
|
|
74
79
|
---
|
|
75
80
|
|
|
76
|
-
##
|
|
81
|
+
## Direct MCP patterns
|
|
77
82
|
|
|
78
|
-
|
|
83
|
+
### Create a site before authoring pages
|
|
79
84
|
|
|
80
|
-
### Publish a node (and all its children)
|
|
81
|
-
```bash
|
|
82
|
-
curl -s -u root:root1234 \
|
|
83
|
-
-H "Content-Type: application/json" \
|
|
84
|
-
-H "Origin: http://localhost:8080" \
|
|
85
|
-
-X POST http://localhost:8080/modules/graphql \
|
|
86
|
-
-d '{"query":"mutation { jcr { mutateNode(pathOrId: \"/sites/mySite/contents/articles\") { publish(languages: [\"en\"]) } } }"}'
|
|
87
85
|
```
|
|
86
|
+
tool: site.templateSets
|
|
87
|
+
args: {}
|
|
88
|
+
|
|
89
|
+
tool: site.create
|
|
90
|
+
args: {
|
|
91
|
+
"siteKey": "brandSite",
|
|
92
|
+
"title": "Brand Site",
|
|
93
|
+
"templateSet": "digitall",
|
|
94
|
+
"defaultLanguage": "en",
|
|
95
|
+
"languages": ["en", "fr"],
|
|
96
|
+
"serverName": "brand.local"
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Publish a page or subtree
|
|
88
101
|
|
|
89
|
-
### Publish all content at once
|
|
90
|
-
```bash
|
|
91
|
-
curl -s -u root:root1234 \
|
|
92
|
-
-H "Content-Type: application/json" \
|
|
93
|
-
-H "Origin: http://localhost:8080" \
|
|
94
|
-
-X POST http://localhost:8080/modules/graphql \
|
|
95
|
-
-d '{"query":"mutation { jcr { mutateNodesByQuery(query: \"SELECT * FROM [jnt:content] WHERE ISDESCENDANTNODE(\u0027/sites/mySite/contents\u0027)\", queryLanguage: SQL2) { publish(languages: [\"en\"]) } } }"}'
|
|
96
102
|
```
|
|
103
|
+
tool: publication.publish
|
|
104
|
+
args: {
|
|
105
|
+
"path": "/sites/SITE_KEY/home/about",
|
|
106
|
+
"languages": ["en"]
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Unpublish a page or subtree
|
|
97
111
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
-d '{"query":"mutation { jcr { mutateNode(pathOrId: \"/sites/mySite/contents/articles/old-article\") { delete } } }"}'
|
|
112
|
+
```
|
|
113
|
+
tool: publication.unpublish
|
|
114
|
+
args: {
|
|
115
|
+
"path": "/sites/SITE_KEY/home/about",
|
|
116
|
+
"languages": ["en"]
|
|
117
|
+
}
|
|
105
118
|
```
|
|
106
119
|
|
|
107
|
-
###
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
120
|
+
### Delete a published node correctly
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
tool: content.markForDeletion
|
|
124
|
+
args: { "path": "/sites/SITE_KEY/home/old-page" }
|
|
125
|
+
|
|
126
|
+
tool: publication.publish
|
|
127
|
+
args: {
|
|
128
|
+
"path": "/sites/SITE_KEY/home/old-page",
|
|
129
|
+
"languages": ["en"]
|
|
130
|
+
}
|
|
114
131
|
```
|
|
115
132
|
|
|
116
133
|
---
|
|
117
134
|
|
|
118
|
-
##
|
|
119
|
-
|
|
120
|
-
Always print this at the end so the user can navigate anywhere:
|
|
135
|
+
## Full skill map
|
|
121
136
|
|
|
122
137
|
```
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
/jahia-content-
|
|
126
|
-
/jahia-content-query-content
|
|
127
|
-
/jahia-content-
|
|
128
|
-
/jahia-content-move-content
|
|
129
|
-
/jahia-content-translate-content
|
|
138
|
+
/jahia-content-explore-structure Map sites, template sets, pages, areas, and content definitions
|
|
139
|
+
/jahia-content-create-content Create sites, pages, content nodes, and structured trees
|
|
140
|
+
/jahia-content-media-upload Upload media and reference it from content
|
|
141
|
+
/jahia-content-query-content List, inspect, and search content via MCP tools
|
|
142
|
+
/jahia-content-organize Move, copy, rename, reorder, mark for deletion, and delete content
|
|
143
|
+
/jahia-content-move-content Focused move/reorder/delete workflow for an existing content tree
|
|
144
|
+
/jahia-content-translate-content Translate i18n content and page titles
|
|
145
|
+
/jahia-content-publish Check publication status, publish, unpublish, and handle workflow
|
|
130
146
|
```
|
|
131
147
|
|
|
132
148
|
---
|
|
133
149
|
|
|
134
|
-
## Critical rules
|
|
150
|
+
## Critical rules
|
|
151
|
+
|
|
152
|
+
- Always use MCP tools — never GraphQL directly
|
|
153
|
+
- Use `site.templateSets` and `site.create` when the requested site does not exist yet
|
|
154
|
+
- Always pass `locale` to content creation and update calls
|
|
155
|
+
- Always publish after creating, moving, deleting, or translating content
|
|
156
|
+
- Always explore with `/jahia-content-explore-structure` before authoring on an unfamiliar site
|
|
135
157
|
|
|
136
|
-
- Always include `-H "Origin: http://localhost:8080"` in every curl — omitting it causes `Permission denied`
|
|
137
|
-
- Always use `language: "en"` (or the site's language) for `i18n` properties (`jcr:title` on folders with `mix:title`, richtext body, etc.)
|
|
138
|
-
- Always publish after creating or moving content — JCR writes to the **default workspace** only; live visitors see the **live workspace**
|
|
139
|
-
- Mandatory fields (e.g. `body`) must be set **before** other properties on the same node in a new locale
|