/forge-skills:forge-security-reviewfrom forge-skills
Performs a white-box security review of Atlassian Forge apps using structured, Forge-specific security rules and evidence-driven reporting.
Ships in forge-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Runs a Forge-focused white-box security review and reports validated findings with exploitability, impact, evidence, and remediation guidance.
Use manifest-driven routing by default to reduce token usage. Do not load every rule file up front.
The review rules are packaged with this skill under assets/:
assets/security-rules/_global-forge.mdcassets/security-rules/forge-*/_index-*.mdcassets/security-rules/forge-*/*.mdcassets/opengrep-rules/forge-security-rules.yaml (44 rules). Each rule's metadata.skill_rule names the .mdc file to apply to its hits.When this skill is triggered:
Run the deterministic layer first, from this skill directory:
scripts/run_static_analysis.sh <forge-project-root-directory> (macOS, Linux)scripts/run_static_analysis.ps1 <forge-project-root-directory> (Windows)The script runs FSRT and OpenGrep (with the packaged Forge rule packs) and writes everything under <forge-project-root>/security-audit-artifacts/: static-analysis-summary.json, fsrt/report.json, opengrep/results.json and opengrep/results.sarif, plus a log per tool. Read the summary before anything else. A non-zero exit, or a tool whose status is not_run, means that tool did NOT analyse the project: record it as a coverage gap and never treat its missing findings as a clean result.
Read manifest.yml first before any deep code review.
Load assets/security-rules/_global-forge.mdc first.
Load only relevant category index rules based on manifest and code signals.
Load deep subrules only when the matching detection heuristics are triggered by real code patterns or by deterministic findings that point at them.
Perform an evidence-based security review across:
Do not modify app code unless the user explicitly requests fixes.
Write all scan outputs and generated artifacts to security-audit-artifacts/.
Read manifest.yml first and extract:
permissions.scopespermissions.external.fetchpermissions.content.scriptsmodules (resolver/webtrigger/scheduledTrigger/rovo/etc.)remotesapp.runtime.nameBuild an execution map:
api.asUser() vs api.asApp() pathsAlways load first:
assets/security-rules/_global-forge.mdcThen load only relevant category index rules:
| Signal | Load |
|---|---|
Any meaningful scope usage, mutations, or asApp() usage | assets/security-rules/forge-authn-authz/_index-authn-authz.mdc |
Any module with access: anonymous or unlicensedAccess | assets/security-rules/forge-authn-authz/_index-authn-authz.mdc, and check every storage write reachable from that module |
webtrigger or scheduledTrigger modules | assets/security-rules/forge-webtrigger-entrypoints/_index-webtrigger-entrypoints.mdc |
apiRoute or endpoint modules | assets/security-rules/forge-webtrigger-entrypoints/_index-webtrigger-entrypoints.mdc (externally reachable endpoints; review authn/authz manually) |
permissions.external.fetch or remotes | assets/security-rules/forge-egress-remotes/_index-egress-remotes.mdc (a remote backend is not locally assessable; say so) |
| SQL APIs or untrusted input reaching resolver sinks | assets/security-rules/forge-injection/_index-injection.mdc |
| Multi-tenant patterns, module/global state, cache reuse | assets/security-rules/forge-tenant-isolation/_index-tenant-isolation.mdc |
| Credentials/tokens/secrets handling | assets/security-rules/forge-secrets-storage/_index-secrets-storage.mdc |
| Unsafe CSP or likely scope/config misconfiguration | assets/security-rules/forge-manifest-config/_index-manifest-config.mdc |
| Rovo modules/actions | assets/security-rules/forge-rovo-agents/_index-rovo-agents.mdc |
| Baseline logging/error/static analysis concerns | assets/security-rules/forge-auditing/_index-auditing.mdc |
| Dependency/package risk review | assets/security-rules/forge-misc/_index-misc.mdc |
Subrule policy:
extra.metadata.skill_rule; load that file when triaging the finding.For each loaded category:
ERROR rules match code that is the defect (a user-controlled value reached the sink with no recognised sanitiser). WARNING rules mark the right place to look; their message says what you must confirm. metadata.security-severity is an ordering hint, not the reported score.forge-webtrigger-missing-auth and forge-webtrigger-literal-shared-secret: resolve modules.webtrigger[].function -> modules.function[].handler and drop any hit whose enclosing function is not a declared web trigger handler. Say that you dropped it. Also check every declared web trigger handler the rules did not flag; authentication implemented in a helper the regex cannot see still needs to be read.asApp() calls without a permission check). Report each location once and cite every tool that flagged it.api.asApp() call site yourself and trace helper-function parameters back to resolver payloads; a caller-controlled id that reaches asApp() through a helper is not flagged.dangerouslySetInnerHTML or innerHTML through React state (for example setHtml(await invoke(...)) and a later render of html) is not flagged, because the rules follow a value from the call to the sink only within one function. Follow the results of invoke(), requestJira(), requestConfluence(), requestBitbucket() and view.getContext() through state into HTML sinks manually.If the user asks for a narrow review (for example, only authz), load:
Still mention any obvious critical findings observed outside scope.
api.asUser() / api.asApp() call pathsEvidence discipline:
If the user asks for a full scan, run the complete workflow from:
assets/security-rules/forge-auditing/static-analysis-forge.mdcBundled and pinned: FSRT and OpenGrep with the Forge rules. Expected tools (when available): npm audit, Snyk, gitleaks.
static-analysis-summary.json), every tool that was skipped or did not run and why, files the scanners could not analyse, and every category index that was not loaded. An incomplete analysis must never be presented as a clean result.README.md (opens in a new tab)assets/opengrep-rules/forge-security-rules.yaml (opens in a new tab)assets/security-rules/_global-forge.mdc (opens in a new tab)assets/security-rules/forge-auditing/_index-auditing.mdc (opens in a new tab)assets/security-rules/forge-auditing/static-analysis-forge.mdc (opens in a new tab)assets/security-rules/forge-authn-authz/_index-authn-authz.mdc (opens in a new tab)assets/security-rules/forge-authn-authz/asapp-privilege-escalation.mdc (opens in a new tab)assets/security-rules/forge-authn-authz/display-conditions-bypass.mdc (opens in a new tab)assets/security-rules/forge-authn-authz/missing-resolver-authz.mdc (opens in a new tab)assets/security-rules/forge-authn-authz/prefer-context-authz.mdc (opens in a new tab)assets/security-rules/forge-egress-remotes/_index-egress-remotes.mdc (opens in a new tab)assets/security-rules/forge-egress-remotes/data-egress-redirects.mdc (opens in a new tab)assets/security-rules/forge-egress-remotes/wildcard-permissions.mdc (opens in a new tab)assets/security-rules/forge-injection/_index-injection.mdc (opens in a new tab)assets/security-rules/forge-injection/prototype-pollution.mdc (opens in a new tab)assets/security-rules/forge-injection/rce-code-execution.mdc (opens in a new tab)assets/security-rules/forge-injection/sql-injection.mdc (opens in a new tab)assets/security-rules/forge-injection/ssrf.mdc (opens in a new tab)assets/security-rules/forge-injection/xss.mdc (opens in a new tab)assets/security-rules/forge-manifest-config/_index-manifest-config.mdc (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/forge-app-builderPlan, 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./forge-app-reviewPerforms 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-connectorGuides 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.
/forge-cost-optimizerOptimizes Atlassian Forge apps to reduce platform consumption and avoid unnecessary costs using Atlassian's "Optimise Forge platform costs" guidance. Use when the user asks to optimize Forge app costs, reduce Forge invocations, lower GB-seconds, reduce storage or log usage, tune memory, replace polling, improve scheduled triggers, reduce KVS writes, move work to the frontend, use bridge APIs, batch API calls, add caching, or evaluate Forge Remote trade-offs. By default, perform an audit first and offer to make the recommended changes after presenting the audit. Only modify files immediately when the user explicitly asks the agent to implement or apply optimizations.
/forge-debuggerDiagnoses and fixes issues in Atlassian Forge apps. Use this skill whenever a Forge app has errors, crashes, shows blank UI, fails to deploy, doesn't appear after installation, has permission issues, or produces unexpected output. Trigger on any mention of forge logs, forge deploy errors, resolver errors, blank panels, missing scopes, Custom UI not rendering, production vs dev discrepancies, or any Jira/Confluence app that "stopped working". Also trigger when the user asks to debug, troubleshoot, investigate, or fix a Forge app issue — even if they haven't used the word "Forge" but describe a Jira panel or Confluence macro acting up./forge-onboardingGuide a first-time Forge builder through building Forge Guru, a Rovo Agent that answers Forge questions. Use for Forge onboarding, a first Forge or Rovo app, or resuming this tutorial. Route unrelated existing-app changes, debugging, reviews, and connector work to the specialist skills.npx claudepluginhub atlassian/forge-skills --plugin forge-skillsOther plugins' skills for the same job