[PATCH v5 0/6] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages

Theodore Ts'o posted 6 patches 2 weeks, 2 days ago
Documentation/process/coding-assistants.rst   |  37 +-
MAINTAINERS                                   |   6 +
agents/skills/commit-message/SKILL.md         |  45 +++
agents/skills/find-fixes/SKILL.md             |  39 ++
agents/skills/find-siblings/SKILL.md          |  36 ++
.../find-siblings/references/coccinelle.md    |  66 ++++
agents/skills/stable-tag/SKILL.md             |  72 ++++
agents/skills/writing-kunit-tests/SKILL.md    | 344 ++++++++++++++++++
8 files changed, 642 insertions(+), 3 deletions(-)
create mode 100644 agents/skills/commit-message/SKILL.md
create mode 100644 agents/skills/find-fixes/SKILL.md
create mode 100644 agents/skills/find-siblings/SKILL.md
create mode 100644 agents/skills/find-siblings/references/coccinelle.md
create mode 100644 agents/skills/stable-tag/SKILL.md
create mode 100644 agents/skills/writing-kunit-tests/SKILL.md
[PATCH v5 0/6] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages
Posted by Theodore Ts'o 2 weeks, 2 days ago
This is an update of Sasha's v4 patchset with the following changes:

   * Rebased to v7.4-rc2
   * Removed references to Assisted-by: per the discussion at the
     Maintainers Summit
   * Addition of a new skill, writing-kunit-tests which I've been
     using to add full KUnit test coverage for ext4.

I've been using the prompt against Gemini Pro; would appreciate
comments about how well it works (or doesn't) when used with Claude
Code.

Sasha, could you consider updating your patch series with this set?
I'll assume that you will send this to Linus, since the bulk of the
work is yours.  Thanks!!

              	     	      	      - Ted

v4: https://lore.kernel.org/r/20261020161642.3713052-1-sashal@kernel.org
v3: https://lore.kernel.org/r/20261016152828.3765695-1-sashal@kernel.org
v2: https://lore.kernel.org/r/20261012213452.1863248-1-sashal@kernel.org
v1: https://lore.kernel.org/r/cover.1791499378.git.sashal@kernel.org


Sasha Levin (5):
  agents: add infrastructure for agent resources
  agents: add a skill to determine Fixes tags
  agents: add a skill to determine stable tags
  agents: add a skill to find other instances of a fixed bug
  agents: add a skill to write commit messages

Theodore Ts'o (1):
  agents: add a skill to write KUnit tests

 Documentation/process/coding-assistants.rst   |  37 +-
 MAINTAINERS                                   |   6 +
 agents/skills/commit-message/SKILL.md         |  45 +++
 agents/skills/find-fixes/SKILL.md             |  39 ++
 agents/skills/find-siblings/SKILL.md          |  36 ++
 .../find-siblings/references/coccinelle.md    |  66 ++++
 agents/skills/stable-tag/SKILL.md             |  72 ++++
 agents/skills/writing-kunit-tests/SKILL.md    | 344 ++++++++++++++++++
 8 files changed, 642 insertions(+), 3 deletions(-)
 create mode 100644 agents/skills/commit-message/SKILL.md
 create mode 100644 agents/skills/find-fixes/SKILL.md
 create mode 100644 agents/skills/find-siblings/SKILL.md
 create mode 100644 agents/skills/find-siblings/references/coccinelle.md
 create mode 100644 agents/skills/stable-tag/SKILL.md
 create mode 100644 agents/skills/writing-kunit-tests/SKILL.md

base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
-- 
2.53.0
Re: [PATCH v5 0/6] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages
Posted by Sasha Levin 2 weeks, 1 day ago
On Wed, Nov 11, 2026 at 05:59:32PM -0500, Theodore Ts'o wrote:
>This is an update of Sasha's v4 patchset with the following changes:
>
>   * Rebased to v7.4-rc2
>   * Removed references to Assisted-by: per the discussion at the
>     Maintainers Summit
>   * Addition of a new skill, writing-kunit-tests which I've been
>     using to add full KUnit test coverage for ext4.
>
>I've been using the prompt against Gemini Pro; would appreciate
>comments about how well it works (or doesn't) when used with Claude
>Code.
>
>Sasha, could you consider updating your patch series with this set?
>I'll assume that you will send this to Linus, since the bulk of the
>work is yours.  Thanks!!

Yup, thanks!

My plan is to respin this in a few weeks with any updates and feedback that we
get, and send it as a PR for the next merge window.

-- 
Thanks,
Sasha
Re: [PATCH v5 0/6] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages
Posted by Krzysztof Kozlowski 2 weeks, 1 day ago
On 11/11/2026 23:59, Theodore Ts'o wrote:
> This is an update of Sasha's v4 patchset with the following changes:
> 
>    * Rebased to v7.4-rc2
>    * Removed references to Assisted-by: per the discussion at the
>      Maintainers Summit
>    * Addition of a new skill, writing-kunit-tests which I've been
>      using to add full KUnit test coverage for ext4.
> 
> I've been using the prompt against Gemini Pro; would appreciate
> comments about how well it works (or doesn't) when used with Claude
> Code.
> 
> Sasha, could you consider updating your patch series with this set?
> I'll assume that you will send this to Linus, since the bulk of the
> work is yours.  Thanks!!

All these are docs (even if you call them as a skill, it's the same),
therefore they should be placed in Documentation, not in top-level. We
should not create one documentation for humans and another for agents.
It's just one documentation.

Best regards,
Krzysztof
Re: [PATCH v5 0/6] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages
Posted by Theodore Tso 2 weeks, 1 day ago
On Thu, Nov 12, 2026 at 09:26:09AM -0500, Krzysztof Kozlowski wrote:
> 
> All these are docs (even if you call them as a skill, it's the same),
> therefore they should be placed in Documentation, not in top-level. We
> should not create one documentation for humans and another for agents.
> It's just one documentation.

Skills aren't necessarily *just* documentation.  The skills
specification[1] also defines a structured location in the skill's
directory hierarchy for Python scripts or other executables.

[1] https://agentskills.io/specification

Cheers,

					- Ted
Re: [PATCH v5 0/6] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages
Posted by Krzysztof Kozlowski 2 weeks, 1 day ago
On 12/11/2026 14:46, Theodore Tso wrote:
> On Thu, Nov 12, 2026 at 09:26:09AM -0500, Krzysztof Kozlowski wrote:
>>
>> All these are docs (even if you call them as a skill, it's the same),
>> therefore they should be placed in Documentation, not in top-level. We
>> should not create one documentation for humans and another for agents.
>> It's just one documentation.
> 
> Skills aren't necessarily *just* documentation.  The skills
> specification[1] also defines a structured location in the skill's
> directory hierarchy for Python scripts or other executables.

Specification is also documentation, just like for example specification
for our ABI. It's also located in Documentation directory.

Agents supposedly "are just tools", thus just as sparse, smatch and
compilers such tools do not get another top-level directory.

Best regards,
Krzysztof
Re: [PATCH v5 0/6] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages
Posted by Theodore Tso 2 weeks, 1 day ago
On Thu, Nov 12, 2026 at 02:49:09PM -0500, Krzysztof Kozlowski wrote:
> 
> Specification is also documentation, just like for example specification
> for our ABI. It's also located in Documentation directory.

Source and header files can also contain documentation.  But we don't
put them in the Documentation directory because they do not contain
*exclusively* documentation.

If the complaint is that it is visible when we run "ls", one
compromise might be to put the skills in .agents/skills.  This is a
cross-harness standard which is supported by some code harneses
(Google Antigravity, Github Copilot, etc.).  Some harneses (including
Claude Code, Opencode) don't, but people who use these harneses can
solve it by installing their own symlink from .claude/skills,
.opencode/skills, etc. to the right place.

Cheers,

						- Ted
Re: [PATCH v5 0/6] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages
Posted by Krzysztof Kozlowski 2 weeks, 1 day ago
On 12/11/2026 15:42, Theodore Tso wrote:
> On Thu, Nov 12, 2026 at 02:49:09PM -0500, Krzysztof Kozlowski wrote:
>>
>> Specification is also documentation, just like for example specification
>> for our ABI. It's also located in Documentation directory.
> 
> Source and header files can also contain documentation.  But we don't
> put them in the Documentation directory because they do not contain
> *exclusively* documentation.

The type of file and its main purpose is a C unit file. Documentation is
only an addon to that.

Here, the main purpose and type of file is documentation. Specification
IS a documentation, just like in-kernel ABI specification is.

I found no other than RST and MD files in this patchset, so I really do
not understand why this is not documentation.

> 
> If the complaint is that it is visible when we run "ls", one

Yes, that's one complain and making it hidden is improving the
perception, but it does not solve the point - it's Documentation so
should be placed in respective directory.

> compromise might be to put the skills in .agents/skills.  This is a
> cross-harness standard which is supported by some code harneses
> (Google Antigravity, Github Copilot, etc.).  Some harneses (including
> Claude Code, Opencode) don't, but people who use these harneses can
> solve it by installing their own symlink from .claude/skills,
> .opencode/skills, etc. to the right place.

Why does it have to be in the top-level in the first place? There is no
point in making LLM stuff visible to humans, except maybe pleasing
people behind upcoming IPO...

Best regards,
Krzysztof
Re: [PATCH v5 0/6] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages
Posted by Sasha Levin 2 weeks, 1 day ago
On Thu, Nov 12, 2026 at 02:49:09PM +0100, Krzysztof Kozlowski wrote:
>On 12/11/2026 14:46, Theodore Tso wrote:
>> On Thu, Nov 12, 2026 at 09:26:09AM -0500, Krzysztof Kozlowski wrote:
>>>
>>> All these are docs (even if you call them as a skill, it's the same),
>>> therefore they should be placed in Documentation, not in top-level. We
>>> should not create one documentation for humans and another for agents.
>>> It's just one documentation.

Right. The idea here is that agent skills will mostly refer to our existing
Documentation/ and will only act as a glue layer to make agents behave better.

Consider, for example, one of the most common feedback points we have to AI
users: "make your commit message way less verbose". This is the type of things
that would make sense as an agent-only instruction.

>> Skills aren't necessarily *just* documentation.  The skills
>> specification[1] also defines a structured location in the skill's
>> directory hierarchy for Python scripts or other executables.
>
>Specification is also documentation, just like for example specification
>for our ABI. It's also located in Documentation directory.

One of the reasons to keep it out of Documentation/ was that it doesn't mesh
with the infrastructure Documentation/ uses. For example, Documentation/ is all
.rst, while the agents.md spec specifically calls out for markdown, and a very
particular construction of that file.

>Agents supposedly "are just tools", thus just as sparse, smatch and
>compilers such tools do not get another top-level directory.

I'm a bit confused by this... the original reasoning was the it doesn't really
fit into either Documentation/ , scripts/, or tools/, so we just gave it it's
own home. Why does it matter if it's a top-level dir or not?

It's something we can always move around later - agents don't care where it
lives as long as it's refered to by the main AGENTS.md, so if we later come to
the conclusion that it makes sense to move it, for example, under scripts/,
then we can easily do that.

-- 
Thanks,
Sasha
Re: [PATCH v5 0/6] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages
Posted by Krzysztof Kozlowski 2 weeks, 1 day ago
On 12/11/2026 15:12, Sasha Levin wrote:
> On Thu, Nov 12, 2026 at 02:49:09PM +0100, Krzysztof Kozlowski wrote:
>> On 12/11/2026 14:46, Theodore Tso wrote:
>>> On Thu, Nov 12, 2026 at 09:26:09AM -0500, Krzysztof Kozlowski wrote:
>>>>
>>>> All these are docs (even if you call them as a skill, it's the same),
>>>> therefore they should be placed in Documentation, not in top-level. We
>>>> should not create one documentation for humans and another for agents.
>>>> It's just one documentation.
> 
> Right. The idea here is that agent skills will mostly refer to our existing
> Documentation/ and will only act as a glue layer to make agents behave better.
> 
> Consider, for example, one of the most common feedback points we have to AI
> users: "make your commit message way less verbose". This is the type of things
> that would make sense as an agent-only instruction.

I am not objecting to have the instructions for agents. They should be
however placed in Documentation.
> 
>>> Skills aren't necessarily *just* documentation.  The skills
>>> specification[1] also defines a structured location in the skill's
>>> directory hierarchy for Python scripts or other executables.
>>
>> Specification is also documentation, just like for example specification
>> for our ABI. It's also located in Documentation directory.
> 
> One of the reasons to keep it out of Documentation/ was that it doesn't mesh
> with the infrastructure Documentation/ uses. For example, Documentation/ is all
> .rst, while the agents.md spec specifically calls out for markdown, and a very
> particular construction of that file.

Documentation already has YAML files for Devicetree and other ABI, thus
difference of format does not matter. It's just minor technical aspect -
tweak the Makefile.

> 
>> Agents supposedly "are just tools", thus just as sparse, smatch and
>> compilers such tools do not get another top-level directory.
> 
> I'm a bit confused by this... the original reasoning was the it doesn't really
> fit into either Documentation/ , scripts/, or tools/, so we just gave it it's

Oh, it can go to tools/, I don't mind.

> own home. Why does it matter if it's a top-level dir or not?

Because we do not need one more top-level directory for something which
is already categorized. We do not create another top-level for
"drivers-embedded" or "drivers-acpi". We do not have "tools" and
"tools-ai". Neither "Documentation" and
"Documentation-for-ai-but-we-will-call-it-agents".


> 
> It's something we can always move around later - agents don't care where it
> lives as long as it's refered to by the main AGENTS.md, so if we later come to
> the conclusion that it makes sense to move it, for example, under scripts/,
> then we can easily do that.

So place it deeper please.

Best regards,
Krzysztof