netresearch/jira-skill / skills/jira-communication
jira-communication
FlaggedUse when handling Jira issues, sprints, boards, links, fields, worklogs, attachments, or users, or on any Jira intent without a key ("create/find a ticket", "pick a project"). Auto-triggers on Jira URLs and issue keys (PROJ-123). Also use when MCP Atlassian tools fail or are unavailable for Jira Server/DC.
scripts/lib/render.py
View on GitHub# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: Netresearch DTT GmbH
"""Terminal rendering of issue descriptions and comments.
Shared by ``jira-issue.py`` (work / qa / qa-fail) and ``jira-qa-gather.py`` so
both print the same shape: the description indented under a ``Description:``
header, each comment under a ``--- [created] author ---`` separator. Lives
outside ``output.py`` because it needs ``users.person_label`` and ``users``
already imports ``output`` (no circular imports between lib modules).
"""
from .output import comment_to_text, extract_adf_text
from .users import person_label
def truncate_text(text: str, n: int | None) -> str:
"""Cut ``text`` to at most ``n`` chars at a word boundary; ``n`` falsy = no-op."""
if not n or len(text) <= n:
return text
return text[:n].rsplit(" ", 1)[0] + " …[truncated]"
def print_comment(comment: dict, *, truncate: int | None = None) -> None:
"""Print one comment: ``--- [YYYY-MM-DD HH:MM] Author (name) ---`` then the body."""
author = person_label(comment.get("author"))
created = comment.get("created", "")[:16].replace("T", " ")
body = comment_to_text(comment.get("body"))
if truncate:
body = truncate_text(body, truncate)
print(f"\n--- [{created}] {author} ---")
for line in body.split("\n"):
print(line)
def print_description(issue: dict, *, truncate: int | None = None) -> None:
"""Print the issue description (Server string or Cloud ADF) under a header; no-op when empty."""
description = issue.get("fields", {}).get("description")
if not description:
return
if isinstance(description, dict):
description = extract_adf_text(description)
text = str(description)
if truncate:
text = truncate_text(text, truncate)
print("\nDescription:")
for line in text.split("\n"):
print(f" {line}")
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |