@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.
- package/CHANGELOG.md +8 -0
- package/README.md +28 -0
- package/dist/claude/.claude/rules/jahia.md +3 -1
- 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-build-component/SKILL.md +7 -22
- package/dist/claude/.claude/skills/jahia-dev-create-view/SKILL.md +58 -0
- package/dist/claude/.claude/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/claude/.claude/skills/jahia-dev-java/SKILL.md +7 -2
- package/dist/claude/.claude/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/claude/.claude/skills/jahia-java-concurrency/SKILL.md +308 -0
- package/dist/claude/.claude/skills/jahia-java-jcr/SKILL.md +153 -0
- package/dist/claude/.claude/skills/jahia-java-osgi/SKILL.md +134 -0
- package/dist/claude/.claude/skills/jahia-java-persistence/SKILL.md +177 -0
- package/dist/claude/.claude/skills/jahia-java-security/SKILL.md +84 -0
- package/dist/claude/.claude/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/claude/.claude/skills/jahia-review-java/SKILL.md +131 -0
- package/dist/claude/.claude/skills/jahia-review-java/references/code-review-output.md +121 -0
- package/dist/claude/CLAUDE.md +4 -8
- 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-build-component/SKILL.md +7 -22
- package/dist/codex/.agents/skills/jahia-dev-create-view/SKILL.md +58 -0
- package/dist/codex/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/codex/.agents/skills/jahia-dev-java/SKILL.md +7 -2
- package/dist/codex/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/codex/.agents/skills/jahia-java-concurrency/SKILL.md +308 -0
- package/dist/codex/.agents/skills/jahia-java-jcr/SKILL.md +153 -0
- package/dist/codex/.agents/skills/jahia-java-osgi/SKILL.md +134 -0
- package/dist/codex/.agents/skills/jahia-java-persistence/SKILL.md +177 -0
- package/dist/codex/.agents/skills/jahia-java-security/SKILL.md +84 -0
- package/dist/codex/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/codex/.agents/skills/jahia-review-java/SKILL.md +131 -0
- package/dist/codex/.agents/skills/jahia-review-java/references/code-review-output.md +121 -0
- package/dist/codex/AGENTS.md +5 -5
- 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-build-component/SKILL.md +7 -22
- package/dist/copilot/.agents/skills/jahia-dev-create-view/SKILL.md +58 -0
- package/dist/copilot/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/copilot/.agents/skills/jahia-dev-java/SKILL.md +7 -2
- package/dist/copilot/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/copilot/.agents/skills/jahia-java-concurrency/SKILL.md +308 -0
- package/dist/copilot/.agents/skills/jahia-java-jcr/SKILL.md +153 -0
- package/dist/copilot/.agents/skills/jahia-java-osgi/SKILL.md +134 -0
- package/dist/copilot/.agents/skills/jahia-java-persistence/SKILL.md +177 -0
- package/dist/copilot/.agents/skills/jahia-java-security/SKILL.md +84 -0
- package/dist/copilot/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/copilot/.agents/skills/jahia-review-java/SKILL.md +131 -0
- package/dist/copilot/.agents/skills/jahia-review-java/references/code-review-output.md +121 -0
- package/dist/copilot/AGENTS.md +5 -5
- 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-build-component/SKILL.md +7 -22
- package/dist/cursor/.agents/skills/jahia-dev-create-view/SKILL.md +58 -0
- package/dist/cursor/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/cursor/.agents/skills/jahia-dev-java/SKILL.md +7 -2
- package/dist/cursor/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/cursor/.agents/skills/jahia-java-concurrency/SKILL.md +308 -0
- package/dist/cursor/.agents/skills/jahia-java-jcr/SKILL.md +153 -0
- package/dist/cursor/.agents/skills/jahia-java-osgi/SKILL.md +134 -0
- package/dist/cursor/.agents/skills/jahia-java-persistence/SKILL.md +177 -0
- package/dist/cursor/.agents/skills/jahia-java-security/SKILL.md +84 -0
- package/dist/cursor/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/cursor/.agents/skills/jahia-review-java/SKILL.md +131 -0
- package/dist/cursor/.agents/skills/jahia-review-java/references/code-review-output.md +121 -0
- package/dist/cursor/.cursor/rules/jahia.mdc +3 -1
- 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-build-component/SKILL.md +7 -22
- package/dist/gemini/.agents/skills/jahia-dev-create-view/SKILL.md +58 -0
- package/dist/gemini/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/gemini/.agents/skills/jahia-dev-java/SKILL.md +7 -2
- package/dist/gemini/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/gemini/.agents/skills/jahia-java-concurrency/SKILL.md +308 -0
- package/dist/gemini/.agents/skills/jahia-java-jcr/SKILL.md +153 -0
- package/dist/gemini/.agents/skills/jahia-java-osgi/SKILL.md +134 -0
- package/dist/gemini/.agents/skills/jahia-java-persistence/SKILL.md +177 -0
- package/dist/gemini/.agents/skills/jahia-java-security/SKILL.md +84 -0
- package/dist/gemini/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/gemini/.agents/skills/jahia-review-java/SKILL.md +131 -0
- package/dist/gemini/.agents/skills/jahia-review-java/references/code-review-output.md +121 -0
- package/dist/gemini/AGENTS.md +5 -5
- 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-build-component/SKILL.md +7 -22
- package/dist/opencode/.agents/skills/jahia-dev-create-view/SKILL.md +58 -0
- package/dist/opencode/.agents/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/opencode/.agents/skills/jahia-dev-java/SKILL.md +7 -2
- package/dist/opencode/.agents/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/opencode/.agents/skills/jahia-java-concurrency/SKILL.md +308 -0
- package/dist/opencode/.agents/skills/jahia-java-jcr/SKILL.md +153 -0
- package/dist/opencode/.agents/skills/jahia-java-osgi/SKILL.md +134 -0
- package/dist/opencode/.agents/skills/jahia-java-persistence/SKILL.md +177 -0
- package/dist/opencode/.agents/skills/jahia-java-security/SKILL.md +84 -0
- package/dist/opencode/.agents/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/opencode/.agents/skills/jahia-review-java/SKILL.md +131 -0
- package/dist/opencode/.agents/skills/jahia-review-java/references/code-review-output.md +121 -0
- package/dist/opencode/AGENTS.md +5 -5
- package/dist/windsurf/.windsurf/rules/jahia.md +3 -1
- 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-build-component/SKILL.md +7 -22
- package/dist/windsurf/.windsurf/skills/jahia-dev-create-view/SKILL.md +58 -0
- package/dist/windsurf/.windsurf/skills/jahia-dev-cypress/SKILL.md +150 -330
- package/dist/windsurf/.windsurf/skills/jahia-dev-java/SKILL.md +7 -2
- package/dist/windsurf/.windsurf/skills/jahia-dev-query-content/SKILL.md +93 -296
- package/dist/windsurf/.windsurf/skills/jahia-java-concurrency/SKILL.md +308 -0
- package/dist/windsurf/.windsurf/skills/jahia-java-jcr/SKILL.md +153 -0
- package/dist/windsurf/.windsurf/skills/jahia-java-osgi/SKILL.md +134 -0
- package/dist/windsurf/.windsurf/skills/jahia-java-persistence/SKILL.md +177 -0
- package/dist/windsurf/.windsurf/skills/jahia-java-security/SKILL.md +84 -0
- package/dist/windsurf/.windsurf/skills/jahia-jcr-sql2/SKILL.md +258 -0
- package/dist/windsurf/.windsurf/skills/jahia-review-java/SKILL.md +131 -0
- package/dist/windsurf/.windsurf/skills/jahia-review-java/references/code-review-output.md +121 -0
- package/dist/windsurf/AGENTS.md +5 -5
- package/package.json +7 -3
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Skill: Code Review Output Format
|
|
2
|
+
|
|
3
|
+
Load this skill before writing the review output. It defines the section order, finding template, and summary table schema.
|
|
4
|
+
|
|
5
|
+
## When to load
|
|
6
|
+
|
|
7
|
+
Always, just before writing the deliverable. Do not load during analysis passes.
|
|
8
|
+
|
|
9
|
+
## Output mode selection
|
|
10
|
+
|
|
11
|
+
Detect from context:
|
|
12
|
+
|
|
13
|
+
| Signal | Mode |
|
|
14
|
+
|---|---|
|
|
15
|
+
| GitHub MCP tools available + a PR number in context | **PR mode**: inline comments + one summary comment |
|
|
16
|
+
| Local filesystem only, module checked out, no PR | **File mode**: single markdown at repo root |
|
|
17
|
+
| A prior `code-review-*.md` exists in the repo | **Follow-up mode**: see `skills/review-followup/SKILL.md` |
|
|
18
|
+
|
|
19
|
+
When unclear, default to **File mode**.
|
|
20
|
+
|
|
21
|
+
## File naming (File mode)
|
|
22
|
+
|
|
23
|
+
`code-review-{module-name}-{YYYY-MM-DD}.md` at the module root. The module name comes from `pom.xml` `<artifactId>`.
|
|
24
|
+
|
|
25
|
+
If a review already exists for the same date, append `-v2`, `-v3`, etc. Do not overwrite without explicit instruction.
|
|
26
|
+
|
|
27
|
+
## Section order (mandatory)
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
# Code review — {module-name} (backend|frontend|fullstack)
|
|
31
|
+
|
|
32
|
+
- Date: YYYY-MM-DD
|
|
33
|
+
- Scope: {one line — what was reviewed, what was not}
|
|
34
|
+
- Out of scope: {one line — explicit exclusions}
|
|
35
|
+
|
|
36
|
+
{One short paragraph: overall posture. Lead with what is right; the findings list is for what is wrong. Do not pad.}
|
|
37
|
+
|
|
38
|
+
## 1. Security
|
|
39
|
+
## 2. API and backend design
|
|
40
|
+
## 3. Bugs and rough edges
|
|
41
|
+
## 4. Documentation and harness drift
|
|
42
|
+
## 5. Build, Maven, and OSGi packaging
|
|
43
|
+
## 6. OSGi and concurrency
|
|
44
|
+
## 7. Tests
|
|
45
|
+
## {N}. Prioritised summary
|
|
46
|
+
## {N+1}. Closing note
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Omit sections with no findings — write "No findings." inline only if the absence itself is worth noting (e.g. "No concurrency findings — all `@Component` services are stateless.").
|
|
50
|
+
|
|
51
|
+
The Closing note is one paragraph. It names the single biggest risk and the single biggest strength. No bullet lists.
|
|
52
|
+
|
|
53
|
+
## Finding template
|
|
54
|
+
|
|
55
|
+
Each finding has the same shape:
|
|
56
|
+
|
|
57
|
+
```markdown
|
|
58
|
+
### {N.M} {Short title} — {severity emoji} P{0|1|2|3}
|
|
59
|
+
|
|
60
|
+
{One sentence: the problem.}
|
|
61
|
+
|
|
62
|
+
{2-6 sentences: why it matters, where it manifests, what triggers it. Code snippet if it clarifies in fewer words than prose.}
|
|
63
|
+
|
|
64
|
+
**Fix:** {Concrete action. Library name + method, or class change, or "accept and document".}
|
|
65
|
+
|
|
66
|
+
**Effort:** {XS | S | M | L}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Rules:
|
|
70
|
+
|
|
71
|
+
- **Severity emoji + level** in the heading. Never one without the other.
|
|
72
|
+
- **The problem in one sentence.** If you need a paragraph, you have not understood it yet.
|
|
73
|
+
- **Code snippets are quoted, not paraphrased.** If the bug is in three lines of code, show those three lines.
|
|
74
|
+
- **The Fix line is mandatory.** No exceptions. If there is no fix, the finding is "accept and document" — say so explicitly.
|
|
75
|
+
- **Effort is mandatory.** Authors prioritise by effort × severity. Without effort, the table is half-useless.
|
|
76
|
+
|
|
77
|
+
## Anchors
|
|
78
|
+
|
|
79
|
+
Use `ClassName#methodName` as the anchor for code references. Line numbers go stale; method names survive refactors. When a finding spans multiple files, list them under "Affected sites" inline.
|
|
80
|
+
|
|
81
|
+
## Severity rules
|
|
82
|
+
|
|
83
|
+
See the parent `AGENTS.md` severity table. One reminder: **the prioritised summary table is your honesty check**. If P0 has more than 5 items, you have inflated severity. Re-evaluate.
|
|
84
|
+
|
|
85
|
+
## Prioritised summary table
|
|
86
|
+
|
|
87
|
+
The penultimate section. Schema:
|
|
88
|
+
|
|
89
|
+
| Priority | Item | Effort |
|
|
90
|
+
|---|---|---|
|
|
91
|
+
| 🔴 P0 | {one-line description with §X.Y backref} | XS/S/M/L |
|
|
92
|
+
| ... |
|
|
93
|
+
|
|
94
|
+
Sort by priority, then by section number. P3 items can be grouped if numerous.
|
|
95
|
+
|
|
96
|
+
The backref (`§X.Y`) is mandatory — the reader uses the table as an index into the full findings.
|
|
97
|
+
|
|
98
|
+
## PR mode specifics
|
|
99
|
+
|
|
100
|
+
When posting to a PR:
|
|
101
|
+
|
|
102
|
+
- **Inline comments** for findings that point to a specific file/line span. Use the same finding template, condensed.
|
|
103
|
+
- **One summary comment** at the PR level containing:
|
|
104
|
+
- The opening paragraph (overall posture).
|
|
105
|
+
- The prioritised summary table.
|
|
106
|
+
- Links to the inline comments via their permalinks.
|
|
107
|
+
- **No giant markdown dump in the summary comment.** Inline comments carry the body of each finding.
|
|
108
|
+
|
|
109
|
+
If a finding cannot be anchored to a line (e.g. "the module has no tests"), it goes only in the summary comment.
|
|
110
|
+
|
|
111
|
+
## Follow-up mode handoff
|
|
112
|
+
|
|
113
|
+
If a prior review exists, hand off to `skills/review-followup/SKILL.md`. Do not write a fresh review.
|
|
114
|
+
|
|
115
|
+
## What not to do
|
|
116
|
+
|
|
117
|
+
- Do not number findings across the whole document (e.g. "Finding 47"). Number within sections: §1.1, §1.2, §3.1.
|
|
118
|
+
- Do not split a finding into a "problem" finding and a "fix" finding. One finding = one problem + its fix.
|
|
119
|
+
- Do not write a "tl;dr" at the top. The opening paragraph is the tl;dr.
|
|
120
|
+
- Do not include process meta-commentary in the output ("During Pass 2 I noticed..."). The doc is for the author, not a log of your work.
|
|
121
|
+
- Do not write recommendations the author cannot act on alone. If a fix requires a product decision, name the decision; do not pretend it is purely technical.
|
package/dist/gemini/AGENTS.md
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
# AGENTS.md
|
|
2
2
|
<!-- Generated by APM CLI from distributed .apm/ primitives -->
|
|
3
|
-
<!-- Build ID:
|
|
4
|
-
<!-- APM Version: 0.
|
|
5
|
-
<!-- Source: local -->
|
|
3
|
+
<!-- Build ID: 971609428c97 -->
|
|
4
|
+
<!-- APM Version: 0.20.0 -->
|
|
6
5
|
|
|
7
6
|
## Global Instructions
|
|
8
7
|
|
|
9
|
-
<!-- Source: local .apm/instructions/jahia.instructions.md -->
|
|
10
8
|
# Jahia JavaScript Module Development
|
|
11
9
|
|
|
12
10
|
## Context
|
|
@@ -22,7 +20,9 @@ You are helping develop a **Jahia JavaScript Module** — a React-based template
|
|
|
22
20
|
5. **Always verify before creating** — check that content types are deployed, site keys are correct, and area structures exist before attempting GraphQL mutations.
|
|
23
21
|
6. **All props are optional at runtime** — even mandatory CND fields. Always guard against `undefined` in views.
|
|
24
22
|
7. **Always include `-H "Origin: http://localhost:8080"` in every GraphQL curl** — omitting it returns `Permission denied` even with correct credentials.
|
|
25
|
-
8. **
|
|
23
|
+
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.
|
|
24
|
+
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.
|
|
25
|
+
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.
|
|
26
26
|
|
|
27
27
|
## Skill Map
|
|
28
28
|
|
package/dist/gemini/GEMINI.md
CHANGED
|
@@ -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
|