diff --git a/packages/agents/content/skills/update-jira-ticket/SKILL.md b/packages/agents/content/skills/update-jira-ticket/SKILL.md index f5fe0562..dba16215 100644 --- a/packages/agents/content/skills/update-jira-ticket/SKILL.md +++ b/packages/agents/content/skills/update-jira-ticket/SKILL.md @@ -21,7 +21,37 @@ Exhaustive list. Nothing else. `h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `p`, `ul`, `ol`, `li`, `strong`, `em`, `code`, `pre`, `a`, `blockquote`, `hr`, `br`, `table`, `thead`, `tbody`, `tr`, `th`, `td` -**Always strip `` constructs unconditionally.** These are Confluence storage-format extensions (e.g., ``, ``) and have no Jira analogue. Including them produces `INVALID_INPUT`. If you have been working with Confluence content in the same session, audit the payload before sending. +**Always strip `` and `` constructs unconditionally.** These are Confluence storage-format extensions: `` for Confluence elements like task lists and structured macros (e.g., ``, ``); `` for resource identifiers (e.g., ``, ``, ``). They have no Jira analogue, and including them produces `INVALID_INPUT`. If you have been working with Confluence content in the same session, audit the payload before sending. + +## Composition rules + +These constraints govern how individually-allowed elements may be combined. Both elements may be valid on their own; the combination is rejected. + +### `` combined with other inline marks + +Do not apply inline styling to `` content. The following nesting patterns will be rejected, in **either** direction: + +- `X` and `X` +- `X` and `X` +- `X` and `X` +- the same for ``, ``, ``, `` + +The rule is symmetric — flipping the nesting order is not a workaround. + +**Why:** ADF represents inline styling as marks on text nodes, and the `code` mark is mutually exclusive with `strong`, `em`, `link`, `strike`, `underline`, `subsup`. Beyond the schema constraint, applying styling to monospace code has no defensible rendering — code is meant to display literal characters. + +**Workaround:** Move the `` outside the styling wrapper so the two apply to different text runs, or drop the styling entirely. + +```html + +isDevMode parameter + + +The isDevMode parameter + + +isDevMode parameter +``` ## Character handling @@ -74,6 +104,7 @@ If failures distribute across **unknown classes** (no clear pattern), the recove ## Antipatterns - Hand-authoring HTML containing constructs outside the allowlist. +- Combining `` with other inline marks on the same text run — see [Composition rules](#composition-rules). - Using named HTML entities other than `&`, `<`, `>`. - Passing a file path to `description_html` / `comment_html`. - Retrying past the 4-retry cap.