skill-self-authorship

skill-self-authorship is a skill for Claude Code, Codex from isaacsight/kernel. It costs 42 tokens per session (748 once invoked), scanned A, original, MIT.

A method for writing a new reusable agent skill after solving a difficult problem or repeating the same process. It defines the required sections, including when to use the skill, its procedure, and failure cases.

In plain words
What is it for?
It helps create skill files with triggers, rules, numbered procedures, and anti-patterns based on successful work and recurring problems.
Why use it?
It prevents the agent from having to rediscover the same solution later. It captures reliable workflows while excluding mistakes and unsupported advice.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps create skill files with triggers, rules, numbered procedures, and anti-patterns based on successful work and recurring problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/isaacsight/kernel/skill-self-authorship
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add isaacsight/kernel --skill skill-self-authorship
Clone the repo
git clone --depth 1 https://github.com/isaacsight/kernel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-self-authorship

README.md
[![agentmods](https://agentmods.dev/badge/skills/isaacsight/kernel/skill-self-authorship/github.svg)](https://agentmods.dev/skills/isaacsight/kernel/skill-self-authorship)
Your own site
<a href="https://agentmods.dev/skills/isaacsight/kernel/skill-self-authorship"><img src="https://agentmods.dev/badge/skills/isaacsight/kernel/skill-self-authorship/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-self-authorship

Your own site · 80×15
<a href="https://agentmods.dev/skills/isaacsight/kernel/skill-self-authorship"><img src="https://agentmods.dev/badge/skills/isaacsight/kernel/skill-self-authorship.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 748 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 54
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • medium Rogue Agent · line 3
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00748
Opus 5.5 $0.00017 $0.00299
Sonnet 5.5 $0.00008 $0.00150
Haiku 4.5 $0.00004 $0.00075

Measured 2mo ago against content hash 1d6cf0df51b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

skill-self-authorship scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/kbot/skills/self-improvement/skill-self-authorship/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill Self-Authorship

The skills that ship with kbot cover known territory. The skills that make your kbot feel psychic are the ones it writes for itself during use.

When to Write a New Skill

At least one of these must be true:

  • You solved something that took 5+ tool calls and got it right.
  • You repeated the same sequence of tool calls 3+ times this week.
  • You corrected kbot twice on the same kind of mistake.
  • A user gave explicit feedback "remember this" / "always do X" / "never do Y."
  • A daemon surfaced a recurring failure kbot had to work around.

Skill Anatomy

Use ~/.kbot/skills/<category>/<kebab-name>/SKILL.md. Frontmatter:

---
name: kebab-name
description: One sentence — "when to use."
version: 1.0.0
author: kbot-self
license: MIT
metadata:
  kbot:
    tags: [2-5 lowercase tags]
    related_skills: [other skills this connects to]
---

Body structure:

  1. Iron Law — the one rule that, if broken, invalidates the skill.
  2. Trigger — the exact situation that should make kbot reach for this.
  3. Procedure — 3–6 numbered steps. Not prose. Commands and decisions.
  4. Anti-patterns — the failure modes to refuse.

The "When to Use" Line Is Everything

The relevance scorer reads description and tags first. If your description is "general debugging tips" the skill will never load. If it's "use when any vitest test fails with ENOENT" it loads exactly when needed. Write for the trigger, not the topic.

Self-Patching

Use the skill_manage tool after a skill executes:

  • skill_manage({ action: "get", query: "<skill-id>" }) — check current success rate.
  • If the skill failed, skill_manage({ action: "patch", query: "<skill-id>", issue: "<what went wrong>" }) appends the issue.
  • If a better step sequence was discovered, skill_manage({ action: "patch", query: "<skill-id>", steps: "[...]" }) replaces the steps and bumps version.
  • skill_manage({ action: "report" }) shows the success-rate distribution across all skills.

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 71 lines · 42 tokens per session scan A 1d6cf0df51b8

Subscribe to this mod's changes

skill-self-authorship is a skill published in the GitHub repository isaacsight/kernel (16 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 748 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

skill-self-authorship compared with skills from other repositories

skill-self-authorship next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skill-self-authorshipisaacsight/kernelSkill162mo agoMITA42Claude Code, Codex
pr-video-agentomnara-ai/omnaraSkill3.5ktodayApache-2.0A61Claude Code, Codex
x-signal-agentomnara-ai/omnaraSkill3.5ktodayApache-2.0A53Claude Code, Codex
composiodesplega-ai/agent-swarmSkill1.1ktodayMITA128Claude Code
skill-ledgeralibaba/anolisaSkill6889d agoApache-2.0A67Claude Code, Codex
regex-masteryalibaba/anolisaSkill6889d agoApache-2.0A60Claude Code, Codex
close-issuedesplega-ai/agent-swarmSkill1.1ktodayMITA16Claude Code