agentleFS
ForeverAProgrammerForeverAProgrammer/claude-devflow/skills/jira-ticket-git/SKILL.md

jira-ticket-git

Skill0 starsChanged 9 months agoMITView on GitHub

Turn the current git changes into a well-formed Jira/Linear-style ticket with acceptance criteria.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' 2>/dev/null to get the default branch.

    line 8
  2. Very specific:

    Run git remote show origin 2>/dev/null | grep 'HEAD branch' to detect it from the remote config.

    line 9
  3. Very specific:

    Check which of main, master, or develop exist on the remote with git branch -r.

    line 10
  4. Distinctive:

    If none work, ask the user to specify the base branch and stop until they do.

    line 11
  5. Very specific:

    Run git log --oneline <base>..HEAD to list commits on this branch.

    line 13
  6. Distinctive:

    Do not pad with obvious criteria like "code is reviewed" or "tests pass" unless testing behaviour is genuinely part of the scope

    line 37
  7. Distinctive:

    If the diff is ambiguous about intent, make a reasonable assumption and note it in the Description

    line 38
  8. Distinctive:

    Keep the total output focused and scannable — this is a ticket, not a design doc

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Turn the current git changes into a well-formed Jira/Linear-style ticket with acceptance criteria.

Determine the base branch using the first method that succeeds:

  • Run gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' 2>/dev/null to get the default branch.
  • Run git remote show origin 2>/dev/null | grep 'HEAD branch' to detect it from the remote config.
  • Check which of main, master, or develop exist on the remote with git branch -r.
  • If none work, ask the user to specify the base branch and stop until they do.

Run git log --oneline <base>..HEAD to list commits on this branch. Run git diff <base>...HEAD to see all changes introduced by the branch. If there are no commits ahead of the base branch, tell the user there is nothing to generate a ticket from and stop.

Using the diff and commit context, output the ticket in this format:

Title A short, imperative-tense summary of what the change does (under 72 characters). Suitable for a ticket title or story card.

Type Infer one of: Story, Bug, Task, Spike. Use Story for user-facing features, Bug for defects, Task for internal/non-feature work, Spike for research or investigation.

Description 2-4 sentences explaining what needs to be done and why, written as if the work has not yet been done. Describe the intent and value, not the implementation. If the diff reveals implementation details, use them only to infer the purpose.

Acceptance Criteria A checklist of specific, testable conditions that must be true for the ticket to be considered done. Derive these from what the diff actually changes — each criterion should correspond to observable behaviour.

  • ...
  • ...

Out of Scope (optional) List anything that might seem related but is explicitly not included. Omit this section if nothing needs clarifying.

Rules:

  • Be specific — vague criteria like "it works correctly" are not acceptable
  • Do not pad with obvious criteria like "code is reviewed" or "tests pass" unless testing behaviour is genuinely part of the scope
  • If the diff is ambiguous about intent, make a reasonable assumption and note it in the Description
  • Keep the total output focused and scannable — this is a ticket, not a design doc

$ARGUMENTS

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.