Skip to content
Back to skills

Creating Pds Issues

ASecurity

Create GitHub issues in NASA-PDS repositories using organizational templates (bug reports, I&T bug reports, feature requests, tasks, vulnerabilities, release themes). Use when user requests to create, file, or submit PDS issues.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
developmentgojavashellbashsqlnoderefactoringgitapidatabase

Works with

  • claude code
  • cli
  • api

Security analysis

A93/100
  • highPerforms destructive filesystem operations

Pro scans all 15 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add NASA-PDS/pds-agent-skills --skill creating-pds-issues --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Creating Pds Issues?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Creating Pds Issues
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nasa-pds-creating-pds-issues/badge)](https://www.skillsdirectory.com/skills/nasa-pds-creating-pds-issues)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: creating-pds-issues
description: Create GitHub issues in NASA-PDS repositories using organizational templates (bug reports, I&T bug reports, feature requests, tasks, vulnerabilities, release themes). Use when user requests to create, file, or submit PDS issues.
---

# Creating PDS Issues Skill

This skill creates GitHub issues in NASA-PDS repositories using the official organizational templates. It ensures consistent issue formatting while keeping content clear and concise.

## Prerequisites

- GitHub CLI (`gh`) must be installed and authenticated
- User must have write access to the target NASA-PDS repository

### Recommended: Allow Rules for Uninterrupted Execution

Without these allowlist entries, Claude Code will prompt for permission at each intermediate step (temp file creation, writes, reads, and `gh` calls). Add them to `~/.claude/settings.json` under `permissions.allow` to let the skill run end-to-end without interruption:

```json
"Read(~/.claude/tmp/**)",
"Write(~/.claude/tmp/**)",
"Edit(~/.claude/tmp/**)",
"Bash(mkdir -p ~/.claude/tmp)",
"Bash(gh issue*)",
"Bash(gh label *)",
"Bash(gh api *)"
```

Temp files are written to `~/.claude/tmp/` — a stable, Claude-scoped directory that avoids macOS's opaque `/var/folders/...` paths and the need for broad system temp permissions.

## Workflow

### 0. Detect Sub-Issue Request

**Before gathering other information, determine if this is a sub-issue request.**

Keywords that indicate a sub-issue relationship:
- "child task", "child issue", "sub-task", "sub-issue"
- "for theme", "for epic", "under issue", "part of"
- "attached to", "linked to parent", "belongs to"
- Explicit parent references: "for #123", "under NASA-PDS/repo#456"

If a sub-issue relationship is detected:
1. Identify the parent issue (theme, epic, or other issue)
2. Proceed with normal issue creation workflow
3. After creation, attach as sub-issue using GitHub GraphQL API (see Section 4)

**Parent Issue Identification:**

The parent can be specified as:
- Issue URL: `https://github.com/NASA-PDS/repo/issues/123`
- Short reference: `#123` (current repo) or `NASA-PDS/repo#123` (cross-repo)
- Search terms: "the registry theme" or "authentication epic"

If the parent is ambiguous, search for it:
```bash
# Search for potential parent issues by title
gh issue list --repo NASA-PDS/<repo> --search "theme OR epic" --label "theme,Epic" --limit 10
```

Then confirm with the user which parent issue to use.

### 1. Gather Information

**Detect Current Repository (if applicable):**

If the user is running this skill from within a cloned git repository, automatically detect the repository name:

```bash
# Check if in a git repo - try origin first, then upstream
git remote get-url origin 2>/dev/null || git remote get-url upstream 2>/dev/null
```

If the remote URL matches `NASA-PDS/<repo-name>`, use that as the default repository.

**Edge Cases:**
- **Multiple remotes:** Prefer `origin` first, then fall back to `upstream` or other NASA-PDS remotes
- **Forks:** If the detected repository is a fork (personal namespace), check for an `upstream` remote pointing to NASA-PDS
- **Non-NASA-PDS repos:** If no NASA-PDS remote is found, ask the user which repository to use
- **Ambiguous remotes:** If multiple NASA-PDS remotes exist, ask the user to clarify

**Determine Issue Type:**

Ask the user what type of issue to create using the AskUserQuestion tool with these options:

- **Bug Report** - Report defects or unexpected behavior
- **I&T Bug Report** - Internal Integration & Test bug report (requires test case references)
- **Feature Request** - Propose new features or enhancements
- **Task** - Internal development task (often sub-tasks of larger stories)
- **Vulnerability** - Security vulnerabilities or threats
- **Release Theme** - High-level epic for release planning

**Gather Template-Specific Information:**

Then gather the required information based on the template type:

**For Bug Reports:**
- Repository name (auto-detect from git remote, or ask if not in a repo or unclear)
- Brief title following format: `<system feature> <is not/does not> <expected behaviour>`
- Bug description (what happened)
- Expected behavior (what should have happened)
- Steps to reproduce (numbered list)
- Environment info (version, OS, etc.)

**For I&T Bug Reports:**
- Repository name (auto-detect from git remote, or ask if not in a repo or unclear)
- Brief title following format: `<system feature> <is not/does not> <expected behaviour>`
- Bug description (what happened)
- Expected behavior (what should have happened)
- **Related test cases** (TestRail or other test case references - REQUIRED)
- Steps to reproduce (numbered list)
- Environment info (version, OS, etc.)

**For Feature Requests:**
- Repository name (auto-detect from git remote, or ask if not in a repo or unclear)
- User story title: `As a <role>, I want to <accomplish>`
- User persona (e.g., "Data Engineer", "Node Operator")
- Motivation (why is this needed?)
- Additional context

**For Tasks:**
- Repository name (auto-detect from git remote, or ask if not in a repo or unclear)
- Task type (sub-task or theme)
- Description (clear but not excessive)

**For Vulnerabilities:**
- Repository name (auto-detect from git remote, or ask if not in a repo or unclear)
- Title: `<system feature> <is not/does not> <expected behaviour>`
- Vulnerability description
- Expected secure behavior
- Reproduction steps
- Environment info

**For Release Themes:**
- Repository name (auto-detect from git remote, or ask if not in a repo or unclear)
- Description of the release theme

### 1a. Clarify Until Precise (Iterate With the User)

**Do not draft an issue from a vague request.** A short, accurate issue is only possible once the facts are clear. After the initial gathering, check what you have against the template's required fields and ask follow-up questions until each one is specific and unambiguous.

**Ask when any of these is true:**
- A required field is missing or only implied
- The request uses vague wording ("it's broken", "slow", "doesn't work", "improve X") with no observable behavior, component, or measure
- The expected behavior is unstated, or the actual vs. expected difference is unclear
- Reproduction steps are missing, incomplete, or not repeatable by someone else
- Version, environment, or component is unknown and would change the diagnosis
- The scope is unclear (one issue or several? this repo or another? bug or feature?)
- For a Feature Request: the persona, the goal, or the "why" is missing
- For a Task or Theme: the done-condition or the parent issue is unclear
- You would have to guess, or invent detail, to fill a field

**How to ask:**
- Ask only what is needed to fill the template accurately. Do not interrogate for optional fields.
- Number every question (1, 2, 3, ...) and group them at the end of the message so the user can reply by number.
- Keep each question short and concrete. Prefer closed or multiple-choice questions (use AskUserQuestion when there are clear options) over open-ended ones.
- Ask at most 3-5 questions per round, most important first. Ask again after the answers if gaps remain.
- Offer a proposed answer when you can infer one ("Is the expected behavior that validation passes with a warning?") so the user only has to confirm or correct.
- Never fabricate missing details, versions, steps, or error messages. If the user does not know, write `Unknown` or omit the optional field.
- If the request is already complete and unambiguous, skip questions and go straight to the draft.

**Validate the issue type, especially Tasks:**

People often file a Task because it is the easiest template, even when the work is really a bug or a feature. Before drafting a Task (and whenever the chosen type looks doubtful), use the target repository's context to decide whether the type is right:

```bash
gh repo view NASA-PDS/<repo-name> --json description,repositoryTopics
gh issue list --repo NASA-PDS/<repo-name> --state all --limit 15 --json title,labels,issueType
```

Also look at the repository README and, if the user is in a local clone, the relevant code, to understand what the component does and who uses it.

Apply these tests to the description:
- **Bug:** something that exists today behaves incorrectly, crashes, or contradicts its documentation or requirements, even if the user phrased it as "fix", "update" or "clean up".
- **Feature Request / requirement:** a new or changed capability that a user, operator or downstream system would notice ("add support for", "allow", "enable", "expose", "make X configurable").
- **Task:** internal work with no user-visible behavior change, such as refactoring, dependency or build upgrades, CI/CD, test additions, documentation upkeep, release housekeeping, or a defined sub-task of a parent theme or issue.

If the work looks like a Bug or Feature Request:
- Say so, give the one-line reason, and propose the better type ("This changes what users of the validator can do, so it fits a Feature Request: 'As a Data Engineer, I want to...'. Switch?").
- If the user agrees, switch templates and gather that template's fields. If they insist on a Task, respect that.
- Do not silently change the type.

**Check for duplicates before drafting:**

```bash
gh issue list --repo NASA-PDS/<repo-name> --state all --search "<key terms>" --limit 10
```

If a likely duplicate or related issue exists, show it to the user and ask whether to proceed, comment on the existing issue, or link the two.

**Ask about planning metadata (every issue type):**

Always ask these three questions, together in one numbered round, unless the user already answered them in the request. Offer "No" / "Default" as an easy answer for each.

1. **Build:** "Should this be assigned to a specific build (adds a `B<number>` label, for example `B19.1`)?" To offer real choices, list the build labels that exist in the repository and propose the most recent:
   ```bash
   gh label list --repo NASA-PDS/<repo-name> --search "B" --limit 30
   ```
   Only accept a label that exists in the repo (or the user confirms it should be created). If the repo has no build labels, say so and skip the label.
2. **Assignee:** "Should this be assigned to a specific person? (default: `jordanpadams` for triage)" Validate a named assignee is a GitHub login with access; do not guess a login from a first name.
3. **Sprint:** "Should this be added to the current sprint (adds the `sprint-backlog` label)?"

Apply the answers when creating the issue (Section 3): add the build label and/or `sprint-backlog` to the label list, and use the chosen assignee in place of the default. If the user answers "No" or "Default", add nothing extra.

### 2. Fill the Template

Use the cached templates in `resources/templates/` directory. If templates are not cached, run the caching script first:

```bash
cd creating-pds-issues
node scripts/cache-templates.mjs
```

Fill templates with these guidelines:

**Content Style:**
- Be clear and specific, but concise
- Avoid unnecessary elaboration or "novel-length" descriptions
- Use bullet points and numbered lists for clarity
- Include only essential technical details
- Skip optional fields unless user provides information

**Length Limits (keep issues short):**
- Title: one line, ideally under 80 characters, in the required format
- Each description field (bug description, expected behavior, motivation): 1-3 sentences
- Reproduction steps: one action per step, no commentary
- No background story, apologies, speculation about causes, or restating the title in the body
- No log dumps: quote only the 1-5 lines of the error that matter
- If a field needs more than a short paragraph, ask the user what is essential or whether the work should be split into separate issues
- Do not pad empty fields. Use `N/A` or leave the field out rather than filling it with filler text

**Security and Privacy - CRITICAL:**
- **Remove or sanitize all sensitive information** before creating the issue
- Replace actual file paths with generic examples (e.g., `/Users/john/secrets/api-keys.txt` → `/path/to/file.txt`)
- Remove usernames, email addresses, and personal identifiers
- Replace IP addresses with dummy values (e.g., `192.168.1.100` → `10.0.0.1`)
- Strip API keys, tokens, passwords, and credentials
- Sanitize database connection strings and internal URLs
- Use placeholder hostnames (e.g., `prod-server-01.internal.nasa.gov` → `server.example.com`)
- Remove proprietary or confidential information
- If uncertain whether information is sensitive, ASK THE USER before including it

**Required Field Examples:**

*Bug description (good):*
```
When validating a PDS4 label with nested tables, the validator throws a NullPointerException
on line 342 of TableValidator.java. This occurs with labels containing 3+ nested table
definitions.
```

*Bug description (too verbose):*
```
I was working on my project late last night and I noticed that when I tried to validate
my carefully crafted PDS4 label that I had been working on for several days, the system
unexpectedly threw an error. I had been following all the documentation...
[continues for several paragraphs]
```

*Expected behavior (good):*
```
Validator should successfully validate labels with nested tables or provide a clear
error message about nesting limitations.
```

*Reproduction steps (good):*
```
1. Create PDS4 label with 3 nested <Table_Delimited> elements
2. Run: validate my-label.xml
3. Observe NullPointerException in output
```

*Feature motivation (good):*
```
...so that I can validate labels in CI/CD pipelines without manual intervention,
reducing deployment time from hours to minutes.
```

**Sanitization Examples:**

*Before (UNSAFE - contains sensitive info):*
```
When I run the validator on /Users/alice.johnson/Documents/NASA/mission-data/secret-project/labels/experiment-123.xml
using the API key sk-1234567890abcdef, it fails to connect to the database at
postgresql://admin:P@ssw0rd123@10.42.15.8:5432/pds_prod
```

*After (SAFE - sanitized):*
```
When running the validator on a PDS4 label file with the API configured, it fails to
connect to the PostgreSQL database with a connection timeout error.
```

*Before (UNSAFE - contains internal paths):*
```
The error log at /home/ops/pds-services/logs/validator-2024-11-13-prod.log shows:
ERROR: Connection refused by host pds-db-primary-01.jpl.nasa.gov
```

*After (SAFE - sanitized):*
```
The error log shows:
ERROR: Connection refused by database host
```

### 2a. Review the Draft With the User (Required Before Creating)

**Exception - Tasks:** If the final type is Task (after the type check in Section 1a), skip this approval step and create the issue directly. Still ask clarifying questions when needed, and still sanitize. If the type changed to Bug, Feature Request or any other type, this step applies.

**For every other type, never create the issue on the first draft.** Show the user the complete draft and wait for approval:

1. Issue type, target repository, title, labels (including any build or `sprint-backlog` label), assignee, and parent issue (if any)
2. The full body exactly as it will be posted (after sanitization)
3. Any assumptions you made, flagged explicitly (for example, "Assumed version 4.2.0 - correct?")

Then ask a numbered question such as "1. Create this issue as written, or what should change?"

- If the user requests changes, revise and show the updated draft again. Repeat until approved.
- If a revision raises new gaps, return to Section 1a and ask.
- If the draft has grown long, trim it before showing it, and say what you cut.
- Only proceed to Section 3 after the user explicitly approves.

### 3. Create the Issue

Use GitHub CLI to create the issue with appropriate labels and metadata, then set the issue type via the REST API (the `gh issue create` command does not support a `--type` flag).

**IMPORTANT: Always use `--body-file` to avoid shell quoting errors.** Never pass the body inline with `--body` — markdown content with single quotes, backticks, or special characters will break the shell command.

**Always write the body using the `Write` tool** (not a bash heredoc or `cat` command). Using the `Write` tool bypasses shell parsing entirely and avoids heredoc delimiter collisions or unmatched quote errors.

**Constructing the temp file path — NO shell variables in the Write tool:**

Run this single Bash command:
```bash
mkdir -p "$HOME/.claude/tmp" && echo "$HOME/.claude/tmp/pds_issue_body_$(date +%s%N).md"
```

It prints a fully-expanded absolute path, e.g.:
```
/home/someuser/.claude/tmp/pds_issue_body_1721234567890123456.md
```

**Copy that exact printed string** and use it as:
- The `file_path` argument to the Write tool
- The `--body-file` argument to `gh issue create`
- The path in the final `rm` command

**Do NOT use** `~`, `$HOME`, `$ISSUE_BODY_FILE`, or any shell variable or tilde in the Write tool's `file_path`. The Write tool is not a shell — it takes a literal string only. Always copy the printed path from the Bash output.

After the issue is created, delete the temp file:
```bash
rm "<the exact path printed above>"
```

**Default Assignee:**
By default, issues requiring triage are assigned to `jordanpadams`. If the user names a different assignee in the planning questions (Section 1a), pass that login to `--assignee` instead. Otherwise users can override the default by setting the `PDS_ISSUE_ASSIGNEE` environment variable.

**Planning Labels:**
Append the build label (for example `B19.1`) and/or `sprint-backlog` to the `--label` list of any command below when the user chose them. For I&T Bug Reports, replace the `B15.1` shown in the example with the build label the user chose; if none was chosen, omit it. Tasks and Release Themes have no default assignee; add `--assignee` only if the user named one.

**Setting the Issue Type:**

After every `gh issue create` call, extract the issue number and set the GitHub issue type via the REST API:

```bash
# Extract the issue number from the returned URL
ISSUE_NUMBER=$(echo "$ISSUE_URL" | grep -oE '[0-9]+$')

# Set the issue type (replace "Bug" with the appropriate type)
gh api --method PATCH /repos/NASA-PDS/<repo-name>/issues/$ISSUE_NUMBER \
  --field type="Bug"
```

NASA-PDS issue type values: `Bug`, `Feature`, `Task`, `Theme`

**Bug Report:**
```bash
ISSUE_URL=$(gh issue create \
  --repo NASA-PDS/<repo-name> \
  --title "<title>" \
  --body-file "<path printed by Bash above>" \
  --label "bug,needs:triage" \
  --assignee "${PDS_ISSUE_ASSIGNEE:-jordanpadams}")
ISSUE_NUMBER=$(echo "$ISSUE_URL" | grep -oE '[0-9]+$')
gh api --method PATCH /repos/NASA-PDS/<repo-name>/issues/$ISSUE_NUMBER --field type="Bug"
```

**I&T Bug Report:**
```bash
ISSUE_URL=$(gh issue create \
  --repo NASA-PDS/<repo-name> \
  --title "<title>" \
  --body-file "<path printed by Bash above>" \
  --label "B15.1,bug,needs:triage" \
  --assignee "${PDS_ISSUE_ASSIGNEE:-jordanpadams}")
ISSUE_NUMBER=$(echo "$ISSUE_URL" | grep -oE '[0-9]+$')
gh api --method PATCH /repos/NASA-PDS/<repo-name>/issues/$ISSUE_NUMBER --field type="Bug"
```

**Feature Request:**
```bash
ISSUE_URL=$(gh issue create \
  --repo NASA-PDS/<repo-name> \
  --title "<title>" \
  --body-file "<path printed by Bash above>" \
  --label "needs:triage,requirement" \
  --assignee "${PDS_ISSUE_ASSIGNEE:-jordanpadams}")
ISSUE_NUMBER=$(echo "$ISSUE_URL" | grep -oE '[0-9]+$')
gh api --method PATCH /repos/NASA-PDS/<repo-name>/issues/$ISSUE_NUMBER --field type="Feature"
```

**Task:**
```bash
ISSUE_URL=$(gh issue create \
  --repo NASA-PDS/<repo-name> \
  --title "<title>" \
  --body-file "<path printed by Bash above>" \
  --label "task,i&t.skip")
ISSUE_NUMBER=$(echo "$ISSUE_URL" | grep -oE '[0-9]+$')
gh api --method PATCH /repos/NASA-PDS/<repo-name>/issues/$ISSUE_NUMBER --field type="Task"
```

**Vulnerability:**
```bash
ISSUE_URL=$(gh issue create \
  --repo NASA-PDS/<repo-name> \
  --title "<title>" \
  --body-file "<path printed by Bash above>" \
  --label "security,bug,needs:triage" \
  --assignee "${PDS_ISSUE_ASSIGNEE:-jordanpadams}")
ISSUE_NUMBER=$(echo "$ISSUE_URL" | grep -oE '[0-9]+$')
gh api --method PATCH /repos/NASA-PDS/<repo-name>/issues/$ISSUE_NUMBER --field type="Bug"
```

**Release Theme:**
```bash
ISSUE_URL=$(gh issue create \
  --repo NASA-PDS/<repo-name> \
  --title "<title>" \
  --body-file "<path printed by Bash above>" \
  --label "theme,Epic,i&t.skip")
ISSUE_NUMBER=$(echo "$ISSUE_URL" | grep -oE '[0-9]+$')
gh api --method PATCH /repos/NASA-PDS/<repo-name>/issues/$ISSUE_NUMBER --field type="Theme"
```

After running any of the above, **always delete the temp file**:
```bash
rm "<path printed by Bash above>"
```

**Template Body Format:**

The body should mirror the YAML template structure but in markdown. For example, a bug report body:

```markdown
## Checked for duplicates
Yes - I've already checked

## 🐛 Describe the bug
[Bug description here]

## 🕵️ Expected behavior
[Expected behavior here]

## 📜 To Reproduce
1. [Step 1]
2. [Step 2]
3. [Step 3]

## 🖥 Environment Info
- Version of this software: vX.Y.Z
- Operating System: [OS details]

## 📚 Version of Software Used
[Version details]

## 🩺 Test Data / Additional context
[Context or N/A]

## 🦄 Related requirements
N/A

---
## For Internal Dev Team To Complete

## ⚙️ Engineering Details
[To be filled by engineering team]

## 🎉 Integration & Test
[To be filled by engineering team]
```

### 4. Attach Sub-Issue to Parent (If Applicable)

If this issue should be a sub-issue of a parent (theme, epic, or other issue), attach it using GitHub's GraphQL API.

**Step 1: Get the Parent Issue Node ID**

```bash
# Extract repo and issue number from parent reference
# For URL: https://github.com/NASA-PDS/repo/issues/123 → repo=repo, number=123
# For reference: NASA-PDS/repo#123 → repo=repo, number=123
# For local: #123 → use current repo, number=123

gh api graphql -f query='
  query {
    repository(owner: "NASA-PDS", name: "<parent-repo>") {
      issue(number: <parent-number>) {
        id
        title
      }
    }
  }
'
```

**Step 2: Get the Child Issue Node ID**

After creating the issue (from Section 3), extract the issue number from the returned URL and get its node ID:

```bash
# The gh issue create command returns: https://github.com/NASA-PDS/repo/issues/456
# Extract number 456 from the URL

gh api graphql -f query='
  query {
    repository(owner: "NASA-PDS", name: "<child-repo>") {
      issue(number: <child-number>) {
        id
      }
    }
  }
'
```

**Step 3: Add Sub-Issue Relationship**

```bash
gh api graphql -f query='
  mutation {
    addSubIssue(input: {
      issueId: "<PARENT_NODE_ID>",
      subIssueId: "<CHILD_NODE_ID>"
    }) {
      issue {
        id
        title
      }
      subIssue {
        id
        title
      }
    }
  }
'
```

**Combined Script Approach:**

For convenience, you can chain these operations:

```bash
# 1. Create the issue and capture the URL (body already written to the path printed by the Bash step above)
ISSUE_URL=$(gh issue create \
  --repo NASA-PDS/<repo> \
  --title "<title>" \
  --body-file "<path printed by Bash above>" \
  --label "<labels>" 2>&1)

# 2. Extract issue number from URL
CHILD_NUMBER=$(echo "$ISSUE_URL" | grep -oE '[0-9]+$')

# 2a. Set the issue type (Bug | Feature | Task | Theme)
gh api --method PATCH /repos/NASA-PDS/<repo>/issues/$CHILD_NUMBER --field type="<type>"

# 3. Get parent node ID
PARENT_ID=$(gh api graphql -f query='
  query {
    repository(owner: "NASA-PDS", name: "<parent-repo>") {
      issue(number: <parent-number>) { id }
    }
  }
' --jq '.data.repository.issue.id')

# 4. Get child node ID
CHILD_ID=$(gh api graphql -f query="
  query {
    repository(owner: \"NASA-PDS\", name: \"<child-repo>\") {
      issue(number: $CHILD_NUMBER) { id }
    }
  }
" --jq '.data.repository.issue.id')

# 5. Attach sub-issue to parent
gh api graphql -f query="
  mutation {
    addSubIssue(input: {
      issueId: \"$PARENT_ID\",
      subIssueId: \"$CHILD_ID\"
    }) {
      issue { title }
      subIssue { title }
    }
  }
"

# 6. Clean up temp file
rm "<path printed by Bash above>"
```

**Cross-Repository Sub-Issues:**

Sub-issues can span repositories. For example, a task in `pds-registry` can be a sub-issue of a theme in `pds-swg`. The parent and child repositories do not need to match.

**Error Handling:**

- If the parent issue doesn't exist: "Could not resolve to an Issue with the number..."
- If the GraphQL mutation fails: Check that both issues exist and you have write access
- If already a sub-issue: The API will return an error; check existing relationships first

### 5. Confirm Success

After creating the issue:
1. Display the issue URL to the user
2. Confirm the issue was created successfully
3. If a sub-issue relationship was created, confirm the parent-child link
4. Remind user that internal sections (Engineering Details, I&T) will be filled by the PDS engineering team

## Important Notes

- **All issues are added to project NASA-PDS/6** (PDS Engineering portfolio backlog)
- **Default assignee is jordanpadams** for triage (configurable via `PDS_ISSUE_ASSIGNEE` environment variable)
- **Leave internal sections blank** - "Engineering Details" and "Integration & Test" fields are filled by the PDS engineering team after triage
- **Skip optional fields** unless user explicitly provides information
- **Ask before drafting, approve before creating** - clarify gaps (Section 1a) and get explicit approval of the draft (Section 2a); Tasks skip the approval step
- **Check that a Task is really a Task** - use the repository's context to catch work that is actually a Bug or Feature Request, and propose the better type
- **Keep issues short** - follow the length limits in Section 2; never pad or invent detail
- **Validate repository exists** before creating issue using `gh repo view NASA-PDS/<repo-name>`

## Template Caching

Templates are cached locally in `resources/templates/` to avoid repeated GitHub API calls. The caching script should:

1. Clone or fetch the latest templates from NASA-PDS/.github
2. Store them in `resources/templates/`
3. Update a timestamp file to track last cache update

Cache templates on first use or if cache is older than 7 days.

**Forcing Cache Refresh:**

If templates have been updated in NASA-PDS/.github and you need to refresh immediately:

```bash
# Option 1: Delete cache directory and re-run caching script
rm -rf creating-pds-issues/resources/templates/
cd creating-pds-issues
node scripts/cache-templates.mjs

# Option 2: Delete timestamp file to trigger automatic refresh
rm creating-pds-issues/resources/templates/.cache-timestamp
# Next skill invocation will automatically refresh templates

# Option 3: Set environment variable to force refresh
FORCE_TEMPLATE_REFRESH=true node scripts/cache-templates.mjs
```

## Error Handling

- If GitHub CLI is not authenticated, prompt: `gh auth login`
- If repository doesn't exist, list available repos: `gh repo list NASA-PDS --limit 100`
- If user lacks write access, display error and suggest contacting PDS Help Desk
- If required information is missing, ask user for specific details needed

## Example Invocations

User: "Create a bug report for pds-registry about validation errors"
→ Ask which template, gather bug details, create issue

User: "File a feature request for the API to support batch operations"
→ Ask which repo, gather user story details, create issue

User: "I need to create a security vulnerability issue for validate"
→ Use vulnerability template, gather security details, create issue

**Sub-Issue Examples:**

User: "Create a child task for theme #45 about implementing the new API endpoint"
→ Detect sub-issue request, gather task details, create issue, attach to #45 as sub-issue

User: "Add a sub-task under NASA-PDS/pds-swg#123 for updating the documentation"
→ Detect cross-repo sub-issue, gather task details, create issue, attach to parent in pds-swg

User: "Create a task for the registry modernization epic"
→ Search for "registry modernization" epic, confirm with user, gather task details, create and attach

User: "File a bug as part of the B17 theme issue"
→ Search for B17 theme, create bug report, attach as sub-issue to the theme

Files in this skill

  • .claude-plugin/plugin.json351 B
  • SKILL.md20 KB
  • resources/templates/-bug_report.yml2.9 KB
  • resources/templates/-feature_request.yml2.8 KB
  • resources/templates/-vulnerability-issue.yml2.7 KB
  • resources/templates/.cache-timestamp13 B
  • resources/templates/config.yml193 B
  • resources/templates/i-t-bug-report.yml2.9 KB
  • resources/templates/release-theme.yml754 B
  • resources/templates/task.yml1.2 KB
  • scripts/README.md6.4 KB
  • scripts/attach-sub-issue.mjs5 KB
  • scripts/cache-templates.mjs3.3 KB
  • scripts/create-issue.mjs10.5 KB
  • scripts/detect-repo.mjs3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.