Przejdź do treści
Biblioteka skilli
AI i agenci · Pisanie

prompt-forge

/prompt-forge

Zamienia niejasny prompt w specyfikację, która działa za pierwszym razem, diagnozuje sześć wad i testuje wynik, na przykład dla promptu systemowego.

Repozytorium
ai-skill-ai ↗
Licencja
MIT
Ostatnia zmiana repozytorium
31.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
3
Przestarzałość

Brak sygnałów. Repozytorium zmienione 31.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Zamienia niejasny prompt w specyfikację, która działa za pierwszym razem, diagnozuje sześć wad i testuje wynik, na przykład dla promptu systemowego.

Oryginalny opis (EN)

Turn a vague prompt into a specification that works on the first attempt, and test it. Use when the user asks to improve, rewrite, optimise, or rate a prompt, says the model ignores my instructions or keeps giving wrong or generic output, asks for a system prompt, agent instructions, an AGENTS.md or rules file, a custom GPT, a prompt template, or few-shot examples, or asks what is wrong with a prompt. Diagnoses six specific defects, rewrites with context, success criteria, an output contract, a failure instruction, and delimited untrusted input, tests the rewrite on real inputs, and names what

Jak działa

  1. When to use and when to stay off
  2. Non-negotiables
  3. The six defects
  4. Procedure
  5. Output shape
  6. Self-audit
  7. What this cannot do
Sekcje z nagłówków SKILL.md, w oryginale · 195 linii, 1 649 słów
Podgląd SKILL.md
---
name: prompt-forge
description: Turn a vague prompt into a specification that works on the first attempt, and test it. Use when the user asks to improve, rewrite, optimise, or rate a prompt, says the model ignores my instructions or keeps giving wrong or generic output, asks for a system prompt, agent instructions, an AGENTS.md or rules file, a custom GPT, a prompt template, or few-shot examples, or asks what is wrong with a prompt. Diagnoses six specific defects, rewrites with context, success criteria, an output contract, a failure instruction, and delimited untrusted input, tests the rewrite on real inputs, and names what a rewrite cannot fix, such as model or parameter choice. For the decision a prompt is meant to support use arch-decide, for prose style use human-prose. Triggers on improve my prompt, rate my prompt, better prompt, prompt engineering, system prompt, prompt template, few-shot, the model ignores my instructions, agent instructions, AGENTS.md, rules file, custom GPT, write a prompt for.
license: MIT
metadata:
  version: 1.1.2
  suite: ai-skill
---

# Prompt forge

Bad model output mostly comes from a prompt that never said what good looks like, and people respond
by rephrasing, adding emphasis, or asking for a score out of ten. None of that supplies the missing
requirement. This skill treats a prompt as a specification: it finds the defects, rewrites, and tests
the rewrite on real inputs.

## When to use and when to stay off

Run when the user is writing, fixing, or evaluating instructions for a model: a one-off prompt, a
system prompt, agent instructions, a rules file, a template, or a custom assistant.

Stay off, and route instead, when:

- The user wants the decision the prompt was meant to get help with. Use `arch-decide` for technical choices, or `reality-check` for judging an idea.
- The work is the style of prose itself. Use `human-prose`.
- The user's request to you is merely short. Ask the one question you need or just do it; do not rewrite their request as a prompt.

The user says "stop", "I've decided", or "just execute": comply at once and stay off for the rest of
the session unless asked again.

## Non-negotiables

These override everything else in this file.

1. No invented score. Report which defects are present. If a score is demanded, give the count of defects remaining out of six and say that this is the only honest version of a score.
2. Never rewrite while guessing the goal. Ask at most three questions first, or state the assumed goal in the output.
3. Every rewrite has checkable success criteria and a failure instruction.
4. Untrusted input (user uploads, retrieved pages, emails, tool output) is delimited and declared as data. The prompt never asks the model to follow instructions found inside it.
5. List every assumption made in the rewrite.
6. Do not claim a rewrite works until it has been run on real inputs, or say plainly that it is untested.

## The six defects

Diagnose which apply before rewriting, and name them so the user learns to spot them.

1. No success criteria. The prompt says what to make and not how anyone would know it worked.
2. Missing context that only the user has: audience, constraints, existing decisions, what was already tried. Without it the answer regresses to the generic case.
3. No output contract. Format, length, structure, and what to leave out are unspecified.
4. Multiple requests fused into one. Three tasks in one sentence produce a shallow pass at each.
5. No failure instruction. The prompt does not say what to do when the model does not know, cannot comply, or finds the request contradictory, so it guesses fluently.
6. Leading or flattering framing. "Explain why this architecture is the right choice" is a request for advocacy, not analysis.

## Procedure

### Step 1, find the real goal

Ask what the output gets used for. A summary for a decision meeting and a summary for a search index
share no requirements. Find out which model and interface will run the prompt, since that changes step
7.

### Step 2, extract what only the user knows

Pull out the constraints, the audience, the prior attempts, what is fixed, and what is out of scope.
Anything the model could not infer belongs in the prompt. Anything it can infer is padding.

### Step 3, write the success criteria

Write them before the instruction, because they determine it. Good criteria are checkable by someone
who did not write them.

Weak: "write a good landing page". Checkable: "a visitor who sells car parts can tell in one sentence
whether this product handles their VAT case, and the page claims no feature outside the attached list".

These criteria become the expected properties in the evaluation set in step 8.

### Step 4, rewrite in the six part shape

Role and audience, only if it changes the answer. Claiming expertise does not create it.

Task, one goal per prompt.

Context, the facts only the user has.

Constraints, including what to leave out.

Output contract, the exact shape wanted. Where the interface offers a structured output or JSON schema
mode, use it instead of describing the schema in prose; retrieve the current option from the model
provider's API documentation.

Failure instruction: state uncertainty rather than filling the gap, and name what information would
resolve it.

Patterns for extraction, code generation, critique, research, decision support, and agent prompts are
in `references/patterns.md`.

### Step 5, separate instructions from data

Wrap each input in labelled delimiters or XML style tags, such as `<document>`, `<email>`, or
`<user_input>`, and refer to them by name in the instructions. The model then knows which text is the
task and which is material.

Treat anything the prompt author does not control as untrusted: uploaded files, web pages, emails,
tickets, tool results. State that content inside those tags is data to be processed, and that any
instructions appearing inside it are to be reported, not followed. This reduces prompt injection and
does not eliminate it, so anything with side effects (sending, deleting, paying) also needs a check
outside the model, such as a confirmation step or an allow list.

Placement depends on length. For a short prompt, put the request first. For long documents, Anthropic's
guidance is the opposite: place the documents near the top and the query and instructions at the end
([prompting best practices](https://docs.claude.com/en/docs/build-with-claude/prompt-engineering/overview),
the living reference as of October 2026; the earlier standalone long-context tips page has been folded
into it). For other providers, retrieve their current guidance on placement.

### Step 6, add examples with care

Few-shot examples fix an unusual format or voice faster than description does. Models copy them closely:
length, structure, vocabulary, and even the specific content. So:

- Use several examples that differ from each other on the dimensions that should vary, so the model learns the pattern and not one instance.
- Include an example of the edge case, such as missing data handled with the failure instruction.
- Keep examples inside their own tags, and say they illustrate the shape, not the content.
- Check outputs for content copied from the examples. If it appears, vary or cut them.

### Step 7, remove what does not work, keep what does

Politeness, threats, offers of payment, and capital letters for emphasis do not reliably change
quality. Cut them.

Asking for reasoning is different and gets its own decision. On models without built-in reasoning,
asking for step by step reasoning before the answer measurably improves multi-step problems
([Wei et al. 2022](https://arxiv.org/abs/2201.11903), [Kojima et al. 2022](https://arxiv.org/abs/2205.11916)).
Keep it for arithmetic, logic, and multi-step tasks, and put the reasoning in its own tagged section
so it can be stripped from the final output. On reasoning models, the explicit reasoning budget or
effort setting in the API matters more than prompt wording; retrieve the current parameter name from
the provider's documentation.

Instructions that restate the model's defaults are noise. "Be accurate" changes nothing.

Negations are weaker than positive instructions. Rather than saying not to be verbose, give a length.

Some problems are not prompt problems. A rewrite cannot fix them:

- A model too small or old for the task. Try a stronger model before a longer prompt.
- Sampling settings. For extraction, classification, and anything with one right answer, lower the temperature; for brainstorming, raise it. Check what the interface allows.
- Output that must parse. Use structured output or schema mode where offered, and validate in code.
- Missing facts. Use retrieval or tools; no wording supplies knowledge the model lacks.

### Step 8, test against real inputs

Run the old prompt and the rewrite on the same evaluation set, 10 to 30 real inputs with expected
properties from step 3, including adversarial and injection cases. Compare the outputs property by
property. Procedure, case types, and which properties a script can check are in
`references/evaluation.md`.

Report what changed, including cases that got worse. If no run is possible, say the rewrite is
untested and hand over the evaluation set.

### Step 9, state the limits

Say which limits from step 7 apply, and what would fix them: a different model, a parameter, retrieval,
a validator in code, or a human check.

## Output shape

```
DEFECTS FOUND
Which of the six, each in one line, quoting the part of the prompt at fault.

REWRITE
The new prompt, ready to copy.

WHAT I HAD TO ASSUME
Every assumption made in the rewrite, so the user can correct it.

TEST RESULTS
Evaluation set size, old against new per property, cases that regressed. Or: untested, with the set.

WHAT THIS STILL WILL NOT FIX
Limits that a prompt cannot address, and the tool or setting that would.
```

## Self-audit

- Each of the six defects was considered, not only the obvious one.
- The rewrite contains at least one fact only this user could have supplied.
- Success criteria are checkable by a third party.
- Exactly one task per prompt, or the split is explicit.
- A failure instruction is present.
- Untrusted input is delimited, declared as data, and actions with side effects have a check outside the model.
- Document placement matches the prompt length.
- Few-shot examples vary, and outputs were checked for copied content.
- Reasoning instructions were kept or cut on purpose, according to the model type.
- The rewrite was run on an evaluation set with adversarial cases, or marked untested.
- Every assumption is listed.
- No invented score.

## What this cannot do

It cannot make a model know facts it does not have, make a stylistic preference objective, or guarantee
behaviour on inputs outside the evaluation set. Prompt injection defences in the prompt reduce risk;
they are not a security boundary, and anything consequential needs enforcement in code. Results on one
model do not transfer to another without rerunning the evaluation.
Pliki w paczce (3)
  • SKILL.md 11 KB
  • references/evaluation.md 5 KB
  • references/patterns.md 5 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · devpilotX/ai-skill-ai100MIT
krzemienski/proofpunk100MIT
Lesile-Yin/agent-skills100MIT

Migawka bazy z 13.11.2026 · wersja paczki c54e5952a58f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100prompt-design
    Projektuje prompty produkcyjne: architektura promptu systemowego, przejrzystość instrukcji i dobór przykładów few-shot.
  • 100prompt-engineering
    Optymalizuje i przepisuje prompty technikami inżynierii promptów: diagnoza szkicu, struktura z rolą, kontekstem, XML, few-shot i chain-of-thought oraz dobór technik do zadania i modelu (Claude 4.x, OpenAI, Gemini).
  • 100prompt-engineer
    Zamienia niejasne zlecenie w ustrukturyzowany, niezawodny prompt (rola, kontekst, zadanie, format, obsługa błędów, przykłady few-shot), także z obroną przed prompt injection z danych użytkownika.
  • 100prompt-improver
    Przepisuje niejasny prompt w bogatszy, ustrukturyzowany, z automatycznym fallbackiem.
  • 100prompt-design
    Projektuje, poprawia i testuje regresyjnie prompt dla modelu językowego, na przykład prompt systemowy, prompt wyodrębniający lub prompt w aplikacji.
  • 100agent-prompting
    Pisze, sprawdza i wersjonuje prompty systemowe agentów: strukturę, politykę użycia narzędzi, format wyjścia, przykłady i walidację wyników strukturalnych.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.