Skip to content

docs(atl): add tips for attachments and comment formatting#3

Merged
Hinne1 merged 2 commits intomainfrom
claude/atl-attachment-tips
Dec 22, 2025
Merged

docs(atl): add tips for attachments and comment formatting#3
Hinne1 merged 2 commits intomainfrom
claude/atl-attachment-tips

Conversation

@fank
Copy link
Copy Markdown
Member

@fank fank commented Dec 22, 2025

Summary

Add two behavioral tips for LLMs working with Jira issues via the atl CLI:

  1. Attachment inspection tip - Proactively download attachments when [Image: ...] placeholders are seen
  2. Comment formatting note - Clarify that Markdown only works in descriptions, not comments

Changes

**Important**: When a Jira issue description contains image references (e.g., `[Image: filename.png]`), always download and inspect attachments to understand the full context. Visual information is often essential to understanding requirements.

**Note**: Comments render as plain text only - Markdown formatting does NOT work in comments, only in descriptions.

How LLMs behave with these tips

Attachment inspection

Without the tip: When an LLM reads a Jira issue and sees [Image: screenshot.png] in the description, it might:

  • Ignore the placeholder and work only with text
  • Miss critical visual context (UI mockups, error screenshots, diagrams)
  • Make incorrect assumptions about requirements

With the tip: The LLM will:

  1. Recognize [Image: ...] as a signal that visual information exists
  2. Proactively run atl issue attachment PROJ-1234 --list to find attachments
  3. Download relevant images using atl issue attachment PROJ-1234 --download <id>
  4. Analyze the images (LLMs can process images) before proceeding
  5. Make informed decisions based on complete context

Comment formatting

Without the note: An LLM might:

  • Add Markdown formatting to comments (**bold**, - lists, etc.)
  • Be confused when the formatting renders as literal text
  • Waste tokens re-attempting with different formatting

With the note: The LLM will:

  • Use plain text for comments
  • Reserve Markdown formatting for description updates only
  • Produce cleaner, properly formatted output on first attempt

Test plan

  • Verify tips are placed logically after the "Output format" section
  • Test LLM behavior when processing Jira issues with image attachments
  • Confirm LLM uses plain text when adding comments

Add two behavioral tips for LLMs working with Jira issues:

1. Proactively download attachments when image references are seen
2. Note that comments are plain text (Markdown only works in descriptions)
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @fank, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces specific behavioral guidelines for Large Language Models (LLMs) interacting with Jira issues via the atl CLI. The primary goal is to enhance the LLMs' ability to correctly interpret visual information from attachments and to format comments appropriately, thereby improving the accuracy and quality of their interactions with Jira.

Highlights

  • Attachment Inspection Tip: Added a behavioral tip for LLMs to proactively download and inspect attachments when [Image: ...] placeholders are encountered in Jira issue descriptions, ensuring full context understanding.
  • Comment Formatting Note: Included a clarification that Markdown formatting is only supported in Jira issue descriptions, not in comments, guiding LLMs to use plain text for comments.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds two important tips for LLMs interacting with Jira via the atl CLI. The tips clarify how to handle image attachments and the limitations of Markdown formatting in comments. The changes are clear and valuable for improving LLM behavior. I've added one suggestion to make the attachment-handling instruction more self-contained and explicit for the LLM, which should improve its reliability.

Comment thread lib/llm/index.js
- Embedded images show as \`[Image: filename]\` placeholders
- Use \`atl issue attachment PROJ-1234 --list\` to see attachments

**Important**: When a Jira issue description contains image references (e.g., \`[Image: filename.png]\`), always download and inspect attachments to understand the full context. Visual information is often essential to understanding requirements.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The 'Important' tip about attachments is a great addition. To make it more actionable for the LLM and reduce the chance of it failing to connect information from different parts of the document, I suggest including the full command sequence for listing and downloading attachments directly within this tip. The PR description outlines this sequence perfectly.

**Important**: When a Jira issue description contains image references (e.g., `[Image: filename.png]`), always download and inspect attachments to understand the full context. First, list attachments with `atl issue attachment PROJ-1234 --list` to get the attachment ID, then download it using `atl issue attachment PROJ-1234 --download <id>`. Visual information is often essential to understanding requirements.

@Hinne1 Hinne1 merged commit 025b37d into main Dec 22, 2025
@Hinne1 Hinne1 deleted the claude/atl-attachment-tips branch December 22, 2025 14:02
fank added a commit that referenced this pull request Apr 11, 2026
Addresses CodeQL alerts #1, #3, #9 (actions/missing-workflow-permissions).
Both workflows only need read access to the repo contents, so the minimal
permissions block is set at the workflow level.
@fank fank mentioned this pull request Apr 11, 2026
3 tasks
fank added a commit that referenced this pull request Apr 11, 2026
* ci: set explicit contents: read permissions on workflows

Addresses CodeQL alerts #1, #3, #9 (actions/missing-workflow-permissions).
Both workflows only need read access to the repo contents, so the minimal
permissions block is set at the workflow level.

* fix: use exact-match check for git SSH rewrite config value

The installers were using .includes('https://github.com/') to check the
output of `git config --get url.git@github.com:.insteadOf`. That output
is either empty or exactly the value we set ourselves, so exact match
is both more correct and silences CodeQL's
js/incomplete-url-substring-sanitization rule.

Addresses CodeQL alerts #5, #6, #7, #8 across atl, discord, esq, and
n8n installers.

* fix(grafanactl): redact secrets from runConfig error messages

runConfig threw errors containing the full args joined — for
`config set contexts.X.grafana.password <value>` that embedded the
plaintext password in error.message, which was then logged by the
outer catch handler.

Add a redactSensitiveArgs helper that replaces any value whose
preceding key matches .token / .password / .secret / .apikey with
<redacted> before building the error message.

Addresses CodeQL alert #4 (js/clear-text-logging, error severity).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants