forge-cost-optimizer

forge-cost-optimizer is a skill for Claude Code from atlassian/forge-skills. It costs 137 tokens per session (2,540 once invoked), scanned A, original, Apache-2.0.

A review workflow for reducing resource use in Atlassian Forge apps. Forge is Atlassian’s app platform, and its usage can depend on invocations, compute time, storage, logs, and data volume.

In plain words
What is it for?
Use it to reduce invocations, replace polling with events, filter triggers, batch API calls, limit fields and payloads, reduce storage and logs, and tune memory or execution time.
Why use it?
It helps avoid unnecessary work and platform consumption while keeping the app correct, secure, and maintainable.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the forge-skills plugin — 6 skills, 2 MCP servers shipped together

Good fit Use it to reduce invocations, replace polling with events, filter triggers, batch API calls, limit fields and payloads, reduce storage and logs, and tune memory or execution time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atlassian/forge-skills/forge-cost-optimizer
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 · 21 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.

Any agent
npx skills add atlassian/forge-skills --skill forge-cost-optimizer
Clone the repo
git clone --depth 1 https://github.com/atlassian/forge-skills

Made for: Claude Code.

Or install forge-skills, the plugin that ships this one along with the rest of its 6 skills, 2 MCP servers.

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 forge-cost-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/atlassian/forge-skills/forge-cost-optimizer.svg)](https://agentmods.dev/skills/atlassian/forge-skills/forge-cost-optimizer)
Your own site
<a href="https://agentmods.dev/skills/atlassian/forge-skills/forge-cost-optimizer"><img src="https://agentmods.dev/badge/skills/atlassian/forge-skills/forge-cost-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,540 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00137 $0.02540
Opus 5 $0.00068 $0.01270
Sonnet 5 $0.00027 $0.00508
Haiku 4.5 $0.00014 $0.00254

Measured 7d ago against content hash 027e9ad04520, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

forge-cost-optimizer scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/forge-cost-optimizer/SKILL.md · 253 lines

How it starts

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

Forge Cost Optimizer

Optimize Forge apps for lower platform consumption while preserving correctness, security, and maintainability. This skill turns Atlassian's Forge cost optimization guidance into an actionable agent workflow.

Source Guidance

Base recommendations on Atlassian's official guide: https://developer.atlassian.com/platform/forge/optimise-forge-costs/

If live Forge documentation tools are available, search the Forge docs for the exact module or API before changing code that depends on current manifest syntax, bridge APIs, storage APIs, trigger filters, or Forge Remote behavior.

Core Principle

Prioritize changes that reduce unnecessary work:

  1. Avoid invocations entirely — move safe work to UI Kit / Custom UI frontend, use context from the bridge, replace polling with events, add trigger filters.
  2. Do less work per invocation — bulk API calls, field selection, source-side filtering, pagination, early exits, bounded concurrency.
  3. Reduce billed data volume — trim resolver payloads, reduce KVS reads/writes, avoid large log payloads, use entity properties where appropriate.
  4. Tune compute cost — right-size memoryMiB, reduce duration, offload only when the operational trade-off is justified.

Never reduce costs by weakening authorization, exposing secrets to the frontend, skipping required validation, dropping necessary error handling, or making data stale beyond the user's business requirements.

When Triggered

When the user asks to optimize an existing Forge app, immediately inspect the app before asking questions unless the target app directory is ambiguous.

Default behavior is audit-first: complete the cost optimization audit, present prioritized recommendations, and ask the user whether they want the agent to make the recommended changes. Do not modify files during the initial audit unless the user explicitly requested implementation in the same prompt, such as "make the changes", "apply the optimizations", "fix these issues", or "update the code".

Read the full file on GitHub · 253 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 253 lines · 137 tokens per session scan A 027e9ad04520

Subscribe to this mod's changes

forge-cost-optimizer is a skill published in the GitHub repository atlassian/forge-skills (21 stars, last pushed 2d ago), licensed Apache-2.0. It adds 137 tokens to every session and 2,540 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories