@diffra-ai/cli 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/bundle/chunks/{anthropic-messages-UM2LSKVG.js → anthropic-messages-X6WVALGW.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-LLULQ6UR.js → azure-openai-responses-NWJUHXDZ.js} +1 -1
- package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
- package/dist/bundle/chunks/chunk-33NXM7QU.js +30 -0
- package/dist/bundle/chunks/{chunk-UBBD6YWP.js → chunk-7CGSQK56.js} +1 -1
- package/dist/bundle/chunks/{chunk-6NW7EDTU.js → chunk-C5DQBSLC.js} +6 -6
- package/dist/bundle/chunks/{chunk-37INV3TW.js → chunk-IQ4GJTRS.js} +1 -1
- package/dist/bundle/chunks/{chunk-MWJ5PWKE.js → chunk-JZRWXZHG.js} +1 -1
- package/dist/bundle/chunks/{chunk-Y5LGEDHU.js → chunk-L2DZJPGE.js} +1 -1
- package/dist/bundle/chunks/{chunk-J2CQ7AOB.js → chunk-QNL2W5AW.js} +1 -1
- package/dist/bundle/chunks/{chunk-I6QEKFFB.js → chunk-RV73LYFM.js} +1 -1
- package/dist/bundle/chunks/{chunk-BSCVN57O.js → chunk-WO7C3QOT.js} +1 -1
- package/dist/bundle/chunks/{chunk-QCEU5NDS.js → chunk-WYEDFTGD.js} +1 -1
- package/dist/bundle/chunks/{chunk-MAMCTGRH.js → chunk-XT6WUZXZ.js} +1 -1
- package/dist/bundle/chunks/{cli-VEFNOOXB.js → cli-LFWEPHUW.js} +1 -1
- package/dist/bundle/chunks/{cloudflare-workers-ai-system-one-VQHACWH5.js → cloudflare-workers-ai-system-one-TVT4UQJJ.js} +1 -1
- package/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/bundle/chunks/{google-generative-ai-YFRD2UAD.js → google-generative-ai-MBGYEF7P.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-7EWCT4BL.js → google-vertex-BOTZRVRN.js} +1 -1
- package/dist/bundle/chunks/{llama-cpp-classify-D5PC6EEP.js → llama-cpp-classify-OLEUL2TP.js} +1 -1
- package/dist/bundle/chunks/{mistral-conversations-ILNLXCLF.js → mistral-conversations-5P5FZUVD.js} +1 -1
- package/dist/bundle/chunks/{openai-codex-responses-YESP5ZRN.js → openai-codex-responses-3AFER2OO.js} +1 -1
- package/dist/bundle/chunks/{openai-completions-BKYCRYVB.js → openai-completions-KCHGXEPR.js} +1 -1
- package/dist/bundle/chunks/{openai-decisions-OZVDLRU3.js → openai-decisions-V6S27AJQ.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-GSXMBGMK.js → openai-responses-3SN2VI4R.js} +1 -1
- package/dist/bundle/chunks/{openrouter-images-TK5PJTOE.js → openrouter-images-QHMQBMZX.js} +1 -1
- package/dist/bundle/chunks/{pi-messages-AHAEGVU4.js → pi-messages-4P7GT7ZM.js} +1 -1
- package/dist/bundle/chunks/{typesafe-system-one-XHINCFVH.js → typesafe-system-one-QXVNQK47.js} +1 -1
- package/dist/bundle/chunks/{virtual-modules-7F3I52A6.js → virtual-modules-5D2HOQQM.js} +1 -1
- package/dist/bundle/cli-runtime.js +1 -1
- package/dist/bundle/cli.js +0 -0
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/cli.js +0 -0
- package/dist/core/model-resolver.js +3 -3
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/extensions/skills/bundled/find-skills/LICENSE +21 -0
- package/dist/extensions/skills/bundled/find-skills/SKILL.md +117 -0
- package/dist/extensions/skills/bundled/grill-me/LICENSE +21 -0
- package/dist/extensions/skills/bundled/grill-me/SKILL.md +44 -0
- package/dist/extensions/skills/bundled/handoff/LICENSE +21 -0
- package/dist/extensions/skills/bundled/handoff/SKILL.md +31 -0
- package/dist/extensions/skills/bundled/mcp-builder/LICENSE.txt +202 -0
- package/dist/extensions/skills/bundled/mcp-builder/SKILL.md +260 -0
- package/dist/extensions/skills/bundled/mcp-builder/reference/evaluation.md +432 -0
- package/dist/extensions/skills/bundled/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/dist/extensions/skills/bundled/mcp-builder/reference/node_mcp_server.md +972 -0
- package/dist/extensions/skills/bundled/mcp-builder/reference/node_mcp_server_v2.md +747 -0
- package/dist/extensions/skills/bundled/mcp-builder/reference/python_mcp_server.md +719 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/LICENSE +21 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/SKILL.md +251 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/app-interface.csv +33 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/charts.csv +26 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/colors.csv +195 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/google-fonts.csv +1935 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/icons.csv +106 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/landing.csv +35 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/motion.csv +21 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/products.csv +195 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/angular.csv +51 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/html-tailwind.csv +60 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/nextjs.csv +62 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/nuxt-ui.csv +84 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/nuxtjs.csv +68 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/pyside6-qss.csv +103 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/react.csv +67 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/shadcn.csv +69 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/svelte.csv +56 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/uno.csv +60 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/winui.csv +60 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/styles.csv +90 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/typography.csv +75 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/ui-reasoning.csv +195 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/data/ux-guidelines.csv +142 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/references/pro-rules.md +117 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/references/quick-reference.md +275 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/scripts/core.py +1111 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/scripts/design_system.py +1922 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/scripts/preview.py +557 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/scripts/reasoning_contract.py +123 -0
- package/dist/extensions/skills/bundled/ui-ux-pro-max/scripts/search.py +257 -0
- package/dist/extensions/skills/index.d.ts +4 -4
- package/dist/extensions/skills/index.d.ts.map +1 -1
- package/dist/extensions/skills/index.js +9 -4
- package/dist/extensions/skills/index.js.map +1 -1
- package/dist/rpc-entry.js +0 -0
- package/docs/builtin-skills.md +46 -3
- package/docs/docs.json +1 -1
- package/docs/skills.md +1 -1
- package/docs/slash-commands.md +2 -0
- package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/examples/extensions/doom-overlay/doom/build.sh +0 -0
- package/package.json +6 -6
- package/dist/bundle/chunks/chunk-UIVU7TEF.js +0 -30
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: find-skills
|
|
3
|
+
description: Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. Use when the user is looking for functionality that might exist as an installable skill.
|
|
4
|
+
license: MIT (see LICENSE). Adapted for Diffra from vercel-labs/skills.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Find Skills
|
|
8
|
+
|
|
9
|
+
Discover and install skills from the open agent skills ecosystem.
|
|
10
|
+
|
|
11
|
+
## When to use
|
|
12
|
+
|
|
13
|
+
Use this skill when the user:
|
|
14
|
+
|
|
15
|
+
- Asks "how do I do X" where X might be a common task with an existing skill
|
|
16
|
+
- Says "find a skill for X" or "is there a skill for X"
|
|
17
|
+
- Asks "can you do X" where X is a specialized capability
|
|
18
|
+
- Wants to extend what the agent can do, or search for tools, templates, or workflows
|
|
19
|
+
- Wishes they had help with a specific domain (design, testing, deployment, etc.)
|
|
20
|
+
|
|
21
|
+
## The Skills CLI
|
|
22
|
+
|
|
23
|
+
The Skills CLI (`npx skills`, from vercel-labs/skills) is a package manager for agent skills. It needs Node.js and network access.
|
|
24
|
+
|
|
25
|
+
- `npx skills find <query>` searches for skills by keyword. Pass a query: without one it opens an interactive prompt that a non-interactive shell cannot answer.
|
|
26
|
+
- `npx skills add <owner/repo@skill>` installs a skill.
|
|
27
|
+
- `npx skills update` updates installed skills.
|
|
28
|
+
|
|
29
|
+
Browse skills at https://skills.sh/.
|
|
30
|
+
|
|
31
|
+
## Where Diffra loads skills from
|
|
32
|
+
|
|
33
|
+
Diffra loads skills from these folders, among others:
|
|
34
|
+
|
|
35
|
+
| Scope | Folder |
|
|
36
|
+
|---|---|
|
|
37
|
+
| User (every project) | `~/.agents/skills/` and `~/.diffra/agent/skills/` |
|
|
38
|
+
| Project | `.agents/skills/` from the working directory up to the repository root, and `.diffra/skills/` |
|
|
39
|
+
|
|
40
|
+
The Skills CLI does not know Diffra by name. Install with `-a pi`: that target writes to `.agents/skills/` in the project, or `~/.agents/skills/` with `-g`, both of which Diffra reads. Without `-a`, the CLI asks which agents to install for or picks the ones it detects, which may not include a folder Diffra reads.
|
|
41
|
+
|
|
42
|
+
Project skills load only in a trusted project. A new skill is available after `/reload` or in a new session, as `/skill:<name>`.
|
|
43
|
+
|
|
44
|
+
## How to help
|
|
45
|
+
|
|
46
|
+
### 1. Understand the need
|
|
47
|
+
|
|
48
|
+
Identify the domain (React, testing, design, deployment), the specific task (writing tests, creating animations, reviewing PRs), and whether the task is common enough that a skill likely exists.
|
|
49
|
+
|
|
50
|
+
### 2. Check the leaderboard
|
|
51
|
+
|
|
52
|
+
Before searching, check the [skills.sh leaderboard](https://skills.sh/) for a well-known skill in the domain. It ranks skills by total installs. For example:
|
|
53
|
+
|
|
54
|
+
- `vercel-labs/agent-skills`: React, Next.js, web design
|
|
55
|
+
- `anthropics/skills`: frontend design, document processing
|
|
56
|
+
|
|
57
|
+
### 3. Search
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
npx skills find react performance
|
|
61
|
+
npx skills find pr review
|
|
62
|
+
npx skills find changelog
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### 4. Verify quality before recommending
|
|
66
|
+
|
|
67
|
+
Do not recommend a skill on search results alone. Check:
|
|
68
|
+
|
|
69
|
+
1. **Install count**: prefer skills with 1K+ installs; be cautious below 100.
|
|
70
|
+
2. **Source reputation**: official sources (`vercel-labs`, `anthropics`, `microsoft`) are more trustworthy than unknown authors.
|
|
71
|
+
3. **Repository**: look at the source repository. Treat a repository with fewer than 100 stars with skepticism.
|
|
72
|
+
4. **Contents**: skills run with the agent's permissions and can tell it to run scripts. Read the skill's `SKILL.md` and look at any scripts it bundles before installing, and tell the user what the scripts do.
|
|
73
|
+
|
|
74
|
+
Diffra already ships some skills (`review`, `batch`, `grill-me`, `handoff`, `mcp-builder`, `ui-ux-pro-max`, and this one). Do not suggest installing a copy of one of them; an installed skill with the same name replaces the built-in one.
|
|
75
|
+
|
|
76
|
+
### 5. Present options
|
|
77
|
+
|
|
78
|
+
For each skill you recommend, give its name and what it does, its install count and source, the install command, and its page on skills.sh:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
The "react-best-practices" skill has React and Next.js performance guidelines
|
|
82
|
+
from Vercel Engineering (185K installs).
|
|
83
|
+
|
|
84
|
+
Install it for all your projects:
|
|
85
|
+
npx skills add vercel-labs/agent-skills@react-best-practices -g -a pi -y
|
|
86
|
+
|
|
87
|
+
More: https://skills.sh/vercel-labs/agent-skills/react-best-practices
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### 6. Install only when asked
|
|
91
|
+
|
|
92
|
+
Installing writes files the agent will follow later, so install only after the user says which skill and which scope:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
npx skills add <owner/repo@skill> -g -a pi -y # user scope: ~/.agents/skills/
|
|
96
|
+
npx skills add <owner/repo@skill> -a pi -y # this project: .agents/skills/
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
`-y` skips the CLI's confirmation prompts, so the user's go-ahead in the conversation is the confirmation. After installing, tell the user to run `/reload`, or that the skill is there in their next session.
|
|
100
|
+
|
|
101
|
+
## Common categories
|
|
102
|
+
|
|
103
|
+
| Category | Example queries |
|
|
104
|
+
|---|---|
|
|
105
|
+
| Web development | react, nextjs, typescript, css, tailwind |
|
|
106
|
+
| Testing | testing, jest, playwright, e2e |
|
|
107
|
+
| DevOps | deploy, docker, kubernetes, ci-cd |
|
|
108
|
+
| Documentation | docs, readme, changelog, api-docs |
|
|
109
|
+
| Code quality | review, lint, refactor, best-practices |
|
|
110
|
+
| Design | ui, ux, design-system, accessibility |
|
|
111
|
+
| Productivity | workflow, automation, git |
|
|
112
|
+
|
|
113
|
+
Search with specific keywords ("react testing" rather than "testing"), and try other terms when one finds nothing ("deployment" or "ci-cd" for "deploy").
|
|
114
|
+
|
|
115
|
+
## When nothing is found
|
|
116
|
+
|
|
117
|
+
Say that no existing skill was found and offer to help with the task directly. If the user does this kind of task often, suggest turning it into a skill of their own with `/learn <path|URL|text>`, which writes a project skill under `.diffra/skills/`.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Matt Pocock
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grill-me
|
|
3
|
+
description: A relentless interview to sharpen a plan or design. Use when the user wants to stress-test a plan, a decision, or an idea before acting on it.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
license: MIT (see LICENSE). Adapted for Diffra from mattpocock/skills (grill-me and grilling).
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Grill me
|
|
9
|
+
|
|
10
|
+
Interview the user relentlessly until you reach a shared understanding of the plan. Map it as a **design tree**: every decision branches into the decisions that hang off it. If the user named a plan, a file, or an idea with the command, start from that; otherwise ask what they want to be grilled on.
|
|
11
|
+
|
|
12
|
+
## Rounds
|
|
13
|
+
|
|
14
|
+
Work the tree in **rounds**. The **frontier** is every decision whose prerequisites are already settled: the questions you can ask now without guessing at answers you have not heard yet. Ask the whole frontier in one round: number each question and give your recommended answer. Then wait for the user's answers before the next round.
|
|
15
|
+
|
|
16
|
+
Format a round like this:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
**Q1. <question title>**: <question body, which may be several paragraphs and list the choices>
|
|
20
|
+
|
|
21
|
+
Recommended: <your recommended answer>
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
**Q2. <question title>**: <question body>
|
|
26
|
+
|
|
27
|
+
Recommended: <your recommended answer>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Word each question so that "yes" accepts your recommended answer.
|
|
31
|
+
|
|
32
|
+
When a round has at most four questions and each has a few distinct choices, you may ask it with the `ask_user_question` tool instead: one question per entry, your recommendation marked as recommended. Use the written format when a question needs a long explanation or has open-ended answers.
|
|
33
|
+
|
|
34
|
+
Each round's answers reshape the tree: settled decisions push the frontier outward and unblock the questions that depended on them. Recompute the frontier and ask the next round. A question whose answer depends on another question still open in this round belongs to a later round.
|
|
35
|
+
|
|
36
|
+
## Facts and decisions
|
|
37
|
+
|
|
38
|
+
Finding facts is your job, never the user's. When a frontier question needs a fact from the environment (files, git history, a tool's output, a web page), look it up yourself; for a broad search, start an `Explore` subagent with the `agent` tool so its reading stays out of this conversation's context. Do not block on it: a running exploration is an unsettled prerequisite, so only the questions that depend on it wait for its answer; ask the rest of the frontier now. Never ask the user for something you could look up.
|
|
39
|
+
|
|
40
|
+
The decisions are the user's: put each one to them and wait.
|
|
41
|
+
|
|
42
|
+
## Done
|
|
43
|
+
|
|
44
|
+
The session is done when the frontier is empty: every branch of the design tree visited, nothing left silently assumed. Then summarize the decisions in one list. Do not act on the plan until the user confirms you have reached a shared understanding.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Matt Pocock
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: handoff
|
|
3
|
+
description: Compact the current conversation into a handoff document for another agent to pick up. Takes an optional description of what the next session will be used for.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
license: MIT (see LICENSE). Adapted for Diffra from mattpocock/skills.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Handoff
|
|
9
|
+
|
|
10
|
+
Write a handoff document summarizing the current conversation so a fresh agent, in a new Diffra session or another tool, can continue the work without reading this conversation.
|
|
11
|
+
|
|
12
|
+
## Where to save it
|
|
13
|
+
|
|
14
|
+
Save it in the operating system's temporary directory, not the workspace: `$TMPDIR`, else `/tmp`; `%TEMP%` on Windows. Name it `handoff-<short-topic>-<YYYYMMDD-HHMM>.md`. Tell the user the full path when you are done, so they can attach it with `@<path>` or point the next agent at it.
|
|
15
|
+
|
|
16
|
+
## What it contains
|
|
17
|
+
|
|
18
|
+
- **Goal**: what the user is trying to achieve, in their words where possible.
|
|
19
|
+
- **State**: what is done, what is in progress, and what is left, with the files, branches, and commands involved.
|
|
20
|
+
- **Decisions**: what was decided and why, and the alternatives that were rejected.
|
|
21
|
+
- **Open questions and risks**: what is still undecided or unverified, and anything that failed and how.
|
|
22
|
+
- **Next steps**: the first concrete things the next agent should do.
|
|
23
|
+
- **Suggested skills**: the skills the next agent should load, named as `/skill:<name>`, for example `/skill:review` before committing.
|
|
24
|
+
|
|
25
|
+
Do not duplicate what other artifacts already hold (specs, plans in `.diffra/plans/`, ADRs, issues, commits, diffs). Reference them by path or URL instead.
|
|
26
|
+
|
|
27
|
+
Redact secrets and personal data: API keys, tokens, passwords, and personally identifiable information. Write `<REDACTED>` in their place.
|
|
28
|
+
|
|
29
|
+
## Arguments
|
|
30
|
+
|
|
31
|
+
If the user passed arguments, treat them as a description of what the next session will focus on, and tailor the document to it: keep what that work needs and leave out the rest.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 Anthropic, PBC.
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|