agentleFS
dgambhir01dgambhir01/jira-testcraft/skills/setup/SKILL.md

setup

Skill1 starsChanged 6 months agoMITView on GitHub

Configures Jira Cloud connection settings for jira-testcraft. Use when JIRA_URL is not set, setup has not been run, or the user needs to update their project configuration.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-slack, add-parallel and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 6 projects that use this

  • MicrosoftSkill

    add-parallel

    Also in 5 projects that use this

  • sskarzSkill

    add-telegram-swarm

    Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".

    Also in 5 projects that use this

  • +9 more from microsoft

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 171 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read and display any currently set values so the user knows what is already configured:

    line 20
  2. Distinctive:

    Ask the following questions one at a time:

    line 27
  3. Very specific:

    Must start with https:// and end with .atlassian.net

    line 33
  4. Distinctive:

    Leave blank for the default description-first workflow

    line 49
  5. Distinctive:

    Only needed if your team uses a dedicated custom field for AC

    line 50
  6. Very specific:

    If JIRA_AC_FIELD was provided:

    line 63
  7. Very specific:

    If JIRA_AC_FIELD was provided, add:

    line 95
  8. Distinctive:

    After the variables are set, display a summary:

    line 110

“Common” is measured: kept by at least 6 in 10 of the 171 edited versions of this file we could read. “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

Setup jira-testcraft

Instructions

Walk the user through configuring the environment variables needed for jira-testcraft. You will collect values from the user and set them permanently using shell commands — the user does not need to clone the repository or run any scripts manually.

Step 1 — Detect platform

Detect the operating system by running a shell command:

  • Windows (PowerShell): $IsWindows returns True
  • macOS / Linux (Bash): uname returns Darwin or Linux

Step 2 — Check existing configuration

Read and display any currently set values so the user knows what is already configured:

  • Windows: $env:JIRA_URL, $env:JIRA_PROJECT_KEY, $env:JIRA_AC_FIELD
  • macOS / Linux: echo $JIRA_URL, echo $JIRA_PROJECT_KEY, echo $JIRA_AC_FIELD

Step 3 — Collect configuration from the user

Ask the following questions one at a time:

1. Jira Cloud URL

"What is your Jira Cloud site URL? (e.g. https://yourcompany.atlassian.net)"

  • Must start with https:// and end with .atlassian.net
  • Strip any trailing slash
  • Example: https://acme.atlassian.net

2. Default project key

"What is your default Jira project key? (e.g. SCRUM, PROJ)"

  • This is the prefix before the issue number in keys like SCRUM-42
  • Found in the Jira URL: .../jira/software/projects/{KEY}/boards
  • Stored as uppercase

3. Acceptance Criteria field (optional)

"Do you have a separate Acceptance Criteria custom field in Jira? Enter the field ID or name, or press Enter to skip. (Most teams leave this blank — AC is usually in Description.)"

  • Leave blank for the default description-first workflow
  • Only needed if your team uses a dedicated custom field for AC

Step 4 — Set environment variables permanently

Windows (PowerShell)

Set User-scope environment variables so they persist across sessions:

[System.Environment]::SetEnvironmentVariable("JIRA_URL", "<JIRA_URL>", "User")
[System.Environment]::SetEnvironmentVariable("JIRA_PROJECT_KEY", "<JIRA_PROJECT_KEY>", "User")

If JIRA_AC_FIELD was provided:

[System.Environment]::SetEnvironmentVariable("JIRA_AC_FIELD", "<JIRA_AC_FIELD>", "User")

Also clean up any legacy Basic-auth variables:

foreach ($v in @("JIRA_EMAIL", "JIRA_API_TOKEN", "JIRA_AUTH_HEADER", "JIRA_MCP_TOKEN")) {
    [System.Environment]::SetEnvironmentVariable($v, $null, "User")
}

macOS / Linux (Bash)

Append exports to the user's shell profile and apply immediately:

PROFILE="${ZDOTDIR:-$HOME}/.zshrc"
[ -f "$HOME/.bashrc" ] && PROFILE="$HOME/.bashrc"

# Remove any previous jira-testcraft entries
sed -i.bak '/# jira-testcraft/d;/JIRA_URL=/d;/JIRA_PROJECT_KEY=/d;/JIRA_AC_FIELD=/d' "$PROFILE"

# Add new values
echo "" >> "$PROFILE"
echo "# jira-testcraft" >> "$PROFILE"
echo "export JIRA_URL=\"<JIRA_URL>\"" >> "$PROFILE"
echo "export JIRA_PROJECT_KEY=\"<JIRA_PROJECT_KEY>\"" >> "$PROFILE"

If JIRA_AC_FIELD was provided, add:

echo "export JIRA_AC_FIELD=\"<JIRA_AC_FIELD>\"" >> "$PROFILE"

Then set them in the current session:

export JIRA_URL="<JIRA_URL>"
export JIRA_PROJECT_KEY="<JIRA_PROJECT_KEY>"

Step 5 — Confirm and next steps

After the variables are set, display a summary:

✔  JIRA_URL          = <value>
✔  JIRA_PROJECT_KEY  = <value>
✔  JIRA_AC_FIELD     = <value or not set>

Then tell the user:

"Setup complete.

Restart Claude Code to apply the new environment variables.

On first restart, a browser will open for Atlassian OAuth sign-in — this is one-time per machine. Sign in with your Atlassian account and click Accept to authorise access.

Then generate test cases with:

/jira-testcraft:generate PROJ-1"

Arguments

$ARGUMENTS are ignored — this skill is interactive.

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.