static-analysis-forge

static-analysis-forge is a cursor rule for Cursor from atlassian/forge-skills. It costs 10 tokens per session (2,483 once invoked), scanned A, original, Apache-2.0.

A set of static code-analysis tools and patterns for security reviews of Atlassian Forge apps. Static analysis examines source code for suspicious patterns without running the application.

In plain words
What is it for?
Use Semgrep, FSRT, Snyk, or ESLint security plugins to scan Forge code, including checks for unsafe SQL construction and related injection risks.
Why use it?
It adds Forge-specific checks to general JavaScript and TypeScript scanning, helping reveal security problems that generic tools may miss.

Cursor rule for Cursor ✓ vendor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use Semgrep, FSRT, Snyk, or ESLint security plugins to scan Forge code, including checks for unsafe SQL construction and related injection risks.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/atlassian/forge-skills/static-analysis-forge
About the project

Atlassian Forge Skills supports Atlassian Forge, a platform for building and deploying apps that extend products such as Jira and Confluence. Its skills and MCP-backed tools help coding agents create Forge apps, review them before deployment, optimize usage, troubleshoot failures, and work with Forge APIs and the Atlassian Design System.

atlassian/forge-skills · 35 stars · on GitHub · developer.atlassian.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/atlassian/forge-skills

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for static-analysis-forge

README.md
[![agentmods](https://agentmods.dev/badge/rules/atlassian/forge-skills/static-analysis-forge/github.svg)](https://agentmods.dev/rules/atlassian/forge-skills/static-analysis-forge)
Your own site
<a href="https://agentmods.dev/rules/atlassian/forge-skills/static-analysis-forge"><img src="https://agentmods.dev/badge/rules/atlassian/forge-skills/static-analysis-forge/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for static-analysis-forge

Your own site · 80×15
<a href="https://agentmods.dev/rules/atlassian/forge-skills/static-analysis-forge"><img src="https://agentmods.dev/badge/rules/atlassian/forge-skills/static-analysis-forge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,483 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.02483
Opus 5.5 $0.00004 $0.00993
Sonnet 5.5 $0.00002 $0.00497
Haiku 4.5 $0.00001 $0.00248

Measured 20d ago against content hash 73986e1c6ea8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

static-analysis-forge scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

| RCE / sandbox | `eval`, `new Function`, `child_process`, `fs` in backend code | OpenGrep `forge-sandbox-no-*` |
skills/forge-security-review/assets/security-rules/forge-auditing/static-analysis-forge.mdc · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context

  • Static analysis for Forge apps needs Forge-specific rules in addition to standard JavaScript/TypeScript scanning: the dangerous sinks are Forge APIs (asApp(), storage, sql, invokeRemote, web trigger handlers) and the manifest, not generic Node.js calls.
  • The skill ships a deterministic layer for exactly this: FSRT (Forge Security Requirements Tester, Atlassian Labs) plus OpenGrep running the Forge rules under assets/opengrep-rules/. Both are pinned by release and SHA-256 and run by one script.
  • Deterministic results are leads, not verdicts. Every hit still goes through the source -> validation/authz -> sink trace and CVSS v3.1 scoring described in the global baseline.

Deterministic Layer (run first)

# From the skill directory. Downloads the pinned binaries on first use and verifies their checksums.
scripts/run_static_analysis.sh <forge-project-root>      # macOS / Linux
scripts/run_static_analysis.ps1 <forge-project-root>     # Windows (PowerShell 7)

Outputs, all under <forge-project-root>/security-audit-artifacts/:

File Content
static-analysis-summary.json Per-tool status (completed, completed_with_errors, completed_with_warnings, skipped, not_run), versions, finding counts
fsrt/report.json FSRT findings (vulns[] with check_name, description, proof, severity, marketplace_security_requirement)
fsrt/fsrt.log FSRT log; Could not scan / Unable to scan lines mean the project was not analysed
opengrep/results.json OpenGrep findings (results[] with check_id, path, start/end, extra.severity, extra.message, extra.metadata) and file-level errors[]
opengrep/results.sarif Same findings as SARIF 2.1.0 for IDE and CI viewers
opengrep/opengrep.log OpenGrep console output

Reading the summary:

  • Exit code 0 means every tool completed. Exit code 1 means at least one tool is not_run: it did not analyse the project, so its empty result is not evidence of anything. Record it in the report's coverage section and review that category manually.
  • completed_with_errors (OpenGrep) lists files it could not parse or that timed out under errors[]; name them as coverage gaps.
  • FSRT needs network access to developer.atlassian.com on its first run to cache Atlassian API specifications; without it the tool exits non-zero and is reported not_run.
  • FSRT cannot analyse projects whose source is already transpiled (a "use strict"; first line); the log says so. Review such projects with the OpenGrep results and manual tracing only.

Using the OpenGrep Findings

  • extra.metadata.skill_rule names the rule file under assets/security-rules/ to apply to the hit. Open it and run its Detection Checklist on the flagged location before reporting.
  • extra.severity is the rule's confidence: ERROR means the matched code is the defect (a user-controlled value reached the sink without a recognised sanitiser); WARNING means the location is the right place to look and the message says what must still be confirmed.
  • extra.metadata.security-severity is an ordering hint. The reported severity is always your own CVSS v3.1 score.
  • Rules marked requires_manifest_correlation: true (web trigger authentication) must be checked against manifest.yml: resolve modules.webtrigger[].function to modules.function[].handler and drop any hit whose function is not a declared web trigger handler. Say that you dropped it.
  • Group WARNING findings from the same rule by their key or template (for example one storage-key template per app) and triage the template once.
  • FSRT and an OpenGrep rule can flag the same location (for example literal JWT secrets, Basic auth with Atlassian API tokens, asApp() calls without a permission check). Report each location once and cite every tool that flagged it.
  • The rules are intra-procedural. A caller-controlled id that reaches asApp() through a helper function parameter is not flagged; list every asApp() call site yourself and trace helper parameters back to resolver payloads.

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago Changed · -56 lines 73986e1c6ea8
  2. 3mo ago First seen · 213 lines · 10 tokens per session scan A 471a47af96c4

Subscribe to this mod's changes

static-analysis-forge is a cursor rule published in the GitHub repository atlassian/forge-skills (35 stars, last pushed 4d ago), licensed Apache-2.0. It adds 10 tokens to every session and 2,483 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

static-analysis-forge compared with cursor rules from other repositories

static-analysis-forge next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
static-analysis-forgeatlassian/forge-skillsCursor rule354d agoApache-2.0A10Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor
angular-20angular/angularCursor rule102k4d agoMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
shared-plane-packagesprisma/ormCursor rule48ktodayApache-2.0A0Cursor