Files
misc-productivity-tools-OPEN/prompt-skill-template
2026-06-26 10:54:20 -06:00
..
2026-06-26 10:05:11 -06:00
2026-06-26 10:54:20 -06:00
2026-06-21 06:27:43 -06:00
2026-06-21 06:27:43 -06:00
2026-06-21 06:27:43 -06:00
2026-06-26 10:54:20 -06:00

Prompt Skill Template

This repo is a practical starting point for turning any repeatable task or workflow or 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.

Security Scan NOW!

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
  • create triggers when to run the skill and ensure it operates around edge cases

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.

From Prompt To Autonomous Agent

This repo is meant to scale with your AI maturity.

At the beginning, you use it to write clearer prompts. Then you turn repeated work into reusable skills. Then you add receipts, evaluation, and ratchet loops so the workflow improves over time. The advanced end state is a fully autonomous agent system: a harness that runs loops, routes context, calls deterministic tools, manages memory, enforces permissions, observes its own work, and leaves an audit trail.

That advanced end state is covered in advanced-ai-agent-design-framework.md. It is the place to go when you are ready to move beyond "how do I prompt this well?" and start asking "how do I design an agent that can safely act, remember, coordinate, and improve?"

In short:

  • OSDR-framework.md helps define the work.
  • ratchet-based-skill-framework.md helps make the work repeatable and self-improving.
  • advanced-ai-agent-design-framework.md helps design the full autonomous agent system around the work.

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.

advanced-ai-agent-design-framework.md

This is the advanced autonomous-agent design framework and the long-term destination for this repo.

It takes the repo from reusable prompts and skills into full agent-system design: identity, permissions, context routing, harness loops, deterministic tools, memory, sandboxing, observability, safety, governance, and modular future-proofing.

Use this when you are designing agents that act over time, call tools, maintain memory, coordinate with other agents, or need checks and balances before high-stakes actions. This is where advanced users can think through the full system around a skill: not just the prompt, but the runtime, context, tools, state, evaluation, permissions, and audit trail required for safe autonomous operation.

Summary:

  • Starts with identity and trust so the agent knows who it represents and what it is allowed to do.
  • Separates the harness, tools, skills, resolvers, memory, and infrastructure into clear layers.
  • Defines the loop for autonomous execution: trigger, route, reason, act, store, evaluate, and improve.
  • Adds observability, sandboxing, governance, and modularity so the system can scale without becoming fragile.

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

You loosely define below, then use the templates in this repo to have AI build the skill.

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:

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:

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:

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:

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:

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:

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:

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

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:

Can you help me with this?

You are learning to ask:

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. Read advanced-ai-agent-design-framework.md when you want to move from reusable skills into autonomous agent systems.
  6. Use personas.md if the workflow needs multiple review perspectives.
  7. 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.

Determinstic Scripts

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.

Feedback Loops

When we create a skill, or skill pack that includes many skills and determinstic scripts for a workflow, using the templates in this repo, what we are doing additionally is building a feedback layer into the process of executing skills, which allows AI to use this feedback to improve the skills and process itself. The end goal is not just to have AI execute workflows for us, but to do so in a way where it learns and improves.

Routing

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 in mind about also creating deterministic skills, creating feedback loops so AI can learn and routing to maximize efficiency.

Autonomous Agent Systems

The advanced path is to wrap skills in a real agent system.

That means adding:

  • a harness that can run loops and stop when done
  • resolvers that decide what context to load and where outputs go
  • deterministic tools with clear inputs, outputs, and permissions
  • memory that acts as an audit trail
  • observability so runs can be replayed and inspected
  • sandboxing and governance for risky actions
  • modular boundaries so models, tools, prompts, and memory systems can be swapped later

Use advanced-ai-agent-design-framework.md as the checklist for that stage. It is not the first thing most people need, but it is the direction this repo points toward: dependable autonomous agents built from clear skills, tested tools, routed context, durable receipts, and continuous improvement.

Skill Packs As Communication Rail

As consumers increasingly rely on AI as their primary gateway to the internet, information comes to them — they no longer go looking for it. So how does a brand reach them in that world? One answer is the skill pack: a downloadable bundle a consumer installs into their AI. Once active, it automatically pulls information from the brand, filters it based on the consumer's preferences, and surfaces only what's relevant to them. Think of it as the inverse of email marketing. Instead of a brand pushing a message and hoping the subject line earns an open, the consumer's AI pulls from a richer stream of brand content — new products, events, articles, announcements — and delivers only what that specific person would actually care about. The result is a better experience on both sides: brands can publish more freely without worrying about overwhelming people, and consumers get a curated feed without having to wade through irrelevant content.

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.