360 Secure SkillHub
360 安全技能中心

jira-syntax

该 Skill 面向 Jira 描述与评论编写,提供 Jira wiki 标记速查、常见错误对照、缺陷报告和功能请求模板,并可在提交前运行脚本校验语法;Jira API 提交由其他 Skill 负责。

分类:效率
lufox-digital
热度 0.00
最近更新 2026-12-05 05:33:56

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add lufox-digital/jira-skill/jira-syntax
兼容性
Claude Code 专属
联网要求
不联网
数据出网
可选出网
Metadata
name
jira-syntax
description
Use when writing or formatting Jira descriptions, comments, or any text destined for Jira. Converts Markdown to Jira wiki markup, provides templates (bug reports, feature requests), and validates syntax before submission. Trigger on any Jira content authoring task.
license
(MIT AND CC-BY-SA-4.0). See LICENSE-MIT and LICENSE-CC-BY-SA-4.0
metadata
{"author":"Lufox Digital GmbH","version":"5.3.0","repository":"https://github.com/lufox-digital/jira-skill"}

Jira Syntax

Jira wiki markup syntax, templates, and validation. For API operations, use the jira-communication skill.

Quick Syntax Reference

Jira Syntax Purpose NOT this (Markdown)
h2. Title Heading ## Title
*bold* Bold **bold**
_italic_ Italic *italic*
{{code}} Inline code `code`
{code:java}...{code} Code block java ```
[text|url] Link [text](url)
[PROJ-123] Issue link -
[~username] User mention @username
* item Bullet list - item
# item Numbered list 1. item
||Header|| Table header |Header|

See references/jira-syntax-quick-reference.md for complete syntax documentation.

Available Templates

Bug Report

Path: templates/bug-report-template.md

Sections: Environment, Steps to Reproduce, Expected/Actual Behavior, Error Messages, Technical Notes

Feature Request

Path: templates/feature-request-template.md

Sections: Overview, User Stories, Acceptance Criteria, Technical Approach, Success Metrics

Syntax Validation

Run before submitting to Jira:

${CLAUDE_SKILL_DIR}/scripts/validate-jira-syntax.sh path/to/content.txt

It gates the post — run it as its own step, never chained with the posting command.

Validation Checklist

  • Headings: h2. Title (space after period)
  • Bold: *text* (single asterisk)
  • Code blocks: {code:language}...{code}
  • Lists: * for bullets, # for numbers
  • Links: [label|url] or [PROJ-123]
  • Tables: ||Header|| and |Cell|
  • Colors: {color:red}text{color}
  • Panels: {panel:title=X}...{panel}

Common Mistakes

❌ Wrong ✅ Correct
## Heading h2. Heading
**bold** *bold*
`code` {{code}}
[text](url) [text|url]
- bullet * bullet
** child after a blank line, heading or paragraph a * parent line, or a line continuing it, directly above ** child — otherwise Jira renders an empty bullet
h2.Title h2. Title
MR !42 (bare GitLab ref) [MR 42|url] or full group/project!42 — a bare !…! is image markup
(/) on an open/proposed item (x) — (/) renders as a green check (done); use (x) for open items
( ) as a checkbox (x) — ( ) is not a macro and renders literally
(-) or (x) on a pending step in a review (i) pending: … — (-) renders as a red no-entry sign, and in a review (x) means a failure

Integration with jira-communication Skill

Workflow:

  1. Get template from jira-syntax
  2. Fill content using Jira wiki markup
  3. Validate with ${CLAUDE_SKILL_DIR}/scripts/validate-jira-syntax.sh
  4. Submit via jira-communication skill

References

  • references/jira-syntax-quick-reference.md - Complete syntax documentation Includes Ask the renderer instead of reasoning about it: POST /rest/api/1.0/render returns the HTML Jira will produce for any markup, before anything is posted. Use it to settle a markup question rather than deriving the answer.
  • references/cross-project-refs.md - GitLab cross-project ref convention (group/project!N, group/project#N, group/project@tag) when linking to GitLab from Jira
  • templates/bug-report-template.md - Bug report template
  • templates/feature-request-template.md - Feature request template
  • ${CLAUDE_SKILL_DIR}/scripts/validate-jira-syntax.sh - Automated syntax checker
  • Official Jira Wiki Markup