This repo is a practical starting point for turning AI prompts into reusable, testable skills. I assembled and maintain it from people in the AI industry who are open sourcing their work.
The central belief behind this repo is that skills are the durable layer of AI work. Models will change, tools will change, and different systems will call the work by different names, but a well-written skill can move across them. The skill defines how the work should be done, and the receipts or logs from each run preserve what happened, what was produced, and what was learned. In that sense, the valuable asset is not just the AI model. It is the skill pack and the history of outputs it creates.
If you want to automate skills, you use a harness. A harness is the system that calls the AI, runs skills in sequence, schedules recurring work, or launches multiple agents in parallel. The harness can call different models or tools, but the skill documents remain the center of the workflow. They are the part you own, improve, and carry forward.
If you have ever written a prompt that worked once but was hard to repeat later, this repo is meant to help. The core idea is simple: a useful AI workflow should not live only in a chat transcript. It should become a skill with a clear outcome, required inputs, validation steps, and a receipt of what happened.
Regardless if you trust where a skill pack like this repo comes from, always ask your local AI model (Codex Dekstop, Claude Desktop, or any other model you use) to scan this repo for any vulnerabilities before you start working with it.
## What This Helps You Do
Use this repo when you want to:
- write better prompts for repeatable work
- turn a one-off AI workflow into a reusable process
- make AI agents less likely to skip important steps
- define what "done" means before the AI starts working
- create receipts so future AI runs can understand what happened before
- improve a workflow every time it fails instead of relying on memory
- coordinate multiple AI roles, such as reviewer, designer, domain expert, or code expert
The documents here are not about prompt tricks. They are about making AI work more dependable.
## Who This Is For
This repo can help:
- people who use ChatGPT, Claude, Codex, or other AI tools for real work
- teams who want AI outputs to be more consistent
- builders creating repeatable agent workflows
- non-technical users who want clearer instructions for AI tools
- technical users who want to treat prompts and skills more like software
You do not need to be an AI expert to use this. Start with the OSDR framework, then use the ratchet framework when you are ready to make a workflow more durable.
## The Main Idea
A strong AI workflow should answer these questions:
- What outcome should exist when the work is complete?
- What skill or method should the AI use?
- What data should it rely on?
- How will the result be checked?
- What receipt should be left behind so the work can be reviewed or repeated?
- What should be improved after a failure?
This repo gives language and structure for answering those questions.
## Documents In This Repo
### `OSDR-framework.md`
The Outcome-Skill-Data-Receipt framework is the easiest place to start.
It breaks an AI workflow into:
-`Outcome`: what final state must exist
-`Skill`: how the work should be performed
-`Data`: what information should be used
-`Execution`: the actual run
-`Receipt`: what happened, what was produced, and what was learned
Use this when you are designing a prompt, automation, recurring task, or agent workflow and want to make the request clearer.
### `ratchet-based-skill-framework.md`
This is the deeper skill-design framework.
It explains how to build skills that improve over time. The key idea is the ratchet loop:
1. Run the workflow.
2. Validate the output.
3. Find what failed or was ambiguous.
4. Turn that lesson into a durable artifact.
5. Re-run validation so the same problem is harder to repeat.
A durable artifact might be a test, checklist, schema rule, validation step, anti-pattern, routing example, eval case, or stronger instruction.
Use this when a prompt or workflow matters enough that "it worked once" is not good enough.
### `personas.md`
This defines useful sub-agent personas for multi-agent workflows.
The current personas are:
- Designer
- Architect
- Domain Expert
- Code Expert
- Performance Expert
- Human Advocate
Use these when you want an AI system to review work from more than one perspective. For example, the Human Advocate can look for confusing instructions, while the Code Expert can focus on implementation risk.
### `CHANGELOG.md`
This records notable changes to the framework over time.
Use it to understand what changed and why, especially as the framework becomes more opinionated about receipts, validation, and durable learning.
## How To Use This Repo
### 1. Start With A Real Task
Pick something you already ask AI to do more than once.
Examples:
- summarize meeting notes
- turn a document into action items
- review a code change
- research a market
- create a weekly report
- clean up a spreadsheet
- publish content from draft notes
Do not start by trying to design a perfect AI system. Start with one repeatable job.
### 2. Define The Outcome
Write down what must be true when the work is done.
Example:
```text
Outcome:
Create a weekly project summary that lists completed work, blocked items, upcoming deadlines, and recommended next actions.
```
The outcome should describe the finished state, not every step.
### 3. Define The Skill
Describe how the AI should do the work.
Example:
```text
Skill:
Read the source notes, group related items, separate facts from assumptions, identify missing information, and produce a concise summary for a busy project lead.
```
This is where you capture method, judgment, rules, and format.
### 4. Define The Data
List what the AI is allowed or expected to use.
Example:
```text
Data:
- meeting notes from this week
- project task list
- prior weekly summary
- known deadlines
```
Clear data boundaries reduce hallucination and confusion.
### 5. Define Evaluation
Say how the output should be checked.
Example:
```text
Evaluation:
- every deadline must come from the source material
- action items must have an owner when one is known
- assumptions must be labeled
- unanswered questions must be listed separately
```
Evaluation is what turns a prompt into a more reliable process.
### 6. Require A Receipt
Ask the AI to leave a record of the run.
Example:
```text
Receipt:
- inputs used
- assumptions made
- output created
- validation performed
- issues found
- recommended follow-up
```
Receipts are useful because future runs can learn from past runs instead of starting from zero.
### 7. Add The Ratchet
When something goes wrong, do not only fix the current output. Improve the workflow.
Example:
```text
Failure:
The AI included a deadline that was not in the source notes.
Ratchet:
Add a validation rule: every deadline must include a source reference or be moved to "unconfirmed."
```
This is the most important habit in the repo. Every failure should make the next run better.
## Simple Prompt Template
You can copy this into an AI tool and fill in the blanks:
```text
OUTCOME
What final result should exist when this is complete?
SKILL
What method, role, checklist, or workflow should you use?
DATA
What information should you use? What should you ignore?
EVALUATION
How should we check whether the result is correct, useful, and complete?
RECEIPT
At the end, record what inputs you used, what you produced, what you checked, what failed, and what should improve next time.
RATCHET
If you discover a recurring mistake, ambiguity, or failure, suggest a durable improvement to this prompt or workflow.
```
## Example
```text
OUTCOME
Produce a clear customer-support response that answers the customer's question, acknowledges their concern, and recommends the next step.
SKILL
Act as a careful support specialist. Be concise, friendly, and specific. Do not promise anything that is not supported by the policy docs.
DATA
Use the customer message, the order notes, and the refund policy. Do not invent policy exceptions.
EVALUATION
Check that the response:
- answers the customer's actual question
- uses a calm and respectful tone
- does not include unsupported claims
- includes the next action
RECEIPT
Briefly list the source data used, any assumptions, and any policy uncertainty.
RATCHET
If the policy is unclear, suggest a rule or note that would prevent the same uncertainty next time.
```
## For Less AI-Savvy Users
Think of this repo as a way to make AI instructions less mysterious.
Instead of asking:
```text
Can you help me with this?
```
You are learning to ask:
```text
Here is the result I need.
Here is the method to use.
Here is the information to rely on.
Here is how to check your work.
Here is what to record for next time.
```
That structure helps the AI produce better work, and it helps you notice when the AI skipped something important.
## For More Technical Users
Treat skills like lightweight software artifacts.
A serious skill should have:
- a clear contract
- required inputs
- expected outputs
- validation surfaces
- edge cases
- anti-patterns
- state scope
- host capability requirements
- run receipts
- regression artifacts when failures are found
The stronger version of this repo's philosophy is:
> Build skills as tested execution contracts: validate the artifact, validate the agent behavior, and turn every failure into a durable guardrail.
## Suggested Reading Order
1. Read `OSDR-framework.md` to understand the basic structure.
2. Skim the simple prompt template in this README.
3. Use the template on one real task.
4. Read `ratchet-based-skill-framework.md` when you want to make the workflow repeatable and testable.
5. Use `personas.md` if the workflow needs multiple review perspectives.
6. Check `CHANGELOG.md` when you want to see how the framework is evolving.
## Roadmap
This repo provides a framework for creating prompts, building reusable skills, and tracking the outputs those skills produce.
Skill packs like this may also include deterministic scripts that run without calling an AI model. These are regular code files that perform specific tasks reliably and repeatedly. We often create them with AI assistance, but once they exist, they can run without using AI tokens. That matters because tokens cost money, and deterministic scripts are often faster, cheaper, and more reliable for tasks that are clearly defined.
The next evolution of skill packs is routing: deciding which parts of a skill should run as deterministic code, which parts should use a lightweight AI model, and which parts require a stronger model. Some tasks can be handled by simpler, lower-cost models. Other tasks may need more capable reasoning. Good routing helps complete the work with as little token usage as possible while still preserving quality.
So as you use this repo to design your own skill packs, keep future routing in mind. Over time, the most effective skill packs will not simply call one AI model for everything. They will route each part of the workflow to the cheapest reliable tool or model for that specific job.
## Current Status
This is an evolving personal framework, not a polished product.
The repo is useful today as:
- a prompt-design reference
- a skill-writing template
- a thinking framework for AI workflows
- a foundation for more formal agent systems
Expect the documents to change as the framework is used on real work and improved through the same ratchet process it recommends.