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

prompt-design

/prompt-design

Projektuje, poprawia i testuje regresyjnie prompt dla modelu językowego, na przykład prompt systemowy, prompt wyodrębniający lub prompt w aplikacji.

Repozytorium
yaap ↗
Licencja
MIT
Ostatnia zmiana repozytorium
13.11.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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 13.11.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

Projektuje, poprawia i testuje regresyjnie prompt dla modelu językowego, na przykład prompt systemowy, prompt wyodrębniający lub prompt w aplikacji.

Oryginalny opis (EN)

Design, improve and regression-test a prompt for a language model (a system or role prompt, a Blueprint skill or command, an extraction prompt, a prompt inside an application). Use it whenever the user writes or changes a prompt, or a model keeps doing the wrong thing or answers inconsistently.

Jak działa

  1. 1. Specify before you write
  2. 2. Write the first version
  3. 3. Test on fixed cases
  4. 4. Change one thing at a time
  5. 5. Keep it maintainable
  6. Report
Sekcje z nagłówków SKILL.md, w oryginale · 90 linii, 781 słów
Podgląd SKILL.md
---
name: prompt-design
description: Design, improve and regression-test a prompt for a language model (a system or role prompt, a Blueprint
  skill or command, an extraction prompt, a prompt inside an application). Use it whenever the user writes or changes
  a prompt, or a model keeps doing the wrong thing or answers inconsistently.
license: MIT
metadata:
  sources: agency-agents/engineering/engineering-prompt-engineer.md
---

# Prompt design

A prompt is a specification that a model reads instead of a person. Treat it like code: decide what correct output
looks like, test it on fixed cases, change one thing at a time, and keep it under version control.

## 1. Specify before you write

Write down, with the user:

- **The task** in one sentence, and who or what consumes the output (a person, a parser, another agent).
- **The output format** exactly: a JSON shape with its fields, a Markdown template, a length in sentences or items.
- **Typical inputs:** three to five real examples.
- **Hard inputs:** empty, very long, ambiguous, in another language, out of scope, hostile ("ignore your
  instructions").
- **What success means** for each, so a case can pass or fail.

Without this, you cannot tell whether a new version is better.

## 2. Write the first version

A structure that works for most prompts:

1. **The task and its context:** what the model is doing, for whom, and why it matters. Context the model cannot know
   (the domain, the users, the conventions) goes here.
2. **Constraints:** format, length, tone, scope, and what to do when the input is out of scope or unclear.
3. **Examples:** one or two input and output pairs that show the format and a hard case. Make them varied, or the
   model copies their surface.
4. **The input,** clearly delimited (with tags or a fenced block), so text inside it is read as data, not as
   instructions.

Guidelines:

- Say what to do rather than only what not to do, and give the reason; a model generalises from reasons better
  than from bare rules.
- Replace vague words with checkable ones: "at most three sentences" instead of "concise".
- Put information the model lacks in the prompt instead of hoping it knows: definitions, lists of allowed values,
  current facts.
- Ask for reasoning before the answer only when the task needs it, and keep it separate from the part that is
  parsed.
- No personas or flattery ("you are a world-class expert"); they add length, not accuracy.

## 3. Test on fixed cases

Run every case against the model and settings that will be used for real, and read every output. Note each surprise:
those are the bugs.

Where the cases live depends on whose prompt it is:

- **A prompt inside an application** is tested like the rest of its code: keep the cases as tests in the project
  (each sends one input and checks the output's shape or a required fact) and run them with the project's own test
  command.
- **A Blueprint prompt** (a skill, a command, an agent's role prompt, a standard) is tested with YAAP's eval cases in
  `.blueprint/evals/`: a prompt, a start state and checks, such as a `file` check on the output's shape and a
  `rubric` check for what a person would judge. Run them with `/eval` and compare runs in the Evals tab. They measure
  YAAP's agent working on the project, so they say nothing about an application's own prompts.

Aim for at least one case per typical input and one per hard input. Add a case for every bug found later, before
fixing it.

## 4. Change one thing at a time

1. Pick the most important failure.
2. Make one change aimed at it.
3. Rerun all cases, not only the failing one: a fix for one case often breaks another.
4. Keep the change only if the total got better, and note what changed and what it did.

Model output varies between runs. Run each case more than once before trusting a small difference, and prefer
checks that do not depend on exact wording.

## 5. Keep it maintainable

- Keep the prompt in a file under version control, not as a string buried in code. Each version goes in with a
  message that says what changed and why.
- Record the model and settings it was tested with; a model update is a reason to rerun the cases.
- Write down known limits: inputs it still handles badly.
- When text from users, web pages or documents goes into the prompt, assume it may contain instructions. Delimit it,
  tell the model to treat it as data, and test with a hostile case. Delimiting helps; it is not a guarantee, so do
  not give the model permissions that an injected instruction could abuse.

## Report

```
Prompt: <file and version>
Cases: <number, and how many pass before and after>
Changed: <each change and the failure it fixed>
Known limits: <inputs that still fail, or "none found">
Not tested: <models, settings or inputs not covered>
```

Wersje

RepozytoriumWynikLicencja
Ta strona · jelvodev/yaap100MIT
tonone-ai/tonone100MIT

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

Pobrania w ostatnich 30 dniach: 2 · ranking

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

Podobne skille

  • 100prompt-hardening
    Wzmacnia prompt systemowy lub prompt dla innego LLM: poprawia niezawodność, spójność i odporność na prompt injection, także przy migracji modelu.
  • 100write-prompt
    Pisze lub poprawia instrukcje dla modelu AI, na przykład reguły w CLAUDE.md, SKILL.md lub prompty do API.
  • 90prompt-engineering
    Tworzy, poprawia i przegląda prompty do LLM, takie jak prompt systemowy, skill albo agent, oraz diagnozuje ich błędy.
  • 84optimize-prompt
    Optymalizuje prompty pod lepsze działanie AI: skraca tokeny, stosuje dobre praktyki prompt engineeringu i dostraja prompt systemowy do używanego modelu.
  • 100prompt-engineering
    Pomaga pisać i poprawiać prompty dla modelu językowego: struktura instrukcji, przykłady, wywoływanie rozumowania, format wyjścia i systematyczna diagnoza, dlaczego prompt zawodzi.
  • 90fillprompt
    Znajduje gotowy, sprawdzony prompt na fillprompt.com i uzupełnia go pod zadanie, na przykład do modelu obrazów, wideo albo agenta.

Uwagi i zgłoszenia

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