docs-workflow-create-jira
Skill4 starsChanged 4 months agoApache-2.0View on GitHub
Create a linked JIRA ticket for documentation work. No agent dispatch. Uses direct JIRA REST API calls via a shell script. Checks for existing links, handles public/private project visibility, converts markdown to JIRA wiki markup.
- Reads credentials
In this repository53 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- action-commentsSkill
- article-extractorSkill
- docs-convert-gdoc-mdSkill
- docs-orchestratorSkill
- docs-review-content-qualitySkill
- docs-review-modular-docsSkill
- docs-review-securitySkill
- docs-review-styleSkill
- docs-review-technicalSkill
- docs-ticket-readinessSkill
- docs-workflow-code-analysisSkill
- docs-workflow-create-merge-requestSkill
- docs-workflow-jira-readySkill
- docs-workflow-pipeline-diagnosticsSkill
- docs-workflow-planningSkill
- docs-workflow-pr-analysisSkill
- docs-workflow-quality-gateSkill
- docs-workflow-requirementsSkill
- docs-workflow-scope-req-auditSkill
- docs-workflow-security-reviewSkill
- docs-workflow-startSkill
- docs-workflow-style-reviewSkill
- docs-workflow-tech-reviewSkill
- docs-workflow-writingSkill
- git-pr-readerSkill
- ibm-sg-audience-and-mediumSkill
- ibm-sg-language-and-grammarSkill
- ibm-sg-legal-informationSkill
- ibm-sg-numbers-and-measurementSkill
- ibm-sg-punctuationSkill
- ibm-sg-referencesSkill
- ibm-sg-structure-and-formatSkill
- ibm-sg-technical-elementsSkill
- jira-readerSkill
- jira-writerSkill
- learn-codeSkill
- lint-with-valeSkill
- mdita-writeSkill
- query-codeSkill
- redhat-docs-tocSkill
- rh-ssg-accessibilitySkill
- rh-ssg-formattingSkill
- rh-ssg-grammar-and-languageSkill
- rh-ssg-gui-and-linksSkill
- rh-ssg-legal-and-supportSkill
- rh-ssg-release-notesSkill
- rh-ssg-structureSkill
- rh-ssg-technical-examplesSkill
- rn-known-issuesSkill
- understand-pull-requestSkill
- validate-plugin-prereqsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Run the create-jira-ticket script:
- Very specific: line 55
After the script completes, write the sidecar to ${BASE_PATH}/create-jira/step-result.json:
- Very specific: line 61
If the script created a new ticket (output contains a JIRA URL like https://...atlassian.net/browse/DOCS-456):
- Distinctive: line 77
If the script found an existing linked ticket (output contains "already exists"):
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Create JIRA Step
Step skill for the docs-orchestrator pipeline. Follows the step skill contract: parse args → do work → write output.
Unlike other step skills, this skill does not dispatch an agent. It runs scripts/create-jira-ticket.sh directly.
Output: null (produces a JIRA URL, not a file)
Arguments
$1— Parent JIRA ticket ID (required)--base-path <path>— Base output path (e.g.,.agent_workspace/proj-123)--project <PROJECT>— Target JIRA project key for the new ticket (required)
Input
<base-path>/planning/plan.mdEnvironment
Requires JIRA_API_TOKEN (or the backward-compatible alias JIRA_AUTH_TOKEN) and JIRA_EMAIL in the environment. create-jira-ticket.sh sources ~/.env then <project-root>/.env, where the project root is resolved from the PLAN_FILE location.
Execution
Run the create-jira-ticket script:
bash ${CLAUDE_SKILL_DIR}/scripts/create-jira-ticket.sh "$TICKET" "$PROJECT" "${BASE_PATH}/planning/plan.md"The script handles all steps:
- Check for existing link — if a "Document" link already exists on the parent ticket, exits early
- Check project visibility — unauthenticated probe to determine public vs private
- Extract description — pulls JTBD sections from the plan, appends dated footer
- Convert to JIRA wiki markup — calls
scripts/md2wiki.pyfor markdown → wiki conversion - Create JIRA ticket — POST to JIRA REST API with
[ccs] Docs -prefix - Link to parent — creates a "Document" issue link (singular, not "Documents")
- Attach plan — attaches the full plan file (private projects only)
The script prints the JIRA URL on success (e.g., https://redhat.atlassian.net/browse/DOCS-456), or a skip message if a linked ticket already exists.
Write step-result.json
After the script completes, write the sidecar to ${BASE_PATH}/create-jira/step-result.json:
mkdir -p "${BASE_PATH}/create-jira"If the script created a new ticket (output contains a JIRA URL like https://...atlassian.net/browse/DOCS-456):
{
"schema_version": 1,
"step": "create-jira",
"ticket": "<TICKET>",
"completed_at": "<current ISO 8601 timestamp>",
"jira_url": "https://redhat.atlassian.net/browse/DOCS-456",
"jira_key": "DOCS-456",
"action": "created",
"skipped": false,
"skip_reason": null
}If the script found an existing linked ticket (output contains "already exists"):
{
"schema_version": 1,
"step": "create-jira",
"ticket": "<TICKET>",
"completed_at": "<current ISO 8601 timestamp>",
"jira_url": "https://redhat.atlassian.net/browse/<linked-key from output>",
"jira_key": "<linked-key from output>",
"action": "found_existing",
"skipped": false,
"skip_reason": null
}Extract jira_key and jira_url from the script's stdout. If the script fails (non-zero exit), write the sidecar with action: "skipped", skipped: true, and skip_reason: "create_failed".
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
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.

