1---2name: jira-data-exporter3description: Use when tasks require jira data exporter with credential-aware preflight, deterministic execution, validation gates, and handoff-ready artifacts.4---56# Jira Data Exporter78## Quick Reference9| Field | Value |10| --- | --- |11| Skill ID | `33` |12| Provider | `Jira` |13| Operation | `Data Exporter` |14| Domain | `Work management and knowledge platforms` |15| Runtime archetype | `typed-export-engine` |16| Core method | `typed extraction and delivery` |17| Primary artifact | `jira-export-package` |18| Routing tag | `jira:data-exporter` |19| Mutating | `no` |20| Release cycles | `1` |2122## Why This Skill Exists23We need this skill because Jira workflows degrade when auth, schema, and side-effect handling drift when integrations are run ad hoc. This specific skill turns Jira Data Exporter into a deterministic, auth-checked workflow for exports jira entities into clean, typed datasets..2425## Trigger Checklist26- [ ] The task explicitly requires `Jira Data Exporter` rather than generic brainstorming.27- [ ] The provider tenant, workspace, or environment is known before execution begins.28- [ ] Credential reuse has been checked before asking for new secrets.29- [ ] Success criteria, side effects, and handoff owner are clear.30- [ ] If the run mutates provider state, the relevant approval gates are available.3132## Auth & Access Profile33| Field | Value |34| --- | --- |35| External auth required | `yes` |36| API key likely required | `no` |37| Protocols | `HTTPS/REST`, `provider SDK` |38| Mutating | `no` |39| Webhook capable | `no` |4041| Auth Mode | Kind | Env Hints | Validation |42| --- | --- | --- | --- |43| OAuth client or delegated session | `oauth2` | `JIRA_CLIENT_ID`, `JIRA_CLIENT_SECRET` | Reuse an active delegated session or validate the client credentials with a lightweight identity call. |44| Access token or personal access token | `token` | `JIRA_TOKEN`, `JIRA_ACCESS_TOKEN` | Validate the token with the smallest read-only endpoint that proves scope and tenancy. |4546## Inputs (contract)47| Input | Type | Required | Source |48| --- | --- | --- | --- |49| export specification | signal | yes | operator or upstream tool |50| query filters | signal | yes | operator or upstream tool |51| destination contract | signal | yes | operator or upstream tool |5253## Outputs (contract)54| Output | Type | Guaranteed | Consumer |55| --- | --- | --- | --- |56| jira-export-package | structured-artifact | yes | next workflow or operator |57| jira-export-package-scorecard | scorecard | yes | reviewer |58| jira-export-package-handoff | handoff-packet | yes | downstream owner |5960## Step-by-Step Implementation Guide611. Define the approved entities, fields, and destination contract for Jira Data Exporter, then constrain the export scope for Jira before running queries.622. Validate credential reuse, pagination strategy, and the exact schema version that downstream consumers expect.633. Implement exports jira entities into clean, typed datasets. with deterministic extraction, normalization, and integrity metadata for every page or batch.644. Attach counts, checksums, and schema fingerprints to the export package and block delivery when the contract drifts.655. Run integration and regression suites that cover unauthorized field expansion, pagination gaps, and partial delivery failures.666. Publish a delivery-ready export package with scope notes, integrity metadata, and any quarantined records called out explicitly.6768## Operational Runbook69### Preflight70- Validate export scope, filters, and destination expectations before running queries.71- Confirm credentials and verify that the export respects the agreed data minimization policy.7273### Execution74- Run deterministic queries, preserve pagination/cursor details, and normalize the output schema.75- Attach checksums and row counts to every export package.7677### Recovery78- Invalidate partial exports and rerun from the last clean page or cursor on failure.79- Stop delivery when the schema drifts outside the declared contract.8081### Handoff82- Return the export package location, checksums, and schema summary.83- Note any rows filtered, dropped, or quarantined before the package was finalized.8485## Validation Gates & Test Matrix86| Gate | Purpose | On Fail |87| --- | --- | --- |88| auth-preflight | Validate credential presence, scope, and environment before work begins. | block execution |89| schema-contract-check | Ensure required signals and payload shapes remain valid. | quarantine and request correction |90| policy-approval-check | Verify the declared approval gates before mutating or publishing state. | pause or route to human review |91| reliability-check | Confirm retries, rollback, and checkpoint readiness. | rollback or fail closed |9293- Required validation suites: `unit`, `integration`, `regression-baseline`9495## Failure Modes & Recovery Playbook96| Code | Trigger | Action |97| --- | --- | --- |98| `E_SCOPE_MISMATCH` | The requested export exceeds the approved entity or field scope. | Block the export and request an updated scope approval. |99| `E_SCHEMA_DRIFT` | Provider output no longer matches the declared export contract. | Quarantine the package and attach a schema diff for review. |100| `E_PARTIAL_DELIVERY` | The export completes locally but delivery confirmation fails. | Invalidate the artifact and rerun from the last stable cursor. |101102## Tool Call Implementation103- Reuse existing credentials first. Check environment variables, secure stores, and active sessions before prompting.104- Start with the smallest authenticated read or validation call that proves identity and scope.105- Preserve request, response, and approval traces in `jira-export-package` so downstream owners do not need to rediscover context.106- If any auth, contract, or approval gate fails, halt execution and attach remediation guidance instead of guessing.107108## Credential Reuse Policy109- Reuse valid provider credentials by default and prefer tenant-scoped sessions over newly created secrets.110- Prompt for credentials only when they are missing, invalid, expired, or point at the wrong environment.111- For webhook flows, validate the signing secret against a known sample before accepting live traffic.112113## Guardrails114- quality: Attach counts, checksums, and schema version to every export package. (`export-integrity-check`)115- compliance: Reject exports that exceed the approved data scope. (`data-scope-review`)116- reliability: Invalidate partial deliveries instead of handing off incomplete datasets. (`partial-delivery-block`)117118## Acceptance Checklist119- [ ] Credential preflight and scope validation completed successfully.120- [ ] Required validation suites ran and all fail-closed gates passed.121- [ ] jira-export-package, scorecard, and handoff packet were produced.122- [ ] Any mutations, approvals, or rollbacks are reflected in the artifact bundle.123124## Anti-Patterns125- Do not ask for new credentials before checking reusable auth context.126- Do not skip the read-only or dry-run validation step for mutating work.127- Do not proceed when approval gates, signing secrets, or rollback checkpoints are missing.128- Do not hand off partial or ambiguous provider state as complete.129130## Handoff Contract131- **Produces:** `jira-export-package`, execution scorecard, approval trace, and next actions.132- **Consumes:** `export specification`, `query filters`, `destination contract`.133- **Readiness rule:** release only after auth, contract, approval, and reliability gates all pass.134- **Downstream hint:** route to `jira:data-exporter` consumers with approval and credential context attached.135136## Observability & Continuous Improvement137- SLO: >=99.5% successful runs per 7-day window138- Error budget: <=0.5% critical failures per 7-day window139- Alert triggers:140- credential validation failures exceed baseline141- schema or contract regressions persist for two consecutive runs142- critical posture or rollback events exceed tolerance143- Primary outcome metric: `export completeness`144- Secondary metrics: `schema conformance`, `delivery latency`145- Review cadence: `weekly`