@codegiveness/kernel-prompt 0.3.0 → 0.4.0
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 +13 -0
- package/README.md +8 -6
- package/package.json +1 -1
- package/skills/kernel-prompt/SKILL.md +30 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Kernel Prompt
|
|
2
2
|
|
|
3
|
+
## [0.4.0] - 2026-10-10
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Treat the text written with the invocation as the prompt to improve, even when it reads as a task. Files, skills, URLs, and repositories it mentions are read as context and referenced in the prompt, never rewritten or summarized as the deliverable; a file or quoted text is transformed only when the user says it is the prompt.
|
|
8
|
+
- Add a "Never do the task" rule: the deliverable is an instruction to an agent, not the agent's output, with a pre-reply check that discards any executed result. Create or edit no files unless asked to save the prompt.
|
|
9
|
+
- Always ask one round of 2–5 questions before drafting, each led by a recommended answer and anchored in the context read, unless the user says "no questions" or "just write it". Ask further rounds only for decisions the previous answers opened. Replaces the conditional questioning of 0.3.0.
|
|
10
|
+
- Rewrite KERNEL as guidance for writing the prompt: undecided choices are delegated explicitly or marked open, never guessed, and the handoff is written for a capable agent that lacks the conversation.
|
|
11
|
+
- Deliver the prompt alone as plain text, ready to send, with no intro, analysis, critique, or change log, followed by at most 3 unconfirmed assumptions.
|
|
12
|
+
- Narrow the description to invoking the skill or asking to compose or improve an LLM prompt or an instruction for another AI.
|
|
13
|
+
- Add a short harness-neutral example contrasting delivering an improved artifact (wrong) with asking questions first and then writing a prompt (right), using placeholder paths and references.
|
|
14
|
+
- Update the README to describe the always-ask round, the delivery format, and the context-only treatment of referenced files.
|
|
15
|
+
|
|
3
16
|
## [0.3.0] - 2026-10-10
|
|
4
17
|
|
|
5
18
|
### Changed
|
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Kernel Prompt
|
|
2
2
|
|
|
3
|
-
`kernel-prompt` is a small, harness-neutral prose skill
|
|
3
|
+
`kernel-prompt` is a small, harness-neutral prose skill that turns your message—a draft prompt or a task you want an AI agent to do—into an improved prompt for that agent. It asks one round of questions first, then writes the prompt while preserving your intent. It writes the instruction, never the task's result.
|
|
4
4
|
|
|
5
|
-
Select it
|
|
5
|
+
Select it when you invoke it by name or ask to compose or improve an LLM prompt or an instruction for another AI. Reviewing documents or collaboration guidance—even with wording suggestions—is not by itself a match. Asking to turn that guidance into a system prompt is.
|
|
6
6
|
|
|
7
7
|
## Use it
|
|
8
8
|
|
|
@@ -13,24 +13,26 @@ Use kernel-prompt to improve this request:
|
|
|
13
13
|
[your goal or draft, with relevant context and constraints]
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Expect
|
|
16
|
+
Expect one round of two to five questions before any draft, each led by a recommended answer and using the harness's question tool when one exists. Say "no questions" or "just write it" to skip them. A further round comes only for decisions your answers opened. The reply is the prompt alone, as plain text ready to send, followed by at most three assumptions you did not confirm; decisions you left unsettled are delegated to the agent or marked open in the prompt, never guessed.
|
|
17
|
+
|
|
18
|
+
Invoking the skill with text that reads as a task—"fix the failing login test"—yields a prompt for that task, not the fix. Files, skills, URLs, and repositories you mention are read as context for the prompt, not rewritten as the deliverable, unless you say that text is the prompt to improve. No files are created or edited unless you ask to save the prompt.
|
|
17
19
|
|
|
18
20
|
## The idea
|
|
19
21
|
|
|
20
|
-
A kernel makes the intended outcome, relevant context, boundaries, and completion conditions clear. Add detail where it helps the task; leave unassigned execution choices open. Facts are looked up, not asked; only decisions the user alone can make become questions.
|
|
22
|
+
A kernel makes the intended outcome, relevant context, boundaries, and completion conditions clear. Add detail where it helps the task; leave unassigned execution choices open. Facts are looked up, not asked; only decisions the user alone can make become questions. The prompt is written for its recipient—a capable agent without the conversation, unable to ask—and checked before replying so it holds the instruction, not the task's result.
|
|
21
23
|
|
|
22
24
|
**KERNEL** is a mnemonic, not a mandatory sequence or template:
|
|
23
25
|
|
|
24
26
|
- **K**eep intent.
|
|
25
27
|
- **E**stablish what is known.
|
|
26
|
-
- **R**esolve
|
|
28
|
+
- **R**esolve ambiguity.
|
|
27
29
|
- **N**ame the work and boundaries.
|
|
28
30
|
- **E**xpress success.
|
|
29
31
|
- **L**ay out the handoff.
|
|
30
32
|
|
|
31
33
|
The guiding reference is OpenAI's [Rethinking skills and prompts for GPT-6 Astra](https://developers.openai.com/blog/rethinking-skills-and-prompts-for-gpt-6-astra). Revisit accumulated instructions, avoid unnecessary recipes, and adapt guidance to the task and model. The article's model-specific advice is not a universal rule; clearer prompts do not guarantee correct answers.
|
|
32
34
|
|
|
33
|
-
The questioning adapts Matt Pocock's [grilling](https://github.com/mattpocock/skills/tree/main/skills/productivity/grilling) (rounds of independent decisions with recommended answers; facts versus decisions) and the recipient
|
|
35
|
+
The questioning adapts Matt Pocock's [grilling](https://github.com/mattpocock/skills/tree/main/skills/productivity/grilling) (rounds of independent decisions with recommended answers; facts versus decisions) and the recipient framing adapts the builder check in obra's [brainstorming](https://github.com/obra/superpowers/tree/main/skills/brainstorming), scaled down to one round before drafting unless you skip it.
|
|
34
36
|
|
|
35
37
|
## Optional installation
|
|
36
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codegiveness/kernel-prompt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Agent skill that turns rough requests and drafts into clear prompts for other agents, asking only the decisions that change the result.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "codegiveness",
|
|
@@ -1,35 +1,42 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kernel-prompt
|
|
3
|
-
description: Use when the user asks to
|
|
3
|
+
description: Use when the user invokes it or asks to compose or improve an LLM prompt or an instruction for another AI. Turns the user's own message into an improved prompt after a grilling round. Never performs the task the prompt describes.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Kernel Prompt
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Turn the user's message into a better prompt they can give to an AI agent. You write the instruction; you never do the work it describes.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## Source
|
|
11
|
+
- The text the user writes with the invocation is the prompt to improve, even when it reads as a task ("improve skill X", "fix bug Y", "write a report on Z").
|
|
12
|
+
- Files, skills, URLs, and repos it mentions are context: read them so the prompt is accurate and specific (exact paths, names, current state, constraints), and reference them in the prompt. Never rewrite, improve, or summarize them as the deliverable.
|
|
13
|
+
- Transform a file or quoted text instead only when the user explicitly says that text *is* the prompt to improve.
|
|
11
14
|
|
|
12
|
-
|
|
15
|
+
## Never do the task
|
|
16
|
+
- The deliverable is an instruction to an agent, not the agent's output. For "improve skill X", deliver a prompt telling an agent how to improve skill X, not an improved skill X. The same applies to code, documents, plans, and reviews.
|
|
17
|
+
- Before replying, check: does the reply contain the result the prompt asks for (a revised file, code, a finished document)? If so, you executed the task. Discard it and write the prompt.
|
|
18
|
+
- Create or edit no files unless the user explicitly asks to save the prompt.
|
|
13
19
|
|
|
14
|
-
##
|
|
20
|
+
## Grill first
|
|
21
|
+
- Before drafting, always ask one round of questions, unless the user says "no questions" or "just write it".
|
|
22
|
+
- First look up what files and tools can answer, then ask 2–5 questions only the user can decide that would change the prompt: what "better" means, scope and non-goals, constraints, what the agent may change or must not touch, what done looks like, what the agent reports back.
|
|
23
|
+
- Lead each question with your recommended answer (first option in the harness question tool, or worded so "yes" accepts it). Anchor questions in specifics from the context you read.
|
|
24
|
+
- Ask another round only for decisions the previous answers opened. Stop when none remain or the user says to write.
|
|
15
25
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- **
|
|
19
|
-
- **
|
|
20
|
-
- **
|
|
21
|
-
- **
|
|
22
|
-
- **
|
|
23
|
-
- **L — Lay out the handoff.** Honor the requested language and format. Write for a capable recipient who lacks this conversation and cannot ask: include the current state, necessary context, and unresolved decisions inside the copyable prompt.
|
|
24
|
-
|
|
25
|
-
## Ask
|
|
26
|
-
|
|
27
|
-
Ask only when the user can answer and an open decision would change the result; otherwise draft. Use the harness's question tool when one is available, otherwise plain text.
|
|
28
|
-
|
|
29
|
-
Ask in rounds. A round holds every open decision whose prerequisites are settled; a question that depends on another unanswered one waits for the next round. If a tool limits the round, ask the most consequential first. Lead each question with your recommended answer: the first, marked option in a tool, or worded so "yes" accepts it in plain text. Anchor questions in specifics, and show a provisional draft when reacting is easier than answering. Stop when no such decision remains or the user says to just write it.
|
|
26
|
+
## Write the prompt (KERNEL)
|
|
27
|
+
- **K — Keep intent.** Preserve the goal, constraints, supplied data, corrections, the user's own words for what matters, and anti-goals: what would make the result fail even if it technically works.
|
|
28
|
+
- **E — Establish what is known.** Carry facts from the context and the user's answers into the prompt. Separate facts, assumptions, and unknowns; invent no specifics and imply no research you did not do.
|
|
29
|
+
- **R — Resolve ambiguity.** Settle minor gaps with routine judgment. Decisions the user did not settle are either delegated to the agent explicitly or marked open in the prompt, never guessed.
|
|
30
|
+
- **N — Name the work and boundaries.** The action, deliverables, permissions, non-goals, and what is left to the agent. Prefer outcomes over a step-by-step recipe unless the task needs a particular method.
|
|
31
|
+
- **E — Express success.** What done means, the checks that prove it, and what to report back. Add no unrequested targets, outputs, or approval stops.
|
|
32
|
+
- **L — Lay out the handoff.** Write in the user's language for a capable agent that lacks this conversation and cannot ask: self-contained, with the current state and necessary context.
|
|
30
33
|
|
|
31
34
|
## Deliver
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
- Reply with the improved prompt as plain text, ready to copy and send. No intro, no analysis, no critique of the original, no change log.
|
|
36
|
+
- After the prompt, list at most 3 assumptions you made that the user did not confirm; omit the list if there are none.
|
|
37
|
+
|
|
38
|
+
## Example
|
|
39
|
+
User: "please see <path/to/module> and improve its readability and performance, inspired by <reference A> and <reference B>"
|
|
40
|
+
- Wrong: the revised module code. That is doing the task.
|
|
41
|
+
- Right: grill (e.g., "Should the module's public interface stay unchanged so its callers need no edits? Recommended: yes"), then reply with a prompt like:
|
|
42
|
+
Improve the module at <path/to/module>. Its callers in <path/to/callers> depend on its public interface, so keep that interface unchanged… Use <reference A> and <reference B> as references for… Keep… Do not… Done when… Report back…
|