forge-connector
Installation
SKILL.md
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
- Must install in Jira — Apps using Teamwork Graph modules must be installed on a Jira site. Confluence-only installs will not work.
- Never ask for credentials in chat — Direct users to run
forge loginin their own terminal. - Always run the scaffold script yourself — Do not only give manual instructions; run
scripts/scaffold_connector.pyto generate the boilerplate. - Always ask the user for their Atlassian site URL when install is needed — never discover or guess it.
- Atlassian deletes data on disconnect — When
action = 'DELETED', the app only needs to clean up local state; Atlassian removes the Teamwork Graph data automatically. - Handler arguments are passed directly — Forge passes the request object as the first argument to handlers, NOT nested under
event.payload. Config values are atrequest.configProperties, NOTevent.payload.config. This is the most common source ofTypeError: Cannot destructure property of undefinederrors. - Use
@forge/kvsfor storage — Importkvsfrom@forge/kvs. Do NOT use@forge/storage— itsstorageexport isundefinedat runtime in connector functions. - Use
graphnamed export from@forge/teamwork-graph— The correct import isconst { graph } = require('@forge/teamwork-graph'). Callgraph.setObjects({ objects, connectionId }). Do NOT importsetObjectsas a named export directly. validateConnectionHandlermust return{ success, message }— Do NOT throw an Error. Return{ success: false, message: '...' }to reject,{ success: true }to accept.functiondeclarations belong undermodules— Inmanifest.yml,function:is a key undermodules:, not a top-level key. Placing it at the top level causes a lint error.formConfigurationusesformarray withtype: header— Do NOT usefields:orbeforeYouBegin:. The correct format usesform: [{ key, type: header, title, description, properties: [...] }].- Scopes are
read/write/delete:object:jira— Useread:object:jira,write:object:jira,delete:object:jira. The scopesread:graph:teamworkandwrite:graph:teamworkare invalid and will failforge lint. - Set
ATL_FORGE_ATTRIBUTION_SKILL_NAME=forge-connectoronforgecommands run for this skill — prefixforgeinvocations with this env var: ones you run in the shell (e.g.forge lint,forge logs,forge deploy) and the interactiveforge createcommand 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 areforge loginandforge tunnel(user-run auth / live-dev commands).