@jahia/agentic 0.1.1 → 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.
Files changed (174) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +28 -0
  3. package/dist/claude/.claude/rules/jahia.md +3 -1
  4. package/dist/claude/.claude/skills/jahia/SKILL.md +18 -10
  5. package/dist/claude/.claude/skills/jahia-content/SKILL.md +102 -84
  6. package/dist/claude/.claude/skills/jahia-content-create-content/SKILL.md +255 -280
  7. package/dist/claude/.claude/skills/jahia-content-explore-structure/SKILL.md +187 -96
  8. package/dist/claude/.claude/skills/jahia-content-media-upload/SKILL.md +197 -0
  9. package/dist/claude/.claude/skills/jahia-content-move-content/SKILL.md +160 -165
  10. package/dist/claude/.claude/skills/jahia-content-organize/SKILL.md +209 -0
  11. package/dist/claude/.claude/skills/jahia-content-publish/SKILL.md +181 -0
  12. package/dist/claude/.claude/skills/jahia-content-query-content/SKILL.md +122 -92
  13. package/dist/claude/.claude/skills/jahia-content-translate-content/SKILL.md +154 -225
  14. package/dist/claude/.claude/skills/jahia-dev-build-component/SKILL.md +7 -22
  15. package/dist/claude/.claude/skills/jahia-dev-create-view/SKILL.md +58 -0
  16. package/dist/claude/.claude/skills/jahia-dev-cypress/SKILL.md +150 -330
  17. package/dist/claude/.claude/skills/jahia-dev-java/SKILL.md +7 -2
  18. package/dist/claude/.claude/skills/jahia-dev-query-content/SKILL.md +93 -296
  19. package/dist/claude/.claude/skills/jahia-java-concurrency/SKILL.md +308 -0
  20. package/dist/claude/.claude/skills/jahia-java-jcr/SKILL.md +153 -0
  21. package/dist/claude/.claude/skills/jahia-java-osgi/SKILL.md +134 -0
  22. package/dist/claude/.claude/skills/jahia-java-persistence/SKILL.md +177 -0
  23. package/dist/claude/.claude/skills/jahia-java-security/SKILL.md +84 -0
  24. package/dist/claude/.claude/skills/jahia-jcr-sql2/SKILL.md +258 -0
  25. package/dist/claude/.claude/skills/jahia-review-java/SKILL.md +131 -0
  26. package/dist/claude/.claude/skills/jahia-review-java/references/code-review-output.md +121 -0
  27. package/dist/claude/CLAUDE.md +4 -8
  28. package/dist/codex/.agents/skills/jahia/SKILL.md +18 -10
  29. package/dist/codex/.agents/skills/jahia-content/SKILL.md +102 -84
  30. package/dist/codex/.agents/skills/jahia-content-create-content/SKILL.md +255 -280
  31. package/dist/codex/.agents/skills/jahia-content-explore-structure/SKILL.md +187 -96
  32. package/dist/codex/.agents/skills/jahia-content-media-upload/SKILL.md +197 -0
  33. package/dist/codex/.agents/skills/jahia-content-move-content/SKILL.md +160 -165
  34. package/dist/codex/.agents/skills/jahia-content-organize/SKILL.md +209 -0
  35. package/dist/codex/.agents/skills/jahia-content-publish/SKILL.md +181 -0
  36. package/dist/codex/.agents/skills/jahia-content-query-content/SKILL.md +122 -92
  37. package/dist/codex/.agents/skills/jahia-content-translate-content/SKILL.md +154 -225
  38. package/dist/codex/.agents/skills/jahia-dev-build-component/SKILL.md +7 -22
  39. package/dist/codex/.agents/skills/jahia-dev-create-view/SKILL.md +58 -0
  40. package/dist/codex/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
  41. package/dist/codex/.agents/skills/jahia-dev-java/SKILL.md +7 -2
  42. package/dist/codex/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
  43. package/dist/codex/.agents/skills/jahia-java-concurrency/SKILL.md +308 -0
  44. package/dist/codex/.agents/skills/jahia-java-jcr/SKILL.md +153 -0
  45. package/dist/codex/.agents/skills/jahia-java-osgi/SKILL.md +134 -0
  46. package/dist/codex/.agents/skills/jahia-java-persistence/SKILL.md +177 -0
  47. package/dist/codex/.agents/skills/jahia-java-security/SKILL.md +84 -0
  48. package/dist/codex/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
  49. package/dist/codex/.agents/skills/jahia-review-java/SKILL.md +131 -0
  50. package/dist/codex/.agents/skills/jahia-review-java/references/code-review-output.md +121 -0
  51. package/dist/codex/AGENTS.md +5 -5
  52. package/dist/copilot/.agents/skills/jahia/SKILL.md +18 -10
  53. package/dist/copilot/.agents/skills/jahia-content/SKILL.md +102 -84
  54. package/dist/copilot/.agents/skills/jahia-content-create-content/SKILL.md +255 -280
  55. package/dist/copilot/.agents/skills/jahia-content-explore-structure/SKILL.md +187 -96
  56. package/dist/copilot/.agents/skills/jahia-content-media-upload/SKILL.md +197 -0
  57. package/dist/copilot/.agents/skills/jahia-content-move-content/SKILL.md +160 -165
  58. package/dist/copilot/.agents/skills/jahia-content-organize/SKILL.md +209 -0
  59. package/dist/copilot/.agents/skills/jahia-content-publish/SKILL.md +181 -0
  60. package/dist/copilot/.agents/skills/jahia-content-query-content/SKILL.md +122 -92
  61. package/dist/copilot/.agents/skills/jahia-content-translate-content/SKILL.md +154 -225
  62. package/dist/copilot/.agents/skills/jahia-dev-build-component/SKILL.md +7 -22
  63. package/dist/copilot/.agents/skills/jahia-dev-create-view/SKILL.md +58 -0
  64. package/dist/copilot/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
  65. package/dist/copilot/.agents/skills/jahia-dev-java/SKILL.md +7 -2
  66. package/dist/copilot/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
  67. package/dist/copilot/.agents/skills/jahia-java-concurrency/SKILL.md +308 -0
  68. package/dist/copilot/.agents/skills/jahia-java-jcr/SKILL.md +153 -0
  69. package/dist/copilot/.agents/skills/jahia-java-osgi/SKILL.md +134 -0
  70. package/dist/copilot/.agents/skills/jahia-java-persistence/SKILL.md +177 -0
  71. package/dist/copilot/.agents/skills/jahia-java-security/SKILL.md +84 -0
  72. package/dist/copilot/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
  73. package/dist/copilot/.agents/skills/jahia-review-java/SKILL.md +131 -0
  74. package/dist/copilot/.agents/skills/jahia-review-java/references/code-review-output.md +121 -0
  75. package/dist/copilot/AGENTS.md +5 -5
  76. package/dist/cursor/.agents/skills/jahia/SKILL.md +18 -10
  77. package/dist/cursor/.agents/skills/jahia-content/SKILL.md +102 -84
  78. package/dist/cursor/.agents/skills/jahia-content-create-content/SKILL.md +255 -280
  79. package/dist/cursor/.agents/skills/jahia-content-explore-structure/SKILL.md +187 -96
  80. package/dist/cursor/.agents/skills/jahia-content-media-upload/SKILL.md +197 -0
  81. package/dist/cursor/.agents/skills/jahia-content-move-content/SKILL.md +160 -165
  82. package/dist/cursor/.agents/skills/jahia-content-organize/SKILL.md +209 -0
  83. package/dist/cursor/.agents/skills/jahia-content-publish/SKILL.md +181 -0
  84. package/dist/cursor/.agents/skills/jahia-content-query-content/SKILL.md +122 -92
  85. package/dist/cursor/.agents/skills/jahia-content-translate-content/SKILL.md +154 -225
  86. package/dist/cursor/.agents/skills/jahia-dev-build-component/SKILL.md +7 -22
  87. package/dist/cursor/.agents/skills/jahia-dev-create-view/SKILL.md +58 -0
  88. package/dist/cursor/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
  89. package/dist/cursor/.agents/skills/jahia-dev-java/SKILL.md +7 -2
  90. package/dist/cursor/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
  91. package/dist/cursor/.agents/skills/jahia-java-concurrency/SKILL.md +308 -0
  92. package/dist/cursor/.agents/skills/jahia-java-jcr/SKILL.md +153 -0
  93. package/dist/cursor/.agents/skills/jahia-java-osgi/SKILL.md +134 -0
  94. package/dist/cursor/.agents/skills/jahia-java-persistence/SKILL.md +177 -0
  95. package/dist/cursor/.agents/skills/jahia-java-security/SKILL.md +84 -0
  96. package/dist/cursor/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
  97. package/dist/cursor/.agents/skills/jahia-review-java/SKILL.md +131 -0
  98. package/dist/cursor/.agents/skills/jahia-review-java/references/code-review-output.md +121 -0
  99. package/dist/cursor/.cursor/rules/jahia.mdc +3 -1
  100. package/dist/gemini/.agents/skills/jahia/SKILL.md +18 -10
  101. package/dist/gemini/.agents/skills/jahia-content/SKILL.md +102 -84
  102. package/dist/gemini/.agents/skills/jahia-content-create-content/SKILL.md +255 -280
  103. package/dist/gemini/.agents/skills/jahia-content-explore-structure/SKILL.md +187 -96
  104. package/dist/gemini/.agents/skills/jahia-content-media-upload/SKILL.md +197 -0
  105. package/dist/gemini/.agents/skills/jahia-content-move-content/SKILL.md +160 -165
  106. package/dist/gemini/.agents/skills/jahia-content-organize/SKILL.md +209 -0
  107. package/dist/gemini/.agents/skills/jahia-content-publish/SKILL.md +181 -0
  108. package/dist/gemini/.agents/skills/jahia-content-query-content/SKILL.md +122 -92
  109. package/dist/gemini/.agents/skills/jahia-content-translate-content/SKILL.md +154 -225
  110. package/dist/gemini/.agents/skills/jahia-dev-build-component/SKILL.md +7 -22
  111. package/dist/gemini/.agents/skills/jahia-dev-create-view/SKILL.md +58 -0
  112. package/dist/gemini/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
  113. package/dist/gemini/.agents/skills/jahia-dev-java/SKILL.md +7 -2
  114. package/dist/gemini/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
  115. package/dist/gemini/.agents/skills/jahia-java-concurrency/SKILL.md +308 -0
  116. package/dist/gemini/.agents/skills/jahia-java-jcr/SKILL.md +153 -0
  117. package/dist/gemini/.agents/skills/jahia-java-osgi/SKILL.md +134 -0
  118. package/dist/gemini/.agents/skills/jahia-java-persistence/SKILL.md +177 -0
  119. package/dist/gemini/.agents/skills/jahia-java-security/SKILL.md +84 -0
  120. package/dist/gemini/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
  121. package/dist/gemini/.agents/skills/jahia-review-java/SKILL.md +131 -0
  122. package/dist/gemini/.agents/skills/jahia-review-java/references/code-review-output.md +121 -0
  123. package/dist/gemini/AGENTS.md +5 -5
  124. package/dist/gemini/GEMINI.md +2 -2
  125. package/dist/opencode/.agents/skills/jahia/SKILL.md +18 -10
  126. package/dist/opencode/.agents/skills/jahia-content/SKILL.md +102 -84
  127. package/dist/opencode/.agents/skills/jahia-content-create-content/SKILL.md +255 -280
  128. package/dist/opencode/.agents/skills/jahia-content-explore-structure/SKILL.md +187 -96
  129. package/dist/opencode/.agents/skills/jahia-content-media-upload/SKILL.md +197 -0
  130. package/dist/opencode/.agents/skills/jahia-content-move-content/SKILL.md +160 -165
  131. package/dist/opencode/.agents/skills/jahia-content-organize/SKILL.md +209 -0
  132. package/dist/opencode/.agents/skills/jahia-content-publish/SKILL.md +181 -0
  133. package/dist/opencode/.agents/skills/jahia-content-query-content/SKILL.md +122 -92
  134. package/dist/opencode/.agents/skills/jahia-content-translate-content/SKILL.md +154 -225
  135. package/dist/opencode/.agents/skills/jahia-dev-build-component/SKILL.md +7 -22
  136. package/dist/opencode/.agents/skills/jahia-dev-create-view/SKILL.md +58 -0
  137. package/dist/opencode/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
  138. package/dist/opencode/.agents/skills/jahia-dev-java/SKILL.md +7 -2
  139. package/dist/opencode/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
  140. package/dist/opencode/.agents/skills/jahia-java-concurrency/SKILL.md +308 -0
  141. package/dist/opencode/.agents/skills/jahia-java-jcr/SKILL.md +153 -0
  142. package/dist/opencode/.agents/skills/jahia-java-osgi/SKILL.md +134 -0
  143. package/dist/opencode/.agents/skills/jahia-java-persistence/SKILL.md +177 -0
  144. package/dist/opencode/.agents/skills/jahia-java-security/SKILL.md +84 -0
  145. package/dist/opencode/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
  146. package/dist/opencode/.agents/skills/jahia-review-java/SKILL.md +131 -0
  147. package/dist/opencode/.agents/skills/jahia-review-java/references/code-review-output.md +121 -0
  148. package/dist/opencode/AGENTS.md +5 -5
  149. package/dist/windsurf/.windsurf/rules/jahia.md +3 -1
  150. package/dist/windsurf/.windsurf/skills/jahia/SKILL.md +18 -10
  151. package/dist/windsurf/.windsurf/skills/jahia-content/SKILL.md +102 -84
  152. package/dist/windsurf/.windsurf/skills/jahia-content-create-content/SKILL.md +255 -280
  153. package/dist/windsurf/.windsurf/skills/jahia-content-explore-structure/SKILL.md +187 -96
  154. package/dist/windsurf/.windsurf/skills/jahia-content-media-upload/SKILL.md +197 -0
  155. package/dist/windsurf/.windsurf/skills/jahia-content-move-content/SKILL.md +160 -165
  156. package/dist/windsurf/.windsurf/skills/jahia-content-organize/SKILL.md +209 -0
  157. package/dist/windsurf/.windsurf/skills/jahia-content-publish/SKILL.md +181 -0
  158. package/dist/windsurf/.windsurf/skills/jahia-content-query-content/SKILL.md +122 -92
  159. package/dist/windsurf/.windsurf/skills/jahia-content-translate-content/SKILL.md +154 -225
  160. package/dist/windsurf/.windsurf/skills/jahia-dev-build-component/SKILL.md +7 -22
  161. package/dist/windsurf/.windsurf/skills/jahia-dev-create-view/SKILL.md +58 -0
  162. package/dist/windsurf/.windsurf/skills/jahia-dev-cypress/SKILL.md +150 -330
  163. package/dist/windsurf/.windsurf/skills/jahia-dev-java/SKILL.md +7 -2
  164. package/dist/windsurf/.windsurf/skills/jahia-dev-query-content/SKILL.md +93 -296
  165. package/dist/windsurf/.windsurf/skills/jahia-java-concurrency/SKILL.md +308 -0
  166. package/dist/windsurf/.windsurf/skills/jahia-java-jcr/SKILL.md +153 -0
  167. package/dist/windsurf/.windsurf/skills/jahia-java-osgi/SKILL.md +134 -0
  168. package/dist/windsurf/.windsurf/skills/jahia-java-persistence/SKILL.md +177 -0
  169. package/dist/windsurf/.windsurf/skills/jahia-java-security/SKILL.md +84 -0
  170. package/dist/windsurf/.windsurf/skills/jahia-jcr-sql2/SKILL.md +258 -0
  171. package/dist/windsurf/.windsurf/skills/jahia-review-java/SKILL.md +131 -0
  172. package/dist/windsurf/.windsurf/skills/jahia-review-java/references/code-review-output.md +121 -0
  173. package/dist/windsurf/AGENTS.md +5 -5
  174. package/package.json +7 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # `@jahia/agentic`
2
2
 
3
+ ## 0.3.0
4
+
5
+ * Replaced GraphQL with MCP for content operations. (#6)
6
+
7
+ ## 0.2.0
8
+
9
+ * Added Java reviewer and Jahia-specific skills with concurrency pattern. (#4)
10
+
3
11
  ## 0.1.1
4
12
 
5
13
  * Fixed execution error because of a missing shebang in the JS binary. (#2)
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/).
@@ -13,7 +13,9 @@ You are helping develop a **Jahia JavaScript Module** — a React-based template
13
13
  5. **Always verify before creating** — check that content types are deployed, site keys are correct, and area structures exist before attempting GraphQL mutations.
14
14
  6. **All props are optional at runtime** — even mandatory CND fields. Always guard against `undefined` in views.
15
15
  7. **Always include `-H "Origin: http://localhost:8080"` in every GraphQL curl** — omitting it returns `Permission denied` even with correct credentials.
16
- 8. **Accessibility is mandatory** — every component must pass WCAG 2.1 AA. After building any component or completing a task, invoke `/jahia-dev-accessibility` to run an axe-core audit and fix all `critical` and `serious` violations before declaring work done.
16
+ 8. **Build accessible HTML from the start** — every view must use semantic HTML (`<main>`, `<header>`, `<nav>`, `<footer>`, `<section>`, `<article>`), include exactly one `<h1>` per page, use a strict heading hierarchy (h1 h2 h3), add `alt` text to every `<img>`, and use sufficient colour contrast (≥ 4.5:1 for body text). Baking this in during authoring is faster than a post-hoc audit.
17
+ 9. **Run one accessibility audit at the end** — after all components are built and content is published, invoke `/jahia-dev-accessibility` once to catch any remaining violations. Do not audit after every individual component; it wastes time on pages that are not yet complete.
18
+ 10. **Batch builds and deploys** — build all components together, then run `yarn build && yarn jahia-deploy` once rather than after each individual component. Deploy once before populating content.
17
19
 
18
20
  ## Skill Map
19
21
 
@@ -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 real or dummy content
66
- 4. /jahia-content-move-content → (if existing content needs to be reorganized)
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 + publish
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 → populate with articles, pages, folders
92
- 6. /jahia-dev-review catch issues before shipping
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 GraphQL
128
- /jahia-content-create-content Create nodes, folders, articles, bulk-populate
129
- /jahia-content-move-content Restructure the content tree: move, rename, reorder
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 managing content on a running Jahia website via the GraphQL API. Detects the current site state and routes to the right sub-skill. Use for any task involving creating, querying, moving, updating, or publishing JCR content.
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 managing content on a live Jahia instance. Your job is to understand what the user needs, assess the current site state, and route to the right sub-skill.
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 Jahia is reachable
14
+ ## Step 1 — Verify the MCP connection
15
+
16
+ Confirm the `jahia` MCP server is available:
13
17
 
14
- ```bash
15
- curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/cms/login
18
+ ```
19
+ tool: site.list
16
20
  ```
17
21
 
18
- - `200` Jahia is running
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 both checks in parallel to understand what's currently in the CMS:
28
+ Run these checks to understand what exists already:
26
29
 
27
30
  ### A. List available sites
28
- ```bash
29
- curl -s -u root:root1234 \
30
- -H "Content-Type: application/json" \
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. List top-level content folders
37
- ```bash
38
- curl -s -u root:root1234 \
39
- -H "Content-Type: application/json" \
40
- -H "Origin: http://localhost:8080" \
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
- > Replace `mySite` with the actual site key if different.
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 site state
52
+ ## Step 3 — Report the CMS state
53
+
54
+ Summarize what you found:
50
55
 
51
56
  ```
52
- 🌐 Jahia: running at http://localhost:8080
53
- 📁 Sites: <list site keys>
54
- 📂 Content root: <list folder names under /contents>
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
- Use the task description to pick the right skill(s):
62
-
63
- | What the user wants to do | Skill |
64
- |---------------------------|-------|
65
- | Explore an unknown site's content types, property names, enum values, mixins | **`/jahia-content-explore-structure`** |
66
- | Find out what content exists, audit the tree, run a search | **`/jahia-content-query-content`** |
67
- | Create pages, articles, tutorials, folders, populate a site | **`/jahia-content-create-content`** |
68
- | Move, rename, restructure content into sub-folders | **`/jahia-content-move-content`** |
69
- | Translate existing content to another language | **`/jahia-content-translate-content`** |
70
- | Publish content to the live site | Use `publish` mutation (see below) |
71
- | Delete content | Use `deleteNode` mutation (see below) |
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
- ## Step 5 — Direct patterns for one-off operations
81
+ ## Direct MCP patterns
77
82
 
78
- Use these when the task is simple enough to not need a full sub-skill.
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
- ### Delete a node
99
- ```bash
100
- curl -s -u root:root1234 \
101
- -H "Content-Type: application/json" \
102
- -H "Origin: http://localhost:8080" \
103
- -X POST http://localhost:8080/modules/graphql \
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
- ### Update a property on an existing node
108
- ```bash
109
- curl -s -u root:root1234 \
110
- -H "Content-Type: application/json" \
111
- -H "Origin: http://localhost:8080" \
112
- -X POST http://localhost:8080/modules/graphql \
113
- -d '{"query":"mutation { jcr { mutateNode(pathOrId: \"/sites/mySite/contents/articles/my-article\") { mutateProperty(name: \"jcr:title\") { setValue(language: \"en\", value: \"Updated Title\") } } } }"}'
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
- ## Step 6 — Print the full CMS skill map
119
-
120
- Always print this at the end so the user can navigate anywhere:
135
+ ## Full skill map
121
136
 
122
137
  ```
123
- ## Jahia Content Skills
124
-
125
- /jahia-content-explore-structure Map content types, properties, enums, mixins on an unknown site ← start here
126
- /jahia-content-query-content List, inspect, and search content via GraphQL
127
- /jahia-content-create-content Create nodes, folders, articles, and bulk-populate a site
128
- /jahia-content-move-content Restructure the content tree: move, rename, reorder nodes
129
- /jahia-content-translate-content Translate existing nodes to a new language and publish
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 (always enforce)
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