diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..3e91a40 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,118 @@ +# Add a skill + +A skill writes down how a good analyst, fundraiser or data lead does one job, +so that an AI assistant can do it properly for a charity. This way in suits +charity digital leads and people who write prompts. You write mostly plain +English. You need a terminal and [uv](https://docs.astral.sh/uv/) to run the +checks, and Claude Code to run the tests. + +The shared [contributing guide](https://github.com/KindTechUK/.github/blob/main/CONTRIBUTING.md) +and [AI policy](https://github.com/KindTechUK/.github/blob/main/AI_POLICY.md) +apply here. [AGENTS.md](AGENTS.md) holds the full rules. This page is the +short version, with the template and the checklist. + +## What makes a good skill + +- **One job**, that a charity worker would ask for in their own words. +- **It beats the assistant alone.** Its tests are run with the skill and + without it, and it ships only if it does better. +- **Figures come from a tool**, such as the `uk-open-data` command. They never + sit in the skill's text, and the assistant never gives one from memory. +- **Totals, never rows.** A skill never asks for, repeats or works from a + record about one person. +- **It works in any assistant.** It does not name one. + +## Where it goes + +| Folder | For skills about | +| --- | --- | +| `plugins/uk-nonprofit/` | UK charity practice: fundraising, regulation, reporting, policies | +| `plugins/uk-open-data/` | Answering a charity's questions with UK open data | +| `plugins/research/` | Research that keeps a source for every finding | +| `sandbox/` | Drafts that are not ready for a plugin yet | + +## Before you start: the template + +Open an [issue](https://github.com/KindTechUK/plugins/issues) and paste this +in, filled in. Wait for a reply before you write the skill. + +```markdown +**The job:** what the skill produces, such as a draft section of a bid +**Who asks for it:** the role, and the words they would type +**What goes wrong today:** what the assistant gets wrong without a skill. +Try the task three times and write down what happened. +**What it must never do:** for example, invent a funder or quote a figure +without its source +**Where its facts come from:** a tool, or a published source with a date +**Which folder:** uk-nonprofit, uk-open-data, research or sandbox +``` + +When you write the skill itself, start from +[`templates/SKILL.md`](templates/SKILL.md). It has the sections every skill +needs and the standard Guardrails block. + +## Steps + +1. Agree the job in the issue. +2. Do the task three times with no skill, and write down what went wrong. +3. Turn those failures into at least three test cases, including one request + the skill should leave alone. Record how the assistant scores without the + skill. [Tests for a skill](AGENTS.md#tests-for-a-skill) shows the layout. +4. Copy `templates/SKILL.md` into `sandbox//SKILL.md`. Write only + as much as it takes to pass the cases. +5. Run the cases with the skill, and keep going until it beats the assistant + alone. Each run is a real model run, so it costs money. Set a ceiling on + every run, and say in the issue if the cost is a problem. +6. Move the folder into the right plugin, add `evals/triggers.json` and + `evals/benchmark.json`, run the checks below, and open a pull request. + +The checks are free and call no model: + +```bash +uv sync +uv run ruff format --check . +uv run ruff check . +uv run pytest +uv run python scripts/lint_skills.py +``` + +## Checklist + +Copy this into your pull request and tick each line. + +```markdown +- [ ] A maintainer replied to the issue for this skill +- [ ] `name` matches the folder name +- [ ] `description` is in the third person, says what the skill produces and + when to use it in a charity worker's words, and when not to +- [ ] `metadata` has `owner`, `version`, `maturity`, `supervision` and `reviewed` +- [ ] `SKILL.md` has Before you start, Steps, Output, Gotchas, Guardrails, and + Sources and freshness, and is 500 lines or fewer +- [ ] The Guardrails block is the standard one, word for word +- [ ] No assistant is named in the skill +- [ ] Facts that change come from a tool or a dated file in `references/` +- [ ] Any invented postcode ends in C, I, K, M, O or V +- [ ] At least three cases, `triggers.json` with eight requests that should load + the skill and eight that should not, and `benchmark.json` +- [ ] `benchmark.json` shows the skill beats the assistant alone +- [ ] No data about a real person anywhere +- [ ] The four checks pass +- [ ] Commits are signed off (`git commit -s`) +- [ ] The pull request says which tools helped, or "None", and whether the + cases were run again +``` + +## Ideas to start from + +These come from questions charities have asked about AI. + +- A safe-to-share check, before a charity puts a document into an AI tool. +- An AI starting plan, and a proportionate AI policy drafted from the + charity's own answers. +- Themes from free-text feedback: take out what identifies people, group the + comments and count them, with a step where a person reviews the themes. +- More test cases for the first skill, written from real bid questions. + +Issues for this way in carry the +[`lane: skill`](https://github.com/KindTechUK/plugins/labels/lane%3A%20skill) +label. diff --git a/README.md b/README.md index f11317c..9ca7330 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,9 @@ Skills that bring UK charity know-how and UK open data into AI assistants, each one tested against the assistant alone. -Most skill libraries for charities are written for the United States and none publishes test results. This one is written for UK charities, and a skill only ships once its tests show that it helps. - -## What is here - -| Plugin | What it is for | Needs | -| --- | --- | --- | -| [`uk-open-data`](plugins/uk-open-data) | Answering a charity's questions with UK open data, such as evidence of local need for a grant application | The `uk-open-data` command, or the Kindtech connector | -| [`uk-nonprofit`](plugins/uk-nonprofit) | UK charity practice: regulation, fundraising and reporting | Nothing | -| [`research`](plugins/research) | Research that keeps a source for every finding | A terminal | +[Docs](plugins/uk-open-data/README.md) · [Questions and ideas](https://github.com/KindTechUK/uk-open-data/discussions) · [Contribute a skill](CONTRIBUTING.md) -## Install +## Try it In Claude Code: @@ -25,6 +17,16 @@ Then ask for what you need in your own words, for example "help me write the evi The first skill, [evidence of local need and reach](plugins/uk-open-data/skills/local-need-evidence), is at sandbox maturity. `uk-nonprofit` and `research` have no skill yet, so they are not listed for install. +## What is here + +Most skill libraries for charities are written for the United States and none publishes test results. This one is written for UK charities, and a skill only ships once its tests show that it helps. + +| Plugin | What it is for | Needs | +| --- | --- | --- | +| [`uk-open-data`](plugins/uk-open-data) | Answering a charity's questions with UK open data, such as evidence of local need for a grant application | The `uk-open-data` command, or the Kindtech connector | +| [`uk-nonprofit`](plugins/uk-nonprofit) | UK charity practice: regulation, fundraising and reporting | Nothing | +| [`research`](plugins/research) | Research that keeps a source for every finding | A terminal | + ## How a skill earns its place Every skill carries a label that says how far it can be trusted. @@ -47,7 +49,7 @@ Each skill also says how much checking its output needs before you use it, and e You do not need to write code to help. If you work at a charity, the most useful thing is to open an issue describing a task you wish your assistant did better. -To write or change a skill, read [AGENTS.md](AGENTS.md), which holds the rules and the checks, and the shared [contributing guide](https://github.com/KindTechUK/.github/blob/main/CONTRIBUTING.md). +To write a skill, start with [Add a skill](CONTRIBUTING.md): what a good skill is, the template, the steps and the checklist. [AGENTS.md](AGENTS.md) holds the full rules and the checks, and the shared [contributing guide](https://github.com/KindTechUK/.github/blob/main/CONTRIBUTING.md) covers every Kindtech repository. ## Licence diff --git a/plugins/uk-open-data/README.md b/plugins/uk-open-data/README.md index a864a7e..41ee3a6 100644 --- a/plugins/uk-open-data/README.md +++ b/plugins/uk-open-data/README.md @@ -9,10 +9,12 @@ The skills here work in two ways. Where the assistant can run commands, they use `uk-open-data` command on your own computer. In a chat app, they use the Kindtech connector, which takes totals only. -What you can get today, 20 November 2026: the skills, from this repository. The command -is not released yet and the connector is not open to the public yet, so for now a skill -words a result you already hold, tells you which totals to bring, and gives no figure of -its own. This paragraph changes when they open. +What you can get today, 29 November 2026: the skills, from this repository, and the +`uk-open-data` command, from PyPI as a pre-release. The postcode table is published too, +so the command can look up postcodes on your own computer and send none out. The +connector is not open to the public yet, so in a chat app a skill words a result you +already hold, tells you which totals to bring, and gives no figure of its own. This +paragraph changes when the connector opens. ## Install