github-issue-formatting

A set of rules for writing well-structured GitHub issues. GitHub issues are records used to describe bugs, requests, and planned work in a software project.

In plain words
What is it for?
Use it when creating or editing issues with the GitHub command-line tool. It also specifies using a body file for multi-line issue content instead of putting newlines directly in a command.
Why use it?
It makes issues easier to read and act on by separating the problem, proposed solution, implementation details, acceptance checks, and benefits.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/evcraddock/mealplan-mcp/github-issue-formatting
Clone the repo
git clone --depth 1 https://github.com/evcraddock/mealplan-mcp

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 715 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00715
Opus 5 $0.00000 $0.00358
Sonnet 5 $0.00000 $0.00143
Haiku 4.5 $0.00000 $0.00072

Measured yesterday against content hash b5b69da013b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

github-issue-formatting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/github-issue-formatting.mdc · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.


description: Best practices for creating well-formatted GitHub issues via CLI globs: [] alwaysApply: false

GitHub Issue Formatting Best Practices

When creating or editing GitHub issues via CLI using gh issue create or gh issue edit, follow these formatting guidelines to ensure professional, readable issues:

Issue Structure Template

Every GitHub issue should follow this structure:

## Problem
Clear, concise description of the current issue or limitation.

## Proposed Solution
Detailed explanation of what you want to implement or change.

### Implementation Details
- Specific technical requirements
- File locations that need changes
- Architecture considerations

## Acceptance Criteria
- [ ] Specific, testable requirements using checkboxes
- [ ] Clear success metrics
- [ ] Edge cases to consider

## Benefits
- Clear value proposition
- Impact on users/developers
- Long-term advantages

CLI Best Practices

Use Body Files for Complex Issues

  • NEVER include newlines in command line arguments
  • Create temporary files for issue bodies: /tmp/issue_body.md
  • Use --body-file flag instead of --body for multi-line content
# ✅ Correct approach
gh issue create --title "Feature Title" --body-file /tmp/issue_body.md --label enhancement

# ❌ Wrong approach - will fail
gh issue create --title "Title" --body "Line 1
Line 2"

Markdown Formatting Rules

  • Use clean markdown without raw syntax or excessive escaping
  • Structure with proper headings (##, ###)
  • Use bulleted lists with - for readability
  • Include checkboxes for actionable items: - [ ]
  • Code references use backticks: `function_name`
  • File paths use backticks: `path/to/file.py`

Content Guidelines

  • Be specific: Include exact file paths, function names, and technical details
  • Use sections: Break content into logical sections with headings
  • Include context: Explain current behavior vs desired behavior
  • Add examples: Show before/after code snippets when relevant
  • List benefits: Explain why this change matters

Read the full file on GitHub · 110 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 110 lines · 0 tokens per session scan A b5b69da013b1

Subscribe to this mod's changes

github-issue-formatting is a cursor rule published in the GitHub repository evcraddock/mealplan-mcp (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 715 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.