PluginWorks in Claude CodeCurrent
Forge skills
Forge-focused skills and MCP configuration for Atlassian Forge: scaffold and deploy apps (forge create, templates, dev spaces), build Teamwork Graph connectors for Rovo Search/Rovo Chat, pre-deploy review, systematic debugging, plus Forge docs and Atlassian Design System lookups via MCP.
0
Try it
See what this would do for you. No sign-up needed.
Install in Claude Code
Run these in Claude Code, in order. The first adds the marketplace, the second installs the plugin.
Step 1
/plugin marketplace add anthropics/claude-plugins-official
Step 2
/plugin install forge-skills@claude-plugins-official
Review commands before running them. Promptu never runs code on your machine or pushes changes to your repo.
What's inside
6 skills
- forge-app-builder
- forge-app-review
- forge-connector
- forge-cost-optimizer
- forge-debugger
- forge-security-review
2 MCP servers
Security scan
Flagged
Promptu's text scan flagged something in this plugin. Read its files before you install it.
sudo in skills/forge-debugger/SKILL.md:188
Details
# Atlassian Forge Skills
Atlassian Forge lets you build and deploy apps directly on the Atlassian platform - issue panels, Confluence macros, dashboard gadgets, and more. The Forge Skills Plugin bundles several Forge-focused skills plus MCP-backed tooling so your agent can scaffold apps, review them before deploy, debug production issues, and stay current on Forge APIs and the Atlassian Design System.
## What's included
### Skills
The plugin ships multiple skills under `skills/`, each with a `SKILL.md` the host can load:
**Forge App Builder** (`skills/forge-app-builder/`) guides scaffolding through production: `forge create`, dev spaces and templates, deploy and install, module selection, cross-product scopes, and common CLI or permission issues.
**Forge App Review** (`skills/forge-app-review/`) supports pre-deploy review and audits: security, architecture, cost and invocation efficiency, performance, and trigger or scheduling waste.
**Forge Cost Optimizer** (`skills/forge-cost-optimizer/`) helps reduce Forge platform consumption across invocations, storage, logs, memory, triggers, API calls, and frontend/backend boundaries.
**Forge Debugger** (`skills/forge-debugger/`) supports systematic troubleshooting when something breaks: `forge` / deploy errors, resolver failures, blank or missing UI, scopes and permissions, and apps that “stopped working” in Jira or Confluence.
**Forge Connector** (`skills/forge-connector/`) guides building `graph:connector` apps that ingest external data into Atlassian's Teamwork Graph, making it searchable in Rovo Search and surfaced in Rovo Chat.
**Forge Security Review** (`skills/forge-security-review/`) performs white-box Forge app security audits with rule-driven checks for authz, injection, tenant isolation, secrets handling, egress/remotes, web triggers, and optional static-analysis workflows.
### Forge MCP Server
Gives your agent access to up-to-date Forge documentation, template registries, module configuration, manifest syntax, and UI Kit/backend API guides -- so its knowledge stays current rather than relying on training data.
### ADS MCP Server
Provides Atlassian Design System lookup for Custom UI apps: component discovery, token reference, and icon search via the `@atlaskit` library.
| Component | What it adds | Examples |
| ------------------------------- | --------------------------------------------------------- | ---------------------------------------------------------------------- |
| **Forge App Builder skill** | Scaffold, deploy, install, module choice, CLI workflows | `forge create`, environments, cross-product scopes |
| **Forge App Review skill** | Pre-deploy review: security, cost, architecture, triggers | Audit before release, reduce invocations, find misconfigurations |
| **Forge Cost Optimizer skill** | Reduce Forge platform consumption and avoid waste | Invocations, storage writes, logs, memory, triggers |
| **Forge Debugger skill** | Diagnose deploy, runtime, UI, and permission issues | Logs, blank panels, resolver errors, missing app in UI |
| **Forge Connector skill** | Ingest external data into Teamwork Graph / Rovo | graph:connector, setObjects, Rovo Search, Rovo Chat |
| **Forge Security Review skill** | White-box security audits and exploitability reporting | AuthZ bypasses, injection, tenant isolation, static analysis workflows |
| **Forge MCP Server** | Live Forge documentation and tooling | Template lookup, manifest syntax, UI Kit guides, backend API reference |
| **ADS MCP Server** | Atlassian Design System lookup | Component discovery, token reference, icon lookup (Custom UI only) |
## Prerequisites
Before you install, make sure you have:
- An [Atlassian account](https://id.atlassian.com)
- **Node.js 22+** (`node -v`) — required for Forge CLI and app builds
- **Python 3** available on your PATH (used by helper scripts)
## Install
### Claude Code
```
/plugin install forge-skills@atlassian-forge-skills
```
### Cursor
The Forge Skills plugin can be installed directly from the [Cursor Marketplace](https://cursor.com/marketplace/atlassian/forge-skills)
Or by running the following command in chat with a Cursor agent:
```
/add-plugin forge-skills
```
### Gemini CLI
```bash
gemini extensions install https://github.com/atlassian/forge-skills
```
### GitHub Copilot CLI
```bash
copilot plugin install atlassian/forge-skills
```
### OpenAI Codex
Install the Forge Skills marketplace:
```bash
codex plugin marketplace add atlassian/forge-skills --ref main
```
Then install the plugin:
```bash
codex plugin add forge-skills@atlassian-forge-skills
```
Start a new Codex thread after installing so the Forge skills and MCP servers are loaded.
To refresh the Codex marketplace after updates:
```bash
codex plugin marketplace upgrade atlassian-forge-skills
codex plugin add forge-skills@atlassian-forge-skills
```
### Kiro and Agent Plugins clients
This repository follows the [Agent Plugins v1.0.0 specification](https://agent-plugins.org/). In Kiro, open the Powers panel, choose **Add Custom Power**, and import this repository from GitHub or from a local checkout.
Portable clients discover:
- `plugin.json` for plugin identity and metadata
- `skills/*/SKILL.md` for Agent Skills
- `mcp.json` for Forge and Atlassian Design System MCP servers
The separate `.mcp.json` and client-specific manifest directories remain in place for clients that use their own plugin formats.
### Rovo Dev
Rovo Dev doesn't currently support plugin installations but you can install the skills and MCP servers separately.
Install the skills:
```bash
npx skills add atlassian/forge-skills
```
Then run `acli rovodev mcp` to edit your MCP configuration in your default editor. Add the details from `.mcp.json`.
Restart Rovo Dev for the skills and MCP to be available.
## Verify the installation
After install, try four quick checks.
### 1. Verify the skill layer
Ask:
> Build me a Jira issue panel that shows customer support tickets.
You should get a structured Forge workflow: developer space discovery, template selection, `forge create`, code customization, and deployment -- not just generic code snippets.
Optionally confirm the other skills are available:
- **Review:** e.g. “Review my Forge app for security and unnecessary trigger invocations before I deploy.”
- **Debug:** e.g. “My Forge issue panel is blank after deploy -- help me trace it.”
- **Security:** e.g. “Run a white-box security review on this Forge app and include CVSS-scored findings.”
### 2. Verify Forge MCP
Ask:
> What Forge templates are available for Confluence macros?
You should get a tool-backed response from the Forge documentation, not a hallucinated list.
### 3. Verify ADS MCP (Custom UI only)
Ask:
> What Atlaskit components should I use for a data table?
You should get a response backed by the Atlassian Design System, with specific component names and import paths.
### 4. Verify Forge Connector skill
Ask:
> I want to ingest data from an external project management tool into Rovo Search using a Forge connector app. Where do I start?
You should get a structured walkthrough covering `graph:connector` app setup, `setObjects` ingestion, required scopes, and how the data surfaces in Rovo Search and Rovo Chat -- not a generic Forge tutorial.
## Prompts to try
Once the plugin is installed, try prompts like these:
- `Create a Jira issue panel that shows related support tickets from an external API.`
- `Build a Confluence macro that embeds an interactive chart with bar, line, and pie options.`
- `Add a Jira dashboard gadget that summarizes open issues grouped by priority.`
- `Create a Confluence macro that reads Jira issues assigned to me and displays them in a table.`
- `My forge create keeps failing with "Prompts can not be meaningfully rendered" -- help!`
- `Deploy my Forge app to my staging site.`
- `What scopes do I need for a Confluence app that also reads Jira data?`
- `Review my Forge app for cost and security before production.`
- `Run a white-box security audit of this Forge app and focus on authz bypass and web trigger abuse.`
- `forge deploy fails with [error] -- what should I check?`
## What you get
| Component | Default location | Purpose |
| ------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| **Forge App Builder** | `skills/forge-app-builder/` | Create, deploy, install; helper scripts and tests |
| **Forge App Review** | `skills/forge-app-review/` | Pre-deploy review and audits (`SKILL.md`, README) |
| **Forge Cost Optimizer** | `skills/forge-cost-optimizer/` | Reduce Forge platform consumption across invocations, storage, logs, and memory |
| **Forge Connector** | `skills/forge-connector/` | Build graph:connector apps; ingest data into Teamwork Graph (SKILL.md, README) |
| **Forge Debugger** | `skills/forge-debugger/` | Troubleshooting and diagnostics (`SKILL.md`, README) |
| **Forge Security Review** | `skills/forge-security-review/` | White-box security audits with rule assets (`SKILL.md`, README, assets/) |
| **MCP config** | `mcp.json`, `.mcp.json` | Forge MCP Server and ADS MCP Server configuration |
| **Plugin manifests** | `plugin.json`, `.plugin/`, `.cursor-plugin/`, `.claude-plugin/`, `.codex-plugin/`, `gemini-extension.json` | Per-host plugin metadata and MCP wiring |
## Authentication
The Forge CLI handles authentication:
```bash
forge login
```
You will be prompted for your Atlassian email and an [API token](https://id.atlassian.com/manage/api-tokens). Enter credentials only in your terminal -- never paste tokens into chat.
Verify you are logged in:
```bash
forge whoami
```
## Troubleshooting
### The agent is not using Forge skills
- Make sure the plugin installed successfully in your host
- Confirm the `skills/` directory includes `forge-app-builder`, `forge-app-review`, `forge-debugger`, `forge-connector`, and `forge-security-review` (each with a `SKILL.md` where applicable)
- Reload or restart your host so it re-indexes plugins and MCP configuration
### MCP tools are not showing up
- Check that the Forge MCP entries were added for your host
- Restart MCP servers or reload the host after configuration changes
- Verify Node.js is installed (`node -v`)
### Forge commands fail with auth errors
- Re-run `forge login`
- Create a new API token at [id.atlassian.com/manage/api-tokens](https://id.atlassian.com/manage/api-tokens)
- Make sure the correct developer space is selected
### forge create fails
- **"Prompts can not be meaningfully rendered"**: Run `forge create` in an interactive terminal
- **"No developer spaces found"**: Create one at [developer.atlassian.com/console](https://developer.atlassian.com/console/)
- **"forge: command not found"**: `npm install -g @forge/cli`
## Learn more
- [Forge documentation](https://developer.atlassian.com/platform/forge/)
- [Forge CLI reference](https://developer.atlassian.com/platform/forge/cli-reference/)
- [Atlassian Design System](https://atlassian.design/)
- [Forge community](https://community.developer.atlassian.com/c/forge/)
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
## License
[Apache 2.0](LICENSE)
## skills/forge-app-builder/SKILL.md
---
name: forge-app-builder
description: Plan, build, scaffold, or safely extend Atlassian Forge apps using current official documentation. Use for fresh Forge apps, existing-app feature work, module and manifest changes, UI Kit or Custom UI implementation, backend functions and events, Atlassian or external APIs, storage, permissions, environment configuration, distribution-affecting implementation, validation, and explicitly authorized deployment or installation; route standalone debugging and specialist reviews to their dedicated skills.
license: Apache-2.0
metadata:
labels: "confluence,jira,bitbucket,atlassian,forge"
maintainer: amoore
namespace: cloud
---
# Forge App Builder
Route each request through only the branches and capability gates it needs. Keep platform facts live and keep local guidance focused on safe decisions.
## Preserve these invariants
1. Retrieve current official Forge guidance before committing to platform syntax, modules, APIs, scopes, limits, runtimes, packages, lifecycle status, or CLI flags.
2. Register every new deployable app with `forge create`; never hand-build an app identity or replace a failed creation with an unregistered scaffold.
3. Inspect an existing app and its repository instructions before planning or editing it. Preserve unrelated user changes.
4. Never request or accept credentials in chat. Use the relevant interactive CLI or secure configuration flow.
5. Never accept Forge terms or billing consent, deploy, install, upgrade, promote, set a production variable, or change a live site without explicit authorization and a confirmed target.
6. Validate every manifest change against the exact current reference and with `forge lint`.
7. Use least privilege and avoid unnecessary egress, privileged backend operations, and migrations.
8. Prefix Forge CLI commands run for this skill with `ATL_FORGE_ATTRIBUTION_SKILL_NAME=forge-app-builder`; exclude user-run `forge login` and `forge tunnel`.
## Route the primary intent
Choose one primary route before loading implementation guidance:
| Intent | Route |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| Architecture, feasibility, or implementation plan only | Read [references/plan-only.md](references/plan-only.md); stop before mutations |
| Create a deployable app | Read [references/create-new-app.md](references/create-new-app.md) |
| Add or change behavior in an existing app | Read [references/extend-existing-app.md](references/extend-existing-app.md) |
| Known error, failed command, blank UI, logs, or unexpected behavior | Route to `forge-debugger` |
| Broad pre-deploy or release-readiness review | Route to `forge-app-review` |
| Deep security review or static analysis | Route to `forge-security-review` |
| Cost or platform-consumption optimization | Route to `forge-cost-optimizer` |
| Teamwork Graph connector | Route to `forge-connector` |
Continue here when diagnosis or review is incidental to active build work. If the route is unclear, inspect the workspace before asking the user.
## Ground the selected route
Read [references/documentation-routing.md](references/documentation-routing.md) when current platform detail is needed. Use Forge MCP as the first preference whenever it is available. Discover its current capabilities by purpose rather than assuming permanent tool names, and call the narrowest relevant capability before relying on web documentation or remembered platform knowledge. Use focused official Atlassian documentation when MCP is unavailable, fails, or lacks the exact coverage needed, and for critical verification.
Call the general Forge development guide when broad orientation is useful. Do not call it merely to satisfy a ritual when the task needs only one known leaf reference. Retrieve the exact module, manifest property, endpoint, scope, or CLI page before relying on it.
## Activate capability gates conditionally
Load only the references implicated by the requested outcome and observed code:
| Trigger | Read |
| ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
| Select or add an extension point or module | [references/module-selection.md](references/module-selection.md) |
| Implement or change UI Kit | [references/ui-kit.md](references/ui-kit.md) |
| Implement or change Custom UI or `Frame` | [references/custom-ui.md](references/custom-ui.md) |
| Add resolvers, functions, events, schedules, queues, web triggers, app REST APIs, realtime, or runtime services | [references/backend-and-events.md](references/backend-and-events.md) |
| Call or expose Atlassian, Forge app, or external APIs; use providers or remotes; change scopes, authorization, or egress | [references/apis-permissions-and-egress.md](references/apis-permissions-and-egress.md) |
| Persist data or affect tenancy, lifecycle, migration, or residency | [references/storage-and-residency.md](references/storage-and-residency.md) |
| Configure environments, runtime variables, secrets, or manifest interpolation | [references/environments-and-configuration.md](references/environments-and-configuration.md) |
| Change cross-product compatibility, unlicensed access, licensing, sharing, or distribution behavior | [references/distribution-and-access.md](references/distribution-and-access.md) |
| Validate, deploy, install, upgrade, or hand off | [references/validation-and-release.md](references/validation-and-release.md) |
Do not load UI guidance for a headless app, storage guidance for a stateless feature, Custom UI guidance for a UI Kit-only change, or release guidance until validation or an authorized release becomes relevant.
## Implement and validate iteratively
Before non-trivial edits, establish the requested outcome, affected Forge surfaces, consequential design choices, and a proportionate validation approach. Resolve decisions that affect authorization, data handling, compatibility, lifecycle status, cost, or live state before implementation.
Work in coherent increments. After each meaningful change, use the most relevant available evidence to assess it, such as focused tests, type checks, frontend builds, handler or resource inspection, or `forge lint`. Choose the increment size and validation frequency according to risk, feedback cost, and the existing codebase; combine related edits when validating them separately would add little value.
When validation fails or contradicts an assumption, identify the cause, retrieve exact current documentation when Forge behavior is involved, adjust the implementation, and validate again. Continue until the requested behavior and affected wiring are verified, or progress requires user input or unavailable external state.
Do not treat successful generation, compilation, or linting alone as proof that a feature works when stronger local verification is reasonably available. Keep secrets and privileged work out of frontend code. Treat display conditions as presentation controls, not authorization. Preserve supported existing conventions and unrelated changes unless a migration is required or explicitly authorized.
## Validate and stop safely
Stop after local verification unless the user requested release work. For authorized release work, confirm the exact app, environment, site, product, version or upgrade behavior, and expected scope or data impact immediately before executing it.
## skills/forge-app-review/SKILL.md
---
name: forge-app-review
description: >
Performs a lightweight pre-release readiness review of Atlassian Forge apps across manifest/module wiring,
architecture, runtime compatibility, dependency posture, tests, deploy readiness, and obvious security,
cost, or reliability smells. Use when the user asks "review my Forge app", "pre-deploy check",
"is this app ready to ship", "review manifest", "general app review", "release readiness", or asks for a
broad quality pass. Do not use for deep security audits/SAST/exploitability review, cost optimization,
or diagnosing a known broken app; route those to forge-security-review, forge-cost-optimizer, or
forge-debugger respectively.
---
# Forge App Review
Run a general Forge release-readiness review. This skill is the front door for broad app review, not a replacement for specialist security, cost, or debugging skills.
## Boundaries
Use this skill for:
- Pre-deploy and release-readiness checks.
- General architecture and maintainability review.
- Manifest/module/resource/function wiring.
- Runtime, dependency, package, and script sanity checks.
- Basic tests/deploy readiness and operational hygiene.
- Obvious security, cost, or reliability smells that should trigger a deeper specialist pass.
Use another skill instead when the user's primary intent is:
- Deep security audit, SAST, authz, secrets, tenant isolation, exploitability, or CVSS reporting -> `forge-security-review`.
- Cost optimization, invocations, GB-seconds, storage/log volume, trigger frequency, or memory tuning -> `forge-cost-optimizer`.
- A known failure, error message, blank UI, failed deploy/install, broken resolver, missing app, or logs/tunnel diagnosis -> `forge-debugger`.
If a broad review finds a deep security/cost/debug concern, include it as a handoff recommendation rather than duplicating the specialist workflow.
## Review Rules
- Audit first. Do not modify app files unless the user explicitly asks to apply fixes.
- Read the codebase before making claims.
- Prefer concrete file/line evidence.
- Keep findings focused on bugs, release blockers, meaningful risks, and missing validation.
- Do not run full SAST or cost tooling from this skill. Recommend the specialist skill when warranted.
- Do not report speculative security or cost observations as confirmed vulnerabilities or savings.
## Module & Capability Routing
Detect modules declared in `manifest.yml` or package dependencies, and load specific review guides:
- **Teamwork Graph / Forge Connectors:**
- If the app declares `graph:connector`, `teamwork-graph-connector`, or imports `@forge/teamwork-graph`:
- 👉 **Follow and evaluate against [`./modules/connector-review.md`](./modules/connector-review.md)**.
---
## Workflow
1. Read `manifest.yml` or `manifest.yaml`.
- Identify modules, resources, functions, resolver bindings, triggers, web triggers, remotes, permissions, runtime, and memory settings.
- Verify referenced handlers/resources exist.
2. Read `package.json`.
- Check Forge package fit, scripts, runtime assumptions, direct dependencies, and obvious unused/missing packages.
3. Inspect source files.
- Backend/resolvers: `resolver.define`, handler exports, product API calls, storage usage, external fetches, logging, error handling.
- Frontend: UI Kit or Custom UI resource entry points, `invoke()` patterns, bridge usage, loading/error states.
4. Inspect tests and project docs when present.
- Note missing tests only when behavior risk justifies it.
5. Produce a prioritized readiness report.
## What To Check
### Release Blockers
- Manifest references a missing handler, resource path, or module key.
- Resolver names called by the frontend do not match `resolver.define()` names.
- Required scopes or egress permissions are missing for actual API/fetch usage.
- Runtime, package versions, or module syntax likely fail `forge lint`, build, deploy, or install.
- App has no clear way to exercise its primary user flow.
### Architecture And Maintainability
- Module type matches the intended UX surface.
- Resolver boundaries are coherent and not overly monolithic for the app size.
- Sensitive or privileged logic stays backend-side.
- UI-only formatting/transforms are not unnecessarily forced through backend functions.
- Error handling is sufficient for user-facing workflows.
- Code organization matches existing project style.
### Lightweight Security Signals
Only flag obvious signals and recommend `forge-security-review` for deep validation:
- Broad/write/admin scopes without visible usage.
- `api.asApp()` in user-triggered resolvers without obvious authorization checks.
- Hardcoded credentials or token-like literals.
- External fetches without manifest egress entries.
- Web triggers without visible authentication strategy.
- Full payload/request logging that may expose user, tenant, or secret data.
### Lightweight Cost Signals
Only flag obvious signals and recommend `forge-cost-optimizer` for deep analysis:
- Resolver invoked only to return static data or product context.
- Multiple independent `invoke()` calls on page load.
- Scheduled triggers that look like broad polling.
- Product triggers without filters or `ignoreSelf` where applicable.
- Full payload/API response logging in hot paths.
- Storage writes on every invocation.
### Lightweight Debuggability Signals
Only flag readiness gaps; use `forge-debugger` when there is an observed failure:
- Missing loading/error states around async UI paths.
- Logs are either too noisy or absent around important failures.
- README or scripts do not explain how to lint/build/deploy/test.
- App has no obvious local verification command besides `forge lint`.
## Output Format
Return a concise Markdown report. **Findings must be a table** (not a numbered list). Include a **Source** column for every finding so the reader knows which review guide or area produced it.
**Source values** (use the most specific that applies — Source is the **checklist/module or review area**, not merely the file type):
- `manifest` — general Forge manifest wiring, scopes, egress, or module keys **not** covered by a module-specific guide
- `resolver` — backend/resolver wiring and runtime behavior
- `frontend` — UI Kit / Custom UI invoke and bridge patterns
- `dependencies` — `package.json` / runtime package fit
- `tests` — missing or inadequate verification
- `general` — cross-cutting readiness hygiene not covered above
- Module-specific labels — when a module review guide is loaded (under `./modules/`), use the Source label that guide defines (for example `connector`). Do **not** re-label those findings as `manifest` just because evidence lives in `manifest.yml`.
**Location rules** (do not path-only):
- Always cite precise `path:line` or `path:start-end` (multiple citations OK).
- Include the contributing code excerpt in the Location cell — the exact lines that produced the signal, not just the filename.
- Because Markdown table cells cannot nest ` ``` ` fences reliably, wrap the excerpt in HTML: `<pre><code>...</code></pre>`.
- Keep excerpts tight (typically ≤15 lines). For absences (e.g. a missing required block), show the nearest enclosing stanza and note what is missing in Description.
```markdown
# Forge App Review Results
## Summary
- Readiness: Ready | Needs changes | Blocked
- Highest-risk area: <manifest | resolver wiring | permissions | dependencies | tests | operational hygiene | module-specific>
- Files inspected: <short list>
- Specialist handoffs: <none | security | cost | debugger>
## Findings
| Severity | Source | Finding | Location | Description | Doc | Fix |
|----------|--------|---------|----------|-------------|---------|-----|
| Critical \| Warning \| Info | <source> | <short title> | `path:start-end`<br><pre><code>…excerpt…</code></pre> | <why this matters / observed pattern> | <DAC or checklist anchor title + URL> | <specific remediation> |
Sort rows Critical → Warning → Info. Omit the Doc column cell only when no public/doc anchor applies; keep the column.
## Clean Areas
- <important categories checked with no issues>
## Suggested Next Step
- <apply fixes | run specialist review | deploy/lint/test command>
```
If there are no findings, say the app looks ready from this general review and list any residual specialist reviews that were intentionally out of scope.
## skills/forge-connector/SKILL.md
---
name: forge-connector
description: >
Guides building and deploying Atlassian Forge Teamwork Graph connector apps that ingest
external data into Atlassian's Teamwork Graph, making it searchable in Rovo Search and
surfaced in Rovo Chat. Use when the user wants to build a Forge connector, ingest external
data into Atlassian, connect a third-party tool (e.g. Google Drive, ServiceNow, Salesforce)
to Atlassian, make external content searchable in Rovo, build a graph:connector module,
use the @forge/teamwork-graph SDK, or implement onConnectionChange / validateConnection
functions.
license: Apache-2.0
metadata:
labels: "forge,rovo,jira,atlassian,teamwork-graph,connector"
maintainer: mbanjan94
namespace: cloud
---
# Forge Connector
Builds a `graph:connector` Forge app that ingests external data into Atlassian's Teamwork Graph so it appears in **Rovo Search** and **Rovo Chat**.
## Critical Rules
1. **Must install in Jira** — Apps using Teamwork Graph modules must be installed on a Jira site. Confluence-only installs will not work.
2. **Never ask for credentials in chat** — Direct users to run `forge login` in their own terminal.
3. **Always run the scaffold script yourself** — Do not only give manual instructions; run `scripts/scaffold_connector.py` to generate the boilerplate.
4. **Always ask the user for their Atlassian site URL** when install is needed — never discover or guess it.
5. **Atlassian deletes data on disconnect** — When `action = 'DELETED'`, the app only needs to clean up local state; Atlassian removes the Teamwork Graph data automatically.
6. **Handler arguments are passed directly** — Forge passes the request object as the first argument to handlers, NOT nested under `event.payload`. Config values are at `request.configProperties`, NOT `event.payload.config`. This is the most common source of `TypeError: Cannot destructure property of undefined` errors.
7. **Use `@forge/kvs` for storage** — Import `kvs` from `@forge/kvs`. Do NOT use `@forge/storage` — its `storage` export is `undefined` at runtime in connector functions.
8. **Use `graph` named export from `@forge/teamwork-graph`** — The correct import is `const { graph } = require('@forge/teamwork-graph')`. Call `graph.setObjects({ objects, connectionId })`. Do NOT import `setObjects` as a named export directly.
9. **`validateConnectionHandler` must return `{ success, message }`** — Do NOT throw an Error. Return `{ success: false, message: '...' }` to reject, `{ success: true }` to accept.
10. **`function` declarations belong under `modules`** — In `manifest.yml`, `function:` is a key under `modules:`, not a top-level key. Placing it at the top level causes a lint error.
11. **`formConfiguration` uses `form` array with `type: header`** — Do NOT use `fields:` or `beforeYouBegin:`. The correct format uses `form: [{ key, type: header, title, description, properties: [...] }]`.
12. **Scopes are `read/write/delete:object:jira`** — Use `read:object:jira`, `write:object:jira`, `delete:object:jira`. The scopes `read:graph:teamwork` and `write:graph:teamwork` are invalid and will fail `forge lint`.
13. **Set `ATL_FORGE_ATTRIBUTION_SKILL_NAME=forge-connector` on `forge` commands run for this skill** — prefix `forge` invocations with this env var: ones you run in the shell (e.g. `forge lint`, `forge logs`, `forge deploy`) **and the interactive `forge create` command you hand the user as a fallback**. The bundled scripts set it automatically; other commands shown in this skill omit it for brevity — add it when you run them. The only exclusions are `forge login` and `forge tunnel` (user-run auth / live-dev commands).
14. **Never ignore `setObjects` / `setUsers` / `setGroups` responses** — Do NOT treat ingestion calls as fire-and-forget. Always check both `response.success` **and** `response.results?.rejected`. A call can partially fail: some objects are rejected while others are accepted, and `response.success` can be `true` even when `rejected.length > 0`.
15. **Keep access control IDs consistent** — When using `USER` or `GROUP` principals in `permissions`, the `id` value must exactly match the `externalId` used in the corresponding `graph.setUsers()` / `graph.setGroups()` call. Mismatched IDs (e.g. `user-42` vs `accountId:user-42`) silently make objects invisible to users who should have access.
16. **Use orchestration for refresh scheduling** — When the user wants periodic re-ingestion, use `graph.scheduleOrUpdateTask` + a `taskRunner` handler (the platform-managed approach) instead of a `scheduledTrigger`. Orchestration handles cadence, retry, and fan-out natively. Only fall back to `scheduledTrigger` if the user explicitly needs a lightweight cron-style trigger without platform task tracking.
17. **`taskId` must be a valid UUID** — Both `scheduleOrUpdateTask` and `scheduleChildTask` require `task.taskId` to be a UUID string. Use `uuid()` (v4) for root tasks and `uuidv5('<scanId>:<parentTaskId>:<itemId>', APP_NAMESPACE)` for child tasks. Persist root task IDs in KVS so re-running `onConnectionChange` reuses the same ID (making it an update, not a competing schedule).
18. **Write `TaskInfo` to KVS before scheduling; never delete it on completion** — Always write the `TaskInfo` record to KVS keyed by `taskId` before calling `scheduleOrUpdateTask` or `scheduleChildTask`. On success, set `completed: true` on the record — do NOT delete it. Deleting causes duplicate deliveries to report `ENTITY_NOT_FOUND` and overwrite the earlier success.
19. **Branch on `response.error` for orchestration responses** — `scheduleOrUpdateTask` and `scheduleChildTask` return `{ status: 'ACCEPTED' }` on success, not `{ success: true }`. Check `if (response.error)` to detect failures — do NOT check `if (!response.success)`.
## MCP Prerequisites
| MCP Server | Purpose |
| ------------- | ------------------------------------------------- |
| **Forge MCP** | Manifest syntax, module config, deployment guides |
| **ADS MCP** | Atlaskit components (only if adding Custom UI) |
---
## Agent Workflow — Complete Steps 0–7 in Order
### Step 0: Prerequisites
Check Node.js (`node -v`, requires 22+), Forge CLI (`forge --version`), and login (`forge whoami`). Install missing tools:
```bash
npm install -g @forge/cli
```
Tell the user to run `forge login` in their terminal if not authenticated.
### Step 1: Discover Developer Spaces
> **Note:** `forge developer-spaces list` does NOT exist in Forge CLI 12.x. You cannot list developer spaces non-interactively.
`forge create` requires an interactive TTY to select a developer space. Ask the user to run it themselves:
```
Tell the user:
cd <parent-directory>
ATL_FORGE_ATTRIBUTION_SKILL_NAME=forge-connector forge create --template blank <app-name>
When prompted, select a Developer Space and let it complete.
Come back when done.
```
The `--dev-space-id` flag in the scaffold script is optional and can be omitted — the script has been updated to skip it when not provided.
### Step 1.5: Discover Data & Map to Object Types
**Do this before scaffolding.** Ask the user the following questions to determine the correct Teamwork Graph object type(s). Do not assume or default to `atlassian:document`.
#### Questions to ask the user
1. **What external system or tool are you connecting?**
e.g. Google Drive, ServiceNow, Salesforce, GitHub, Confluence, Slack, Figma, Zendesk
2. **What kind of content do you want to make searchable in Rovo?**
Prompt with examples to help them identify it:
- Files, pages, wiki articles, reports, PDFs → likely `atlassian:document`
- Tasks, tickets, issues, bugs, stories → likely `atlassian:work-item`
- Chat messages, emails, comments → likely `atlassian:message` or `atlassian:comment`
- Projects, workspaces, boards → likely `atlassian:project`
- Code repositories → likely `atlassian:repository`
- Pull requests / merge requests → likely `atlassian:pull-request`
- Git commits → likely `atlassian:commit`
- Design files (Figma, Sketch) → likely `atlassian:design`
- Video recordings → likely `atlassian:video`
- Calendar events, meetings → likely `atlassian:calendar-event`
- Threads, channels → likely `atlassian:conversation`
- Customer accounts or organisations → likely `atlassian:customer-organization`
- Team spaces or org units → likely `atlassian:space`
3. **Is the content a single type or a mix?**
If mixed (e.g. a project management tool with tasks *and* documents), plan to ingest each as its own object type. The scaffold supports one primary type — you can add more `objectTypes` entries in `manifest.yml` later.
4. **Does the admin need to supply credentials (API key, URL, OAuth token) to connect?**
Yes → use `--has-form-config` in the scaffold command.
No (data comes entirely from within Atlassian) → omit the flag.
5. **How often does the source data change?**
This determines the sync cadence. Use **orchestration** (`scheduleOrUpdateTask` + `taskRunner`) for all platform-managed refresh — it handles cadence, retry, and fan-out natively. Only use the legacy `scheduledTrigger` approach if you explicitly need a lightweight cron with no task tracking.
| Frequency | Orchestration interval |
|---|---|
| Hourly | `scheduleInterval: { value: 1, timeUnit: 'hour' }` |
| Daily | `scheduleInterval: { value: 1, timeUnit: 'day' }` |
| Every N minutes (1–60) | `scheduleInterval: { value: N, timeUnit: 'minute' }` |
| Static / one-off | No scheduled refresh needed — ingest once in `onConnectionChange` |
Record the chosen interval before proceeding to Step 2.
6. **Who should be able to see the ingested content in Rovo Search?**
This determines the `permissions.accessControls` on each object. Ask:
- "Is all this content publicly accessible, or does the source system restrict who can see what?"
- "Do you want Rovo Search results to respect those

