docs-workflow-jira-ready
Skill4 starsChanged 4 months agoApache-2.0View on GitHub
Check whether a JIRA query returns tickets ready for the docs workflow. Queries JIRA via jira_reader.py, filters out tickets that already have a workflow progress file or a "docs-workflow-started" label, and outputs a JSON list of actionable ticket IDs. Designed as the entry point for cron-triggered or CI-triggered docs-orchestrator runs.
- 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-jiraSkill
- docs-workflow-create-merge-requestSkill
- 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
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Run the check script:
- Very specific: line 67
When --add-label is passed, the script adds the tracking label to each ticket in the ready list via the JIRA REST API after outputting …
≈ “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
JIRA Ready Check
This skill is a check-and-return gate — it does not dispatch the orchestrator. The caller (cron script, CI workflow, or human) decides what to do with the returned ticket list. Unlike other step skills, this skill does not dispatch an agent.
Gate skill for automated docs-orchestrator runs. Checks JIRA for new tickets matching a query, filters out already-processed tickets, and outputs actionable ticket IDs.
Arguments
--jql <query>— JQL query string (required). Wrap in quotes.--base-path <path>— Directory to check for existing progress files (default:artifacts)--label <label>— JIRA label that marks a ticket as already started (default:docs-workflow-started)--dry-run— Show what would be returned without adding labels or side effects (default behavior; included for explicitness)--add-label— After returning results, add the--labelvalue to each returned ticket in JIRA (opt-in, prevents re-processing on next run)--max-results <n>— Maximum number of JIRA results to fetch (default: 5, passed through to jira_reader.py)
Environment
Requires JIRA_API_TOKEN (or the backward-compatible alias JIRA_AUTH_TOKEN) and JIRA_EMAIL in the environment. jira-ready-check.sh loads ~/.env then <project-root>/.env using a safe key/value parser (no shell execution). Both variables are validated before any API calls.
Execution
Run the check script:
bash ${CLAUDE_SKILL_DIR}/scripts/jira-ready-check.sh \
--jql "project=PROJ AND labels=docs-needed AND labels != docs-workflow-started" \
--base-path artifacts \
--label docs-workflow-startedThe script:
- Queries JIRA using
jira_reader.py --jql(fast summary mode) - For each returned ticket, checks whether a workflow progress file already exists at
<base-path>/<ticket-lower>/workflow/*.json - Outputs a JSON array of ticket IDs that pass the filter (label exclusion is handled by the JQL query itself)
Output format
{
"query": "project=PROJ AND labels=docs-needed AND labels != docs-workflow-started",
"total_matched": 5,
"filtered_out": 2,
"ready": [
"PROJ-101",
"PROJ-204",
"PROJ-317"
],
"filtered": {
"PROJ-102": "progress_file_exists",
"PROJ-199": "progress_file_exists"
}
}With --add-label
When --add-label is passed, the script adds the tracking label to each ticket in the ready list via the JIRA REST API after outputting results. This prevents the same tickets from appearing on the next cron run.
bash ${CLAUDE_SKILL_DIR}/scripts/jira-ready-check.sh \
--jql "project=PROJ AND labels=docs-needed" \
--add-labelDoes 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.

