AgentStack
SKILL verified Apache-2.0 Self-run

Docs Workflow Pr Analysis

skill-opendatahub-io-docs-skills-docs-workflow-pr-analysis · by opendatahub-io

Run PR/MR analysis for the docs orchestrator workflow. Dispatches a subagent to run understand-pull-request, keeping the heavy orchestration out of the main context. Produces a structured PR-ANALYSIS.md. Conditional on has_pr — skipped when no PR URL is available.

No reviews yet
0 installs
12 views
0.0% view→install

Install

$ agentstack add skill-opendatahub-io-docs-skills-docs-workflow-pr-analysis

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Docs Workflow Pr Analysis? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

docs-workflow-pr-analysis

Orchestrator step skill that wraps understand-pull-request to analyze a specific PR/MR and produce change-specific documentation context.

Arguments

| Flag | Required | Description | |---|---|---| | --pr | Yes | PR/MR URL (GitHub or GitLab) | | --repo | Yes | Path to the cloned source repository | | --ticket | Yes | JIRA ticket ID | | --output-dir | Yes | Base output directory (.agent_workspace//pr-analysis/) |

Execution

1. Validate inputs

  • Verify --pr is a valid GitHub or GitLab PR/MR URL
  • Verify --repo directory exists
  • Create --output-dir if needed

2. Dispatch understand-pull-request subagent

You MUST use the Agent tool to run understand-pull-request in an isolated subagent. Do NOT invoke Skill: understand-pull-request inline — that would load 570+ lines of skill text plus all intermediate orchestration into the main context.

Check if learn-code output exists from a prior code-analysis step:

CODE_ANALYSIS_DIR="$(dirname "${OUTPUT_DIR}")/code-analysis"
ls "${CODE_ANALYSIS_DIR}/ONBOARDING.md" 2>/dev/null

Build the agent prompt with or without learn-code context:

Agent:
  description: "Analyze PR: "
  prompt: |
    Run the understand-pull-request skill to analyze this PR/MR.

    Skill: understand-pull-request, args: " --repo "

    [If learn-code analysis exists at CODE_ANALYSIS_DIR:]
    Learn-code analysis is available at . The skill
    will use it for richer module-level context.

    After the skill completes, report the location of the output files
    (PR-*-ANALYSIS.md and any pr-context.json).

After the agent completes, copy the PR analysis output to the step's output directory:

# Find the understand-pull-request output — it writes to .work/ or the repo's .agent_workspace/
# Look for PR-*-ANALYSIS.md in the agent's output locations
find "${REPO}" -name "PR-*-ANALYSIS.md" -newer "${OUTPUT_DIR}" 2>/dev/null | head -1

Copy the found files:

  • PR--ANALYSIS.md — Structured change analysis document
  • pr-context.json — PR metadata and per-module change data (if produced)

If PR-*-ANALYSIS.md is not found after the agent completes, mark the step as failed and report the error.

3. Write step-result.json

{
  "schema_version": 1,
  "step": "pr-analysis",
  "ticket": "",
  "completed_at": "",
  "pr_number": "",
  "pr_url": "",
  "modules_affected": "",
  "platform": "github|gitlab"
}

4. Report completion

Print summary:

PR analysis complete:
- PR: 
- Modules affected: 
- Platform: 
- Output: 

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.