Skip to content
Back to skills

Forge Llm App Engineering

ASecurity

Build features on LLM APIs: prompts as code, structured output, evals, cost and latency budgets, and prompt-injection defenses

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsrustapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill forge-llm-app-engineering --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Forge Llm App Engineering?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Forge Llm App Engineering
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-forge-llm-app-engineering/badge)](https://www.skillsdirectory.com/skills/ansh44233-forge-llm-app-engineering)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: forge-llm-app-engineering
description: "Build features on LLM APIs: prompts as code, structured output, evals, cost and latency budgets, and prompt-injection defenses"
---

<!-- Generated from catalog/skills/llm-app-engineering/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->

# LLM application engineering

Use when code calls a model API (Anthropic, OpenAI, Gemini, local models).

## Prompts are code
- Keep prompts in versioned files or constants next to the code that uses them, with the variables clearly marked.
- Separate instructions from data. Put untrusted content (user input, web pages, documents, tool output) in clearly delimited sections and tell the model to treat it as data.
- Ask for structured output (JSON schema / tool calling) and validate it with a schema; retry or fail clearly on invalid output.

## Evals before shipping
- Build a small eval set of real inputs with expected properties (correct fields, refusal when appropriate, no leaked secrets).
- Run it on every prompt or model change and compare against the previous version. Track the pass rate, not vibes.

## Cost and latency
- Log tokens in and out per request. Set `max_tokens`. Use prompt caching for long stable prefixes where the provider supports it.
- Route easy tasks to smaller models and keep the big model for hard ones; measure quality on the eval set when you switch.
- Stream long responses, set timeouts, and retry only on retryable errors (429/5xx) with backoff.

## Safety
- The model's output is untrusted: never execute it, never render it as raw HTML, and validate any action it proposes against an allow-list.
- Tools the model can call must enforce the user's permissions server-side.
- Keep API keys on the server; never ship them to the browser or mobile apps.

## Verify
Unit tests with recorded responses or a stub client, the eval run, and a check that logs contain no prompts with personal data unless that is intended and disclosed.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.